iluwatar / iluwatar/java-design-patterns
Microservice pattern: Server-side service discovery
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 94.7k
- Forks
- 27.4k
- Avg merge
- 3d 4h
- Merged PRs (30d)
- 10
Description
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:
- Service Registry: A central repository that holds the network locations of service instances.
- Service Provider: Services register their instances with the service registry.
- Service Consumer: Consumers query the service registry to find available service instances.
- Load Balancer: Directs service requests to available service instances based on a load-balancing strategy.
- Health Check: Ensures that only healthy service instances are registered and available for service discovery.
References
- Microservices Patterns: Service Discovery
- Spring Cloud Netflix: Service Discovery
- Project Contribution Guidelines
Acceptance Criteria
- Service Registry Setup: Implement a service registry (e.g., Eureka, Consul) to manage the dynamic locations of service instances.
- Service Registration and Discovery: Ensure that services can register themselves with the service registry and that consumers can discover these services.
- Load Balancing and Health Checks: Integrate load balancing and health checks to maintain the availability and reliability of the service instances.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading the project's contribution guidelines and the linked server-side service discovery references. The issue names no files, entry points, tests, or chosen registry; define the implementation scope around registry setup, provider registration, consumer discovery, load balancing, and health checks, with completion judged against all three acceptance criteria.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- backend, distributed-systems
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100