provide restful API to client, use epoll and asynchronous api connect to MariaDB