Git Product home page Git Product logo

syncmysqltoelasticsearch's Introduction

SyncMysqlToElasticsearch

介绍

利用Binlog和Kafka实时同步mysql数据到Elasticsearch

项目模块

BinlogMiddleware 1、binlog中间件,负责解析binlog,把变动的数据以json形式发送到kafka队列。

KafkaMiddleware 2、kafka中间件,负责消费kafka队列中的Message,把数据写入Elasticsearch中。

基础服务

(1)Mysql (2)Kafka(用于存放mysql变动消息,存放于Kafka队列) (3)Elasticsearch

使用说明

  1. Demo初始化数据库使用: teemoliu_init.sql
  2. Demo初始化ES索引使用:es_build_index.py
  3. 教程见:https://www.jianshu.com/p/3ebab93ff075

PS:本demo只是简单示例,有很多可以优化的地方,本人也才疏学浅,欢迎大家提建议。

syncmysqltoelasticsearch's People

Contributors

liuzzzzzz avatar

Stargazers

小知了 avatar

Watchers

James Cloos avatar ouyang2312 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.