In databases, change-data-capture (or CDC) is a set of software design patterns used to determine and track the data that has changed so that action can be taken using the changed data or because of it.
In simple words: Each time a new event occurs on a specific table, such as INSERT / UPDATE / DELETE, an event will be created and, if configured – published to a destination so some service will be notified for it.
In this tutorial, we will focus on using Memphis.dev Cloud, but the following steps should be similar when using Memphis.dev OS as well.
Once an account has been created, please head to the users section and create a new client-type application:
Head to Database -> Webhooks -> Create a webhook
A change-data-capture event can occur and be sent for every “INSERT”, “UPDATE”, and/or “DELETE” command that takes place in the configured table.
Configure the webhook based on your use case requirements –
Insert a new record into the created Supabase table. Because we selected the INSERT type of events, it should output an event.
Return to the Memphis dashboard and into the “supabase” station and check the center panel –
events can be seen in the center panel, and the parsed payload on the right-bottom.