3 Building microservices with Spring Boot
This chapter covers:
- Understanding how microservices fit into a cloud architecture
- Decomposing a business domain into a set of microservices
- Understanding the perspectives for building microservice-based applications
- Learning when not to use microservices
- Implement a microservice using Spring Boot, Spring Actuator, Spring Hypermedia as the Engine of Application State (HATEOAS), and Internationalization.
To successfully design and build microservices, you need to approach microservices as if you’re a police detective interviewing witnesses to a crime. Even though every witness saw the same events take place, their interpretation of the crime is shaped by their background, what was important to them (for example, what motivates them), and what environmental pressures were brought to bear at the moment they witnessed the event. Participants each have their own perspectives (and biases) of what they consider essential.
Like successful police detecting trying to get the truth, the journey to build a successful microservice architecture involves incorporating the perspectives of multiple individuals within your software development organization. Although it takes more than technical people to deliver an entire application, I believe that the foundation for successful microservice development starts with the perspectives of three critical roles: