Views from Phanfare CEO and Co-founder Andrew Erlichson

Link Cache Coherency in the face of flaky networks and sudden shutdowns

When I was at Ph.D. student at Stanford, we researched hardware cache coherency for multiprocessing. In these environments, network messages are not lost and the components do not fail or shutdown unexpectedly.

You would think that when building a caching client that works in offline mode for the web, that you could apply this knowledge. In reality though, the internet, with its flaky networks and unreliable client computers poses unique challenges.

At Phanfare, we have now built 3 caching clients that need to work offline and with intermittent network connectivity and sudden client shutdowns: the mac client, the PC client, and Phanfare Photon for the iPhone. Every one of them has a way of “clearing the cache” which is an admission that from time to time, state becomes corrupted and must be rebuilt from the server.

Outlook offers a cached disconnected mode and it has a way of starting in safe mode, and sometimes rebuilds its outlook database on startup.

Now Gmail is going to offer an offline mode through Google Gears and it too has a “flaky connection mode,” making the underlying network infrastructure visible in the user interface. Instead, it should just work.

Seems to me that what Ph.D.s should be studying is how to build reliable cache coherent systems in the face of flaky networks and sudden shutdowns.

  • Will
    This is why the desktop clients are better than the web client.
  • Well, this is why the desktop client is harder to write than the web client, but actually our web client does have some caching built-in, just not offline caching.
  • Will
    Do you think there will be a future where offline caching is possible in a normal web browser? That is, when I could start an upload to an online service using my web browser and it would pick up from where it left off even when the connection is interrupted or the browser crashes.
  • Try Zimbra mail client (their offline client). It works just like you've described, extremely well.
  • absolutely. google gears enables offline use of the browser and google as made several of their web apps gears-aware, including google reader and google mail.
  • JJ Freitag
    OK, you were right. Really geeky.
  • yes, my blog is very geeky. gotta go with what you know.
blog comments powered by Disqus

    Back to Phanfare blog home »

© 2007-8 Phanfare, Inc.