我应该用 Erlang 编写自己的 flash-server 还是使用 Red5?

发布于 2024-07-10 02:16:47 字数 342 浏览 7 评论 0原文

我是一名即将开始考试项目的学生,我将负责一个针对 Flash 播放器的在线游戏的服务器实现。 我很难决定是应该用 Erlang 编写自己的轻量级服务器还是使用开源 Red5。

我的经验是,java 开发人员倾向于使事情变得过于复杂,从而使 API 难以使用,对于 Red5 来说也是如此吗? 它在同步游戏带来的重负载下表现如何?

也许我自己的 Erlang 服务器会更容易使用并分布在多台机器上?

所以问题是我应该编写自己的 Erlang flash 服务器还是使用现有的 Red5?

编辑:我认为我需要决定我的目标是什么:只是建立一个在线游戏或学习如何从头开始实现多用户服务器。

I'm a student about to start my exam project, where I will be responsible for the server implementation of an online game targeting the flash player.
I have a hard time to decide wether i should write my own lightweight server in Erlang or use the open source Red5.

My experience is that java-developers tend to overcomplexify things making the APIs difficult to work with, is this true for Red5? And how does it perform under the heavy load that comes with synchronizing a game?

Maybe my own Erlang server will be easier to work with and distribute on several machines?

So the question is should i write my own Erlang flash server or use the existing Red5?

Edit: I think i need to decide what my goals are: to just set up an online game or learn how to implement a multiuser server from scratch.

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

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

发布评论

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

评论(4

温柔少女心 2024-07-17 02:16:47

如果您可以进行 java 编程,我会说使用 Red5 - 实现您自己的服务器可能会感觉微不足道,但我猜您可能会发现它的内容比您现在想到的要多。

但是,如果您想在 erlang 中进行编程,并且认为开发自己的服务器会带来很多乐趣,那就无论如何吧!

这也取决于您项目的目标 - 您是否必须证明您可以运行在线游戏(选择 Red5),或者您是否必须证明您可以对分布式多用户游戏服务器进行编程? (去你自己用 Erlang 编程的项目)

顺便说一句:我正在使用 http://www.smartfoxserver.com/< /a> 对于我当前的项目之一

I'd say use Red5 if you are ok with programming java - it might feel trivial to implement your own server but I'd guess you probably will find out that there are some more things to it than you are thinking of now.

However, if you want to program in erlang and think you'll have loads of fun developing your own server by all means go for it!

Is also depends on the goal of your project - do you have to demonstrate you can get an online game going (go for Red5), or do you have to demonstrate you can program a distributed multiuser game server? (go for your own project progammed in Erlang)

BTW: I'm using http://www.smartfoxserver.com/ for one of my current projects

清旖 2024-07-17 02:16:47

我认为您需要自己估计实现您自己的轻量级服务器所需的工作量。 通常,一个人自己的需求很小且具体,实现满足这些需求的服务器是最佳选择。

另请查看 Blaze DS(Java 闪存服务器)和 Juggernaut(Ruby 闪存服务器)。 我认为也许剑圣是针对特定用途的,超出了您的用途,但我不确定。

I think you need to estimate for yourself the effort for implementing your own, lightweight, server. Often ones own requirements are small and specific and implementing a server that meets them is the way to go.

Also check out Blaze DS (Java flash server) and Juggernaut (ruby flash server). I think maybe Juggernaut is targeted for specific uses, beyond yours, but I'm not sure.

在风中等你 2024-07-17 02:16:47

为什么要重新发明轮子? 单独使用 AMF 是一个复杂的实现过程,只需查看文档了解整数编码等基本内容...如果您不需要流媒体功能并且 AMF 就是您想要的,您还可以使用 PyAMF (Python) 或AMFPHP。 此外,您可能会根据游戏最终的运行方式来评分,而不是根据您重新实现 AMF 的聪明程度。

Why reinvent the wheel? AMF alone is a complex beast to implement, just have a look at the docs for basic stuff like integer encoding...If you don't need the streaming capabilities and AMF is all you want, you can also use PyAMF (Python) or AMFPHP. Also, you'll probably be graded on how you the game works in the end, not on how clever you re-implemented AMF.

冰葑 2024-07-17 02:16:47

如果您访问 http://www.stripclubcity.com/ 或更具体地http://www.stripclubcity.com/new-jersey-strip-clubs 他们正在使用 Red5直播他们的摄像头。 我想我读到使用 Red5 比编写自己的 AMF 容易得多...为什么要重新发明轮子呢?

If you go to http://www.stripclubcity.com/ or more specifically http://www.stripclubcity.com/new-jersey-strip-clubs they are using Red5 to stream their cams. I think I read that it's so much easier to use Red5 than it is to write your own AMF... Why reinvent the wheel?

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