简体   繁体   English

通过网络连续传输图像的最有效方法

[英]Most efficient way to transfer images continuously across the network

I have an architecture in which there are separate services which run independently.我有一个架构,其中有独立运行的独立服务。 My one of the service is continuously fetching frames from camera and sending them to another service which performs some processing on the frame (like face detection, face recognition etc) and sends back the results.我的一项服务是不断从相机获取帧并将它们发送到另一个服务,该服务对帧执行一些处理(如人脸检测、人脸识别等)并将结果发回。 Services can be run on different machines.服务可以在不同的机器上运行。

Please suggest any good library or something which is fast at transferring frames between services.请推荐任何好的库或可以在服务之间快速传输帧的东西。 I have already a few options in my mind like Kafka and ZeroMq but I am also confused between them, which to choose.我脑子里已经有几个选项,比如 Kafka 和 ZeroMq,但我也很困惑,选择哪个。

Any good pipeline design is also welcome.任何好的管道设计也是受欢迎的。 Thanks谢谢

After experimenting with the Kafka pipeline in a very similar scenario my suggestion is that Kafka is not a suitable choice for it.在非常相似的场景中对 Kafka 管道进行试验后,我的建议是 Kafka 不是它的合适选择。 Since the frequency and size of messages are the concern here while dealing with the live image streams.因为在处理实时图像流时,消息的频率和大小是这里关注的问题。

The choices that can be tested are:可以测试的选择是:

  • Zero MQ零MQ
  • Rabbit MQ兔子MQ

Zero MQ will highly likely perform well in the given scenario.零 MQ很可能在给定的场景中表现良好。

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

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