{"id":13490309,"url":"https://github.com/apache/brpc","last_synced_at":"2025-12-11T22:46:12.096Z","repository":{"id":37276126,"uuid":"102343794","full_name":"apache/brpc","owner":"apache","description":"brpc is an Industrial-grade RPC framework using C++ Language, which is often used in high performance system such as Search, Storage, Machine learning, Advertisement, Recommendation etc. \"brpc\" means \"better RPC\".","archived":false,"fork":false,"pushed_at":"2025-04-22T09:01:13.000Z","size":40021,"stargazers_count":16954,"open_issues_count":417,"forks_count":4008,"subscribers_count":805,"default_branch":"master","last_synced_at":"2025-04-22T11:18:40.269Z","etag":null,"topics":["rpc"],"latest_commit_sha":null,"homepage":"https://brpc.apache.org","language":"C++","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/apache.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGES.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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":"2017-09-04T09:28:47.000Z","updated_at":"2025-04-22T10:01:20.000Z","dependencies_parsed_at":"2023-09-20T23:10:33.070Z","dependency_job_id":"8a5734f8-d60c-4386-82b0-56c8638eb481","html_url":"https://github.com/apache/brpc","commit_stats":{"total_commits":2710,"total_committers":251,"mean_commits":"10.796812749003983","dds":0.8531365313653136,"last_synced_commit":"282bc902af0b0cdf920e882cf4f1277119121fad"},"previous_names":["apache/incubator-brpc"],"tags_count":29,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apache%2Fbrpc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apache%2Fbrpc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apache%2Fbrpc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apache%2Fbrpc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/apache","download_url":"https://codeload.github.com/apache/brpc/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250228695,"owners_count":21395958,"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":["rpc"],"created_at":"2024-07-31T19:00:44.560Z","updated_at":"2025-12-11T22:46:12.047Z","avatar_url":"https://github.com/apache.png","language":"C++","readme":"[中文版](README_cn.md)\n\n[![Linux Build Status](https://github.com/apache/brpc/actions/workflows/ci-linux.yml/badge.svg)](https://github.com/apache/brpc/actions/workflows/ci-linux.yml)\n[![MacOs Build Status](https://github.com/apache/brpc/actions/workflows/ci-macos.yml/badge.svg)](https://github.com/apache/brpc/actions/workflows/ci-macos.yml)\n\n![brpc logo (light)](docs/images/logo.png#gh-light-mode-only)\n![brpc logo (dark)](docs/images/logo-white.png#gh-dark-mode-only)\n\n[bRPC](https://brpc.apache.org/) is an Industrial-grade RPC framework using C++ Language, which is often used in  high performance system such as Search, Storage, Machine learning, Advertisement, Recommendation etc.\n\n### \"bRPC\" means \"better RPC\". \n\nYou can use it to:\n* Build a server that can talk in multiple protocols (**on same port**), or access all sorts of services\n  * restful http/https, [h2](https://httpwg.org/specs/rfc9113.html)/[gRPC](https://grpc.io). using http/h2 in bRPC is much more friendly than [libcurl](https://curl.haxx.se/libcurl/). Access protobuf-based protocols with HTTP/h2+json, probably from another language.\n  * [redis](docs/en/redis_client.md) and [memcached](docs/en/memcache_client.md), thread-safe, more friendly and performant than the official clients.\n  * [rtmp](https://github.com/apache/brpc/blob/master/src/brpc/rtmp.h)/[flv](https://en.wikipedia.org/wiki/Flash_Video)/[hls](https://en.wikipedia.org/wiki/HTTP_Live_Streaming), for building [streaming services](https://github.com/brpc/media-server).\n  * hadoop_rpc (may be opensourced)\n  * [rdma](https://en.wikipedia.org/wiki/Remote_direct_memory_access) support\n  * [thrift](docs/en/thrift.md) support,  thread-safe, more friendly and performant than the official clients.\n  * all sorts of protocols used in Baidu: [baidu_std](docs/cn/baidu_std.md), [streaming_rpc](docs/en/streaming_rpc.md), hulu_pbrpc, [sofa_pbrpc](https://github.com/baidu/sofa-pbrpc), nova_pbrpc, public_pbrpc, ubrpc and nshead-based ones.\n  * Build [HA](https://en.wikipedia.org/wiki/High_availability) distributed services using an industrial-grade implementation of [RAFT consensus algorithm](https://raft.github.io) which is opensourced at [braft](https://github.com/brpc/braft)\n* Servers can handle requests [synchronously](docs/en/server.md) or [asynchronously](docs/en/server.md#asynchronous-service).\n* Clients can access servers [synchronously](docs/en/client.md#synchronus-call), [asynchronously](docs/en/client.md#asynchronous-call), [semi-synchronously](docs/en/client.md#semi-synchronous-call), or use [combo channels](docs/en/combo_channel.md) to simplify sharded or parallel accesses declaratively.\n* Debug services [via http](docs/en/builtin_service.md), and run  [cpu](docs/cn/cpu_profiler.md), [heap](docs/cn/heap_profiler.md) and [contention](docs/cn/contention_profiler.md) profilers.\n* Get [better latency and throughput](docs/en/overview.md#better-latency-and-throughput).\n* [Extend bRPC](docs/en/new_protocol.md) with the protocols used in your organization quickly, or customize components, including [naming services](docs/cn/load_balancing.md#命名服务) (dns, zk, etcd), [load balancers](docs/cn/load_balancing.md#负载均衡) (rr, random, consistent hashing)\n\n# Try it!\n\n* Read [overview](docs/en/overview.md) to know where bRPC can be used and its advantages.\n* Read [getting started](docs/cn/getting_started.md) for building steps and play with [examples](https://github.com/apache/brpc/tree/master/example/).\n* Docs:\n  * [Performance benchmark](docs/cn/benchmark.md)\n  * [bvar](docs/en/bvar.md)\n    * [bvar_c++](docs/cn/bvar_c++.md)\n  * [bthread](docs/cn/bthread.md)\n    * [bthread or not](docs/cn/bthread_or_not.md)\n    * [thread-local](docs/cn/thread_local.md)\n    * [Execution Queue](docs/cn/execution_queue.md)\n  * Client\n    * [Basics](docs/en/client.md)\n    * [Error code](docs/en/error_code.md)\n    * [Combo channels](docs/en/combo_channel.md)\n    * [Access http/h2](docs/en/http_client.md)\n    * [Access gRPC](docs/en/http_derivatives.md#h2grpc)\n    * [Access thrift](docs/en/thrift.md#client-accesses-thrift-server) \n    * [Access UB](docs/cn/ub_client.md)\n    * [Streaming RPC](docs/en/streaming_rpc.md)\n    * [Access redis](docs/en/redis_client.md)\n    * [Access memcached](docs/en/memcache_client.md)\n    * [Backup request](docs/en/backup_request.md)\n    * [Dummy server](docs/en/dummy_server.md)\n  * Server\n    * [Basics](docs/en/server.md)\n    * [Serve http/h2](docs/en/http_service.md)\n    * [Serve gRPC](docs/en/http_derivatives.md#h2grpc)\n    * [Serve thrift](docs/en/thrift.md#server-processes-thrift-requests)\n    * [Serve Nshead](docs/cn/nshead_service.md)\n    * [Debug server issues](docs/cn/server_debugging.md)\n    * [Server push](docs/en/server_push.md)\n    * [Avalanche](docs/cn/avalanche.md)\n    * [Auto ConcurrencyLimiter](docs/cn/auto_concurrency_limiter.md)\n    * [Media Server](https://github.com/brpc/media-server)\n    * [json2pb](docs/cn/json2pb.md)\n  * [Builtin Services](docs/en/builtin_service.md)\n    * [status](docs/en/status.md)\n    * [vars](docs/en/vars.md)\n    * [connections](docs/cn/connections.md)\n    * [flags](docs/cn/flags.md)\n    * [rpcz](docs/cn/rpcz.md)\n    * [cpu_profiler](docs/cn/cpu_profiler.md)\n    * [heap_profiler](docs/cn/heap_profiler.md)\n    * [contention_profiler](docs/cn/contention_profiler.md)\n  * Tools\n    * [rpc_press](docs/cn/rpc_press.md)\n    * [rpc_replay](docs/cn/rpc_replay.md)\n    * [rpc_view](docs/cn/rpc_view.md)\n    * [benchmark_http](docs/cn/benchmark_http.md)\n    * [parallel_http](docs/cn/parallel_http.md)\n  * Others\n    * [IOBuf](docs/en/iobuf.md)\n    * [Streaming Log](docs/en/streaming_log.md)\n    * [FlatMap](docs/cn/flatmap.md)\n    * [bRPC introduction](docs/cn/brpc_intro.pptx)(training material)\n    * [A tutorial on building large-scale services](docs/en/tutorial_on_building_services.pptx)(training material)\n    * [bRPC internal](docs/en/brpc_internal.pptx)(training material)\n  * RPC in depth\n    * [New Protocol](docs/en/new_protocol.md)\n    * [Atomic instructions](docs/en/atomic_instructions.md)\n    * [IO](docs/en/io.md)\n    * [Threading Overview](docs/en/threading_overview.md)\n    * [Load Balancing](docs/cn/load_balancing.md)\n    * [Locality-aware](docs/cn/lalb.md)\n    * [Consistent Hashing](docs/cn/consistent_hashing.md)\n    * [Memory Management](docs/cn/memory_management.md)\n    * [Timer keeping](docs/cn/timer_keeping.md)\n    * [bthread_id](docs/cn/bthread_id.md)\n  * Use cases\n    * [User cases](community/cases.md)\n\n# Contribute code\nPlease refer to [here](CONTRIBUTING.md).\n\n# Feedback and Getting involved\n* Report bugs, ask questions or give suggestions by [Github Issues](https://github.com/apache/brpc/issues)\n* Subscribe to the mailing list(dev-subscribe@brpc.apache.org) to get updated with the project\n\n# Code of Conduct\nWe follow the code of conduct from Apache Software Foundation, please refer it here [Link](https://www.apache.org/foundation/policies/conduct)\n","funding_links":[],"categories":["Inter-process communication","C++","Real-World Projects","网络服务"],"sub_categories":["Backend / Server Development","网络服务_其他"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapache%2Fbrpc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fapache%2Fbrpc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapache%2Fbrpc/lists"}