RefactorFirst

Articles and tutorials about Java, Spring Boot, Software Development, and Programming. Learn about what is new in programming and look into how to optimize and write clean code.


Circuit Breaker And Retry with Spring Cloud Resiliance4j

In this article, we will be looking into how we can integrate a circuit breaker and a retry mechanism, to handle failures while making synchronous calls to another service. Introduction With the growing number of services, services might need to... Read more

Integrate Caching with Spring Cache and Ehcache 3

In this article, we will look into some Spring Cache concepts and then integrate Ehcache 3. Introduction In an application, we can reduce the amount of processing or network calls to another service by introducing caching. Caching allows us to i... Read more

Externalizing Application Configuration With Spring Cloud Config

In this article, we would be looking at how we can externalize configs using Spring Cloud Config. Introduction One of the principles from the 12 Factor App, states that we have to separate our application configuration from the code. The configu... Read more

Distributed Tracing With Spring Cloud Jaeger

In this article, we will explore how to implement distributed tracing using Jaeger and visualize the traces using Jaeger UI. Introduction Jaeger is an open-source distributed tracing mechanism that helps to trace requests in distributed systems.... Read more

Spring Cloud Gateway — Resource Server with Keycloak RBAC

In this article, we will be exploring how we can integrate a resource server with an API gateway that is integrated with Keycloak and enable role-based access control (RBAC). Introduction In my previous article “Spring Cloud Gateway Keycloak OAu... Read more