Skip to content

Latest commit

 

History

History
19 lines (13 loc) · 389 Bytes

README.md

File metadata and controls

19 lines (13 loc) · 389 Bytes

Very simple message queue implementation on PostgreSQL with Golang

1- Run the initial migration.

psql -d your_database_name < init.sql

2- Run workers

 go run worker.go -conn "postgres://localhost:5432/your_database_name?sslmode=disable" -count 5

3- Insert a row

INSERT INTO tasks (task_name, payload) VALUES ('example_task', '{"key": "value"}');