1
0
mirror of https://github.com/go-micro/go-micro.git synced 2024-12-24 10:07:04 +02:00
go-micro/plugins/broker/redis
2020-12-26 15:32:45 +00:00
..
go.mod add all the plugins 2020-12-26 15:32:45 +00:00
go.sum add all the plugins 2020-12-26 15:32:45 +00:00
options.go add all the plugins 2020-12-26 15:32:45 +00:00
README.md add all the plugins 2020-12-26 15:32:45 +00:00
redis_test.go add all the plugins 2020-12-26 15:32:45 +00:00
redis.go add all the plugins 2020-12-26 15:32:45 +00:00

Redis Broker

This is a basic implementation for a Redis broker that relies on the native pub/sub feature.

Note that broker protocol supports two features that Redis does not support. Subscribers of messages cannot acknowledge back to the Redis server that they received the message and was successfully processed. Thus, if an errors occurs the message will be lost.

The second limitation is that the Redis broker does not support the queue abstraction defined on the broker for distributing messages across subscribers that are apart of the same queue. This is because Redis is not a dedicated broker, but the pub/sub feature is simply a feature of the overall system.

Note that queues can be implemented in Redis, so this feature could theoretically be supported.