Hacker News new | ask | show | jobs
by klinskyc 1830 days 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.
1 comments

Wow, 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.
Think 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.