I have a wordpress website built with roots/sage9.
The website is a little bit particular, because our client “opens” the website once a week, 6.30pm, until 20 items are sold. It’s pretty faster, because a lot of users are ready to buy.
After 20 items are sold, or when it’s 00.00pm, we block automatically the shopping.
The problem is the infra server, as we didn’t know the flux of users at 6.30pm every week and as the budget of the client was limited, we put the code source on a shared server. Of course, after 3 minutes, the website was down …
Now, we migrated on an a VPS with 2CPU/4Go de ram (handled by a third business party - 40$/month) …
We simulated a test charge with 300 simultaneous users … the server doesn’t seem enough yet.
I can’t evaluate what we need. A lot of people said that wordpress is extremely greedy when there are a lot of users.
The wordpress is classic :
- I just put wp-fatest-cache now.
- I put google analytics for the next sell to know the realtime user at the opening.
On each page, there is a countdown timer for the next sell + the number item on the cart icon, so I fetch some data through an ajax request to retrieve :
- nb product in the cart
- the next opening datetime
I don’t know if i’m very clear with my problem, I think the real problem is the infra.
Thanks for your feedbacks, advises,