Implementing runtime reference architecture
The problems discussed in the previous section are addressed by the following reference runtime architecture:
All these components were already discussed in Chapter 1, Introduction to Cloud-Native. Now, we proceed to choose technologies and show an implementation.
Service registry
Running the service registry Eureka was discussed in Chapter 2, Writing Your First Cloud-Native Application. Please refer to that chapter to refresh your memory on how a product
service registers itself with Eureka and how the client uses Ribbon and Eureka to find the product
service.
The importance of service registry is slightly diminished if we are using Docker Orchestration, such as Kubernetes. In this case, Kubernetes itself manages the registration of a service, which a proxy looks up and redirects to.
Configuration server
The config server stores configurations in a hierarchical manner. This way, the application only needs to know the address of the config server and...