Posted: 4 Feb 2016 1:47 EST Last activity: 4 Feb 2016 9:07 EST
File listener process interrupted with server restart
what happens when a file listener is processing a request and server is restarted? after restart the same request will be processes again?
In our application file listener picks up a file reads it process it and finally send out a email communication. if server restarted when processing a request, after server restart will the mail communication be sent out?
I would think this needs to be designed carefully and on a case-by-case basis.
Here's two examples:
1) If your listener's job is to send out invitations, and the server is shut down in the middle, restarting the one you were on is ok, since it just means someone will receive two copies of the invitation which is no big deal, and is better than someone not getting any invitation.
2) If your listener's job is to cut and mail checks, and the server is shut down in the middle, restarting the one you were on could be really bad since someone might receive two checks.