Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
b233366
Add design document for dally
platonv Nov 19, 2026
f093005
Rebuild as a workspace with dally-core and a Postgres backend
platonv Nov 19, 2026
13513e2
Add the HTTP server and dally binary
platonv Nov 19, 2026
21f9a58
Add licenses, CI and a compose file for test databases
platonv Nov 19, 2026
0121f95
Document how expired leases are retried
platonv Nov 19, 2026
2ecbe8c
Add README, contributing guide, changelog and delivery semantics
platonv Nov 19, 2026
409015f
Add a Dockerfile
platonv Nov 19, 2026
83aac7e
Add the SQLite storage backend
platonv Nov 19, 2026
59b7e91
Accept JSON bodies without a JSON content type
platonv Nov 19, 2026
7758e63
Add the Redis backend
platonv Nov 19, 2026
1321302
Add push delivery and recurring jobs
platonv Nov 19, 2026
172419c
Add dally-client: a Rust client and Worker
platonv Nov 19, 2026
1f26d3f
Add client subcommands to the dally CLI
platonv Nov 19, 2026
acdae3d
Add OpenAPI schemas and an oldest-due query to dally-core
platonv Nov 19, 2026
4fa34ee
Add API keys and Prometheus metrics
platonv Nov 19, 2026
2a34bc1
Describe the API with OpenAPI
platonv Nov 19, 2026
8d078f7
Add OpenTelemetry export and an operations guide
platonv Nov 19, 2026
bfec9fe
Use a plain threshold for the dead-messages alert example
platonv Nov 19, 2026
51be155
Add the web UI
platonv Nov 19, 2026
8bc5bb4
Bring the docs in line with the code
platonv Nov 19, 2026
45a3aba
Explain more precisely why Redis has no oldest-due metric
platonv Nov 19, 2026
db7d409
Ignore .env and add .env.example
platonv Nov 22, 2026
3cd17a0
Use the author's name as it appears on GitHub
platonv Nov 22, 2026
81a4329
Expand the README: background, architecture, usage, roadmap
platonv Nov 22, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
target
.git
.claude
*.sqlite*
2 changes: 0 additions & 2 deletions .env

This file was deleted.

22 changes: 22 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Example environment for local development. Copy it to .env and adjust.
# dally does not read .env itself; load it into your shell first:
#
# set -a; . ./.env; set +a
#
# Settings can also come from a TOML file (dally server --config dally.toml).
# Environment variables win over the file. See docs/operations.md.

# Where the server listens and stores messages. Without DALLY_STORAGE_URL,
# dally uses a local SQLite file.
DALLY_LISTEN=127.0.0.1:7070
DALLY_STORAGE_URL=postgres://postgres:dally@localhost:55432/postgres
# DALLY_STORAGE_URL=sqlite://dally.sqlite
# DALLY_STORAGE_URL=redis://localhost:56379

# Used by the dally CLI subcommands (queues, schedule, messages, dead).
DALLY_SERVER=http://127.0.0.1:7070
# DALLY_API_KEY=

# Databases for the test suite, matching compose.yaml.
DALLY_TEST_POSTGRES_URL=postgres://postgres:dally@localhost:55432/postgres
DALLY_TEST_REDIS_URL=redis://localhost:56379
54 changes: 54 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: CI

on:
push:
branches: [main]
pull_request:

env:
CARGO_TERM_COLOR: always
RUSTFLAGS: -D warnings

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt, clippy
- uses: Swatinem/rust-cache@v2
- run: cargo fmt --all --check
- run: cargo clippy --workspace --all-targets --all-features

test:
runs-on: ubuntu-latest
services:
postgres:
image: postgres:17
env:
POSTGRES_PASSWORD: dally
ports: ["5432:5432"]
options: >-
--health-cmd pg_isready --health-interval 2s --health-timeout 5s --health-retries 10
redis:
image: redis:8
ports: ["6379:6379"]
options: >-
--health-cmd "redis-cli ping" --health-interval 2s --health-timeout 5s --health-retries 10
env:
DALLY_TEST_POSTGRES_URL: postgres://postgres:dally@localhost:5432/postgres
DALLY_TEST_REDIS_URL: redis://localhost:6379
steps:
- uses: actions/checkout@v5
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- run: cargo test --workspace --all-features

