Description
DungBeetle is a lightweight, single-binary distributed job server for queuing and running large numbers of SQL read jobs, such as reports, asynchronously. Its main use is user-facing report generation: a user request is placed on a queue and returns later, so the application does not wait on a slow query, and the primary database is protected from a flood of requests. Results are written to separate ephemeral results databases, with each job's output in its own table, which makes retrieval faster. Follow-up work such as sorting or filtering can be run against the smaller results database instead of the source. DungBeetle supports MySQL, PostgreSQL and ClickHouse as source databases, and MySQL and PostgreSQL as results or cache databases. Tasks are named SQL queries defined in .sql files in the goyesql format, and a task can be attached to one or more configured databases with a db tag. The server exposes HTTP APIs to list, submit, check and cancel jobs and groups of jobs. Workers run on a common broker backend, such as Redis or AMQP, so several processes and machines can share the queue. The project is aimed at teams whose reporting queries are heavy enough to slow down the main application database.…
Highlights
- Queues and runs SQL read jobs asynchronously
- Writes results to separate, ephemeral results databases
- Supports MySQL, PostgreSQL and ClickHouse sources
- HTTP APIs to submit, check and cancel jobs
- Distributed workers over Redis or AMQP brokers
Ratings & Reviews
No ratings yet
Be the first to rate Dungbeetle.
People also visit
Dungbeetle FAQ
What is DungBeetle?
A distributed job server that queues and runs heavy SQL read queries asynchronously, so reporting does not load the main database.
Which databases does it support?
MySQL, PostgreSQL and ClickHouse as sources, and MySQL and PostgreSQL as results or cache databases.
How are queries defined?
As named tasks in .sql files, using the goyesql format, and a db tag attaches each task to one or more configured databases.
How does a client use it?
Through HTTP APIs to list, post and check jobs, check status, and cancel jobs or groups of jobs.
What queue backend is used?
A common broker backend, such as Redis or AMQP, so several processes can share the queue.
Is it open source?
Yes. The source is on GitHub under the zerodha organization.
What are the best Dungbeetle alternatives?
Popular alternatives to Dungbeetle include Yugabyte, LibreDB Studio and CloudBeaver. See all Dungbeetle alternatives








