B
B
bfrogg2019-04-25 14:31:20
Python
bfrogg, 2019-04-25 14:31:20

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:

  1. I'm thinking of using Redis as the main storage for customization data. Is it correct?
  2. Which Python framework to use for the web interface?

I have no experience in web development, so I'm waiting for your comments on the correctness of this approach in principle.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
Ivan Shumov, 2019-04-25
@inoise

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.

A
Alexey Cheremisin, 2019-04-25
@leahch

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 question

Ask a Question

731 491 924 answers to any question