Background jobs for Go
Retries, workflows, limits, recurring jobs and a dashboard, the way Hangfire does it for .NET. In the database you already have, in Redis, or in both.
0 done
A real queue would be less cute. Not by much.
01 / The little big details
The parts other libraries keep for the paid tier are in the box, under MIT.
02 / Where jobs live
Keep the jobs next to your data, move them to Redis, or do both: written in your transaction, run in Redis. Same code, one line changes.
Jobs are rows next to your data. One system to run, and nothing acknowledged is ever lost.
per job, measured on PostgreSQL 17
03 / Five minutes
Arguments are Go types, so a typo is a compile error and not a job that fails at 3 a.m.
type SendEmail struct {
To string
}
func (SendEmail) Kind() string { return "send_email" }
func sendEmail(ctx context.Context, j *kiln.Job[SendEmail]) error {
return mailer.Send(ctx, j.Args.To)
}
kiln.Handle(mux, sendEmail)
client.Enqueue(ctx, SendEmail{To: "ada@example.com"})04 / The dashboard
Retry, cancel and requeue from a dashboard that comes with the library, in English or Brazilian Portuguese, mounted on your own HTTP server.


05 / We tried to break it