简体   繁体   English

PHP或C#或(X)? 每10秒发送一次HTTP请求并生成图表图像

[英]PHP or C# or (X)? HTTP Request every 10 seconds and Chart image generation

Objective: HTTP Request every 10 seconds, chart image generation on server and upload back to user's browser for display 目标:每10秒发送一次HTTP请求,在服务器上生成图表图像,然后上传回用户浏览器进行显示

I wanted to go with LAMP + pChart but worried it might not handle > 1000 of simultaneous users and slow the server down to a crawl. 我想使用LAMP + pChart,但担心它可能无法处理超过1000个并发用户,并使服务器的运行速度变慢。

I thought about offloading the chart image generation to Google Charts but if the request is once every 10 seconds, I'd blast through the daily limit easily. 我曾考虑过将图表图像生成工作转移到Google图表,但是如果请求每10秒一次,那么我将轻松突破每日限制。

What server + lang is best for this implementation? 哪种服务器+ lang最适合此实现? Would I need to think about scaling at this point yet? 我现在是否需要考虑扩展?

A low end dedicated server, or a mid-range VPS will handle this no matter what language and platform you choose. 无论选择哪种语言和平台,低端专用服务器或中档VPS都可以处理此问题。 1000 simultaneous users requesting a chart every 10 seconds is an average of only 100 requests per second. 每10秒有1000个同时请求图表的用户,平均每秒只有100个请求。 I generate over 1000 dynamic images per second on a standard LAMP/PHP stack and it doesn't really generate much load at all. 我在标准的LAMP / PHP堆栈上每秒生成1000张以上的动态图像,它根本不会产生太多的负载。

While it will depend on the charting library, honestly one request every 10 seconds is not that much. 虽然这将取决于制图库,但老实说,每10秒发出一个请求并不多。 You won't go wrong with any of the languages and either LAMP or IIS. 任何一种语言以及LAMP或IIS都不会出错。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM