java-design-patterns icon indicating copy to clipboard operation
java-design-patterns copied to clipboard

Microservice pattern: Server-side service discovery

Open iluwatar opened this issue 2 years ago • 11 comments

Description

Implement the Server-Side Service Discovery design pattern for the project. This pattern helps in dynamically locating services within a microservices architecture, enhancing the system's scalability and flexibility.

Main Elements of the Pattern:

  1. Service Registry: A central repository that holds the network locations of service instances.
  2. Service Provider: Services register their instances with the service registry.
  3. Service Consumer: Consumers query the service registry to find available service instances.
  4. Load Balancer: Directs service requests to available service instances based on a load-balancing strategy.
  5. Health Check: Ensures that only healthy service instances are registered and available for service discovery.

References

Acceptance Criteria

  1. Service Registry Setup: Implement a service registry (e.g., Eureka, Consul) to manage the dynamic locations of service instances.
  2. Service Registration and Discovery: Ensure that services can register themselves with the service registry and that consumers can discover these services.
  3. Load Balancing and Health Checks: Integrate load balancing and health checks to maintain the availability and reliability of the service instances.

iluwatar avatar Oct 15 '23 17:10 iluwatar

can you assign me this

lokytech5 avatar Oct 16 '23 19:10 lokytech5

Please specify if I can use Spring Boot to implement the design or core Java.

lokytech5 avatar Oct 19 '23 07:10 lokytech5

Yes, Spring Boot can be used. It has been used in some other patterns as well.

iluwatar avatar Oct 22 '23 13:10 iluwatar

currently on it

lokytech5 avatar Oct 22 '23 21:10 lokytech5

This issue has been automatically marked as stale because it has not had recent activity. The issue will be unassigned if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Dec 22 '23 00:12 stale[bot]

How do you plan to implement this ? What all microservices do you want to discover can I get a gist of those ?

ankurnotwarikoo avatar Jun 05 '24 19:06 ankurnotwarikoo

The issue is currently unassigned. We are open for proposals 😀

iluwatar avatar Jun 06 '24 05:06 iluwatar