Home / Companies / Sequin / Blog / Post Details
Content Deep Dive

Give me /events, not webhooks

Blog post from Sequin

Post Details
Company
Date Published
Author
Anthony Accomazzo
Word Count
1,498
Company Posts That Month
5
Language
English
Hacker News Points
-
Post removed?
No
Summary

Sequin, a Postgres CDC tool, highlights the challenges associated with using webhooks for maintaining data consistency between systems, advocating instead for an /events endpoint approach similar to database replication models like Postgres' replication slots. Webhooks, while useful for reducing polling, can be unreliable due to issues like undeliverability and their ephemeral nature, often necessitating the use of message bus systems like Kafka, which adds complexity. In contrast, an /events endpoint allows for polling of event logs, providing a more consistent and reliable method for syncing data without the need for complex delivery pipelines. By keeping a local cursor, systems can efficiently manage updates and catch up post-downtime without missing data, while avoiding the pitfalls of webhook failures. The author suggests enhancements such as long-polling to improve efficiency and real-time capabilities. Ultimately, the choice between webhooks and polling /events depends on the consistency requirements of the API consumer, with /events offering greater reliability for critical integrations, and for API producers, supporting /events can enhance the robustness and feature set of their webhook systems.

Trends Found in this Post
Trend Post Mentions Total Month Mentions Posts Companies MoM
Real-time 2 937 294 99 -19%
Use This Data

Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.