3 ms·
Yeah, I should have been clearer, it's not that it can't be done, it's just a bit messier than it seems at first blush. The issue is that actions taken by stat
by ben509 8y ago
Yeah, I should have been clearer, it's not that it can't be done, it's just a bit messier than it seems at first blush.
The issue is that actions taken by stateful clients can't always be retried.
You can detect these kinds of errors, but it's klugey because these drivers generally assume that sockets dying is relatively uncommon, and it's painful to test this behavior when FaaS doesn't give you direct control over it.
So you typically wind up either with a proxy, or you decorate any handlers to refresh the connection ahead of time to make sure you have a fresh object.
- humbleMouse 8y agoI agree with you that it's messy and an anti-pattern to try to implement something like this in lambda.