mongo-leader
JSON →A Node.js library for MongoDB-backed leader election, inspired by redis-leader. Current stable version is 1.6.7, with regular releases. It extends EventEmitter to emit 'elected' and 'revoked' events when leadership status changes. Key differentiators: automatic TTL index handling (since 1.5.0) avoids IndexOptionsConflict on config changes; supports lazy start and polling; minimal dependencies. Compared to alternatives like node-zookeeper-leader or redis-leader, it leverages MongoDB's existing infrastructure.
Traffic · last 30 days stale · no recent hits
total hits 6
actors 1 distinct systems
last hit 20d ago human
top countries 🇸🇬 Singapore · 🇺🇸 United States
Resources
packagemongo-leader ↗