How can I aggregate Microservice (Load Balancer), Hibernate/Jpa queries into one cache pool?

Viewed 18

Consider 5 identical applications that are load-balanced in the microservices architecture. Are there any settings to cache Java Hibernate/JPA queries in one place? Because for 5 applications, 4*x size of memory will be wasted.

Same situation for java libraries like Integer.MAX, is there support for collecting static defined variables into one common pool?

enter image description here

0 Answers
Related