Free Time
Free Time
Initial testing of PostgreSQL database was promising with throughput under the required 2,000 RPS with 100 mock clients.
After refactoring some queries and deploying to an AWS EC2 instance, the throughput on the server performed very well, with an average RPS around 3-4 ms with 100 mock clients.
The database also performed well with 1,000 mock clients, with an average RPS of 3-4 ms.
Even with 1,500 mock clients, the database performed well. A 1,650 ms average RPS does not provide the best user experience. Next steps would be to add a load balancer that scales horizontally.