I have recently implemented a very tiny Cassandra web application on both PHP and play frameworks to compare these technologies. I'm running these tests on a virtual machine that has ubuntu-server in it. In both PHP and play framework applications, there is only one URL that makes an insertion to a Cassandra keyspace.
In PHP, I ran the following apache benchmark test;
ab -n 100000 -c 100 http://example.com/insert
The test results show that the server can serve 120#/sec (requests per sec)
I have made almost the same application in the play framework using Netflix's Astyanax Cassandra library. However, the server seems to be crushing even at the start of ab
.
I'm making the play framework test in production, by play start
command on terminal.
So, I know that the play framework is production-ready. So, what am I doing wrong here?
The problem was in the requests per second and I didn't set the thread pools. At that time, it seems that play framework consumes so much memory even the thread pools were default. – aacanakin
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With