Using postgres to make a task queue
Blog: https://kunalsin9h.com/blog/potgres-task-queue
Run the following commands to get started:
export DATABASE_URL=...
go run main.go
POST /producer
- Create a new task
With body
{
"text": "The text to be printed",
"time": 2
}