Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions content/commands/spublish/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,14 @@ title: SPUBLISH
Posts a message to the given shard channel.

In Redis Cluster, shard channels are assigned to slots by the same algorithm used to assign keys to slots.
A shard message must be sent to a node that own the slot the shard channel is hashed to.
The cluster makes sure that published shard messages are forwarded to all the node in the shard, so clients can subscribe to a shard channel by connecting to any one of the nodes in the shard.
A shard message must be sent to a node that owns the slot the shard channel is hashed to.
The cluster makes sure that published shard messages are forwarded to all the nodes in the shard, so clients can subscribe to a shard channel by connecting to any one of the nodes in the shard.

For more information about sharded pubsub, see [Sharded Pubsub]({{< relref "/develop/interact/pubsub#sharded-pubsub" >}}).

## Examples

For example the following command publish to channel `orders` with a subscriber already waiting for message(s).
For example the following command publishes to the `orders` channel with a subscriber already waiting for message(s).

```
> spublish orders hello
Expand Down
Loading