. > > I was half way through doing this, when I read this: > > https://github.com/nodejs/node/issues/2642 > > How do you deal with keepalive connections? They can potentially stay up > forever (if they ping often enough) even after close() has been issued... >
That's an interesting issue and definitely a problem. In our particular case, however, it is not relevant because we have a load balancer and a forward routing proxy between the client and the actual server process we're attempting to restart. I guess that would be an use case for the timeout. > > Processing payments outside the app is probably a very good idea. The > queue could be as simple as a database table... but, one question: once the > transaction is done, how would the "CC app" let the main app know that the > transaction has happened? > The main app would have to implement some kind of polling strategy to query the transactions table for complete transactions since the last check. Similarly the card processing app would poll looking for new transactions and once the CC provider handles a transaction you'd update the transaction record with the status. If you wan't to avoid polling you could use something like redis pub/sub to exchange transactions between the two apps. Note the in any case you'll need to give security a hard thought, having CC numbers in the DB has to be a violation of some 300 pci rules. -- Job board: http://jobs.nodejs.org/ New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md Old group rules: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines --- You received this message because you are subscribed to the Google Groups "nodejs" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/nodejs/CAD%2BcU%2B4T%3D%3DRW3N-nnmXDXQsO5y6N7_rgcENAVgGddHAkxY6CNw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
