{"id":18418565,"url":"https://github.com/bsm/accord","last_synced_at":"2025-04-07T13:31:19.595Z","repository":{"id":35091141,"uuid":"181729218","full_name":"bsm/accord","owner":"bsm","description":null,"archived":false,"fork":false,"pushed_at":"2025-03-13T00:35:35.000Z","size":205,"stargazers_count":3,"open_issues_count":2,"forks_count":3,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-03-22T19:02:28.656Z","etag":null,"topics":["distlock","distributed-systems","golang","processing"],"latest_commit_sha":null,"homepage":null,"language":"Go","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/bsm.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":"2019-04-16T16:42:49.000Z","updated_at":"2024-05-02T12:06:23.000Z","dependencies_parsed_at":"2022-08-08T05:00:45.288Z","dependency_job_id":"59900a40-3e3e-405f-9c8c-505fc7566976","html_url":"https://github.com/bsm/accord","commit_stats":null,"previous_names":[],"tags_count":19,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bsm%2Faccord","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bsm%2Faccord/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bsm%2Faccord/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bsm%2Faccord/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bsm","download_url":"https://codeload.github.com/bsm/accord/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247661655,"owners_count":20975095,"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":["distlock","distributed-systems","golang","processing"],"created_at":"2024-11-06T04:14:00.956Z","updated_at":"2025-04-07T13:31:19.225Z","avatar_url":"https://github.com/bsm.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Accord\n\n[![GoDoc](https://godoc.org/github.com/bsm/accord?status.svg)](https://godoc.org/github.com/bsm/accord)\n[![Test](https://github.com/bsm/accord/actions/workflows/test.yml/badge.svg)](https://github.com/bsm/accord/actions/workflows/test.yml)\n[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)\n\nFast and efficient coordination of distributed processes.\nServer and client implementation in [Go](https://golang.org/) on top of the [gRPC](https://grpc.io/) framework.\n\n## Use Case\n\nImagine you are processing files within a directory or bucket, you would want to coordinate your workers\nto pick a file each, lock it for the duration of the processing and then mark it as done once finished so\nit's not picked up by another worker again.\n\n## Architecture\n\n    +------------+         +------------+     +--------------+\n    |            |         |            |     |              |\n    |   WORKER   | -gRPC-\u003e |   SERVER   | --\u003e |   BACKEND    |\n    |   Client   | \u003c------ |            | \u003c-- |  PostgreSQL  |\n    |            |         |            |     |              |\n    +------------+         +------------+     +--------------+\n\n- Clients are connected to (a cluster of) Accord Servers and communicate via gRPC.\n- Servers are using a pluggable backend (currently, PostgreSQL only) to coordinate state.\n- Clients maintain a local state cache to avoid hammering the server/backends.\n\n## Documentation\n\nPlease see the [API documentation](https://godoc.org/github.com/bsm/accord) for\npackage and API descriptions and examples.\n\n## Backends\n\n- [PostgreSQL](https://godoc.org/github.com/bsm/accord/backend/postgres) - requires version \u003e= 9.5.\n- [Mock](https://godoc.org/github.com/bsm/accord/backend/mock) - in-memory backend, for testing only.\n- [Direct](https://godoc.org/github.com/bsm/accord/backend/direct) - direct allows to connect clients directy a backend, bypassing the server. Use at your own risk!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbsm%2Faccord","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbsm%2Faccord","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbsm%2Faccord/lists"}