events streams and changes

14 views
Skip to first unread message

Ivan Mashey

unread,
Dec 8, 2015, 11:44:45 AM12/8/15
to nodejs
Hi,

I have a architectural question. In my app I am listening to changes from event stream. Based on messages I make changes in conf files and restart one more app. My concern is that sometimes events come too fast or can overlap. In this case I assume there might be clashes for restarting the second app. I am thinking about queueing all changes, but then i will lose efficiency. is there any best practices how to deal with that? right now I just use timer and check if there were any changes every second. if there were, i just restart the app and restore flag. 

Thank you. 
Ivan 
Reply all
Reply to author
Forward
0 new messages