Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Servlet->SLSB->Singleton  RSS feed

Pearlo Muthukumaran
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I need some design inputs for caching
150 KB sized objects in the main memory for
performance requirements.
I am planning to use a hastable where I shall store a byte array chunk of above size with some name assigned to it and shall encapsulate it within a management object for getting , putting etc., the expected size is 60 objects at any point of time.
Please let me know whether above will serve the
purpose of my intention to build a quick
"MAIN-MEMORY" Database?
Something like below is the requirement
Servlet->SLSB->Singleton holding the hashtable
But in this case I see that deployment will demand that all the three components will have to reside in the same physical server. If I am going to cluster then the real requirement of "performance through in-memory database (HASHTABLE)" will be unpredicatble.
Any suggestions? I cannot get away with the Servlet and SLSB and implement them as simple Java Classes - another requirement
How to effectively address the above issue?
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!