Chapter 13: Refactoring to Microservices
In this chapter, we will examine the packaging structure of our application and analyze how we can change that packaging structure to allow us to deploy our microservices as separate components. So far, the only deployment separation we have accomplished is separating the frontend from the backend. Using our analysis, we will restructure and repackage our code and move from WAR files to JAR files, finishing by wrapping our deployments in Docker containers, ready to be deployed in Google Kubernetes Engine, Google App Engine (Flexible), or Google Cloud Run.
In this chapter, we will cover the following topics:
- Analyzing the structure of the application backend
- Refactoring into microservices
- Refactoring the database
- The web frontend
- The Strangler Pattern revisited
- Containerizing the deployment units with Docker