We’re announcing the alpha for one of our most requested features: events!
When you use Sequin, Postgres contains all your API data at rest. That means you can just use SQL or your ORM to interface with your API data. In contrast, events are your data in motion. You can subscribe to events in order to trigger workflows or upsert data into your application tables. You can even use events to sync data to MySQL or other data sources not yet supported by Sequin.
What’s an event?
An event is created every time an API object is inserted, updated, or deleted. An event looks like this:
{
"collection" : "task",
"kind" : "insert",
"id" : "079013db-8b17-44cd-8528-f5e68fc61333",
"data" : {
"activity_date" : "2023-09-12",
"description" : "task description [ … ] ",
// …
}
}
Sequin's events are powered by Sequin-hosted serverless Kafka clusters. You have three options for consuming events:
- Pull: You can connect to your Kafka instance directly with a Kafka client library.
- Pull: You can use an HTTP interface to read events from your Kafka instance.
- Push: You can add an HTTP sink (or webhooks) to have events POST'd to any destination via HTTP.
This flexibility will make it easy for you to weave events into your applications and workflows.
What can you use events for?
Events let you build on the data Sequin syncs in entirely new ways:
You can update internal tables, such as propagating fields from a HubSpot Contact to an internal table every time it’s updated.
You can trigger workflows or side effects. For example, you can toggle internal resources when a Stripe subscription’s status changes or generate embeddings whenever a Salesforce Note is inserted.
You can notify other services of changes, such as when a GitHub pull request is opened or closed.
You can sync to your own tables if you want advanced customization that our Postgres adapter doesn’t offer. (You can even use events to sync to databases we don’t support yet, like MySQL!)
And you can build on events using workflow tools like Make, Temporal, or Retool.
Get early access
We’ll be rolling out events to customers over the course of the next several weeks.
To read more about events, see our docs.