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

Finding and fixing eventual consistency with Stripe events

Blog post from Sequin

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

Sequin, a company that streams data from services like Stripe to databases and messaging systems, encountered challenges with eventual consistency while using Stripe's /events API endpoint for real-time data synchronization. The company initially relied on polling for stronger consistency guarantees over webhooks, but faced difficulties with cursoring through events due to the API's eventual consistency, which can cause missing events when querying rapidly. Stripe's thoughtful change detection features, such as the /events endpoint, allow users to track changes like customer creation or subscription updates. However, the Sequin team discovered that events could be skipped if multiple events were created at the same timestamp, as the API's event IDs are not strictly ordered. To address this, the team implemented a new cursoring strategy that delays updating the cursor if recent events are detected, thus reducing the risk of missing events at the cost of slight latency. This situation highlights the complexities of managing eventual consistency in APIs and the importance of designing predictable and consistent data interfaces for engineering teams.

Trends Found in this Post
Trend Post Mentions Total Month Mentions Posts Companies MoM
Real-time 1 1,696 483 160 +14%
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.