# Tencent/flare

Flare是广泛投产于腾讯广告后台的现代化C++开发框架，包含了基础库、RPC、各种客户端等。主要特点为易用性强、长尾延迟低。

Repository: https://github.com/Tencent/flare
Canonical: https://ross.abutalabs.com/products/tencent-flare
Language: C++
License: NOASSERTION
License Family: other
Last push: 2026-07-03T02:47:55+00:00

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

## Adoption (not part of the score)
Stars 1404, forks 208 (observed 2026-08-28T04:04:38.020002+00:00)

## What it is
Flare is a modern C++20 backend service development framework from Tencent, widely used in production for Tencent Ads with tens of thousands of running instances. It provides an RPC framework, user-space fibers with an M:N threading model, streaming RPC, and a rich base library with low tail latency as a key design goal.

## Use cases
- build high-performance C++ backend microservices
- write async services with synchronous-style code using fibers
- implement streaming RPC between services
- reduce tail latency in latency-sensitive ad-serving backends
- develop services with built-in service discovery, load balancing, and tracing
- mock RPC, Redis, and HTTP dependencies in unit tests

## When to choose
- you are building C++ backend services on Linux and want an all-in-one RPC and base library framework
- you need low tail latency and high throughput under modern hardware (NUMA, object pools, zero-copy buffers)
- you prefer synchronous-style code with async performance via fibers
- you want a battle-tested framework with strong documentation, testing utilities, and debugging support

## When to avoid
- your stack is not C++ or you target platforms other than Linux/macOS
- you need a framework with a large third-party ecosystem or non-BSD licensing constraints
- your team cannot adopt C++20 (GCC 11+ / recent Apple Clang required)
- you only need a lightweight HTTP server or client without a full service framework

## Facets
- artifact type: framework
- maturity: stable
- function: rpc, web-framework, http-client, concurrency, tracing, monitoring, testing, serialization, middleware
- domain: backend, microservices, developer-tools, web-development
- platform: cpp
- tags: cpp20, fiber, micro-threading, high-performance, rpc-framework, tencent, advertising-backend, numa-aware, streaming-rpc, linux, macos

## Member repositories
- Tencent/flare (main) score 73

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:38.020002+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-30T04:38:49.494895+00:00, confidence not recorded.
  - readme: https://github.com/Tencent/flare (fetched 2026-08-28T04:04:38.020002+00:00, sha 77f09b00def4)
- Data as of 2026-08-30T08:39:29.467469+00:00.
