{"id":13366238,"url":"https://github.com/Go-kit/kit","last_synced_at":"2025-03-12T17:32:12.366Z","repository":{"id":26757761,"uuid":"30215630","full_name":"go-kit/kit","owner":"go-kit","description":"A standard library for microservices.","archived":false,"fork":false,"pushed_at":"2024-07-19T01:40:06.000Z","size":7390,"stargazers_count":26860,"open_issues_count":56,"forks_count":2452,"subscribers_count":671,"default_branch":"master","last_synced_at":"2025-03-10T05:09:36.666Z","etag":null,"topics":["go","golang","metallica","microservices"],"latest_commit_sha":null,"homepage":"https://gokit.io","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/go-kit.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","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},"funding":{"github":["peterbourgon"]}},"created_at":"2015-02-03T00:01:19.000Z","updated_at":"2025-03-10T02:35:37.000Z","dependencies_parsed_at":"2022-07-12T15:50:54.087Z","dependency_job_id":"f10f58cd-b8fe-4805-aab9-204a7b137353","html_url":"https://github.com/go-kit/kit","commit_stats":{"total_commits":1174,"total_committers":238,"mean_commits":4.932773109243698,"dds":0.6090289608177172,"last_synced_commit":"78fbbceece7bbcf073bee814a7772f4397ea756c"},"previous_names":["go-kit/gokit","peterbourgon/gokit"],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/go-kit%2Fkit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/go-kit%2Fkit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/go-kit%2Fkit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/go-kit%2Fkit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/go-kit","download_url":"https://codeload.github.com/go-kit/kit/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243262253,"owners_count":20262973,"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":["go","golang","metallica","microservices"],"created_at":"2024-07-30T00:01:21.649Z","updated_at":"2025-03-12T17:32:12.318Z","avatar_url":"https://github.com/go-kit.png","language":"Go","readme":"# Go kit\n\n![GitHub Workflow Status](https://github.com/go-kit/kit/workflows/CI/badge.svg)\n[![GoDev](https://img.shields.io/badge/go.dev-reference-007d9c?logo=go\u0026logoColor=white\u0026style=flat-square)](https://pkg.go.dev/github.com/go-kit/kit?tab=doc)\n[![codecov](https://codecov.io/gh/go-kit/kit/branch/master/graph/badge.svg)](https://codecov.io/gh/go-kit/kit)\n[![Go Report Card](https://goreportcard.com/badge/go-kit/kit)](https://goreportcard.com/report/go-kit/kit)\n[![Sourcegraph](https://sourcegraph.com/github.com/go-kit/kit/-/badge.svg)](https://sourcegraph.com/github.com/go-kit/kit?badge)\n\n**Go kit** is a **programming toolkit** for building microservices\n(or elegant monoliths) in Go. We solve common problems in distributed\nsystems and application architecture so you can focus on delivering\nbusiness value.\n\n- Website: [gokit.io](https://gokit.io)\n- Mailing list: [go-kit](https://groups.google.com/forum/#!forum/go-kit)\n- Slack: [gophers.slack.com](https://gophers.slack.com) **#go-kit** ([invite](https://gophersinvite.herokuapp.com/))\n\n## Sponsors\n\n\u003cdiv\u003e\n  \u003ca href=\"https://encore.dev\" style=\"display: inline-flex; align-items: center; gap: 10px\"\u003e\n    \u003cimg src=\"https://user-images.githubusercontent.com/78424526/214602214-52e0483a-b5fc-4d4c-b03e-0b7b23e012df.svg\" height=\"28px\" alt=\"encore icon\"\u003e\u003c/img\u003e\n  \u003cb\u003eEncore – the platform for building Go-based cloud backends.\u003c/b\u003e\n    \u003c/a\u003e\n\u003c/div\u003e\n\u003cbr/\u003e\n\nClick [here](https://github.com/sponsors/peterbourgon) or Sponsor, above, for more information on sponsorship.\n\n## Motivation\n\nGo has emerged as the language of the server, but it remains underrepresented\nin so-called \"modern enterprise\" companies like Facebook, Twitter, Netflix, and\nSoundCloud. Many of these organizations have turned to JVM-based stacks for\ntheir business logic, owing in large part to libraries and ecosystems that\ndirectly support their microservice architectures.\n\nTo reach its next level of success, Go needs more than simple primitives and\nidioms. It needs a comprehensive toolkit, for coherent distributed programming\nin the large. Go kit is a set of packages and best practices, which provide a\ncomprehensive, robust, and trustable way of building microservices for\norganizations of any size.\n\nFor more details, see\n [the website](https://gokit.io),\n [the motivating blog post](http://peter.bourgon.org/go-kit/) and\n [the video of the talk](https://www.youtube.com/watch?v=iFR_7AKkJFU).\nSee also the\n [Go kit talk at GopherCon 2015](https://www.youtube.com/watch?v=1AjaZi4QuGo).\n\n## Goals\n\n- Operate in a heterogeneous SOA — expect to interact with mostly non-Go-kit services\n- RPC as the primary messaging pattern\n- Pluggable serialization and transport — not just JSON over HTTP\n- Operate within existing infrastructures — no mandates for specific tools or technologies\n\n## Non-goals\n\n- Supporting messaging patterns other than RPC (for now) — e.g. MPI, pub/sub, CQRS, etc.\n- Re-implementing functionality that can be provided by adapting existing software\n- Having opinions on operational concerns: deployment, configuration, process supervision, orchestration, etc.\n\n## Contributing\n\nPlease see [CONTRIBUTING.md](/CONTRIBUTING.md).\nThank you, [contributors](https://github.com/go-kit/kit/graphs/contributors)!\n\n## Dependency management\n\nGo kit is [modules](https://github.com/golang/go/wiki/Modules) aware, and we\nencourage users to use the standard modules tooling. But Go kit is at major\nversion 0, so it should be compatible with non-modules environments.\n\n## Code generators\n\nThere are several third-party tools that can generate Go kit code based on\ndifferent starting assumptions.\n\n- [RecoLabs/microgen](https://github.com/RecoLabs/microgen)\n- [GrantZheng/kit](https://github.com/GrantZheng/kit)\n- [kujtimiihoxha/kit](https://github.com/kujtimiihoxha/kit) (unmaintained)\n- [nytimes/marvin](https://github.com/nytimes/marvin)\n- [sagikazarmark/mga](https://github.com/sagikazarmark/mga)\n- [sagikazarmark/protoc-gen-go-kit](https://github.com/sagikazarmark/protoc-gen-go-kit)\n- [metaverse/truss](https://github.com/metaverse/truss)\n- [goadesign/goakit](https://github.com/goadesign/plugins/tree/v3/goakit)\n\n## Related projects\n\nProjects with a ★ have had particular influence on Go kit's design (or vice-versa).\n\n### Service frameworks\n\n- [gizmo](https://github.com/nytimes/gizmo), a microservice toolkit from The New York Times ★\n- [go-micro](https://github.com/micro/go-micro), a distributed systems development framework ★\n- [gotalk](https://github.com/rsms/gotalk), async peer communication protocol \u0026amp; library\n- [Kite](https://github.com/koding/kite), a micro-service framework\n- [gocircuit](https://github.com/gocircuit/circuit), dynamic cloud orchestration\n\n### Individual components\n\n- [afex/hystrix-go](https://github.com/afex/hystrix-go), client-side latency and fault tolerance library\n- [armon/go-metrics](https://github.com/armon/go-metrics), library for exporting performance and runtime metrics to external metrics systems\n- [codahale/lunk](https://github.com/codahale/lunk), structured logging in the style of Google's Dapper or Twitter's Zipkin\n- [eapache/go-resiliency](https://github.com/eapache/go-resiliency), resiliency patterns\n- [sasbury/logging](https://github.com/sasbury/logging), a tagged style of logging\n- [grpc/grpc-go](https://github.com/grpc/grpc-go), HTTP/2 based RPC\n- [inconshreveable/log15](https://github.com/inconshreveable/log15), simple, powerful logging for Go ★\n- [mailgun/vulcand](https://github.com/vulcand/vulcand), programmatic load balancer backed by etcd\n- [mattheath/phosphor](https://github.com/mondough/phosphor), distributed system tracing\n- [pivotal-golang/lager](https://github.com/pivotal-golang/lager), an opinionated logging library\n- [rubyist/circuitbreaker](https://github.com/rubyist/circuitbreaker), circuit breaker library\n- [sirupsen/logrus](https://github.com/sirupsen/logrus), structured, pluggable logging for Go ★\n- [sourcegraph/appdash](https://github.com/sourcegraph/appdash), application tracing system based on Google's Dapper\n- [spacemonkeygo/monitor](https://github.com/spacemonkeygo/monitor), data collection, monitoring, instrumentation, and Zipkin client library\n- [streadway/handy](https://github.com/streadway/handy), net/http handler filters\n- [vitess/rpcplus](https://godoc.org/github.com/youtube/vitess/go/rpcplus), package rpc + context.Context\n- [gdamore/mangos](https://github.com/gdamore/mangos), nanomsg implementation in pure Go\n\n### Web frameworks\n\n- [Gorilla](http://www.gorillatoolkit.org)\n- [Gin](https://gin-gonic.com/)\n- [Negroni](https://github.com/codegangsta/negroni)\n- [Goji](https://github.com/zenazn/goji)\n- [Martini](https://github.com/go-martini/martini)\n- [Beego](https://beego.vip/)\n- [Revel](https://revel.github.io/) (considered [harmful](https://github.com/go-kit/kit/issues/350))\n- [GoBuffalo](https://gobuffalo.io/)\n\n## Additional reading\n\n- [Architecting for the Cloud](https://slideshare.net/stonse/architecting-for-the-cloud-using-netflixoss-codemash-workshop-29852233) — Netflix\n- [Dapper, a Large-Scale Distributed Systems Tracing Infrastructure](http://research.google.com/pubs/pub36356.html) — Google\n- [Your Server as a Function](http://monkey.org/~marius/funsrv.pdf) (PDF) — Twitter\n","funding_links":["https://github.com/sponsors/peterbourgon"],"categories":["分布式系统","分佈式系統"],"sub_categories":["高级控制台界面","高級控制台界面"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FGo-kit%2Fkit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FGo-kit%2Fkit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FGo-kit%2Fkit/lists"}