aedes-persistence-mongodb

JSON →
library 9.4.2 ·javascript
verified Jun 5, 2026

MongoDB persistence layer for the Aedes MQTT broker. Version 9.4.2 requires Node.js >=20. Supports flexible TTL per collection (incoming, outgoing, retained, will, subscriptions) or per-message, and can use either a connection string or an existing MongoDB instance. Integrates with Mongoose via the native db object. The persistence follows the aedes-persistence interface and is intended for production MQTT deployments needing durable session storage. Maintained under the moscajs organization with active CI and coverage.