For a special day where we expect up to 10x more orders in one hour as normal we would like to implement a user queue / wait page* like it is common for tickets shops if you have a heavy peak.
Any suggestions to implement it?
Our first try:
Route all request via htacces to a Magento independent queue.php to handle and calculate max users and their sessions. If max users not reached route to index.php If max users reached show queue page with a countdown to reload and numbers of users "in front" of queue.
It would work without varnish but with this caching mechanism queue page is also cached and shown to users.
Maybe the logic has to be implemented into varnish?
Our stack is:
- load balancers with varnish
- Magento frontend server with PHP and Redis on dedicated servers
- dedicated database servers, master and slave
- dedicated file server
Btw. More hardware is no option, we can handle 1000 orders per hour but not 10.000.
Sorry I have no better words than "user queue / wait page"