5 ms·
Not quite as bad, but I've worked with plenty of APIs that have an endpoint that returns all new data since the last time you ran the call. If something goes wr
by klinskyc 5y ago
Not quite as bad, but I've worked with plenty of APIs that have an endpoint that returns all new data since the last time you ran the call. If something goes wrong with the call, it's basically impossible to see just the new data.
- justin_oaks 5y agoWow, that's an awful design. It's even harder to implement that than to leave it stateless and require the client to pass in a date range.
- slver 5y agoThink about it like a message queue. You can't keep things stateless and serve old data forever, or you have a queue that grows forever. What you can do however is have an explicit "ack" for data being received and stored, before it's discarded. And apparently that API didn't.