Skip to content

Commit

Permalink
docs: add diagrams to explain how it works
Browse files Browse the repository at this point in the history
  • Loading branch information
darrachequesne committed Jan 25, 2021
1 parent e55edb9 commit a367d1b
Show file tree
Hide file tree
Showing 5 changed files with 2,110 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ A simple and performant way to use [Socket.IO](https://socket.io/) within a [clu

Unlike other packages like [sticky-session](https://github.com/indutny/sticky-session), the routing is based on the session ID (the `sid` query parameter).

![Cluster diagram](./assets/socket.io-cluster.png)

See also:

- [sticky-session](https://github.com/indutny/sticky-session) (routing based on `connection.remoteAddress`)
Expand Down Expand Up @@ -85,6 +87,8 @@ const socket = io({

- the [Redis adapter](https://github.com/socketio/socket.io-redis) (or any compatible adapter) is still needed when broadcasting packets

![Cluster diagram with Redis](./assets/socket.io-cluster-redis.png)

## License

MIT
Loading

0 comments on commit a367d1b

Please sign in to comment.