File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Servlet->SLSB->Singleton

 
Pearlo Muthukumaran
Ranch Hand
Posts: 79
  • 0
  • 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?
Rgds
Muthu
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic