{"id":19900091,"url":"https://github.com/m-lab/mlab-ns-rate-limit","last_synced_at":"2026-05-09T20:03:10.000Z","repository":{"id":65197965,"uuid":"141637843","full_name":"m-lab/mlab-ns-rate-limit","owner":"m-lab","description":"Rate limiting support for mlab-ns","archived":false,"fork":false,"pushed_at":"2023-08-22T23:11:26.000Z","size":87,"stargazers_count":0,"open_issues_count":3,"forks_count":0,"subscribers_count":9,"default_branch":"master","last_synced_at":"2024-10-29T14:54:32.171Z","etag":null,"topics":[],"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/m-lab.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}},"created_at":"2018-07-19T22:45:41.000Z","updated_at":"2020-05-13T22:43:18.000Z","dependencies_parsed_at":"2024-02-23T06:46:29.127Z","dependency_job_id":null,"html_url":"https://github.com/m-lab/mlab-ns-rate-limit","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m-lab%2Fmlab-ns-rate-limit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m-lab%2Fmlab-ns-rate-limit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m-lab%2Fmlab-ns-rate-limit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m-lab%2Fmlab-ns-rate-limit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/m-lab","download_url":"https://codeload.github.com/m-lab/mlab-ns-rate-limit/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240380840,"owners_count":19792369,"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":"2024-11-12T20:11:08.333Z","updated_at":"2026-05-09T20:03:09.937Z","avatar_url":"https://github.com/m-lab.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build\nStatus](https://travis-ci.com/m-lab/mlab-ns-rate-limit.svg?branch=master)](https://travis-ci.com/m-lab/mlab-ns-rate-limit)\n[![Coverage\nStatus](https://coveralls.io/repos/m-lab/mlab-ns-rate-limit/badge.svg?branch=master\u0026service=github)](https://coveralls.io/github/m-lab/mlab-ns-rate-limit?branch=master)\n\n# mlab-ns-rate-limit\n\nRate limiting support for mlab-ns.\n\n## Memcache Conventions\n\nmlab-ns-rate-limit writes request signature probabilities directly _to_\nmemcache. And, within the same project, mlab-ns is able to read request\nsignatures back _from_ memcache.\n\nBecause mlab-ns-rate-limit is written in Go, and mlab-ns is written in\nPython, and memcache exposes a generic byte array in Go but a type-aware\nserializer for Python, the two services cannot parse each other's data without\nadopting a shared convention.\n\nIn our case, we use base 10, ASCII encoded integers, which encode fixed point\ndecimal values with precision up to 0.0001. For example, to encode a probability\nvalue of 0.5, mlab-ns-rate-limit will:\n\n* string(0.5 * 10000) -\u003e \"5000\"\n\nAnd, mlab-ns would read this value as:\n\n* int(\"5000\") / 10000.0 -\u003e 0.5\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fm-lab%2Fmlab-ns-rate-limit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fm-lab%2Fmlab-ns-rate-limit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fm-lab%2Fmlab-ns-rate-limit/lists"}