- Used mostly when one micro service is calling more than one micro services So failure of one does not impact other.
- Resilence4j helps us to manage fault tolerance In microservices
- Circuit Breaker(fault tolerance)
- Rate Limiter(block too frequent requests)
- Number of request a service can send to another service within a specific time frame.
- Time Limiter(Set a time when calling remote operations)
- Retry Mechanism(Automatically Retry a failed remote connection)
- Bulk Head(Avoid too many concurrent requests)
- Cache(Storing of results is costly)
- Remote Operations
- Detect something is wrong.
- Take temporary steps to avoid the situation getting worse
- Deactivate “the Problem” component so that it doesn’t affect downstream components.
- Example Resilence4j
- https://github.com/gauravmatta/springmvc/blob/979735871a339bac93395b13951857b093312a09/user-api/src/main/java/com/springimplant/userapi/controllers/OrderController.java
- https://github.com/gauravmatta/springmvc/blob/979735871a339bac93395b13951857b093312a09/user-api/src/main/resources/application.properties
- Example Hystrix
- Annotations
- Controllers
- Components
- Dependencies
- Documenting Java Code
- Entities
- Hibernate
- HTTPS Security
- Spring Core
- Maven
- Spring MVC
- Microservices
- Packages
- Project Configuration
- REST Templates
- Spring Boot
- AOP
- Spring DI
- Spring IOC
- Spring Data
- Tag Library
- View Resolvers
- Validations,Errors & Exceptions
- Activiti Framework
- Deploy spring boot Microservices in Fargate
- Spring Security
- Password encryption using Jasypt
- Flyway DB Migration Script
- Session in Spring Boot
- Spring Expression Language
- Spring JDBC
- Spring ORM
- Testing Spring Boot
- Correlation ID
- Logging
- ELK Stack
- EFK Stack
- Swagger
- Rabbit MQ
- Circuit Breaker Pattern
- Connection Pooling
- Spring Batch
- Zipkins
- Kafka
- Spring Boot Actuator
- Spring Cloud
- Caching
- Gateway
- Service Discovery
Circuit Breaker Pattern
Subscribe to:
Posts (Atom)
Spring Boot
What is circular/cyclic dependency in spring boot? When two services are interdependent on each other, that is to start one service, we requ...
-
What is JPA? JPA Is also called as Java persistence API It is a standard form oracle to map object to database relations. Provides specific...
-
Technology's / frameworks in Spring Spring core Spring MVC Spring boot Spring data Hibernate
-
Q What is the minimal web version required to use JSTL? And : 2.4 For example following tag from web.xml uses web 4.0 <web-app xmlns:xs...
No comments:
Post a Comment