• Post Reply Bookmark Topic Watch Topic
  • New Topic

using huge static data in JSP  RSS feed

 
arin paul
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi There,
I am facing the following problem, I have to share huge data around 1.5 MB across JPS. It is fetched from DAO (SOAP service) and stored in
HashMap as name value pairs. Note that this data will be refreshed every two day so it is sought of static and dyanmic as well.

I am thinking
Option 1: I would make the HashMap a bean and store it in ApplicationContext.

Option 2: Code a Server Socket and serve the value given the key that way the Server space is light weight and the data is avaiable to the nodes in the clustered.


Please give me your valuable thoughts.

-Arin Paul
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think you are on the right track with option 1. Who cares if every machine in the cluster has a copy, memory is cheap.
If I understand what you mean in option 2, I think you would find that opening a socket can be surprisingly time consuming.
Bill
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!