Preparing for system design interviews?  Try bugzed.com →

mongo-leader

JSON →
library 1.6.7 ·javascript
verified Jun 5, 2026

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.

total hits 6
actors 1 distinct systems
last hit 20d ago human
GPTBot
3
Humans
3

top countries 🇸🇬 Singapore · 🇺🇸 United States