According to a benchmark made by Glory4Gamers, the open source version of the Mercure hub is able to 40k concurrent connections on a single EC2 t3.micro instance.
To test your own infrastructure, we provide a Gatling-based load test. It allows to test any implementation of the protocol, including the open source Hub.
Running the Load Test
- Download Gatling version 3
- Clone the Mercure repository and go into it:
git clone https://github.com/dunglas/mercure && cd mercure
Available environment variables (all are optional):
HUB_URL: the URL of the hub to test
JWT: the JWT to use for authenticating the publisher
SUBSCRIBERS: the number of concurrent subscribers
PUBLISHERS: the number of concurrent publishers