I'm using my raspberry pi model B as a web server. I chose node.js since its something i'm most comfortable with. I used nginx too because I have multiple node.js apps and wanted different domains / sub domains on the same IP.
The problem I am experiencing is poor page load / data receiving speed.
For example, my test site on the raspberry pi is loading very slowly : http://missile.io . The effects of the slow speed is even more drastic when I do a database query and return the results as json : http://missile.io/songs. I replicated the same codebase and database in an amazon EC2 micro instance and the speed is about 10x faster.
Is this because of my ISP ?
I'm using a 100Mbps connection with direct Ethernet cable on my Raspberry Pi. I don't actually experience a 100Mb/s speed, in fact when i do a simple wget to test download of a large file, i'm downloading at 250kb/s.
How can I fix my problem?
the internet(from another machine, like EC2 server) at 256kilobytes per second. That is more than enough for any experimental server to serve up simple web content on an idle internet connection. Even if they have 100mbit upload which not even you knows- Clearly they have at least 32mbit which is sufficient.