streaming middleware stack for inter-process event handling in node