{"id":22062906,"url":"https://github.com/lwahlmeier/pse","last_synced_at":"2026-04-29T08:02:42.987Z","repository":{"id":74456103,"uuid":"535164724","full_name":"lwahlmeier/pse","owner":"lwahlmeier","description":"The Java pubsub emulator sucks","archived":false,"fork":false,"pushed_at":"2022-10-18T07:50:29.000Z","size":3744,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-15T07:20:34.237Z","etag":null,"topics":["emulater","gcp","golang","pubsub","queue"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lwahlmeier.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-09-11T01:51:26.000Z","updated_at":"2022-11-09T20:27:35.000Z","dependencies_parsed_at":null,"dependency_job_id":"f6978d86-ec38-466a-b547-9926803ad9dc","html_url":"https://github.com/lwahlmeier/pse","commit_stats":null,"previous_names":["lwahlmeier/go-pubsub-emulator"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/lwahlmeier/pse","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lwahlmeier%2Fpse","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lwahlmeier%2Fpse/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lwahlmeier%2Fpse/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lwahlmeier%2Fpse/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lwahlmeier","download_url":"https://codeload.github.com/lwahlmeier/pse/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lwahlmeier%2Fpse/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32416146,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T06:29:02.080Z","status":"ssl_error","status_checked_at":"2026-04-29T06:29:00.631Z","response_time":110,"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":["emulater","gcp","golang","pubsub","queue"],"created_at":"2024-11-30T18:27:39.781Z","updated_at":"2026-04-29T08:02:42.958Z","avatar_url":"https://github.com/lwahlmeier.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PubSubEmulator\n\nThis is an emulator to be used with the GCP pubsub client.  It is very similar to the GCP pubsub-emulator except it is not written in java so it doesnt suck for memory usage as much.  It also supposed a basic interface for different backends so it can do some limited persistence of messages/topics/subs.\n\nIts important to note this is NOT a production level service.  This is meant to be a more stable replacement for the GCP pubsub-emulator.  Its mostly only used for testing and development environments.  Do not submit any issues around security, scalibility or HA.  \n\n## Memory backend\n\nThis is the default backend, all topic/subs/messages are kept in memory and will be lost on restart.  This is extremly fast and good for simple intigration tests.\n\n### Running memory backend\n\nYou can start the memory backend with docker w/o providing any additional arguments:\n\n```bash\n\ndocker run -it --rm -p 8681:8681 lwahlmeier/pse:v0.0.1\n\n```\n\nOnce started you can connect your GCP client by setting the following environment variable before starting it:\n```bash\n\nexport PUBSUB_EMULATOR_HOST=127.0.0.1:8681\n\n```\n\n\n## FileSystem backend\n\nThis is meant to have alittle more persistence around topic/subs/message state.  It can survive a restart or crash and keep most state.  This is made more for testing e2e type environments where you have more moving parts/services and a bit more resiliancy then what the memory based backend provides.  This is pretty simple and should be relativly fast assuming the backing disk is not to slow. \n\n### Running the FileSystem backend\n\nYou must set the backend type and set the location you want to store the data from it.  \n\n```bash\n\ndocker run -it --rm -p 8681:8681 -e PSE_TYPE=filesystem -e PSE_FSPATH=/pubsub -v /tmp/pubsub2:/pubsub lwahlmeier/pse:v0.0.1\n\n```\n\nThis will write all pubsub data to `/tmp/pubsub` on the host.  If you add topics/subs/messages then restart pse you should maintaine state for all supported data.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flwahlmeier%2Fpse","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flwahlmeier%2Fpse","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flwahlmeier%2Fpse/lists"}