iluwatar/java-design-patterns

Microservice pattern: Self registration

iluwatar opened this issue · 4 comments

Hi, can you assign me this one?

just to clarify, I just have to design a microservice that has a discovery server and other services that meet the following criteria:

  • Service instances must be registered with the service registry on startup and unregistered on shutdown
  • Service instances that crash must be unregistered from the service registry
  • Service instances that are running but incapable of handling requests must be unregistered from the service registry

am I correct?

Yeah, look at the solution chapter for some implementation tips

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.