Ask a questionAsk a question
 

Answercaching data with web services

  • Wednesday, November 04, 2009 6:27 AMhemant garg Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    Assume that we are developing a web application that shows currency exchange rates for a bank web site. The rates are stored in an IBM Mainframe in the bank and rates are available through web services. Each time a user accesses the rates page, the page makes a request to the mainframe. This generates too much load on the mainframe. Especially most of the time the rates delivered is the same. How would we design a caching architecture that minimises the trip to the web service. But at the same time rates may fluctuate within the day and if rates have changed the rates web page should not display the cached values but make another request to the web service. How would we design such a caching architecture and make sure it is invalidated on rate changes?

Answers

All Replies