Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / JavaBeans / October 2006

Tip: Looking for answers? Try searching our database.

Performance - JBoss/Hibernate caching versus versioning

Thread view: 
timasmith@hotmail.com - 02 Oct 2006 04:00 GMT
Hi,

For scalability which do you think performs better?  Assume Oracle 10g,
JBoss AS (x10), 1000 concurrent users (heavy transaction processing -
mostly reads).

a) Let Hibernate/JBoss Tree Cache perform caching of active content -
AS pinging each other, keeping data in sync.

b) Mark your objects with a version number and every time the object is
requested select the version number and if the object has not changed
return from cache.

Perhaps b) is more scalable since it does not require activity across
all servers to keep everything in synch and less restrictive since you
can update the database directly - as long as you increment the version
number.

On the other hand the JBoss servers will not need to hit the database
every time either...

Thoughts?

Tim
Simon Brooke - 02 Oct 2006 09:56 GMT
> Hi,
>
[quoted text clipped - 8 lines]
> requested select the version number and if the object has not changed
> return from cache.

c) don't cache in Java at all, since caching is what Oracle is very good
at. Don't use heavyweight data objects which are expensive to create on
fetch from database. Play to the strengths of the technologies you're
using, not the weaknesses. Really fetch from the database on each
transaction.

Read 'Better, Faster, Lighter Java'
http://www.oreilly.com/catalog/bfljava/

Signature

simon@jasmine.org.uk (Simon Brooke) http://www.jasmine.org.uk/~simon/

       ;; making jokes about dyslexia isn't big, it isn't clever and
       ;; it isn't furry.



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.