dg8-workshop icon indicating copy to clipboard operation
dg8-workshop copied to clipboard

Add a section about appropriate use cases

Open InfoSec812 opened this issue 1 year ago • 0 comments

Is your feature request related to a problem? Please describe. Different modes of operation for caches have better or worse performance implications. For example, using Spring Session Remote Cache works best when the data being cached is minimal and comprised of simple data types. Conversely, for complex data types is often better to use JPA 2nd-layer caching or JCache APIs for larger or more complex object graphs.

Describe the solution you'd like I would like to see a section which makes general recommendations on where and when to use different cache modes/implementations to maximize performance and resilience for different example use cases.

Describe alternatives you've considered No other alternatives currently exist

Additional context I have worked with a number of clients/customers in recent months who are using Remote Caches for Sessions and storing extremely large and complex object graphs in those session caches. This often leads to less than desirable performance outcomes for those use cases where if they had uses Remote Session Caching in conjunction with JPA 2nd-level caches and/or JCache it would have led to better outcomes.

InfoSec812 avatar Feb 16 '23 15:02 InfoSec812