Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Sorry, I haven’t had my coffee yet. If I am reading this correctly, either someOp() or someOtherOp() may execute first, no? And if you introduce an external database, why do you expect Mongo to handle that rollback? Say someOtherOp() increments a Redis value by 1. If that part executed first since both are asynchronous here, what would a Mongo session have to do with it?

What exactly would invalidating that session object do here? And what would the session object do after it was invalidated?



It sounds like the old session object is reused and becomes live again or something.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: