node-ddos icon indicating copy to clipboard operation
node-ddos copied to clipboard

Is the table shared between (cluster) forks?

Open VinceOPS opened this issue 9 years ago • 1 comments

Hi,

I was about to create a similar middleware using Redis (or maybe Redis is an overkill), as I need all my node.js instances to "know" about the table entries. I was simply wondering: is there any (default) way to share the table entries between all my cluster forks?

Cheers, Vincent

VinceOPS avatar Sep 06 '16 12:09 VinceOPS

@VinceOPS sure. Without having to resort to a centralized db layer (which defeats the simplicity and transient qualities of the module), we can have each instance needs to RPC report to a single place instead of each instance running independently. Additionally each time the middleware reads we can also make an RPC call. For now, you should feel safe to use it without the centralized cluster reporting, but I'll add in as lightweight as possible stream only centralized read/write mechanism within a week or two.

rook2pawn avatar Dec 19 '16 21:12 rook2pawn