• Post Reply Bookmark Topic Watch Topic
  • New Topic

Synchronize in Clustered Environment  RSS feed

 
nitin pokhriyal
Ranch Hand
Posts: 263
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ,

Recently i came to encounter a situation where code works fine in single environment using synchornization block but now code has to move in clustered environment. I was wondering how can we prevent same thing in clustered environement. Any idea is appreciated.

Thanks
nitin
 
Yi Yang
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Go for terracotta
 
nitin pokhriyal
Ranch Hand
Posts: 263
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What terracota can do in this scenario? I think "Terracota" is a company with lot of products under its belt.
 
nitin pokhriyal
Ranch Hand
Posts: 263
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I wrongly marked this thread as a resolve but actually it is not. So can admin help here to reopen this thread or should i start new?
 
Paul Clapham
Sheriff
Posts: 22185
38
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I flagged it as "unresolved".
 
Henry Wong
author
Sheriff
Posts: 22853
119
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
nitin pokhriyal wrote:What terracota can do in this scenario? I think "Terracota" is a company with lot of products under its belt.


The main Terracotta product does what you want -- don't know the name though (but it's not the ehcache product).

Basically, the product includes a class loader that will change synchronization calls to remote calls to a services that will do the synchronization. This allows multiple JVM to do synchronization together.

Obviously, you will pay a price -- as there is a big diff between a lock grab (in memory) and a network call and response to a service to do a lock grab. So, you definitely don't want to do this with every lock.

Henry
 
nitin pokhriyal
Ranch Hand
Posts: 263
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for your reply.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!