Circuit Breaker Pattern in Microservices Explained
A circuit breaker stops calls to a failing service and gives it time to recover. See the states and a Resilience4j example for Spring Boot.
2,889 posts about Java: questions with answers, tutorials and articles, newest first.
A circuit breaker stops calls to a failing service and gives it time to recover. See the states and a Resilience4j example for Spring Boot.
An API gateway gives clients one entry point to many microservices and centralises routing, authentication, rate limiting and caching.
See how service discovery works in Java microservices and set it up with Eureka, Consul or Kubernetes Services, with client-side load balancing.
Microservices give independent scaling, deployment and fault isolation. See the benefits, a Spring Boot service and the costs to weigh first.
Microservices split an application into small independent services. See the core ideas, a Spring Boot example, supporting tools and the challenges to plan for.
application.properties is Spring Boot's main configuration file for ports, databases, logging and custom settings, with profile support and clear override rules.
Spring Boot removes manual setup with starters, auto-configuration, an embedded server and Actuator. See a minimal runnable app and what each feature does.
Spring Boot is an opinionated layer over Spring with auto-configuration, starters, and an embedded server. See how to start a project and what it provides.
Spring's IoC container creates beans and injects their dependencies. See constructor, setter and field injection with current Spring Boot 3 examples.
@Controller turns a class into a Spring MVC request handler that maps URLs to methods and returns views. See examples, the request flow and how it differs from @RestController.
Build a CRUD REST web service with Spring MVC, Spring Data JPA and validation on Spring Boot 3, with correct status codes and curl examples.
A RESTful web service in Java exposes resources through URLs and HTTP methods. See REST principles and working Spring Boot and Jakarta REST examples.
HTTP is request-response and stateless, while WebSocket keeps one connection open for two-way messages. See how they differ and which to choose.
A Java WebSocket keeps one connection open so client and server can push messages at any time. See server and client examples with Jakarta WebSocket and the JDK.
Create, read and delete cookies in Java with the Jakarta Servlet API and Spring, and set HttpOnly, Secure and SameSite correctly.
Learn how Java web apps track users with HttpSession and session cookies, and how to secure, expire and scale sessions across servers.
web.xml is the deployment descriptor that configures servlets, filters, sessions and security in a Java web app. It is optional since Servlet 3.0.
Create a servlet filter with doFilter and FilterChain, register it with @WebFilter, web.xml or Spring Boot, and learn ordering, OncePerRequestFilter and common pitfalls.
A servlet filter intercepts requests and responses around a servlet. See how doFilter works, how to register and order filters, and common uses such as logging and security.
The Fork/Join framework splits CPU-bound work into subtasks run by a work-stealing pool. Learn RecursiveTask, thresholds and best practices with an example.