Setting Up Service Deployments
By now, you know how to bootstrap microservices, set up the logic for accessing databases, implement service APIs, use serialization, and enable synchronous and asynchronous communication between your microservices. Now, we are ready to cover a topic that is very important in practice – microservice deployments.
Deployment is a technique of uploading and running your code to one or multiple servers that are often located remotely. Prior to this chapter, we assumed that all services are run locally. We implemented services using static hardcoded local addresses, such as localhost
for Kafka. At some point, you will need to run your services remotely – for example, on a remote server or in a cloud, such as Amazon Web Services (AWS) or Microsoft Azure.
This chapter will help you to learn how to build and set up your applications for deployments to such remote infrastructure. Additionally, we are going to illustrate how to use one...