Needs advice
on
KafkaKafkaRabbitMQRabbitMQ
and
RedisRedis

Hello! [Client sends live video frames -> Server computes and responds the result] Web clients send video frames from their webcam then on the back we need to run them through some algorithm and send the result back as a response. Since everything will need to work in a live mode, we want something fast and also suitable for our case (as everyone needs). Currently, we are considering RabbitMQ for the purpose, but recently I have noticed that there is Redis and Kafka too. Could you please help us choose among them or anything more suitable beyond these guys. I think something similar to our product would be people using their webcam to get Snapchat masks on their faces, and the calculated face points are responded on from the server, then the client-side draw the mask on the user's face. I hope this helps. Thank you!

READ LESS
3 upvotes·716.8K views
Replies (3)
Recommends
on
RabbitMQ

For this kind of use case I would recommend either RabbitMQ or Kafka depending on the needs for scaling, redundancy and how you want to design it.

Kafka's true value comes into play when you need to distribute the streaming load over lot's of resources. If you were passing the video frames directly into the queue then you'd probably want to go with Kafka however if you can just pass a pointer to the frames then RabbitMQ should be fine and will be much simpler to run.

Bear in mind too that Kafka is a persistent log, not just a message bus so any data you feed into it is kept available until it expires (which is configurable). This can be useful if you have multiple clients reading from the queue with their own lifecycle but in your case it doesn't sound like that would be necessary. You could also use a RabbitMQ fanout exchange if you need that in the future.

READ MORE
2 upvotes·1 comment·715.9K views
Alikhan Oitan
Alikhan Oitan
·
March 17th 2020 at 9:19AM

Thank you very much for your recommendation! I learned good points from it!

·
Reply
Senior software architect at Bootloader·
Recommends
on
Kafka

For your use case, the tool that fits more is definitely Kafka. RabbitMQ was not invented to handle data streams, but messages. Plenty of them, of course, but individual messages. Redis is an in-memory database, which is what makes it so fast. Redis recently included features to handle data stream, but it cannot best Kafka on this, or at least not yet. Kafka is not also super fast, it also provides lots of features to help create software to handle those streams.

READ MORE
3 upvotes·2 comments·716.4K views
Jordi Martínez
Jordi Martínez
·
January 21st 2020 at 8:45PM

Sorry for the typos, I meant “, but it cannot beat Kafka on this, or at least not yet. Kafka is also super fast, and it also ...”

·
Reply
Alikhan Oitan
Alikhan Oitan
·
March 17th 2020 at 9:15AM

Thank you very much for the clear explanation! I will definitely note the recommendation!

·
Reply
View all (3)
Avatar of Simon Kelly