I need to create something like mail daemon on java or node.js We have a highload project written on PHP which generates a lot of e-mail registrations/updates/etc. Currently all messages are being put into mongodb after processing (language/template). I'm considering writing a small daemon which will check for new messages in mongo every second and send them out.
I'm a little new to Java or node.js and don't want to create another bicycle. Can someone point me to the right lib or something like that?
PS: It should be fast, async and standalone.