Django handel request peak
I have server (1 cup adn 1gb ram) with a django app, served with daphne and a redis server for django channels.
Then I have a managed database (postgres) which is used in django app.
My application is a very simple web browser quiz game, but when the game start all the user need to request the same information ( or almost the same) in a very short period of time. I have an approximated request of 44 for user. (80% are static files)
User plays in teams of 7-9 players, so I have a plan to implement the game a staggered start. So every second 7-9 user request the start of the game, so if I have 60 teams the game will start staggered along one minute.
Do you think that this is a good strategy to minify the load on my server?
In the other hand I have planned to make this upgrades:
Use a space to server static files.
Use a managed redis database from DO.
May update my server to 2cpu or 4 cpu with 4 workers of daphne.
What do you think of these upgrades will be worth it?
** Some date:
- 60 user I have a peak of 40% of cup and then it stays 4-5%. (no staggered strategy)
Thanks in advance.