Monitoring patterns
To maintain the resilience of the system, we need ways to monitor our services' performance and availability. There are multiple types of monitoring we can add to applications and services; for example, for responsiveness we can add a periodic ping to the application and validate how much time a response takes or we can check on the CPU and RAM usage of the system. If you are using a third-party cloud, such as Amazon Web Services (AWS), you get in built support for this kind of monitoring; otherwise one can write simple scripts to check the current state of health. Log monitoring is used to check whether errors or exceptions are being thrown in the application and how critical they are.
With monitoring in place, we can ...
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