Streaming database data in production setting #1180
-
I have seen in the documentation the use of the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
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! |
Beta Was this translation helpful? Give feedback.
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!