Take a look at Redis. You can use it as server memory. Multiple servers can
use the same memory. The best thing is you can use socket broadcast between
servers for communication.

Muhammad Wasim

On Mon, Feb 6, 2017 at 5:37 PM, Arun Kumar Raga <
[email protected]> wrote:

> Hi All,
>
>     1) How can i share the global variables in node cluster environment,
> Currently i am using *NEDB
> <https://www.google.co.in/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&cad=rja&uact=8&ved=0ahUKEwiT5f7DvfvRAhUCx7wKHfshCGUQFggbMAA&url=https%3A%2F%2Fgithub.com%2Flouischatriot%2Fnedb&usg=AFQjCNEAlvALtsH4mOVzcwNKCi3DSO90yQ&sig2=p3q6TblXpe-OGEP7NF2z6Q>*
>  for
> global data and running in another server and communicating both MAIN
> server and NEDB
> <https://www.google.co.in/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&cad=rja&uact=8&ved=0ahUKEwiT5f7DvfvRAhUCx7wKHfshCGUQFggbMAA&url=https%3A%2F%2Fgithub.com%2Flouischatriot%2Fnedb&usg=AFQjCNEAlvALtsH4mOVzcwNKCi3DSO90yQ&sig2=p3q6TblXpe-OGEP7NF2z6Q>
> Server(global data) using http request(facing this issue
> <https://github.com/request/request/issues/2047>).
>
>    Is their any better approach is their to communicate two nodejs server
> *or* Any better approach to keep global variable data(last state
> persistence).
>
>   Thank You in advance.
>
> --
> Job board: http://jobs.nodejs.org/
> New group rules: https://gist.github.com/othiym23/9886289#file-
> moderation-policy-md
> Old group rules: https://github.com/joyent/node/wiki/Mailing-List-
> Posting-Guidelines
> ---
> You received this message because you are subscribed to the Google Groups
> "nodejs" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/nodejs/8b47ccaf-255f-42d1-9069-1a2720cc21ba%40googlegroups.com
> <https://groups.google.com/d/msgid/nodejs/8b47ccaf-255f-42d1-9069-1a2720cc21ba%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Regards,
Muhammad Wasim | Lead Software Engineer | Zigron Inc.
E-mail: [email protected]
Website: www.zigron.com

-- 
Job board: http://jobs.nodejs.org/
New group rules: 
https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/nodejs/CAHWx-HDTgNo99%2BKQYvO151e8-gXQvsyL8kSD9FCMFd9EfxNXcA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to