Atlas is a MySQL protocol-based database middleware project developed and maintained by the infrastructure team of the Web platform Department in QIHU 360 SOFTWARE CO. LIMITED(NYSE:QIHU). It fixed lots of bugs and added lot of new functions on the basis of MySQL-Proxy 0.8.2. Currently, the project has been widely applied in QIHU, many MySQL businesses has connected to the Atlas platform. The number of read and write requests forwarded by Atlas has reached billions. Rewrite all lua code with C, Lua is only used for the management interface. Rewrite the network model and the threading model. Optimize the locking mechanism, performance improved immensely. When Atlas start, it will create multiple threads. One of them is the main thread, the others are working threads. The main thread is responsible for monitoring the connecting requests from clients, and the working thread only monitor the command request from the main thread.