Skip to content

ugursogukpinar/go-message-queue-on-postgresql

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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"}');

About

Implement a very simple message queue on Postgresql

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published