Hacker News new | ask | show | jobs
by badsavage 2488 days ago
Awesome work! What is your technology stack now?
1 comments

Thanks! The entire project essentially lives in a series of horizontally scaling node.js processes doing all kinds of things. The worlds are divided into chunks which helps significantly with culling network traffic and distributing the load.

For the database I moved from MongoDB to Postgres. When I started doing Hordes I had very little DB experience and thought that using MongoDB might be a good idea since I am using node. Turns out that Postgres is much better at helping with transactional logic for an MMORPG. Inventory management for example can be constructed almost entirely with constraints, ensuring that the data always makes sense (no two items occupying one slot, that kind of thing).

The alpha used vanillajs for the entire front end, but with the beta I started using Svelte and Rollup, which I would highly recommend for almost anything.

Yup, Svelte is hot and Postgres is always a good decision! Thank you for the details, really interesting project!

Once I built a CSS based browser MMO myself as a challenge. I used Clojurescript and React on the front end and Clojure with a simple in memory key-value storage. My solution was basically a turn based architecture, but many turns happened in a sec, so it was semi-realtime.

CSS means I didnt use webgl, just pseudo 3D with divs and transforms. Field of view was small, but playable. :D

Postgres is my fav. I've never heard of Svelte but just looked it up and might have to give it a whirl.

Anyways great information and great work on your MMO! If you ever need more Dev staff I'd love to help!

Hey, thanks! Feel free to check by on our discord channel - https://discord.gg/hordes :)