# Tencent/phxrpc

A simple C++ based RPC framework.

Repository: https://github.com/Tencent/phxrpc
Canonical: https://ross.abutalabs.com/products/phxrpc
Language: C++
License: NOASSERTION
License Family: other
Last push: 2023-04-07T11:39:11+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 3660, "days_push": 1244, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2032, forks 560 (observed 2026-08-28T04:06:07.745017+00:00)

## What it is
PhxRPC is a compact C++ RPC framework from Tencent's WeChat backend team, using Protobuf as IDL to generate client and server code. It features a half-sync/half-async epoll-based IO model with coroutine workers and built-in adaptive overload protection.

## Use cases
- build a lightweight C++ microservice with protobuf-defined RPC interfaces
- generate client and server stubs from proto files
- handle high-concurrency RPC calls with coroutine workers
- add adaptive overload protection to a C++ backend service
- implement backup request patterns for latency reduction

## When to choose
- you need a tiny, dependency-light C++ RPC framework (450K library)
- you want protobuf-based IDL code generation for C++ services
- you need high QPS on Linux with epoll and coroutine support

## When to avoid
- you need multi-process mode, which is unsupported
- you target Windows or non-Linux platforms
- you want a batteries-included service mesh with service discovery and tracing

## Facets
- artifact type: framework
- maturity: maintenance
- function: rpc, networking, concurrency, middleware
- domain: backend, microservices, developer-tools
- platform: cpp, cli
- tags: protobuf-idl, coroutine, epoll, overload-protection, wechat-team, half-sync-half-async, linux

## Member repositories
- Tencent/phxrpc (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:07.745017+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:59:28.639630+00:00, confidence not recorded.
  - readme: https://github.com/Tencent/phxrpc (fetched 2026-08-28T04:06:07.745017+00:00, sha 669b6dff4417)
- Data as of 2026-08-30T08:39:29.467469+00:00.
