This sounds a lot like mysql proxy (http://dev.mysql.com/doc/refman/5.7/en/mysql-proxy.html), which afaik is not recommended for production use.
I would very much like to know what the differences are (apart from the choice of programming language) and how stable this is.