Message queues to trigger events for kafka and Redis from one service to other service

Viewed 32

I have two services which runs in python2 and python3. One will be socket service other would be general calculation service based on the data from socket.

I would like to communicate between one to other service via message queues before we emit any event to client.

Is there any existed feature for both redis and kafka to trigger events for each services ? so that we can create a pool over that and use pubsub or publish and consume methodology. I have gone through some of the documents but couldn't conclude on the approach.

1 Answers

Kafka does not push events; your client will poll the broker for events in some loop/external trigger. Kafka Connect can be setup to read from Redis changes, which the consumer will pickup...

If you don't need a message queue, you can use standard socket server, Socket.IO, gRPC, etc which all will allow you to emit and receive true "service events" without managing external services.

Related