• Post Reply Bookmark Topic Watch Topic
  • New Topic

terracotta question ?

 
pascal gehl
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I have to cluster a java application.
I found terracotta read the doc and the book and it seems perfect for my needs.
Almost too perfect to be true.
Did any of you use it and what do you think ?

thanks
 
Henry Wong
author
Sheriff
Posts: 22524
109
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, it's a two edge sword. Yes, you can synchronize across JVMs, without any code changes. It is done via by bytecode modification at runtime. The code that synchronizes on a lock is replaced with a network call to a service, that synchronizes (and coordinates), on a lock.

However, think about it. To synchronize on a lock is very quick. An uncontended sync can take less than 100ns. This code is now replaced with code that goes across the network, to make the request, and response -- for both lock acquire and release. It can get real slow -- to the point of intolerable.

Henry
 
pascal gehl
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for your answer.

Have you experienced this? Do you have metrics?
Did you see a clustered application performance degrade using terracotta?

thanks a lot.
 
Henry Wong
author
Sheriff
Posts: 22524
109
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Download the package and try it out. Like anything, there are good ways to use it and bad ways to use it. It really depends on how many locking calls you make, and how long you hold those locks.

Henry
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!