Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Implement well scalable MMORPG with Scala? [closed]

Is Scala a good choice to implement a well scalable MMORPG? I read about people suggesting Erlang, because better concurrency handling. But Scala has actors/message driven concurrency and functional programming. Should not that handle the concurrency and scaling also well?

Sorry I don't know Erlang and also don't have experience with Scala neither MMORPG development. That's why I can't make the question more concrete yet. I'm looking for the best way to go to develop an easily scalable MMORPG. And think Scala maybe is/could be a good choice.

like image 870
User Avatar asked Nov 29 '25 05:11

User


2 Answers

Scala is fine for a MMORPG, but it doesn't necessarily have existing frameworks that are available for other platforms (especially C++). Erlang's fault-tolerance and scalability are legendary, but if you use the Akka framework you'll have a comparable set of capabilities (for the most part).

One advantage to using Scala is that you can take advantage of Project Darkstar, a Java-based platform for MMORPG creation. Here's an example of it being used, though I'm not sure it's actively maintained any more.

like image 102
Rex Kerr Avatar answered Dec 01 '25 18:12

Rex Kerr


Scala actors (consider akka) are actually influenced by erlang. This is highly subjective, but I believe actor model is a great fit for mmorpg.

I guess the overall architecture would involve actor per character/NPC - Akka is perfectly capable of handling millions of actors in a cluster. Oh, did I mention Akka 2.0 can be easily distributed?

like image 21
Tomasz Nurkiewicz Avatar answered Dec 01 '25 20:12

Tomasz Nurkiewicz