开发者

Is is possible to write cache in application for cluster enviroment?

I know there are cache products supporting cluster, JBoss Cache etc.

But the JBoss Cache only works for JBoss server and it's not application-level component. Is it possible to write own cache for cluster in 开发者_如何学编程my application? Each application instance cannot know other instances in cluster, is it true?


Have you checked infinispan? It's from JBoss too, but it has an api to control it programatically. To be clear, you don't need to run JBoss, you just need to add the infinispan jar in your app.


In a few words: terracotta. Brilliant solution. Works fantastically, good support on the forums. Good error messages. No source footprint, it's all a matter of configuration. Tc will instrument your code with bytecode needed to communicate with the tc server.

Backside: is hub and spoke design. Needs a designated terracotta server.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