- HazleCast
- Cache is a memory where we can store the data which is being accessed very frequently so that we can increase the speed of Access and Search.
- Cache is a temporary storage To increase the efficiency of our read operations.
- In content delivery network(CDN) We have to cache data at the edge of the note to provide faster access across region.
- Spring cache uses Concurrently hashmap as cache Manager.
- If we don’t pass the key, it will twee all the parameters in the request as a Unique Composite Key.
- So if there is any head change, then the data will be fetched from original source.
- Cache Manager Helps to store data in different structure like list, stack, map, Queue.
- We can also use A Java collection like structure, but then we have to write a lot of boilerplate code to maintain policies on event of update and delete.
- Cache provider Manages our cache configuration.
- Hazlecast is an example of Cache Provider.
- @CachePut is used to sync the update operation with caching.
- @CacheEvict is used to sync the caching operation with delete.
- Example
- https://github.com/gauravmatta/springmvc/blob/5aea09cbb2f2d8d7a3ceb0c612ac536be8cdec40/voting-system/src/main/java/com/springimplant/votingsystem/controllers/CandidateController.java
- https://github.com/gauravmatta/springmvc/blob/f9df16cc24e7768b99340f1350b4f01cbe23dc5d/voting-system/src/main/resources/hazelcast.yaml
- 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
Caching
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