Is there a generic framework/design pattern/library for real time replication of MySQL database onto other servers?
Perhaps I am misreading this, but I am having difficulty understanding how your requirement is any different from built-in MySQL replication.  

With MySQL replication, the master database writes changes to a binary log file.  The slaves connect to the master, read the binary logs, write them to their local relay log, and play the statements back.

Please understand that realtime copy and backup are not the same thing.  A real-time slave can help you recover from certain types of problems, but cannot resolve data-corruption issues (oops, I dropped that table!).  For that, you need point-in-time backups.  With a backup and a copy of the binary logs, you can recover from almost any type of failure by replaying the binary logs up to the point where the problem occurred.