【问题标题】:How to persist Twitter stream data to Postgres database using Spring Cloud Dataflow?如何使用 Spring Cloud Dataflow 将 Twitter 流数据持久化到 Postgres 数据库?
【发布时间】:2019-07-29 15:56:52
【问题描述】:

我是 Spring Spring Boot 和 Spring Cloud Dataflow 的新手。我目前正在研究 POC,目标是将流数据加载并持久保存到关系数据库中(与传统 ETL 中的批处理作业相反)。

我已经使用the official docker-compose file 成功设置了 Spring Cloud Dataflow 的堆栈。而且我能够按照流媒体和做analytics on twitter streams 的示例进行操作。但是,由于我对此没有足够深入的了解,因此我无法弄清楚如何将这些数据流保存到关系数据库中(例如 Postgres)。谁能给我一些关于从哪里开始的提示?任何帮助表示赞赏。

【问题讨论】:

    标签: spring-boot spring-cloud-stream spring-cloud-dataflow


    【解决方案1】:

    请参阅JDBC Sink app starter

    【讨论】:

      【解决方案2】:

      为了补充 Gary 在另一个答案中指出的内容,有几个将数据写入不同数据存储的示例,例如 MySQL、Cassandra 和 Gemfire。

      见:Spring Cloud Data Flow Samples

      您可以将它们用作参考。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2018-11-21
        • 2023-04-06
        • 2019-02-25
        • 1970-01-01
        • 2019-09-24
        • 2015-08-19
        相关资源
        最近更新 更多