Welcome to the Waiting Room Demo

This demo showcases an effective way to manage website traffic during high-volume periods. When the site is at full capacity, visitors are temporarily placed in a waiting room, ensuring a smooth user experience.

This is configured for a maximum of 2 active sessions, with each session lasting 15 seconds.

Experience this firsthand by opening this link in multiple incognito/private browser sessions. Once the site is at full capacity (2 active sessions), you will be placed in a waiting room until a spot opens up.

Optionally, issue the

curl
command below to make multiple requests:

curl https://edgio-community-examples-v7-edge-functions-live.edgio.link/example/upstash-database

Dive into the code to see how it works.

View the demo code on GitHub