Skip to content

Alibaba mysql database binlog incremental subscription & consumer components Canal's node js client[阿里巴巴mysql数据库binlog的增量订阅&消费组件 Canal 的 node js 客户端 ] https://github.com/alibaba/canal

Notifications You must be signed in to change notification settings

marmot-z/canal-nodejs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Canal Nodejs

此应用是 node js 版本的 Canal 客户端。

它可以让你在 node js 环境中对 MySQL 数据库中的数据进行增量订阅 & 消费。更多信息请看 Canal wiki

Quick Start

  1. 启动 canal-server

    cd ./docker && docker-compose up

  2. 启动 nodejs canal client

    node ../example/quick-start.js

  3. 修改 MySQL 表记录观察控制台输出

    docker exec -it mysql-8.0 bash
    mysql -u root -p 123456
    use test;
    insert into user values(null, 'canal');
  4. 观察控制台输出

    Insert: 
    id : 4   update = true
    name : canal   update = true
    ----------------------
    

About

Alibaba mysql database binlog incremental subscription & consumer components Canal's node js client[阿里巴巴mysql数据库binlog的增量订阅&消费组件 Canal 的 node js 客户端 ] https://github.com/alibaba/canal

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published