Using monkey for node.js

Monkey Forums/Monkey Programming/Using monkey for node.js

skid(Posted 2013) [#1]
I have just recently set up a linux host using EC2 instance, have a basic node.js web / game server running and now wanting to get my head around the next few steps.

I don't think I want to use monkey for the main server code (it is using express extension) but I do want to be able to host plugins written in monkey to cater for various styles of game service.

Two threads for experiments with node.js

10 months ago

2 weeks ago

I tried to replicate second version with latest monkey but getting the following, grrrr...


- can't find block begin tag 'CONFIG'. You may need to delete target .build directory.
Done.



Anyway, the current question is, how do you get a node.js program to refresh itself without stopping so I can continue to develop versions of some services without having to restart the node vm?


Soap(Posted 2013) [#2]
https://github.com/jprichardson/node-reload


Have you looked at these?

https://github.com/bonsaiden/maple.js

http://pomelo.netease.com/

You should know that hosting active multiplayer games is much more costly than hosting "multiplayer" (in that there are indirect ways for player interaction) games based on player world state instead. If your games are state based then making everything based on REST APIs would be a good idea.


skid(Posted 2013) [#3]
Awesome, node-reload has given me some ideas thanks.

The only cost I'm worried about managing is latency, and as I can run an EC2 instance only 2000km in Sydney I'm flipping out as web players in southern hemisphere get taxed 150ms just for being on the wrong side of the planet.

League of Legends has just started a host in Oceania region also so it's a special time for many with 30ms pings for all.