You could write an Apache module. Or use FastCGI. Or libasync: http://pdos.csail.mit.edu/6.824-2004/async/6.html
Let me know what you end up doing.
Let me know what you end up doing.
Build on a mature best-of-breed product that provides a quality programming model and all required HTTP and logging services. Also easily take advantage of other apache mods such as memcached or wackamole.
Good luck.