表单按钮可以同时处理400次点击吗?

发布于 2024-09-17 21:43:58 字数 134 浏览 3 评论 0原文

我正在制作一个网站,当计时器先结束时,谁将点击按钮,谁将获胜。但我不确定400人同时点击服务器是否可以快速响应?是否会有计时器,当计时器结束时,单击按钮将被启用。但是这个时间是否会在每台计算机上显示为按钮启用的同一时间?或者在闪存上创建这个系统会更快吗?

I am making a site that who will click button when timer ends first he will won.But I am not sure that if will 400 people will click the same time server can response quickly? And is there will be timer and when timer end click button will be enabled.But is this time will show on each computer as the same time that button enabled? Or creating this system on flash will be more faster?

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

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

发布评论

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

评论(1

油焖大侠 2024-09-24 21:43:58

您的服务器可能不会按照请求到达的顺序处理请求。此外,不同的客户端可能具有不同的连接和处理速度。服务器上的第一个请求可能不是第一个单击按钮的客户端。

您可以在客户端测量时间,但客户端可以轻松更改提交的时间并作弊。

Your server may not process the requests in the same order they arrived. Also, different clients may have different connection and processing speeds. The first request on the server may not be the first client which clicked the button.

You could measure the time client side, but then the client could easily change the submitted time and cheat.

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