aspose file tools
The moose likes JForum and the fly likes Using Jforum in a active-active cluster Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Products » JForum
Reply Bookmark "Using Jforum in a active-active cluster" Watch "Using Jforum in a active-active cluster" New topic
Author

Using Jforum in a active-active cluster

Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
hi,
I've noticed that:
list.page
on each request, doesn't load the data from the database, as the show pages, but from a a cached object.
This creates big problem in a active-active cluster: you don't see new categories, forums, private messages.. created on the other servers until you restart the server, and for example if you want to find if there are new posts, to be sure, you have to enter in the forum.

This could be a behavior, but I'm critic on the design:
- list.page read from cache
- show from database (if you disable cache)

It should be the same behavior for all the parts.

I know that it's possible to use jboss cache, but having a critical site with small traffic, we prefer a simple and solid solution.

The same discrepancy is present for example for thumb.
The download link are managed by a servlet, but the thumbnail are directly accessed (this creates big problem if you use a store and upload dir different from the war explosed, e.g. on weblogic), in my opinion all file uploaded should be accessed by servlet.

To solve this we decide to rewrire the list.page to read every time from DB.

Could you please help us to do less changes on the source code, to reach our objectives?

Thanks
Stefano

[originally posted on jforum.net by steunet]
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Using Jforum in a active-active cluster
 
Similar Threads
Cons of cache-between-transactions
how make an object available for entire cluster?
clustered environment - Singleton class
JNDI nameservive as a temporary storage in cluster
Caused by: java.lang.NullPointerException