网络托管、网络扩展

发布于 2024-09-26 03:08:55 字数 194 浏览 0 评论 0原文

我有一个简单的网络应用程序来为大学生进行在线考试。所有问题均为多项选择题。大约 5000 名用户将参加考试。我的后端是mysql,使用PHP作为前端。我想知道托管此应用程序所需的服务器的硬件配置,并为所需的用户数量无缝工作。

我也在寻找云解决方案。如果我选择 Amazone EC2 实例,有人可以就我应该为该应用程序使用哪种类型的 EC2 机器提供建议吗?

I have a simple web application to conduct online exams for the college students. All questions are multiple choice questions. Around 5000 users will be taking up the exam. My backend is mysql and using PHP as the front end. I want to know the hardware configuration for the servers that will be required to host this application and work seamlessly for the required no of users.

I am also looking out for cloud solutions. If I choose Amazone EC2 instances, can some body give me advice on what type of EC2 machine I should go into for this application?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

千と千尋 2024-10-03 03:08:56

不可能说出运行您的设置所需的服务器的确切规格,因为变量太多。不过,这绝对是一个好问题:当我还是一名大学学生时,碰巧有一位教授尝试这样做,但没有进行测试:在考试当天,系统超载,考试不得不取消!

从测试您已有的内容开始。您可以使用 ab 工具JMeter。它将自动为您模拟请求的负载,因此您可以检查实际服务器的性能,并采取相应的行动。

It is impossible to tell the exact specs of the servers that will be required to run your setup, because there are too many variables. However, it is definitely a good question: when I was a student at university, it happened that a professor tried to do this, and didn't do testing: on the exam date, the system got overloaded and the exam had to be cancelled!

Start with testing what you already have. You can use something like the ab tool or JMeter. It will simulate the requested load for you automatically, so you can check how your actual server performs, and act accordingly.

甜心小果奶 2024-10-03 03:08:56

应用程序设计也很重要。就像你可以将所有问题缓存在 Web 层以避免数据库查询。制作客户端重型应用程序,使服务器负载最小(json 响应),以减少服务器上的下载时间负载。

一次请求多个问题并批量用户响应以共同回答问题以减少 ajax 调用。

利用 nosql 解决方案来避免 RDMS 约束开销。

Application design is also important. Like you can cache all the question at web layer to avoid database query. Make client heavy app such that server payload is minimum (json response) to reduce download time load on server.

Request multiple questions at once and Batch user responses to answer question together to decrease ajax calls.

Make use of nosql solution to avoid RDMS constraints overhead.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文