• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Where to cache common parameters for Web Services

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Ranch Hand
Posts: 2198
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic