zod-bird icon indicating copy to clipboard operation
zod-bird copied to clipboard

Any thoughts about error handling

Open mfts opened this issue 1 year ago • 2 comments

Hey @chronark

Since there have been two tinybird ingest outages within the last month. (Feb 10 and March 9)

Any thoughts how you are currently handling failed tinybird requests?

Was thinking to add error handling and retries to my implementation along the lines of this here: https://www.tinybird.co/docs/guides/ingest-from-the-events-api.html#error-handling-and-retries

How are you doing it at unkey?

mfts avatar Mar 11 '24 08:03 mfts

It retries once already, but only on 429 errors. We can improve that, but I don't see a good solution for buffering long outages within this lib.

We're going to buffer and batch all messages in a cloudflare queue soon (similar to what we do for axiom logs already)

image

chronark avatar Mar 12 '24 11:03 chronark

Nice! Would love to learn more about this when you release it for unkey

mfts avatar Mar 14 '24 23:03 mfts