WolfDan

WolfDan

Hey there!

Lately I’ve been playing a lot FFXIV and Black Deset Online, during my game time I started to think about the millions of events that happen in the game and how really complicated it can be to create a server for an MMORPG (I’ve created some game servers before but just as research)

So I asked myself, how well can Elixir handle a server of this type?

From what I’ve seen most game servers are written on a combination of Java and C/C++ for all the internals like entity system, networking, geometry engine, inventory management etc…

So the intention of my previous question is how well Elixir can handle such things?

We already know that Elixir can handle things like chat (Riot Messaging System is written on Erlang) and networking really well (TCP/UDP), but what about entities system, questing, spell timers etc… ?

We also know that Erlang VM isn’t really good at doing calculations (with those kind of servers relly a lot), but fortunately we have NIFs that can help solve this problem, tho is a good idea in doing such thing as a nif? The best example could be all the geometry engine or the positioning system, tho Elixir could handle things like speed hack controls etc…


So what do you think?

  • Is Elixir capable of handling all the most important parts of an MMORPG game server?

  • Would it be more costly to run compared to writting it on another language?

  • Do you think is there any direct benefit on using Elixir on this case over other solutions?

  • Do you have any experience handling similar projects? How was the experience?

Thank you :slight_smile:

Showing Posts 1 to 5

hauleth

hauleth

Could be, but IMHO it wouldn’t be worth it. I mean, you could use it as a network layer and run game loop in NIF or port, but as network isn’t the most problematic layer of such game you can use any other library to handle that directly in language you will be using as a game-loop. So I wouldn’t say that this is totally unusable in such case, but I wouldn’t say that you would get much advantages of using BEAM there as there is not that much benefits.

So as component - yes. As a whole system - no.

There are companies that are providing MMO capabilities for games and are using Erlang, for example https://demonware.net.

WolfDan

WolfDan OP

Well that’s not what I was trying to say in this post, the idea could be of using NIF only in places where is really need like the geometry engine, everything else just handle with Elixir which I think is really capable of

Realibility and easy to mantain could be a really good benefit. And if handled weel Hot code upgrades is a killer feature (tho not easy to achieve)

Oh I didn’t knew about them, that’s good to know ^^/

oestrich

oestrich

I think Elixir works pretty well for an MMO server. I’m writing a text based MMO and have never regretted it. That’s ExVenture - https://exventure.org/ I actually don’t think I could have done this without Elixir.

I also know someone who was doing a server for an existing MMO and they were doing lots of binary pattern matching on packets which must be stupid hard on not Erlang :smile:

The process architecture of Erlang works perfectly for a very stateful system such as an MMO. I say give it a shot!

kokolegorille

kokolegorille

You can also use Elixir with Unity3D, as mentionned in this post…

WolfDan

WolfDan OP

I’ve seen your work! is amazing :smiley: Keep it up!

I can confirm this myself with a prototype Dofus server I did is really really easy to handle binaries on Elixir, I do not think it could be simpler tbh

Well I’m not building an MMO or something, I just was wondering how much Elixir is capable to it ^^, just curiosity, wanting to know others opnions and experience :smiley:

— All posts loaded —

Where Next? Top

Trending in Discussions Top

AstonJ
As the title says, please share what you’ve been up to with Elixir. Whether that’s been learning it, looking into it, making stuff with i...
2977 94592 917
New
cblavier
Hey there, It’s been more than a year since we started using LiveView as our main UI library and building a whole library of UI componen...
New
mudasobwa
I am happy to introduce the very α version of the new programming language compiled to BEAM. Welcome Cure. It has literally three kille...
New
heathen
Quite interesting article Google brought me. Didn’t find any mentions about it here. What do you think in general? Would you use togethe...
New
mhanberg
Hi everyone! The first release candidate for the Expert language server project is now available! We’ve published a press release detai...
New
AstonJ
Since we have deprecated our Erlang sections (as we have dedicated Erlang Forums now) let’s add this thread for those who’d like to post ...
New
Null-logic-0
What IDE or editor are you using for Elixir development? Personally, I use Zed, and I really like it, but sometimes I wish there were a ...
New

Other Trending Topics Top

GenericJam
Edit: 2026 May 15 - This post is archived. Mob is alive!! Main docs: mob v0.7.11 — Documentation A bit of explanation for the slightly c...
New
JesseHerrick
Hey, I’m Jesse and I’m the main contributor behind Dexter, a full-featured, lightning-fast Elixir LSP optimized for large codebases. It s...
New
marciok
Hi there! We created Gust: A task orchestrator inspired by Airflow. For those who have never heard about Aiflow, it’s a Python-based wor...
New
jimsynz
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
Dmk
Xamal is a deployment tool for Elixir apps that deploys native releases to bare metal servers over SSH. It’s a port of GitHub - basecamp/...
New
webofbits
With AI doing more of the implementation work, I’ve been wondering how much coding I should deliberately keep doing myself. My main conc...
#ai
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews