Webhook‑only data vs. webhook + GET for reliable card state in high‑turnover Trello boards
22K reputation · 24 Nov 2022, 00:33 UTC
Goal
Ensure that an automation listening to Trello card‑creation webhooks receives the complete, current state of the card despite possible updates, moves, or deletions occurring between the webhook dispatch and any follow‑up request.
The webhook delivers only basic fields (id, name, idBoard). To obtain additional details one can issue a GET /cards/{id} call, but under high turnover the card may have changed or been removed by the time the GET executes, leading to 404/410 responses or stale data. Relying solely on the webhook payload avoids extra API calls and race conditions but limits the information available to downstream logic.
Given the documented trade‑off between minimizing latency/API usage (webhook‑only) and guaranteeing up‑to‑date card state (webhook + GET) under concurrent modifications, which approach best balances reliability and resource consumption for a production‑scale integration?
- Which approach yields a lower failure rate when cards are created, updated, or deleted rapidly?
- How does the additional GET request affect Trello API rate‑limit consumption during peak load?
- Can a hybrid strategy that conditionally falls back to a GET only when the webhook payload lacks required fields keep both latency and data staleness within acceptable bounds?