msrv:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: dtolnay/rust-toolchain@1.94
- uses: Swatinem/rust-cache@v2
- run: cargo check --workspace --all-features
21 changes: 8 additions & 13 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,14 +1,9 @@
# Generated by Cargo
# will have compiled files and executables
debug/
target/
/target
*.sqlite
*.sqlite-shm
*.sqlite-wal

# Remove Cargo.lock from gitignore if creating an executable, leave it for libraries
# More information here https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html
Cargo.lock

# These are backup files generated by rustfmt
**/*.rs.bk

# MSVC Windows builds of rustc generate these, which store debugging information
*.pdb
# Local environment. Copy .env.example to .env; never commit real values.
.env
.env.*
!.env.example
21 changes: 21 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Changelog

All notable changes to dally are listed here. The format follows
[Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and versions follow
[Semantic Versioning](https://semver.org/).

## [Unreleased]

The first release. Highlights:

- Queues with per-queue settings: visibility timeout, max attempts, backoff,
retention, pause and resume.
- Messages with delays, priorities, idempotency keys, leases, retries with
exponential backoff, and a dead-letter state.
- PostgreSQL, SQLite and Redis backends, all passing one conformance suite.
- HTTP API with long polling, push delivery to webhooks with HMAC signatures,
and recurring jobs from cron expressions.
- API keys with client and admin roles, Prometheus metrics, an OpenAPI spec,
and optional OpenTelemetry tracing.
- A Rust client with a `Worker`, and a `dally` CLI.
- An optional web UI.
71 changes: 71 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
# Contributing to dally

Thanks for helping. Bug reports, docs fixes and code are all welcome.

## Before you start

For anything bigger than a small fix, open an issue first and describe what
you want to change. `docs/design.md` explains how dally is put together and
why. A change that goes against it is not ruled out, but it needs a discussion.

## Layout

| Path | What it is |
|-----------------------|---------------------------------------------------------|
| `crates/dally-core` | Domain types, the `Service` rules, the `Storage` trait and backends |
| `crates/dally-server` | HTTP API and background tasks |
| `crates/dally-client` | Rust client and `Worker` |
| `crates/dally-ui` | Web UI, a client of the HTTP API |
| `crates/dally` | The `dally` binary |
| `docs/` | Design notes and user documentation |

## Running the tests

The SQLite tests and unit tests need nothing. The PostgreSQL and Redis tests
need running databases and are skipped without them:

```sh
docker compose up -d
export DALLY_TEST_POSTGRES_URL=postgres://postgres:dally@localhost:55432/postgres
export DALLY_TEST_REDIS_URL=redis://localhost:56379
cargo test --workspace --all-features
```

Before sending a pull request, run what CI runs:

```sh
cargo fmt --all --check
cargo clippy --workspace --all-targets --all-features -- -D warnings
cargo test --workspace --all-features
```

After changing the HTTP API, regenerate the committed OpenAPI spec:

```sh
UPDATE_OPENAPI=1 cargo test -p dally-server openapi
```

## Adding a storage backend

Implement `dally_core::Storage` behind a cargo feature, then add a test file
that calls `conformance_tests!(setup)` (see `crates/dally-core/tests/postgres.rs`).
The conformance suite is the contract: a backend that passes it behaves like
every other backend. If a test seems wrong for your backend, raise it in the
pull request rather than skipping it.

## Style

- Write code for the next reader. Small functions, clear names, and comments
that explain *why* rather than *what*.
- Public items get doc comments. The workspace warns on missing docs.
- No `unwrap()` outside tests. Library crates use `thiserror`; only the binary
uses `anyhow`.
- Behaviour changes come with tests, and with an update to `docs/` if users
would notice.
- Commit messages: a short summary line in the imperative ("Add Redis
backend"), then a body explaining why, if it is not obvious.

## License

By contributing, you agree that your contributions will be dual licensed under
the MIT and Apache 2.0 licenses, as described in the README.
Loading