Skip to content

Commit

Permalink
Some notes in the README
Browse files Browse the repository at this point in the history
  • Loading branch information
benlangfeld committed Nov 30, 2018
1 parent e7d9659 commit daa5d19
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,16 @@ MessageBus.reliable_pub_sub.max_backlog_age = 100

The primary Redis-based implementation uses Redis PubSub and sorted sets. An alternative implementation based on [Redis Streams](https://redis.io/topics/streams-intro) (available in Redis 5.0) is available by setting `backend: :redis_streams`.

#### Streams

An alternative backend implementation is available which uses Redis Streams rather than the traditional combo of Sorted Sets + Redis PubSub; it is intended to be more performant and more durable than the traditional implementation. You can use it like so:

```ruby
MessageBus.configure(backend: :redis_streams, url: "redis://:[email protected]:6380/15")
```

Note that if you switch from `:redis` to `:redis_streams`, you will lose your existing backlogs and data is not migrated.

### PostgreSQL

message_bus also supports PostgreSQL as a backend, and can be configured like so:
Expand Down

0 comments on commit daa5d19

Please sign in to comment.