Syncing your Database To OpenSearch In Real-Time
summary
Realtime pipeline that streams Postgres changes to OpenSearch using Debezium CDC and Apache Flink and keeps the index eventually consistent. Implements joins across purchase_orders, order_lines and shipments, emits denormalized documents (order with an embedded lines array) via a custom Flink UDF, deploys as a Flink SQL job, and writes to OpenSearch β demo shows inserts/updates appear in the index within milliseconds latency. Addresses schema changes, stateful joins, observability and deployment tradeoffs; the approach works in the live demo.
AI-written summary Β· about
chapters (15)
- 0:00Introduction and welcome
- 1:48What is change data capture
- 5:00Debezium for CDC
- 8:52Apache Flink overview
- 11:19Flink SQL for stream processing
- 16:37Building the pipeline
- 18:05Live demo setup
- 21:17Ingesting data into Flink
- 22:45Joining streams in Flink
- 25:13Denormalizing data with UDFs
- 27:45Writing to OpenSearch
- 28:51Additional use cases
- 30:36Production considerations
- 33:10Value of events over time
- 34:15Resources and Q&A
