Mage-OS Database Changelog

View on GitHub

Rust service that connects directly to MySQL as a replication client and aggregates row changes into clean, low-overhead event streams.

Overview

Magento 2's stock materialized-view (mview) indexers attach SQL triggers to core catalog, inventory, and pricing tables. Under heavy ERP imports or flash-sale checkout concurrency, those triggers amplify write latency and cause table lock contention across MySQL.

EcomDev/mage-os-database-changelog takes a fundamentally cleaner approach: it connects to MySQL as a replication subscriber, tails the binary log asynchronously in Rust, and aggregates table changes into compact changelog streams without adding trigger overhead to hot transactions.

Key Advantages

  • Zero write-path trigger penalty: Checkout and catalog writes complete without synchronous trigger inserts into _cl tables.
  • Aggregated change events: Coalesces rapid bursts of updates into clean batches ready for downstream indexers or search pipelines.
  • Production Rust reliability: Minimal memory footprint and predictable latency even on multi-million-SKU stores.

More in Performance Tools

View all Performance Tools →