Skip to content

Streaming database data in production setting #1180

Answered by MaxHalford
cdeterman asked this question in Q&A
Discussion options

You must be logged in to vote

Good question. For regular relational databases, it's a good idea to re-run the query with some kind of timestamp filter. But that is a bit hacky: relational database tables are not meant to be streamed over.

There are two options which make more sense. The first is to use something like Materialize, which is a streaming database. See their docs for a clear example. Note that you could also listen to a Kafka topic.

Another option is to leverage change data capture: it's a way to "listen" to updates to a database table and process those changes. IIRC there are several tools out there to run change data capture on popular relational databases.

I hope that helps!

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by MaxHalford
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants