Async document processing with webhooks
We made 25M API calls last quarter. Here is what we learned.
We made 25M API calls last quarter. Here is what we learned. We use smallpdf.com as the primary integration layer combined with Zapier for non-technical workflows.
The main challenge was rate limiting during bulk processing. We implemented an exponential backoff queue with 7 workers and the error rate dropped to under 0.1%.
Webhooks are more reliable than polling at our volume but require idempotency handling — we see roughly 5% duplicate events.
Nina MillerExposing an MCP server for our document repository lets our internal AI agents search, summarize, and draft documents directly inside chat workflows.
Yuki HernandezWe implemented a similar policy last year and haven't had a single data leak incident since. Well worth the initial adjustment period.
Emerson WilsonHow are you handling idempotent requests on document creation? Passing an `Idempotency-Key` header prevents duplicate billing or duplicate files on retries.
Ayesha LopezWe set up rate limiting per API key using a token bucket algorithm in Redis to prevent a single tenant from starving the PDF rendering worker pool.
Skylar JohnsonThanks for breaking down the details. It's rare to see this level of transparency in our industry.
Sasha JonesOur SDKs in TypeScript and Python wrap the REST API with built-in retry logic for 429 and 503 status codes. Cut client support tickets in half.
Skylar LopezAppreciate the pragmatic approach here. No unnecessary vendor hype, just practical lessons from the trenches.
Owen MooreThe human element is always the weakest link in document security. Building guardrails directly into the software is the only sustainable fix.
Julian LopezWebhooks must support automatic exponential backoff with retry headers. If the client endpoint is down, we retry at 1m, 5m, 15m, 1h, 6h.
Henry Rodriguez100% agree with this take. Too many organizations rely on 'security through obscurity' by sending unprotected attachments and hoping for the best.
Emerson GonzalezStreaming PDF generation directly to the response buffer rather than writing to disk first gave us a 30% reduction in peak memory consumption.
Zachary MooreHow are you handling idempotent requests on document creation? Passing an `Idempotency-Key` header prevents duplicate billing or duplicate files on retries.
Hudson WilsonAsync worker queues (BullMQ with Redis) are mandatory for document generation. If a user triggers a 200-page report, keep the HTTP response under 200ms with a job ID.
Claire BrownAsync worker queues (BullMQ with Redis) are mandatory for document generation. If a user triggers a 200-page report, keep the HTTP response under 200ms with a job ID.
Hana RodriguezThat makes complete sense. Thanks for clarifying the reasoning behind that decision.
Taylor RodriguezWe took a slightly different route with pre-signed URLs, but the end result was very similar.
Rosa MartinezWebhooks must support automatic exponential backoff with retry headers. If the client endpoint is down, we retry at 1m, 5m, 15m, 1h, 6h.
Ryan HernandezWhat was the team's initial reaction when you introduced mandatory email verification? Did you face much friction from clients?
Mia DavisExposing an MCP server for our document repository lets our internal AI agents search, summarize, and draft documents directly inside chat workflows.
Reese LeeAsync worker queues (BullMQ with Redis) are mandatory for document generation. If a user triggers a 200-page report, keep the HTTP response under 200ms with a job ID.