1
0
mirror of https://github.com/go-micro/go-micro.git synced 2024-11-24 08:02:32 +02:00
go-micro/plugins/broker/redis
2021-01-20 21:01:10 +00:00
..
go.mod update v3 plugins (#2105) 2021-01-20 21:01:10 +00:00
go.sum update v3 plugins (#2105) 2021-01-20 21:01:10 +00:00
options.go update v3 plugins (#2105) 2021-01-20 21:01:10 +00:00
README.md add all the plugins 2020-12-26 15:32:45 +00:00
redis_test.go update v3 plugins (#2105) 2021-01-20 21:01:10 +00:00
redis.go update v3 plugins (#2105) 2021-01-20 21:01:10 +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.