GithubHelp home page GithubHelp logo

MySQL Binlog subscriber about watermill HOT 9 OPEN

threedotslabs avatar threedotslabs commented on July 4, 2024 5
MySQL Binlog subscriber

from watermill.

Comments (9)

njern avatar njern commented on July 4, 2024

Do you guys have thoughts around tapping into the PostgreSQL equivalent (a WAL subscriber) ?

from watermill.

m110 avatar m110 commented on July 4, 2024

I guess logical decoding could be used, as in debezium: https://debezium.io/docs/connectors/postgresql/
Although I'm not sure if there is a library for Go at the moment.

from watermill.

joeblew99 avatar joeblew99 commented on July 4, 2024

@roblaszczak
i would not use any of the Deebzium stuff. I dont like its approach.

for MySQL use this: https://github.com/uber/storagetapper

for PostreSQL use thunder: https://github.com/samsarahq/thunder/blob/v0.5.0/livesql/binlog.go

let me know if your curious

from watermill.

roblaszczak avatar roblaszczak commented on July 4, 2024

@joeblew99 for now simple sql-queries based subscriber is available: https://github.com/ThreeDotsLabs/watermill-sql

We have in plans add also Binlog based subscriber, but we need more time and be sure that this simple implementation is stable :)

from watermill.

joeblew99 avatar joeblew99 commented on July 4, 2024

from watermill.

roblaszczak avatar roblaszczak commented on July 4, 2024

@joeblew99 so creating docs is in progress so it may be not clear, but in short:

  • you are able to produce and consume messages from MySQL (but you can extend it for other SQL's if you need) tables
  • it's using just SQL queries, it's slow but fast enough for a lot of projects (for projects where it's not - we will introduce binlog implementation
  • and it's of course fully compatible with Watermill's Pub/Sub, so you can use router, middlewares etc.

from watermill.

joeblew99 avatar joeblew99 commented on July 4, 2024

@roblaszczak Thanks and this all makes sense.

from watermill.

0michalsokolowski0 avatar 0michalsokolowski0 commented on July 4, 2024

I would like to work on it

from watermill.

Jonathan34 avatar Jonathan34 commented on July 4, 2024

@0michalsokolowski0 wondering if you made any promising progress on that? i am probably fine with mysql select queries but just wondering

from watermill.

Related Issues (20)

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.