Spring Cloud by Hashicorp Consul: Service Discovery with SpringBoot

Case study

Distributed network scanning, able to organically growth on demand without the need to register new nodes.

Implementation

NetworkDiscovery (README file contains bootstrap information)

Proof of Concept

Distribute large nmap requests among multiple scanners. In case of a request for a range of a 100 IP addresses and while having 4 scanners, distribute the load to 25 IP addresses per each. Each new scanning service should automatically register and deregister from Consul.

Technology

  • SpringBoot -> RestController, RestTemplate, Lombok, Slf4j, DI, TaskExecutor, DiscoveryClient
  • Spring Cloud -> HashiCorp Consul
  • Maven -> Dependencies, Resources, Build
  • Centos 7 -> Platform to run scanners

Comments