Do you have to be more specific, for example, is it a card supported by the database, or is it only in the application memory (for example, in a session or something else)?
I have seen cache implementations that do something similar through JMS message queues, etc. (e.g. JCS from apache).
If you are tuned in, you can use your own solutions involving JMS topics, listeners and publishers, but in practice this is not very trivial. And I'm not sure if this will work on what you are looking for.
Commercial classes cluster / cache solutions, you are probably the best option, as suggested by other posters.
source share