Chapter 21. Deploying Event-Driven Microservices
Deploying event-driven microservices can be challenging when compared to a single monolithic deployment. As the quantity of microservices within an organization increases, so does the importance of having standardized deployment processes in place. An organization managing only a few dozen services can get away with a few custom deployment processes, but any organization seriously invested in microservices, event-driven or otherwise, must invest in standardization and streamlining its deployment processes.
Principles of Microservice Deployment
You should follow a few principles to optimize your microservice deployment processes:
- Give teams deployment autonomy
-
Teams should control their own testing and deployment process and have the autonomy to deploy their microservices at their discretion.
- Implement a standardized deployment process
-
The deployment process should be consistent between services. A new microservice should be created with a deployment process already available to it, and is commonly accomplished with a continuous integration framework (covered a little later in this chapter).
- Provide necessary supportive tooling
-
Teams may need to reset their application’s consumer group offsets, purge state stores, check and update schema evolution, and delete internal event streams. Supportive tooling provides these functions to enable further automation of deployment and support team autonomy.
- Consider event-stream reprocessing ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access