Developing in a cloud-friendly way
It’s always good to have a clear understanding of the cloud provider and platform you are using. This involves the services you are using as well as the delivery and service model. Although development in the cloud is not really the main focus of this book, we will discuss a few best practices that have a direct impact on the delivery process.
Loose coupling
When building cloud-native applications, you should always aim for loose coupling. This means that you should avoid tight dependencies between your services and should use asynchronous communication between your services. Doing this will make it easier to scale your services independently. Furthermore, it will also make it easier to replace and deploy new versions of your services. This also means that you should avoid using shared databases, opting for event-driven architectures instead. This also avoids inter-service dependencies and simplifies your deployment process.