[progress Communities] [progress Openedge Abl] Forum Post: Re: Cache Web Service Data And...

  • Thread starter Thread starter bronco
  • Start date Start date
Status
Not open for further replies.
B

bronco

Guest
Well, there could be various ways, one way is looking at the HTTP level (see: developers.google.com/.../http-caching . Another way can be done in OE. Assuming your data is not changing every second (then you *must* hit the db every time), the response should be a function of the request. So: f(request) = response. If you somehow concatenate the request parameters and hash this you have a unique number (the hash) representing the request parameters. Based on the hash you can cache your data either in memory of on disk (the latter makes it possible to share the result among all AppServer agents). hashing can be done with the message-digest function. On the every request you hash the request parameters, check if the hash is in the cache etc...

Continue reading...
 
Status
Not open for further replies.
Back
Top