[英]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.