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

Where to cache common parameters for Web Services  RSS feed

 
sam hain
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm working on converting a large legacy system from a queue based architecture into SOA.

The system has hundreds of parameters that are stored throughout a few dozen database tables. I want to load these parameters once a day for the services to use so as to not hit the database whenever a parameter is needed in the logic.

What would the best practice be for caching this information? I'm thinking that having a single Servlet read and hold the data to be available on HTTP GET requests is the simplest solution, but obviously not the most elegant.

Thoughts?
 
Ivan Krizsan
Ranch Hand
Posts: 2198
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!
How is the data that you want to cache to be accessed?
For example, is it to be accessed by one single part of the system or by multiple parts?
Is the data related to some particular service, in which it then could be "hidden"?
Would it be feasible to introduce a database cache (for example, enable caching for Hibernate or similar) for the tables in question, while retaining the (database) querying?
Best wishes!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!