and1truong / bin2hub

MySQL binlog -> Azure EventHub.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

bin2hub

Feeding events from MySQL binlog to EventHubs.

Check config.json, make sure all environments variables are provided.

Run the application:

CONFIG=./config.json go run ./cmd/main.go

Event schema

{
    "type": "object",
    "properties": {
        "database": { "type": "string" },
        "table":    { "type": "string" },
        "payload":  { "type": "object" }
    }
}

About

MySQL binlog -> Azure EventHub.


Languages

Language:Go 94.4%Language:Dockerfile 5.6%