All-Things-Docker-and-Kubernetes

Best Practices for Application Deployments

The appropriate model has been decided and we’ve carefully reviewed the requirements against the monoliths vs. microservices, so what’s next? Implementation.

It is essential to understand best practices and follow them during the release and maintenance phases when building solution. Of course, there is no one-size-fits-all strategy and each organization works differently, but knowin these best practices ensures we have resiliency and high availability.

Health Checks

Refers to the status of the application and ensuring the expected behavior to take on the traffic is met.

Metrics

Measures the performance of an application.

Logs

Logs aggregation provides significant insights on the application’s operation on a particular timeframe

Logging Levels Meaning
DEBUG record fine-grained events of application processes
INFO provide coarse-grained information about an operation
WARN records a potential issue with the service
ERROR notifies an error has been encountered, however, the application is still running
FATAL represents a critical situation, when the application is not operational

Tracing

Helpful for understanding the full journey of a request.

Resource Consumption

Refers to how much resources an application uses to perform its operations.


Back to first page