{"id":27962443,"url":"https://github.com/dashbitco/broadway_cloud_pub_sub","last_synced_at":"2025-05-16T03:06:57.535Z","repository":{"id":37930655,"uuid":"179568604","full_name":"dashbitco/broadway_cloud_pub_sub","owner":"dashbitco","description":"A Broadway producer for Google Cloud Pub/Sub","archived":false,"fork":false,"pushed_at":"2025-01-08T07:09:33.000Z","size":168,"stargazers_count":69,"open_issues_count":2,"forks_count":25,"subscribers_count":7,"default_branch":"main","last_synced_at":"2025-05-07T19:47:27.426Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Elixir","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/dashbitco.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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,"zenodo":null}},"created_at":"2019-04-04T20:02:33.000Z","updated_at":"2025-02-13T11:41:21.000Z","dependencies_parsed_at":"2023-11-06T09:30:45.427Z","dependency_job_id":"217a0ce2-971b-440e-b2b1-9c0bf0cf62aa","html_url":"https://github.com/dashbitco/broadway_cloud_pub_sub","commit_stats":{"total_commits":107,"total_committers":18,"mean_commits":5.944444444444445,"dds":0.4672897196261683,"last_synced_commit":"7edfa7ae89a3a85c7293951da69fe48a78763e89"},"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dashbitco%2Fbroadway_cloud_pub_sub","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dashbitco%2Fbroadway_cloud_pub_sub/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dashbitco%2Fbroadway_cloud_pub_sub/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dashbitco%2Fbroadway_cloud_pub_sub/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dashbitco","download_url":"https://codeload.github.com/dashbitco/broadway_cloud_pub_sub/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254459088,"owners_count":22074605,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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-05-07T19:22:24.678Z","updated_at":"2025-05-16T03:06:52.526Z","avatar_url":"https://github.com/dashbitco.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# BroadwayCloudPubSub\n\n[![CI](https://github.com/dashbitco/broadway_cloud_pub_sub/actions/workflows/ci.yml/badge.svg)](https://github.com/dashbitco/broadway_cloud_pub_sub/actions/workflows/ci.yml)\n\nA Google Cloud Pub/Sub connector for [Broadway](https://github.com/dashbitco/broadway).\n\nDocumentation can be found at [https://hexdocs.pm/broadway_cloud_pub_sub](https://hexdocs.pm/broadway_cloud_pub_sub).\n\nThis project provides:\n\n* `BroadwayCloudPubSub.Producer` - A GenStage producer that continuously receives messages from a Pub/Sub subscription acknowledges them after being successfully processed.\n* `BroadwayCloudPubSub.Client` - A generic behaviour to implement Pub/Sub clients.\n* `BroadwayCloudPubSub.PullClient` - Default REST client used by `BroadwayCloudPubSub.Producer`.\n\n## Installation\n\nAdd `:broadway_cloud_pub_sub` to the list of dependencies in `mix.exs`:\n\n```elixir\ndef deps do\n  [\n    {:broadway_cloud_pub_sub, \"~\u003e 0.9.0\"},\n    {:goth, \"~\u003e 1.3\"}\n  ]\nend\n```\n\n\u003e Note the [goth](https://hexdocs.pm/goth) package, which handles Google Authentication, is required for the default token generator.\n\n## Usage\n\nConfigure Broadway with one or more producers using `BroadwayCloudPubSub.Producer`:\n\n```elixir\nBroadway.start_link(MyBroadway,\n  name: MyBroadway,\n  producer: [\n    module: {BroadwayCloudPubSub.Producer,\n      goth: MyGoth,\n      subscription: \"projects/my-project/subscriptions/my-subscription\"\n    }\n  ]\n)\n```\n\n## License\n\nCopyright 2019 Michael Crumm \\\nCopyright 2020 Dashbit\n\n  Licensed under the Apache License, Version 2.0 (the \"License\");\n  you may not use this file except in compliance with the License.\n  You may obtain a copy of the License at\n\n  http://www.apache.org/licenses/LICENSE-2.0\n\n  Unless required by applicable law or agreed to in writing, software\n  distributed under the License is distributed on an \"AS IS\" BASIS,\n  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n  See the License for the specific language governing permissions and\n  limitations under the License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdashbitco%2Fbroadway_cloud_pub_sub","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdashbitco%2Fbroadway_cloud_pub_sub","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdashbitco%2Fbroadway_cloud_pub_sub/lists"}