What is our primary use case?
On this project, my main use case for Nakama was the social core parts of the game, such as matchmaking, friends, notifications, and Parties for connecting on the game modes.
For matchmaking and notifications in our project, here is a specific example. I used Nakama for matchmaking so that we could connect with players at a similar game level, which kept matches balanced. We also set a time limit on Nakama matchmaking, and if it took too long, we would load the game with bots. Notifications were similar.
We had a list of notifications used for things such as events and Replays of previous games, and Nakama was responsible for handling the notifications from there.
How has it helped my organization?
Nakama has positively impacted our organization by making the development of the social parts of the project faster. Without it, the process would usually take longer and would not be as robust.
Nakama saved our team time, but it is hard to say a specific amount.
Building all of these features by hand would probably have taken an extra two to three weeks. The implementation that we did in one week would probably have taken at least double the time, or even triple if we had had to code all of it by hand without Nakama.
What is most valuable?
In my opinion, the best feature Nakama offers is its large number of built-in social features. For matchmaking, Parties, Friends, and more, it has pre-built features, so we do not need to write specific code for them. We just need to refer to these features. Nakama also works very well with Photon Quantum, which was the technology we used for the multiplayer simulations. Nakama was mainly responsible for the social side of the game, and Quantum was responsible for all the simulation parts, so they worked very well together.
Nakama’s built-in social features saved our team a lot of time during development because we did not have to code all of these features by hand. If we had had to code notifications, the whole Friend system of adding, blocking, and removing friends, the Party system with a Host and a Party limit, and matchmaking individually, it would have taken a lot more time. With Nakama, we had them built in. That is the main thing.
What needs improvement?
One specific thing I remember is that the user search was not very good because it only matches exact Usernames. Even a difference in capitalization would prevent a match.
Another issue was with the User ID, though I am not sure whether this was exactly a Nakama issue. For our project, we had a User ID on Nakama and another User ID on our own other back-end service. These had to be mapped by an RPC with a cache, which took an extra round of work.
Slightly better documentation would have made it a nine or 10 for me.
For how long have I used the solution?
I have used Nakama for about one year on my last project, which also took about one year.
What do I think about the stability of the solution?
Overall, Nakama was stable. The Server and SDK were reliable for us, and Authentication, matchmaking, Parties, Friends, and Notifications worked as expected and needed little rework.
The main effort went into Connection handling on the Client. The SDK does not reconnect automatically, so we had to build our own reconnect and Session refresh logic, especially for the mobile and WebGL apps going into the background.
What do I think about the scalability of the solution?
Nakama handled our load without problems, but our player numbers never really tested its limits because we tested on limited demos and have not made a full open release.
We run it self-hosted on AWS in one region, and gameplay traffic goes through Photon Quantum, so Nakama only handles Logins, social features, matchmaking, and Parties. We had no performance or capacity issues.
Which solution did I use previously and why did I switch?
We did not switch from a different solution. On this project, we started with Nakama because, based on our research, it would be a lot more efficient.
What was our ROI?
We saw a return on investment from using Nakama, mainly on the development side. After we added Nakama, we had working matchmaking and Parties within about 10 days.
Over the following months, we shipped Friends, real-time Notifications, skill-based matchmaking, and the Host mode Lobby. This required only a handful of custom Server functions, and Nakama-made work made up less than 1% of the project’s commits.
The main ongoing cost was Connection reliability. About a third of our Nakama-related commits were reconnect and Session fixes. Since we self-hosted on AWS, the open-source license had no cost, so spending was limited to the AWS hosting itself.
Which other solutions did I evaluate?
Before choosing Nakama, we did not formally evaluate other options. We brought up Nakama early in the project to add the social features, matchmaking, and Parties on top of our existing back-end and Photon Quantum.
We did not run a formal side-by-side prototype on other options, and Nakama was the only social back-end we integrated.
What other advice do I have?
Overall, I would rate Nakama an eight, though probably between an eight and a nine. It is very nice, it is not hard to implement, and it was very useful for us. It also has good Documentation.
In our organization, Nakama is, if I am not mistaken, deployed as self-hosted on a public Cloud. The Cloud provider we use for hosting Nakama is AWS.
For others looking into using Nakama, my first piece of advice is to decide early on how Nakama Users map to your own Accounts. If you already have an Account system, use Custom Authentication and set the Nakama User ID to your own User ID from day one. We kept two IDs and had to translate between them, which added a Server call to every match start.
My second piece of advice is to build Connection handling first, not last. The SDKs do not reconnect automatically. Wrap the Socket in one class that handles reconnecting, Session refresh, and App backgrounding, which is essential on mobile and WebGL. Have the rest of the Game subscribe to that class and never to the raw Socket. Most of our Nakama bug fixes came from not doing this up front.
Which deployment model are you using for this solution?
Public Cloud
If public cloud, private cloud, or hybrid cloud, which cloud provider do you use?
Amazon Web Services (AWS)