Coder Social home page Coder Social logo

mia0x75 / wing-binlog-go Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jilieryuyi/wing-binlog-go

0.0 2.0 0.0 256.86 MB

Distributed incremental subscription & Consumption Based on MySQL database binlog

Batchfile 1.19% Shell 1.72% HTML 4.06% JavaScript 9.75% PHP 3.06% Go 72.60% CSS 7.62%

wing-binlog-go's Introduction

wing-binlog-go

This project uses replication protocol to read events from Mysql or MariaDB's binlog build on top of go-mysql, and send json data via Http, TCP or WebSocket. It allows you to receive events like insert, update and delete with the original data.

  • wing-binlog-go is a high performance Mysql/MariaDB middleware
  • wing-binlog-go is a light weight Mysql/MariaDB data watch system

wing-binlog-go can run on OSX, Linux and Windows system.

Installation:

  • On Xnix, run sh build.sh
  • On Windows, run build.bat

Project status The project is test with:

  • Mysql 5.5, 5.6 and 5.7
  • MariaDB 5.5, 10.0, 10.1 and 10.2
  • golang version 1.8+

Important Mysql server settings

[mysqld]
expire_logs_days         = 10
max_binlog_size          = 100M
server-id		 = 1
log_bin			 = /var/log/mysql/mysql-bin.log
binlog-format            = row

The system variables server_id, log_bin and binlog-format are madantory, and row based replication is required for the project.

Features:

  • TCP protocol support
  • WebSocket protocol support
  • Http protocal support
  • Support client group, broadcast, load balance and filters
  • Auto remove bad http node,

Use cases:

  • MySQL to NoSQL replication
  • MySQL to search engine replication, such as elasticsearch
  • Realtime analytics
  • Audit

Usage:

  • Help: ./wing-binlog-go -help
  • Start service: ./wing-binlog-go
  • Show version information: ./wing-binlog-go -version
  • Stop service: ./wing-binlog-go -stop
  • Reload service: ./wing-binlog-go -service-reload all|http|tcp|websocket

Known issues:

  1. The underlying package go-mysql does not support compressed binlog
  2. Schema changes after initial binlog position may cause incorrect json package

Special thanks:

Contributors

  • jilieryuyi
  • mia0x75

Help:

QQ group: 535218312

wing-binlog-go's People

Contributors

jilieryuyi avatar mia0x75 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.