In my server I need to server high method calls rate (300 method calls per second). In order to stand this requirement I know that I need a cache/in-memory solution.
The conflict is how to do that when I'm using hibernate:
If I will use Hibernate 2nd level cache doesn't saves the real entity but the identifier, thus, it doesn't fit.
If I will use an in-memory solution as Infinispan or Couchbase I will need to develop a layer that doe's duplicated works (save/delete/update to DB and memory).
Is there any way that I can save/update/delete a JPA Entity to hibernate and to in-memory grid without to develop a layer that doe's that?
I also tried to find the Hibernate API docs but it looks deprecated (if someone can redirect me I'll be happy).
Thanks! Tomer