• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Persistence and Clusters (guidance from author)

 
Oussama Kaoui
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Vlad
I'm currently developing a distributed system in Java and I want to know about Java persistence and clusters, any guidance.
Thank you
Happy Easter
 
Vlad Mihalcea
Author
Ranch Hand
Posts: 32
6
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks,

First, you need to set up database replication to accommodate more traffic coming from the application cluster nodes.
Spring offers a very nice AbstractRoutingDataSource which you can use to split traffic towards master and slave nodes.

If you are using 2nd level caching, it's better to use it in a cluster environment too, as otherwise every node will have a full copy of the whole cache.

What I also advise you to do is to investigate FlexyPool because in a clustering environment you need to connection pooling monitoring to know the right size of every connection pool you use in your system.
That's especially relevant if you use auto-scaling for front-ends and batch processors too.

Vlad
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic