# alibaba/otter

阿里巴巴分布式数据库同步系统(解决中美异地机房)

Repository: https://github.com/alibaba/otter
Canonical: https://ross.abutalabs.com/products/otter
Language: Java
License: Apache-2.0
License Family: permissive
Last push: 2024-05-25T10:39:10+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": 4772, "days_push": 830, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 8126, forks 2459 (observed 2026-08-28T04:10:13.784067+00:00)

## What it is
Otter is Alibaba's distributed database synchronization system that parses database incremental logs (via Canal) to replicate data near-real-time between MySQL/Oracle instances across local or remote datacenters. It uses a manager/node architecture with Zookeeper-based coordination and was built for bidirectional (dual-A) replication between geographically separated datacenters.

## Use cases
- sync mysql data between datacenters
- replicate database changes in near real-time
- set up bidirectional replication between two active datacenters
- sync data between china and us datacenters
- stream database binlog changes to another database
- replicate mysql to oracle
- build a distributed database sync pipeline

## When to choose
- you need near-real-time incremental sync between MySQL or Oracle databases
- you need bidirectional (dual-write) replication across geographically distant datacenters
- you want a web-managed, Zookeeper-coordinated sync cluster at large scale

## When to avoid
- you only need simple one-off database migration or backup
- your databases are not MySQL or Oracle
- you want a lightweight single-node CDC tool without a manager/node cluster
- you need sync for non-relational stores like Kafka or search indexes as first-class targets

## Facets
- artifact type: application
- maturity: maintenance
- function: database, etl, streaming, message-queue, web-framework
- domain: databases, microservices, self-hosted
- platform: jvm, self-hosted
- tags: database-replication, cdc, mysql, oracle, canal, zookeeper, cross-datacenter-sync, dual-write, data-engineering, linux, docker

## Member repositories
- alibaba/otter (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:10:13.784067+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-29T17:30:37.106225+00:00, confidence not recorded.
  - readme: https://github.com/alibaba/otter (fetched 2026-08-28T04:10:13.784067+00:00, sha b5069c95e529)
- Data as of 2026-08-30T08:39:29.467469+00:00.
