简体   繁体   English

我们可以使用任何其他数据库如 MariaDB 或 MongoDB 来在 Kafka Streams 中存储状态而不是 Rocks DB,有什么方法可以配置它吗?

[英]Can we use any other database like MariaDB or MongoDB for Storing states in Kafka Streams instead of Rocks DB, is there any way to configure it?

i have a Spring boot Kafka Stream application which process all the incoming events and store it in the State Store which Kafka Streams provides internally and query it using interactive query service.我有一个 Spring Boot Kafka Stream 应用程序,它处理所有传入的事件并将其存储在 Kafka Streams 内部提供的状态存储中,并使用交互式查询服务进行查询。 Inside all these Kafka Streams using "RocksDB" , i want to replace this RocksDB with any other db that can configurable like MariaDB or MongoDB.在所有这些使用 "RocksDB" 的 Kafka Streams 中,我想用任何其他可配置的数据库替换这个 RocksDB,如 MariaDB 或 MongoDB。 Is there a way to do it ?有没有办法做到这一点? if not如果不

How can i configure Kafka Stream application to use MongoDB for creating the state stores.如何配置 Kafka Stream 应用程序以使用 MongoDB 来创建状态存储。

StateStore / KeyValueStore are open interfaces in Kafka Streams which can be used with TopologyBuilder.addStateStore StateStore / KeyValueStore 是 Kafka Streams 中的开放接口,可以与TopologyBuilder.addStateStore一起使用

Yes, you can materialize values to your own store implementation with a database of your choice, but it'll affect processing semantics should there be any database connection issues, particularly with remote databases.是的,您可以使用您选择的数据库将值具体化到您自己的存储实现中,但是如果存在任何数据库连接问题,尤其是远程数据库,它会影响处理语义。

Instead, using a topic more of a log of transactions then following that up with Kafka Connect is the proper approach for external systems相反,使用更多的事务日志主题然后使用 Kafka Connect 跟进是外部系统的正确方法

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 有没有办法将 MongoSourceConnector 用于具有单个 kafka 主题的多个数据库? - Is there any way to use MongoSourceConnector for multiple database with single kafka topic? 有没有办法在Azure中对MongoDB进行性能分析? - Is there any way that we can do Profiling on MongoDB in Azure? 使用Pyramid连接到MongoDb(或任何其他数据库服务器) - Connecting to MongoDb (or any other db server) with Pyramid 有没有办法直接从 MariaDB 将数据传输到 MongoDB? - Is there any way to transport a data to MongoDB from MariaDB directly? 有什么方法可以将MongoDB与TestCafe一起使用? - Is there any way to use MongoDB with TestCafe? 我可以使用中间件来限制 mongo db 中每种用户的帖子并表达 js 吗? 还有其他最好的方法吗? - Can I use a middleware to limit the post per kind of user in mongo db and express js? Is there any other best way? 使用django 1.8或其他任何使用MongoDB的方式配置django_mongodb_engine - configuration of django_mongodb_engine with django 1.8 or any other way to use MongoDB 有没有办法将 mongodb 数据库公开为 rest api - Is there any way to expose mongodb database as rest api 我们如何在yii Mongodb中使用like? - How can we use like in yii Mongodb? 有没有办法在没有mongodb的情况下创建像_id字符串这样的mongodb? - Is there any way to create mongodb like _id strings without mongodb?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM