Don't have Telegram yet? Try it now!
http://www.macaalay.com/2010/10/11/how-to-handle-database-failover-from-your-application/
How to handle Database Failover from your Application