# alibaba/MongoShake

MongoShake is a universal data replication platform based on MongoDB's oplog. Redundant replication and active-active replication are two most important functions. 基于mongodb oplog的集群复制工具，可以满足迁移和同步的需求，进一步实现灾备和多活功能。

Repository: https://github.com/alibaba/MongoShake
Canonical: https://ross.abutalabs.com/products/mongoshake
Language: Go
License: GPL-3.0
License Family: copyleft
Topics: mongo-database, mongodb-oplog, replication, active-active, mongoshake
Last push: 2026-07-27T02:05:30+00:00

## Health v2 (maintenance only)
Score: 82/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 94, release rhythm 57, longevity 100
- inputs: {"age_days": 2989, "days_push": 38, "days_rel": 127, "gap_med": 131, "n_releases_24m": 4}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1820, forks 467 (observed 2026-08-28T04:05:40.845105+00:00)

## What it is
MongoShake is a Go-based universal data replication platform built on MongoDB's oplog, fetching changes from a source MongoDB and replaying them into a target database or forwarding them through pluggable tunnels such as RPC, file, TCP, or Kafka. It supports redundant and active-active replication with parallel replication and checkpoint-based high availability.

## Use cases
- migrate data between MongoDB clusters
- set up active-active MongoDB replication
- build a disaster-recovery replica of a MongoDB database
- stream MongoDB oplog changes to Kafka
- sync a sharded MongoDB cluster to another cluster
- subscribe to MongoDB change events in real time

## When to choose
- you need continuous MongoDB-to-MongoDB replication or migration with minimal downtime
- you want to fan out oplog changes to Kafka or custom consumers
- you need parallel, checkpointed replication with high availability

## When to avoid
- your source database is not MongoDB
- you need a simple one-time backup rather than live replication
- you require a fully managed cloud sync service without operating your own tooling

## Facets
- artifact type: service
- maturity: active
- function: database, message-queue, streaming, etl, backup
- domain: databases, microservices, self-hosted
- platform: go, self-hosted
- tags: mongodb, oplog, replication, data-sync, disaster-recovery, active-active, kafka-tunnel, data-engineering, linux, macos, docker

## Member repositories
- alibaba/MongoShake (main) score 82

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:40.845105+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-30T03:19:58.282930+00:00, confidence not recorded.
  - readme: https://github.com/alibaba/MongoShake (fetched 2026-08-28T04:05:40.845105+00:00, sha be98657e2353)
- Data as of 2026-08-30T08:39:29.467469+00:00.
