# XiaoMi/Gaea

Gaea is a mysql proxy, it's developed by xiaomi b2c-dev team.

Repository: https://github.com/XiaoMi/Gaea
Canonical: https://ross.abutalabs.com/products/gaea
Language: Go
License: Apache-2.0
License Family: permissive
Topics: middleware, database
Last push: 2026-03-18T20:52:48+00:00

## Health v2 (maintenance only)
Score: 55/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 72, release rhythm 8, longevity 100
- inputs: {"age_days": 2660, "days_push": 168, "days_rel": 712, "gap_med": null, "n_releases_24m": 1}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2765, forks 450 (observed 2026-08-28T04:07:18.630731+00:00)

## What it is
Gaea is a MySQL-protocol database middleware proxy developed by Xiaomi's B2C dev team. It provides sharding (database and table partitioning), SQL routing, read-write splitting, and multi-tenant management, compatible with MyCat and Kingshard routing schemes.

## Use cases
- shard mysql tables across multiple databases
- split mysql reads and writes across replicas
- proxy mysql connections with load balancing
- manage multi-tenant mysql clusters
- route sql queries to correct shards
- filter and intercept sql statements
- monitor slow sql queries

## When to choose
- you need transparent mysql sharding without changing application code
- you want read-write splitting with replica load balancing
- you need multi-tenant mysql proxying with hot config reload
- you want mycat or kingshard compatible routing

## When to avoid
- you use a database other than mysql
- you need distributed transactions, which are still on the roadmap
- you prefer built-in database sharding like vitess-managed clusters or cloud-native solutions

## Facets
- artifact type: service
- maturity: active
- function: database, middleware, routing, caching, monitoring
- domain: databases, backend, microservices, self-hosted
- platform: go, self-hosted
- tags: mysql-proxy, sharding, read-write-splitting, sql-routing, database-middleware, multi-tenant, linux, docker

## Member repositories
- XiaoMi/Gaea (main) score 55

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:18.630731+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-30T08:16:46.052038+00:00, confidence not recorded.
  - readme: https://github.com/XiaoMi/Gaea (fetched 2026-08-28T04:07:18.630731+00:00, sha 85c664eff7a8)
- Data as of 2026-08-30T08:39:29.467469+00:00.
