开发者

Super fast server for php script

开发者 https://www.devze.com 2023-01-15 10:37 出处:网络
I have a php script which requires no web hosting or disk space etc. The script simply retrieves infromation from a server, does some proce开发者_StackOverflowssing on this information

I have a php script which requires no web hosting or disk space etc. The script simply retrieves infromation from a server, does some proce开发者_StackOverflowssing on this information and than passes it on to a client (an iPhone app in this case). The only thing is that if traffic gets high than there is a high demand for bandwidth and speed.

Does anyone know of a service with high speed and badwidth (apart from web hosting services) that allows you to host (on a static ip) such a php script?

Thanks.


You may want to try some sort of cloud service where you can set up the environment you actually need. Let's say your script need a lot of RAM but only little CPU power (or the other way around) you can have exactly such a system. Amazon EC2 is one of many cloud computing providers out there.


hmm the performance point you can use something like "Facebook HipHop" to convert your php script into "c++" then you have the performance you need.


Cloud solution is perfect. You can even write shell scripts to increase decrease RAM whenever demand goes up.


Like everyone here mentioned, cloud hosting is your best bet. It's slightly more expensive for resources & bandwidth than a dedicated but is superior in performance/latency/scalability. I have a similar application setup for a current project and I am running on the RackSpace cloud with 100K+ active users on a daily basis and I have had no problems (been running for 6 months).


If your code is simple, don't use Php !

You can consider:

  • Python
  • GWan server + C
  • Java

Php is good for big project because its simple, fast to use/test/debug ...

0

精彩评论

暂无评论...
验证码 换一张
取 消