3 ms·
Gotta say never heard of an api like this before that serves everything once. Forever.
by slver 5y ago
Gotta say never heard of an api like this before that serves everything once. Forever.
- klinskyc 5y agoNot 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.