Posts

Register Custom Health Indicators In Spring Boot Application

Image
Hello everyone, Hope you are doing well. In this post, we will learn how to register custom health indicators in the Spring Boot application via Spring Actuator. A little bit of Background Spring Boot Actuator Spring Boot Actuator is a sub-project of Spring Boot. It adds several production-grade services to your application with little effort on your part. It is used to expose operational information about the running application — health, metrics, info, dump, env, etc. More Info -  https://docs.spring.io/spring-boot/docs/2.0.x/reference/html/production-ready.html HealthIndicator The Health indicator strategy interface. It is used to contribute Health to the results returned from the HealthEndpoint. More Info -  https://docs.spring.io/spring-boot/docs/current/api/org/springframework/boot/actuate/health/HealthIndicator.html AbstractHealthIndicator Base HealthIndicator implementations that encapsulate the creation of Health instance and error handling. This implementation is only suitabl

Azure Database for PostgreSQL Single Server + Spring Boot - Build REST CRUD APIs

Image
Hello everyone, Hope you are doing well. In this tutorial, you will learn how to build REST CRUD APIs with  Spring Boot ,  Spring Data JPA  and  Microsoft  Azure Database for PostgreSQL Single Server. A little bit of Background Azure Database for PostgreSQL Single Server Single Server is a fully managed database service with minimal requirements for customizations of the database. The single server platform is designed to handle most of the database management functions such as patching, backups, high availability, and security with minimal user configuration and control. The architecture is optimized to provide 99.99% availability on a single availability zone. It supports the community version of PostgreSQL 10 and 11. The service is generally available today in a wide variety of Azure regions . More Info -  https://docs.microsoft.com/en-us/azure/postgresql/single-server/overview-single-server Spring Boot Spring Boot makes it easy to create stand-alone, production-grade Spring-based A