简体   繁体   English

faust[rocksdb] 是必须安装的扩展吗?

[英]Is faust[rocksdb] a mandatory extension to be installed?

I am working on microservices architecture and using kafka to communicate b/n microservices.我正在研究微服务架构并使用 kafka 来传达 b/n 微服务。 I am using python faust to implement producers and consumers.我正在使用 python faust 来实现生产者和消费者。

Is it mandatory to install faust[rocksdb] extension?是否必须安装 faust[rocksdb] 扩展? When I install it, fails with a当我安装它时,失败并出现

fatal error: rocksdb/slice.h: No such file or directory.致命错误:rocksdb/slice.h:没有这样的文件或目录。

What could be the impact I could see in production if I am not using rocksdb?如果我不使用rocksdb,我在生产中会看到什么影响? If the package is mandatory to install how can I solve the issue?如果软件包是强制安装的,我该如何解决这个问题? I had tried many answers, but nothing seems to work.我尝试了很多答案,但似乎没有任何效果。

RocksDB is not a required dependency of Faust. RocksDB 不是 Faust 的必需依赖项。 By default a Faust app saves changelogs to memory, which is in their documentation .默认情况下,Faust 应用程序将更改日志保存到内存中, 这在他们的文档中。

Some systems may have issues installing faust[rocksdb] but I've had success installing it inside a Docker container.某些系统在安装faust[rocksdb]可能会遇到问题,但我已经成功地将它安装在 Docker 容器中。 I suggest reading this SO answer for more details since they're having the same issue with slice.h .我建议阅读此 SO 答案以获取更多详细信息,因为他们与slice.h有相同的问题。

Be warned that the wheel on PyPi for python-rocksdb is outdated, you'll need to manually install a newer version from https://github.com/twmht/python-rocksdb .请注意, python-rocksdb上的轮子已过时,您需要从https://github.com/twmht/python-rocksdb手动安装更新的版本。 There are more features in its actively maintained fork ( https://github.com/NightTsarina/python-rocksdb ), but I only got that working inside an Ubuntu 22.04 container.在其积极维护的 fork ( https://github.com/NightTsarina/python-rocksdb ) 中有更多功能,但我只能在 Ubuntu 22.04 容器中使用。

What could be the impact I could see in production if I am not using rocksdb?如果我不使用rocksdb,我在生产中会看到什么影响?

If your Faust application needs to frequently restart and your changelogs have a lot of activity, then you'll have to wait a while to wait for your app to update your local state.如果您的 Faust 应用程序需要频繁重启并且您的变更日志有很多活动,那么您将不得不等待一段时间来等待您的应用程序更新您的本地状态。 This is also mentioned in the Faust documentation . Faust 文档中也提到了这一点 This wait time could range from a few seconds to minutes depending on how frequently your tables change.此等待时间可能从几秒到几分钟不等,具体取决于您的表更改频率。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM