{"id":16939366,"url":"https://github.com/a8m/lease","last_synced_at":"2025-09-25T23:32:24.049Z","repository":{"id":57547373,"uuid":"63500285","full_name":"a8m/lease","owner":"a8m","description":"Generic lease implementation using DynamoDB","archived":false,"fork":false,"pushed_at":"2018-01-03T17:22:58.000Z","size":601,"stargazers_count":19,"open_issues_count":4,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-11T19:21:49.751Z","etag":null,"topics":["distributed-systems","dynamo","dynamodb","go","kcl","lease"],"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/a8m.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":"2016-07-16T20:04:43.000Z","updated_at":"2025-02-28T22:39:13.000Z","dependencies_parsed_at":"2022-09-26T18:40:50.614Z","dependency_job_id":null,"html_url":"https://github.com/a8m/lease","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/a8m/lease","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a8m%2Flease","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a8m%2Flease/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a8m%2Flease/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a8m%2Flease/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/a8m","download_url":"https://codeload.github.com/a8m/lease/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a8m%2Flease/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274032361,"owners_count":25210786,"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","status":"online","status_checked_at":"2025-09-07T02:00:09.463Z","response_time":67,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["distributed-systems","dynamo","dynamodb","go","kcl","lease"],"created_at":"2024-10-13T21:04:31.887Z","updated_at":"2025-09-25T23:32:23.933Z","avatar_url":"https://github.com/a8m.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Lease [![Build status][travis-image]][travis-url] [![License][license-image]][license-url] [![GoDoc][godoc-img]][godoc-url]\nA generic leasing implementation of the [Amazon-KCL.lease][kcl.lease] package. ideal for manage\nand partition work across a fleet of workers.\n\n![Screenshot](https://github.com/a8m/lease/blob/master/assets/lease.jpg)\n\n### What is a Lease ?\nLease type contains data pertianing to a lease.  \nDistributed systems may use leases to partition work across a fleet of workers.  \nEach unit of work (identified by a leaseKey) has a corresponding Lease.  \nEvery worker will contend for all leases - only one worker will successfully take each one.  \nThe worker should hold the lease until it is ready to stop processing the corresponding unit of work,\nor until it fails.  \nWhen the worker stops holding the lease, another worker will take and hold the lease.\n\nTo get started, see the [examples][examples]\n\n\n### License\nMIT\n\n[examples]:      https://github.com/a8m/lease/tree/master/_examples\n[kcl.lease]:     https://github.com/awslabs/amazon-kinesis-client/tree/master/src/main/java/com/amazonaws/services/kinesis/leases\n[godoc-url]:     https://godoc.org/github.com/a8m/lease\n[godoc-img]:     https://img.shields.io/badge/godoc-reference-blue.svg?style=flat-square\n[travis-url]:    https://travis-ci.org/a8m/lease\n[travis-image]:  https://img.shields.io/travis/a8m/lease.svg?style=flat-square\n[license-url]:   LICENSE\n[license-image]: https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fa8m%2Flease","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fa8m%2Flease","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fa8m%2Flease/lists"}