MySQL MQ is a lightweight message queue library backed by MySQL (v0.6.2). Designed for applications where a dedicated queue service like RabbitMQ or SQS is unavailable or overkill. Messages are stored in MySQL tables; queues are auto-created upon first use. Simple API with put, get, delete and a lock-based mechanism to prevent message duplication. The project follows semantic versioning and conventional commits, but has not seen updates since 2021 and remains unmaintained. Ideal for small-scale, single-database setups.
npm install mysql-mqNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates a queue, inserts a message, retrieves it, and deletes it.
Call queue.init() before any operations.
Consider wrapping calls in promises or using a different queue library.
Always reference queue name with ID if using multiple queues.
npm install mysql
Create the database before using mysql-mq.
Use require('mysql-mq') instead of import.