Answer the question
In order to leave comments, you need to log in
Redis as a Message Broker. What framework to use?
Good afternoon!
There is a local network on which computers the client software is installed. Clients via Redis Pub/Sub send messages to a certain visualizer, pre-classified using a script. Also, the client can perform customization via the Web interface to change the appearance on the visualizer (color, nickname, etc.).
Actually questions:
Answer the question
In order to leave comments, you need to log in
Redis is a good tool for certain tasks. Just because he has messaging tools doesn't make him good at it. Take RabbitMq or, if you want the same pain, Kafka.
Also, Redis cannot be used as the main storage (do not hammer nails with a microscope). Initially, Redis was made as an improved version of Memcached with disk storage and goodies, but it is not a database.
Yes, redis copes well with the message queue, but it’s still better to reserve the data somewhere else, it (redis) can lose something when restarting random and not only. So if the data is very critical, then save it to some kind of log for further recovery.
There are a lot of frameworks for python, I recommend starting with flask, it will suit your task very well.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question