Skip to content

Commit

Permalink
Merge pull request #1639 from wi-ski/patch-1
Browse files Browse the repository at this point in the history
Cleanup typos in readme
  • Loading branch information
manast committed Feb 8, 2020
2 parents ce5c91d + 797aac0 commit 3079104
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions PATTERNS.md
Expand Up @@ -95,15 +95,15 @@ var queueQux = new Queue('quxbaz', opts);
Redis cluster
-------------

Bull internals requires atomic operations that spans different keys. This fact breaks Redis'
rules for cluster configurations. However it is still possible to use a cluster environment
Bull internals require atomic operations that span different keys. This behavior breaks Redis's
rules for cluster configurations. However, it is still possible to use a cluster environment
by using the proper bull prefix option as a cluster "hash tag". Hash tags are used to guarantee
that certain keys are placed in the same hash slot, read more about hash tags in the [redis cluster
tutorial](https://redis.io/topics/cluster-tutorial).
tutorial](https://redis.io/topics/cluster-tutorial). A hash tag is defined with brackets. I.e. a key that has a substring inside brackets will use that
substring to determine in which hash slot the key will be placed.

A hash tag is defined with brackets. I.e. a key that has a substring inside brackets will use that
substring to determine in which hash slot the key will be placed. So to make bull compatible with
cluster, just use a queue prefix inside brackets, for example:
In summary, to make bull compatible with Redis cluster, use a queue prefix inside brackets.
For example:

```js
var queue = new Queue('cluster', {
Expand Down

0 comments on commit 3079104

Please sign in to comment.