debezium
kafka-connect-bigquery
Our great sponsors
debezium | kafka-connect-bigquery | |
---|---|---|
80 | 2 | |
9,774 | 75 | |
2.4% | - | |
9.9 | 8.5 | |
4 days ago | 5 days ago | |
Java | Java | |
Apache License 2.0 | Apache License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
debezium
-
Choosing Between a Streaming Database and a Stream Processing Framework in Python
They manage data in the application layer and your original data stays where it is. This way data consistency is no longer an issue as it was with streaming databases. You can use Change Data Capture (CDC) services like Debezium by directly connecting to your primary database, doing computational work, and saving the result back or sending real-time data to output streams.
-
Generating Avro Schemas from Go types
Both of these articles mention a key player, Debezium. In fact, Debezium has had a place in the modern infrastructure. Let's use a diagram to understand why.
-
debezium VS quix-streams - a user suggested alternative
2 projects | 7 Dec 2023
- All the ways to capture changes in Postgres
-
Real-time Data Processing Pipeline With MongoDB, Kafka, Debezium And RisingWave
Debezium
- How to Listen to Database Changes Using Postgres Triggers in Elixir
-
What are your favorite tools or components in the Kafka ecosystem?
Debezium: https://debezium.io/ (connector for cdc)
-
[Need feedback] I wrote a guide about the fundamentals of BigQuery for software developers & traditional database users
You don't want to couple your analytics database with your app. The only time this makes sense is when you're building small projects. When you have very high traffic, this method will break. Just stick to CDC. Look into tools like debezium if your team is concerned with sending raw data to the cloud.
-
How Change Data Capture (CDC) Works with Streaming Database
If you’re already using Debezium to extract CDC logs into Kafka, you can just set up RisingWave to consume changes from that Kafka topic. In this case, Kafka acts like a hub of CDC data, and beside RisingWave, other downstream systems like search index or data warehouses can consume changes as well.
-
PostgreSQL Logical Replication Explained
Logical replication is also great for replicating to other systems - for example Debezium [1] that writes all changes to a Kafka stream.
I'm using it to develop a system to replicate data to in-app SQLite databases, via an in-between storage layer [2]. Logical replication is quite a low-level tool with many tricky cases, which can be difficult to handle when integrating with it directly.
Some examples:
1. Any value over 8KB compressed (configurable) is stored separately from the rest of the row (TOAST storage), and unchanged values included in the replicated record by default. You need to keep track of old values in the external system, or use REPLICA IDENTITY FULL (which adds a lot of overhead on the source database).
2. PostgreSQL's primary keys can be pretty-much any combination of columns, and may or may not be used as the table's replica identity, and it may change at any time. If "REPLICA IDENTITY FULL" is used, you don't even have an explicit primary key on the receiver side - the entire record is considered the identity. Or with "REPLICA IDENTITY NOTHING", there is no identity - every operation is treated as an insert. The replica identity is global per table, so if logical replication is used to replicate to multiple systems, you may not have full control over it. This means many different combinations of replica identity needs to be handled.
3. For initial sync you need to read the tables directly. It takes extra effort to make sure these are replicated in the same way as with incremental replication - for example taking into account the list of published tables, replica identity, row filters and column lists.
4. Depending on what is used for high availability, replication slots may get lost in a fail-over event, meaning you'll have to re-sync all data from scratch. This includes cases where physical or logical replication is used. The only case where this is not an issue is where the underlying block storage is replicated, which is the case in AWS RDS for example.
[1]: https://debezium.io
[2]: https://powersync.co
kafka-connect-bigquery
-
Evolutionary Data Infrastructure
But is there a way to solve the schema problem? The answer is, yes, through KCBQ.
-
Logical replication and decoding for Cloud SQL for PostgreSQL
Why the Parquet step? You should be able to do straight Debezium -> Kafka -> BQ, using the BQ sink connector for Kafka Connect (https://github.com/confluentinc/kafka-connect-bigquery); we have users using this with the Debezium MySQL connector, I'd expect this to work equally for Postgres.
Disclaimer: working on Debezium
What are some alternatives?
maxwell - Maxwell's daemon, a mysql-to-json kafka producer
realtime - Broadcast, Presence, and Postgres Changes via WebSockets
hudi - Upserts, Deletes And Incremental Processing on Big Data.
Airflow - Apache Airflow - A platform to programmatically author, schedule, and monitor workflows
RocksDB - A library that provides an embeddable, persistent key-value store for fast storage.
iceberg - Apache Iceberg
PostgreSQL - Mirror of the official PostgreSQL GIT repository. Note that this is just a *mirror* - we don't work with pull requests on github. To contribute, please see https://wiki.postgresql.org/wiki/Submitting_a_Patch
airbyte - The leading data integration platform for ETL / ELT data pipelines from APIs, databases & files to data warehouses, data lakes & data lakehouses. Both self-hosted and Cloud-hosted.
Embulk - Embulk: Pluggable Bulk Data Loader.
wal2json - JSON output plugin for changeset extraction
pgaudit - PostgreSQL Audit Extension
pipelinewise - Data Pipeline Framework using the singer.io spec