Skip to content

highlandcows/pgjobserver-lib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status Publish package to GitHub Packages

highlandcows pgjobserver-lib

This project implements a simple PostreSQL-based job queue library based on System design hack: Postgres is a great pub/sub & job server using Scala, Slick, and of course, PostgreSQL.

How does it work?

As discussed in the above blog, it is possible to create a "job" table that, when used with the PostgreSQL NOTIFY mechanism referenced below, can effect a fairly efficient messaging system between multiple services and/or threads.

It does require that all services have access to the same database but given PostgreSQL's scalability, this is not likely to be an issue except at very large scale.

Details on PostgreSQL NOTIFY

The NOTIFY mechanism allows a basic form of interprocess communication using a PostgreSQL database.

Building/Testing

This project is built using sbt and as such can be built by running the command

$ sbt compile

About

Simple PostgreSQL-based job queue library

Topics

Resources

Stars

Watchers

Forks

Packages

 
 
 

Languages