iluwatar / iluwatar/java-design-patterns
Microservice pattern: Client-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:
The Client-Side Service Discovery pattern is a design strategy in microservice architectures where the client is responsible for determining the network location of service instances. This involves querying a service registry, which keeps track of available service instances. The client retrieves the required information and selects an appropriate service instance to communicate with.
Main elements of the pattern include:
- Service Registry: A centralized database that maintains the addresses of service instances.
- Service Registration: Services register their network locations (IP addresses and port numbers) with the service registry.
- Service Querying: Clients query the service registry to get the location of a service instance.
- Load Balancing: Clients implement load balancing strategies to choose among multiple service instances.
References:
Acceptance Criteria:
- Implement a service registry that can register and deregister service instances.
- Create a client module that can query the service registry to discover service instances.
- Ensure that the client module includes a basic load-balancing mechanism to distribute requests among multiple 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
No implementation files, tests, or entry points are named. Start with the Project Contribution Guidelines and the Client-Side Service Discovery reference, then determine how this repository organizes Java patterns. Done requires a service registry with registration and deregistration, client-side querying, and basic load balancing across multiple instances.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- distributed-systems
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100