{"id":23922603,"url":"https://github.com/datenhahn/simple-postgres-queue","last_synced_at":"2026-05-17T10:33:48.176Z","repository":{"id":43849909,"uuid":"248078413","full_name":"datenhahn/simple-postgres-queue","owner":"datenhahn","description":"This is a simple message queue implementation based on the postgresql database and the `SELECT FOR UPDATE` table locking.","archived":false,"fork":false,"pushed_at":"2022-09-08T01:10:05.000Z","size":23,"stargazers_count":1,"open_issues_count":2,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-23T22:28:14.673Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/datenhahn.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-03-17T21:40:09.000Z","updated_at":"2023-12-17T14:26:57.000Z","dependencies_parsed_at":"2023-01-18T00:15:37.234Z","dependency_job_id":null,"html_url":"https://github.com/datenhahn/simple-postgres-queue","commit_stats":null,"previous_names":["datenhahn/simple-postgres-queue"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/datenhahn/simple-postgres-queue","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datenhahn%2Fsimple-postgres-queue","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datenhahn%2Fsimple-postgres-queue/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datenhahn%2Fsimple-postgres-queue/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datenhahn%2Fsimple-postgres-queue/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/datenhahn","download_url":"https://codeload.github.com/datenhahn/simple-postgres-queue/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datenhahn%2Fsimple-postgres-queue/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33134964,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-17T09:28:26.183Z","status":"ssl_error","status_checked_at":"2026-05-17T09:27:52.702Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-01-05T17:15:10.601Z","updated_at":"2026-05-17T10:33:48.149Z","avatar_url":"https://github.com/datenhahn.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Simple Postgres Queue\n\nThis is a simple message queue implementation based on the postgresql database and the `SELECT FOR UPDATE`\ntable locking.\n\nWhy another message queue implementation?\n\n* You have a postgresql database and want to make use of the existing scaling and backup features\n* The application has only moderate performance requirements, but high requirements regarding data consistency\n* Debugging and admin friendlyness are keyfeatures\n* Simple code which you can understand (both the queue implemenation, as well as client code)\n\n## Usage\n\nsee `src/main/java/de/ecodia/simplequeue/examples/ExampleApp.java` for the full example.\n\n```java\n\n    // dataSource is some standard jdbc datasource\n    var queue = new SimpleQueue(dataSource);\n\n    queue.publish(\"myqueue\", \"well that was easy\");\n\n    queue.subscribe(\"myqueue\", x -\u003e {\n        System.out.println(x.getMessage());\n    });\n```\n\n## Subscriber Callback\n\nThe subscriber callback has access to the message properties:\n\n    id\n    queue\n    traceId\n    created\n    updated\n    publisherId\n    subscriberId\n    status\n    statusText\n    message\n\nThe subscriber and publisher ID can be set as `hostId`in the constructor.\n\n    public SimpleQueue(DataSource ds, String hostId, boolean notifyProcessing, String tableName)\n    \nIf parameter `notifyProcessing` is set to true it will update the table to state \"PROCESSING\" when starting\nto process the callback. If set to false it will only update after finishing the callback. \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatenhahn%2Fsimple-postgres-queue","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdatenhahn%2Fsimple-postgres-queue","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatenhahn%2Fsimple-postgres-queue/lists"}