we built something fairly similar for a MNP solution. wecached the result in memcached for 24 hours. works a treat.
however, the overheard of all those http requests was too much for some applications, so we also made a LDAP interface. On Friday 10 November 2006 07:37, Alex Kinch wrote: > On 11/9/06, Ben Suffolk <[EMAIL PROTECTED]> wrote: > > > Blocking is an idea, but as you're basically doing a an SS7 query to > > > the remote operators HLR it's possible the HLR may not respond or > > > take a little while to respond. That's where caching comes into play. > > > > Indeed. I think if you are planning on caching at your end, then you > > need to provide users with a way to force a live get as well, > > possibly making this a higher cost, or more to the point the cached > > one cheaper :-) > > Yep, that's the plan. Cache it for a predetermined amount of time, but > give the client the option to force refresh of the info. The more > people use it, the more likely the cache is to be up to date, and the > cheaper it gets. Win-win really. > > Alex
