3 ms·
We use 5 ec2 instances to serve around 32 million requests per day on PHP, all under 100ms. It is not the language.
by ainiriand 2y ago
We use 5 ec2 instances to serve around 32 million requests per day on PHP, all under 100ms. It is not the language.
- nov21b 2y agoThe language/runtime certainly has an impact. But indeed, in reality there is no way to compare these scaling claims. For all we know people are talking about serving a http-level cache without even hitting the runtime.
- ainiriand 2y agoEach and every request reach the DB and/or Redis. MyISAM is deprecated, but is crazy fast if you mainly read.
- charlie0 2y agoFramework or custom app?
- ainiriand 2y agoRaw php scripts, no ORM either. It has very good abstractions for some logic and for some other parts it is just a spaghetti function. Changing anything is difficult and critical so we are not able to refactor much.
- dilyevsky 2y agoSounds impressive until you realize that there’s 86400 seconds in a day and so even if majority of those happen during business hours thats still firmly under 200 qps per server. On modern hw that’s very small. Also what instance size?
- ainiriand 2y agoc5.4xlarge
- jylasdfasd 2y agoThis is trivial with epoll(7) or io_uring(7). What you are describing "5 ec2 instances" could likely be attributed to language and/or framework bloat but hard to know for certain without details.