Haxe 与 Lua 构建大流量 Web 应用程序的比较

发布于 2024-10-21 20:04:16 字数 361 浏览 6 评论 0原文

在花了几个小时阅读 Lua 和 Haxe 后,我仍然不确定哪个是开发大流量 Web 应用程序的更好选择。

如果我们的网络应用程序在服务器端大量工作,哪一个可以为我们提供更好的服务器性能?我们还希望将服务器资源保持在最低限度,以避免严重的延迟峰值。

我们的第一个想法是使用 Java/Spring/Hibernate,但我们了解了它如何随着使用量的增长而快速耗尽服务器资源,因此我们正在尝试找出一种架构,使我们能够处理大流量并提供良好的用户体验在服务器端有效。

我们所说的大流量是指有 500 多个用户同时从我们的服务器来回请求数据。

Lua 和 Haxe 之外的任何建议也将受到赞赏并将予以考虑。

感谢您花时间阅读本文。 =)

After spending a couple of hours reading on Lua and Haxe I am still unsure of which would be a better choice to use on the development of a heavy traffic web application.

Which one would give us better server performance if our web-app will be working heavily on the server's side? We also want to keep server's resources at a minimum to avoid suffering heavy lag spikes.

Our first thought was using Java/Spring/Hibernate but we read about how it drains a server's resources fast as its usage grows, so we are trying to figure out an architecture that would allow us to handle heavy traffic and give out a good user experience efficiently on the server's side.

By heavy traffic we are talking of 500+ users at the same time requesting data back and forth from our servers.

Any suggestions outside Lua and Haxe are also appreciated and will be taken into consideration.

Thanks for your time in reading this. =)

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

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

发布评论

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

评论(4

甜心小果奶 2024-10-28 20:04:16

您可以使用 Haxe 生成带有 Node.js 类型签名的 JavaScript(此处 https://github.com /blackdog66/bdog-node)。这在一个备受推崇的后端上提供了 Haxe 的所有强大功能。这是我的主要平台。

BD

You can use Haxe to generate JavaScript with the Node.js type signatures, (here https://github.com/blackdog66/bdog-node). This gives all the great features of Haxe on a very well regarded backend. It's my primary platform.

bd

情深如许 2024-10-28 20:04:16

我已经在自编码的 WSAPI/Orbit 应用程序中尝试使用 Lua,它运行得很好。我不知道它是如何扩展的,但它与 LuaJit 一起开箱即用,所以我想你可以让事情变得非常快。

您可以在 Kepler 项目 Github 网站上找到更多信息。

I've tried Lua as in a self coded WSAPI/Orbit application and it just works nicely. I haven't got a clue about how it scales, but it just works(TM) out-of-the-box with LuaJit, so I guess you can make things blazingly fast.

You can find more information on this on the Kepler project Github site.

撩动你心 2024-10-28 20:04:16

你应该尝试 Nginx Lua Module ,它可以处理大约 30k(是的,三万)个请求每秒,RedisNginx Redis 模块

您可以在这里找到几个 Lua Web 框架:http://lua-users.org/wiki/LibrariesAndBindings

You should try Nginx Lua Module that can handle ~30k (yes, thirty-thousand) requests per second, Redis and Nginx Redis Module.

You'll find several Lua web frameworks here: http://lua-users.org/wiki/LibrariesAndBindings

玩心态 2024-10-28 20:04:16

我不认为任何特定的语言都能解决“随着服务器使用量的增长而快速耗尽服务器资源”的问题。

该应用程序已经存在吗?如果是的话,现在写的是什么?如果没有,您怎么知道您将有 500 个并发用户?

我认为 500 多个并发用户没什么大不了的,而且您选择哪种技术可能没有什么区别,因此您应该选择一种使用您熟悉的语言(或至少范例)的技术。如果您喜欢 Java,请继续使用它。

我用过 Lua(不是 Haxe);我喜欢它,但它不像 Java、C++、C、Perl、Ruby 或 Python 等其他语言那样具有广泛的第三方库可用性,这对于制作 Web 应用程序来说是一个很大的缺点。

I don't think any particular language is a solution to the problem of "draining a server's resources fast as its usage grows."

Does this application exist already? If so, what is it written in now? If not, how do you know you will have 500 concurrent users?

I don't think 500+ simultaneous users is that big a deal, and it's likely that it will make little difference which technology you choose, so you should choose one that uses a language (or at least paradigm) you understand well. If you like Java, go ahead and use it.

I've used Lua (not Haxe); I like it but it does not have the widespread third-party library availability that other languages like Java or C++ or C or Perl or Ruby or Python enjoy, which is a substantial downside for making web apps.

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