nakama icon indicating copy to clipboard operation
nakama copied to clipboard

Lua hot reload

Open deflinhec opened this issue 1 year ago • 2 comments

Lua hot reload for runtime match and rpc.

deflinhec avatar Mar 30 '23 22:03 deflinhec

@deflinhec would this hot reload work for typescript modules as well?

dragonlobster avatar Apr 03 '23 14:04 dragonlobster

@deflinhec would this hot reload work for typescript modules as well?

Nope, this PR is only for lua.

deflinhec avatar Apr 04 '23 07:04 deflinhec

We are currently not comfortable integrating hot reloading into the server itself due to considerations around various existing running processes: match handlers, RPCs, before/after hooks etc. Our concern is it would be difficult to reason about which version of the code is running for any given execution context, relative to the value that hot reloading provides.

If hot reloading-like behaviour is needed, we recommend setting up a file watcher to restart the whole server process. Nakama's startup is very lightweight, so this generally does not take longer than a couple of seconds.

zyro avatar Aug 11 '24 16:08 zyro