Code: https://bitbucket.org/dexity/surfsnippets/src/8d3e76f12706/asynchandler
Web applications normally perform various operations behind the scenes which take some time to process such as writing to remote database, logging over network file system or sending emails. Synchronous processing of the slow operations will reduce the responsiveness of the web application and make the user experience not very pleasant. Here I compare two non-blocking approaches using epoll and threading.
Continue reading





