-
Notifications
You must be signed in to change notification settings - Fork 134
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e7d9659
commit daa5d19
Showing
1 changed file
with
10 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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: | ||
|