message-bus-client
Advanced tools
Comparing version 4.1.0 to 4.2.0
{ | ||
"name": "message-bus-client", | ||
"version": "4.1.0", | ||
"version": "4.2.0", | ||
"description": "A message bus client in Javascript", | ||
@@ -5,0 +5,0 @@ "main": "assets/message-bus.js", |
@@ -391,3 +391,5 @@ # MessageBus | ||
Out of the box Redis keeps track of 2000 messages in the global backlog and 1000 messages in a per-channel backlog. Per-channel backlogs get cleared automatically after 7 days of inactivity. | ||
Out of the box Redis keeps track of 2000 messages in the global backlog and 1000 messages in a per-channel backlog. Per-channel backlogs get | ||
cleared automatically after 7 days of inactivity. By default, the backlog will be pruned on every message publication. If exact backlog | ||
length limiting is not required, the `clear_every` parameter can be set higher to improve performance. | ||
@@ -405,2 +407,5 @@ This is configurable via accessors on the Backend instance. | ||
MessageBus.backend_instance.max_backlog_age = 100 | ||
# clear the backlog every 50 messages | ||
MessageBus.backend_instance.clear_every = 50 | ||
``` | ||
@@ -428,3 +433,3 @@ | ||
The `:clear_every` option supported by the PostgreSQL backend is also supported by the in-memory backend. | ||
The `:clear_every` option is supported in the same way as the PostgreSQL backend. | ||
@@ -431,0 +436,0 @@ ### Transport codecs |
47743
732