Avrorouter is a MariaDB 10.0 binary log to Avro file converter. It consumes binary logs from a local directory and transforms them into Avro files, which can then be queried by clients.
It can be used in two ways:
- In tandem with Binlog Server: The Binlog Server connects to a primary server and requests binlog records, which the avrorouter consumes directly from the Binlog Server's binlog cache. This allows MaxScale to automatically transform binlog events on the primary into local Avro format files.
- Directly from the primary: The avrorouter consumes binary logs straight from the primary server. This removes the need for a Binlog Server but increases the disk space requirement on the primary server by at least a factor of two.
Clients communicate with the avrorouter using the CDC protocol, which is currently the only supported protocol. Clients can request data streams in either Avro or JSON format from a database table.