Turning PostgreSQL into a queue serving 10,000 jobs per second
gist.github.com