anway
by ClowkBackground jobs for any language. One binary, no Redis.
A Rails app pushes email.send, and a Go worker runs it. Storage is on disk, inside the binary.
worker := anway.NewWorker("", anway.WorkerOptions{Queues: []string{"default"}})
worker.On("email.send", func(ctx context.Context, job *anway.Job) error {
var address, subject string
if err := job.Bind(&address, &subject); err != nil {
return err
}
return send(ctx, address, subject)
})
return worker.Run(ctx)Install
docker run -p 7419:7419 -e SERVER_PASSWORD=change-me ghcr.io/thadeu/anwayWhat you get
Any language
Push a job from one language and run it in another, for example Rails pushes and Go runs.
No Redis
One binary with embedded disk storage. Nothing else to run.
Queues
Priority order, pause and resume, and queue throttling.
Retries and the dead set
Scheduled jobs, retries with backoff, a dead set, and MUTATE to change them.
Cron and unique jobs
Cron, unique jobs and expiring jobs, built in.
Batches
Batches with callbacks and child batches, job tracking, and a death hook.
Questions
Do I need Redis?
No. anway stores jobs on disk, inside the server.
Which languages can push and run jobs?
There are SDKs for Ruby, Go and JavaScript. A job pushed in one language can run in another.
How do I run it?
Use the Docker image, or download a binary for Linux or macOS from the releases.
Ready to try anway?
docker run -p 7419:7419 -e SERVER_PASSWORD=change-me ghcr.io/thadeu/anway