3 ms·
> If you just sent a message/request to an actor/server and it still hasn't responded after 5 seconds, you can send another. This depends on the message. I hop
by _gabe_ 4y ago
> If you just sent a message/request to an actor/server and it still hasn't responded after 5 seconds, you can send another.
This depends on the message. I hope amazon doesn't just send another message if my transaction didn't complete in 5 seconds.
I think like all pieces of wisdom, sometimes it's OK to let it fail, and sometimes its OK to handle the errors. If anyone ever tells me to always do X or never do X, it's typically not sound advice. The one thing we can always count on is generic advice failing sometimes :)
(And even in this article, you shouldn't always try to handle known errors and never try to handle unknown errors, there will be exceptions)
- ShroudedNight 4y ago> I hope amazon doesn't just send another message if my transaction didn't complete in 5 seconds. I do, but only while also associating a stable nonce to the transaction.