4

I have a NodeJs application which is running in cluster mode with 4 instance. A map is defined in a file "pipeline.js" like below :

var map = new Map();
module.exports = map;

I entered value in map like below :

map[value] = value_1;

In the code I have to remove the value from map but it gives error saying :

map[value] is empty.

But when rum with only 1 instance this error doesn't appear.

Thanks in advance !

Pranav Anand
  • 467
  • 6
  • 12
  • 3
    Make use of external storage if you want to share information across each cluster. Something like node-redis. ```https://github.com/NodeRedis/node_redis``` – lukaserat Jun 06 '17 at 08:08

0 Answers0