i am a newbie to designing a server in node js
i know that node js runs in a single process,
my doubts are
1)Is the memory state of local variables of a function stored even after its execution - Ex:function may start some asynchronous method whose callback is using those variables even after the function got executed.
So assuming the above was true
2)everytime the (server url) is called its callback is called with request,response variables.So the memory state must be continuosly increasing(cause every url call's memory state is stored i.e because the state of variables in the callback onRequest(request,response) are stored) and therefore it should crash at some point of time due to lack of memory.Does this happen?