I want to run a server that can rapidly assign game data.
The simple model is:
P1 joins
P2 joins
Make a game with P1 & P2
P3 joins
P4 joins
Make a game with P3 & P4
etc..
but the advanced design is to have logic associated with the pairings.
For example:
P1 (A) joins.
P2 (B) joins.
P3 (C) joins.
P4 (A) joins.
Make game with P1 & P4
etc..
So far I've been using Node + Mongo.js but it seems odd to me to read and write to the database. Is this something that would be better served by using in-memory structures? Should I look at Redis?
I'm looking for efficiency here. It doesn't have to be for billions of connections but should tolerate say, the world's chess population playing speed chess games matching against similar ELO rankings.
Aucun commentaire:
Enregistrer un commentaire