lucasmontano / magic-link

Generate, send and validate a magic link.
MIT License
105 stars 13 forks source link

Message Broker #5

Closed lucasmontano closed 4 years ago

lucasmontano commented 4 years ago

Decide which message broker we should use for queuing the votes: RabbitMQ, Redis or others?

ArthurFleischman commented 4 years ago

i never used an message broker, why would we use it?, if its to basic, i can search.... not a problem

lucasmontano commented 4 years ago

I think we need In order to process multiple requests, normalize the data and implement pub/sub.

Not sure how much we need to use its cache, but if we need, Redis also would be a nice option.

As I’m not a backend developer, I would not rely only on this comment 😁

ArthurFleischman commented 4 years ago

pub/sub so it uses mqtt protocol?

omurilo commented 4 years ago

I think a messaging broker for this project can sweat like a cannon to kill an ant, I think a simple socket tool can solve it, but if I were to use a broker I would use RabbitMQ.

lucasmontano commented 4 years ago

Not sure why do you think a socket is important here, maybe I’m missing something.

We need to dispatch messages if we want to work with multiple services without reading and writing in a database.

thiagobeppe commented 4 years ago

I've never worked with RabbitMQ or Redis with MsgBroker, but the kafka docs from python are very clean and don't have much effort to work with it. I've used the kafka-python lib.

rochacbruno commented 4 years ago

If you decide to go with FastAPI there is an example here: https://iwpnd.pw/articles/2020-03/apache-kafka-fastapi-geostream

rochacbruno commented 4 years ago

@lucasmontano take a look on https://dramatiq.io/ or https://python-rq.org/

lucasmontano commented 4 years ago

As @rochacbruno suggested we're going with PythonRQ with Redis