I made a mistake working on nodejs
in the beginning by not utilizing Redis
or Memcache
or other memory storage systems. Now, it's far too late to be rewriting everything to accommodate and correlate my code within those API's.
However, I just recently found out about forking processes and how beneficial they can be; especially since I'm working on a gameserver.
The problem I have is: The memory is not shared between cores in nodejs
.. until I found a TCP
memory sharing module called Amensia.
With all that said, I have some question about it pertaining to nodejs
and tcp
in general:
1) The maximum size of a TCP packet is around 64k, so when using this module I can only share data up to 64k in size?
2) I use a global GAMES
and users
object to store player data. These objects are updated when a player moves in a map (x,y positions) and upon other actions. Would sending all this data across TCP derive into a bottleneck?