使用Apache Kafka&构建实时数据仓库mysql

发布于 2025-02-01 09:12:53 字数 358 浏览 1 评论 0原文

我们在MySQL上有一个数据仓库,其中包括尺寸,事实表和一些汇总表。 我想使用Apache Kafka实现相同的结构,其中源将是另一台MySQL Server。我想解决以下要求

  1. 添加外国键的事实表
  2. 添加汇总表句柄
  3. 架构更改,

我在某个地方读到的尺寸 - 事实表架构不能使用kafka很好地创建,因为应按顺序更新Star Schema(Dimensions和Fact Tables)(首先加载尺寸,然后事实表)。 如果事实在DIM表中的尺寸之前进入事实表,则FK将无效。

我们如何使用Kafka流(使用Python)解决这些问题?

是否可以仅使用源&可以做到这一点。水槽连接器?

We have a data warehouse on MySQL with dimensions, fact tables and some aggregate tables.
I want to implement the same structure using Apache Kafka where Source would be another MySQL server. I want to address the below requirements

  1. Add foreign keys to fact tables
  2. Add aggregate tables
  3. Handle schema changes

I read somewhere that dimension-fact table architecture cannot be created well using Kafka because star schema(dimensions and fact tables) should be updated in order(first load dimensions then fact tables).
If a fact goes into fact table before its dimension in dim table then FK would be NULL.

How we can handle these problems using Kafka Streams(using Python)?

Is it possible to do this using only Source & Sink connector?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文