base on 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". [中文版](README_cn.md) [![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) [![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) ![brpc logo (light)](docs/images/logo.png#gh-light-mode-only) ![brpc logo (dark)](docs/images/logo-white.png#gh-dark-mode-only) [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. ### "bRPC" means "better RPC". You can use it to: * Build a server that can talk in multiple protocols (**on same port**), or access all sorts of services * 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. * [redis](docs/en/redis_client.md) and [memcached](docs/en/memcache_client.md), thread-safe, more friendly and performant than the official clients. * [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). * hadoop_rpc (may be opensourced) * [rdma](https://en.wikipedia.org/wiki/Remote_direct_memory_access) support * [thrift](docs/en/thrift.md) support, thread-safe, more friendly and performant than the official clients. * 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. * 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) * Servers can handle requests [synchronously](docs/en/server.md) or [asynchronously](docs/en/server.md#asynchronous-service). * 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. * 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. * Get [better latency and throughput](docs/en/overview.md#better-latency-and-throughput). * [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) # Try it! * Read [overview](docs/en/overview.md) to know where bRPC can be used and its advantages. * Read [getting started](docs/cn/getting_started.md) for building steps and play with [examples](https://github.com/apache/brpc/tree/master/example/). * Docs: * [Performance benchmark](docs/cn/benchmark.md) * [bvar](docs/en/bvar.md) * [bvar_c++](docs/cn/bvar_c++.md) * [bthread](docs/cn/bthread.md) * [bthread or not](docs/cn/bthread_or_not.md) * [thread-local](docs/cn/thread_local.md) * [Execution Queue](docs/cn/execution_queue.md) * Client * [Basics](docs/en/client.md) * [Error code](docs/en/error_code.md) * [Combo channels](docs/en/combo_channel.md) * [Access http/h2](docs/en/http_client.md) * [Access gRPC](docs/en/http_derivatives.md#h2grpc) * [Access thrift](docs/en/thrift.md#client-accesses-thrift-server) * [Access UB](docs/cn/ub_client.md) * [Streaming RPC](docs/en/streaming_rpc.md) * [Access redis](docs/en/redis_client.md) * [Access memcached](docs/en/memcache_client.md) * [Backup request](docs/en/backup_request.md) * [Dummy server](docs/en/dummy_server.md) * Server * [Basics](docs/en/server.md) * [Serve http/h2](docs/en/http_service.md) * [Serve gRPC](docs/en/http_derivatives.md#h2grpc) * [Serve thrift](docs/en/thrift.md#server-processes-thrift-requests) * [Serve Nshead](docs/cn/nshead_service.md) * [Debug server issues](docs/cn/server_debugging.md) * [Server push](docs/en/server_push.md) * [Avalanche](docs/cn/avalanche.md) * [Auto ConcurrencyLimiter](docs/cn/auto_concurrency_limiter.md) * [Media Server](https://github.com/brpc/media-server) * [json2pb](docs/cn/json2pb.md) * [Builtin Services](docs/en/builtin_service.md) * [status](docs/en/status.md) * [vars](docs/en/vars.md) * [connections](docs/cn/connections.md) * [flags](docs/cn/flags.md) * [rpcz](docs/cn/rpcz.md) * [cpu_profiler](docs/cn/cpu_profiler.md) * [heap_profiler](docs/cn/heap_profiler.md) * [contention_profiler](docs/cn/contention_profiler.md) * Tools * [rpc_press](docs/cn/rpc_press.md) * [rpc_replay](docs/cn/rpc_replay.md) * [rpc_view](docs/cn/rpc_view.md) * [benchmark_http](docs/cn/benchmark_http.md) * [parallel_http](docs/cn/parallel_http.md) * Others * [IOBuf](docs/en/iobuf.md) * [Streaming Log](docs/en/streaming_log.md) * [FlatMap](docs/cn/flatmap.md) * [bRPC introduction](docs/cn/brpc_intro.pptx)(training material) * [A tutorial on building large-scale services](docs/en/tutorial_on_building_services.pptx)(training material) * [bRPC internal](docs/en/brpc_internal.pptx)(training material) * RPC in depth * [New Protocol](docs/en/new_protocol.md) * [Atomic instructions](docs/en/atomic_instructions.md) * [IO](docs/en/io.md) * [Threading Overview](docs/en/threading_overview.md) * [Load Balancing](docs/cn/load_balancing.md) * [Locality-aware](docs/cn/lalb.md) * [Consistent Hashing](docs/cn/consistent_hashing.md) * [Memory Management](docs/cn/memory_management.md) * [Timer keeping](docs/cn/timer_keeping.md) * [bthread_id](docs/cn/bthread_id.md) * Use cases * [User cases](community/cases.md) # Contribute code Please refer to [here](CONTRIBUTING.md). # Feedback and Getting involved * Report bugs, ask questions or give suggestions by [Github Issues](https://github.com/apache/brpc/issues) * Subscribe to the mailing list([email protected]) to get updated with the project # Code of Conduct We follow the code of conduct from Apache Software Foundation, please refer it here [Link](https://www.apache.org/foundation/policies/conduct) ", Assign "at most 3 tags" to the expected json: {"id":"2024","tags":[]} "only from the tags list I provide: [{"id":39,"name":"3d-generation","display_name":"3D generation","slug":"3d-generation"},{"id":3,"name":"ai-agent","display_name":"AI agent","slug":"ai-agent"},{"id":8,"name":"ai-coding","display_name":"AI coding assistant","slug":"ai-coding"},{"id":5,"name":"ai-image","display_name":"AI image generation","slug":"ai-image"},{"id":9,"name":"ai-infrastructure","display_name":"AI infrastructure","slug":"ai-infrastructure"},{"id":10,"name":"ai-memory","display_name":"AI memory","slug":"ai-memory"},{"id":11,"name":"ai-skills","display_name":"AI skills","slug":"ai-skills"},{"id":12,"name":"ai-translation","display_name":"AI translation","slug":"ai-translation"},{"id":6,"name":"ai-video","display_name":"AI video generation","slug":"ai-video"},{"id":4,"name":"ai-voice","display_name":"AI voice","slug":"ai-voice"},{"id":7,"name":"ai-workflow","display_name":"AI workflow","slug":"ai-workflow"},{"id":22,"name":"audio-processing","display_name":"Audio processing","slug":"audio-processing"},{"id":29,"name":"authentication","display_name":"Authentication","slug":"authentication"},{"id":51,"name":"bundler","display_name":"Bundler","slug":"bundler"},{"id":41,"name":"chatbot","display_name":"Chatbot","slug":"chatbot"},{"id":27,"name":"cloud-native","display_name":"Cloud native","slug":"cloud-native"},{"id":1,"name":"computer-vision","display_name":"Computer vision","slug":"computer-vision"},{"id":37,"name":"crypto-trading","display_name":"Crypto trading","slug":"crypto-trading"},{"id":57,"name":"curated-list","display_name":"Curated list","slug":"curated-list"},{"id":54,"name":"data-streaming","display_name":"Data streaming","slug":"data-streaming"},{"id":35,"name":"data-visualization","display_name":"Data visualization","slug":"data-visualization"},{"id":16,"name":"database-backup","display_name":"Database backup","slug":"database-backup"},{"id":49,"name":"design-system","display_name":"Design system","slug":"design-system"},{"id":38,"name":"digital-human","display_name":"Digital human","slug":"digital-human"},{"id":34,"name":"document-processing","display_name":"Document processing","slug":"document-processing"},{"id":44,"name":"ecommerce","display_name":"E-commerce","slug":"ecommerce"},{"id":45,"name":"emulator","display_name":"Emulator","slug":"emulator"},{"id":46,"name":"file-management","display_name":"File management","slug":"file-management"},{"id":32,"name":"fintech","display_name":"Fintech","slug":"fintech"},{"id":31,"name":"game-development","display_name":"Game development","slug":"game-development"},{"id":24,"name":"headless-browser","display_name":"Headless browser","slug":"headless-browser"},{"id":52,"name":"headless-cms","display_name":"Headless CMS","slug":"headless-cms"},{"id":36,"name":"home-automation","display_name":"Home automation","slug":"home-automation"},{"id":20,"name":"image-editing","display_name":"Image editing","slug":"image-editing"},{"id":28,"name":"iot","display_name":"IoT","slug":"iot"},{"id":13,"name":"local-llm","display_name":"Local LLM","slug":"local-llm"},{"id":17,"name":"mcp","display_name":"MCP","slug":"mcp"},{"id":47,"name":"monitoring","display_name":"Monitoring","slug":"monitoring"},{"id":2,"name":"nlp","display_name":"NLP","slug":"nlp"},{"id":26,"name":"observability","display_name":"Observability","slug":"observability"},{"id":40,"name":"pentesting","display_name":"Pentesting","slug":"pentesting"},{"id":48,"name":"programming-examples","display_name":"Programming examples","slug":"programming-examples"},{"id":42,"name":"proxy","display_name":"Proxy","slug":"proxy"},{"id":14,"name":"rag","display_name":"RAG","slug":"rag"},{"id":56,"name":"resume-building","display_name":"Resume building","slug":"resume-building"},{"id":33,"name":"robotics","display_name":"Robotics","slug":"robotics"},{"id":30,"name":"search","display_name":"Search","slug":"search"},{"id":43,"name":"self-hosted","display_name":"Self-hosted","slug":"self-hosted"},{"id":50,"name":"static-analysis","display_name":"Static analysis","slug":"static-analysis"},{"id":18,"name":"synthetic-data","display_name":"Synthetic data","slug":"synthetic-data"},{"id":19,"name":"text-to-speech","display_name":"Text to speech","slug":"text-to-speech"},{"id":53,"name":"ui-components","display_name":"UI components","slug":"ui-components"},{"id":15,"name":"vector-database","display_name":"Vector database","slug":"vector-database"},{"id":21,"name":"video-editing","display_name":"Video editing","slug":"video-editing"},{"id":25,"name":"web-scraping","display_name":"Web scraping","slug":"web-scraping"},{"id":55,"name":"webassembly","display_name":"WebAssembly","slug":"webassembly"},{"id":23,"name":"workflow-automation","display_name":"Workflow automation","slug":"workflow-automation"}]" returns me the "expected json"