Coder Social home page Coder Social logo

Debezium Dev Services about quarkus HOT 8 OPEN

lordofthejars avatar lordofthejars commented on June 19, 2024
Debezium Dev Services

from quarkus.

Comments (8)

quarkus-bot avatar quarkus-bot commented on June 19, 2024

/cc @geoand (devservices), @stuartwdouglas (devservices)

from quarkus.

gsmet avatar gsmet commented on June 19, 2024

There is a Debezium extension hosted in the Debezium project.

Maybe it would be a better place for it?

If so, probably a good idea to close this and open an issue on the DBZ side.

from quarkus.

lordofthejars avatar lordofthejars commented on June 19, 2024

from quarkus.

geoand avatar geoand commented on June 19, 2024

What would a generic Debezium extension provide?

from quarkus.

lordofthejars avatar lordofthejars commented on June 19, 2024

from quarkus.

michalvavrik avatar michalvavrik commented on June 19, 2024

Only Devservice to start debezium conneacting to DB devservice and Kafka
devservice

Hello, I don't think you do need a dev service for that, you need processor that configure Debezium connectors https://debezium.io/documentation/reference/stable/connectors/ based on Quarkus extensions configuration like DB Dev Services etc. Is that what you meant @lordofthejars or do you have something else in mind?

Problem with dev service is that it would only work for dev mode, but I think it would be better to be able to just add PG JDBC extension and have configured https://debezium.io/documentation/reference/stable/connectors/postgresql.html#postgresql-example-configuration like it was said here https://www.youtube.com/live/MQR1SLJVpgM?feature=shared&t=2635 and similarly for other connectors.

I'm playing with Debezium these days and I agree it could be much easier if it were integrated. As Debezium project decided to put Outbox extension in here https://github.com/debezium/debezium maybe it would be better to open issue there instead? I'm very much interested in this.

from quarkus.

michalvavrik avatar michalvavrik commented on June 19, 2024

What would a generic Debezium extension provide?

Only Devservice to start debezium conneacting to DB devservice and Kafka
devservice

+1

Ideally Kafka Connect https://debezium.io/documentation/reference/stable/configuration/avro.html#deploying-with-debezium-containers would be integrated with Apicurio Regisry (Dev svc) https://quarkus.io/guides/kafka-schema-registry-avro and so would database connectors so that I don't have to set connection string and start container manually etc.

from quarkus.

michalvavrik avatar michalvavrik commented on June 19, 2024

I have the bandwidth to implement it, and my idea would be to add it in as a quarkiverse project.

That's great. I had a look to Debezium project and Debezium server more carefully now (that is based on Quarkus runtime too) and I still think that if you will propose this in Debezium project, there is a chance this extension will have better quality because you will get review from people who write Debezium and who are obviously using Quarkus so they know thing or two.

For implementing this DevService I would like to find an example of a DevService that waits until other DevServices are up and running.

So the idea is to start Debezium engine when Dev Svcs like Kafka and Dbs are running, but why do you want to isolate it to DEV mode? How is situation different to production mode when you can gather same information in a same fashion? For example if Quarkus application has configured datasource or whether the datasource is configured by Dev Svc, they are still runtime configuration properties available when runtime config setup is complete (well, that's how I read the code, correct me if I'm wrong).

I need this as Debezium needs to start when the DB devservice and the Kafka devservice is up and running.

For Quarkus application, I consumed config props and it works but it's ugly

https://github.com/michalvavrik/current-design-patterns-and-their-practical-impacts/blob/ec6a711df7016102909f1c20396d3b4ce3a89504/theory-change-data-capture/src/main/java/edu/michalvavrik/cdc/DatabaseChangeListener.java#L28

but since you are writing extension that is not a container, but a Java code, you can use lifecycle events to start it / stop or hookup on build items like RunningDevService (bad option). If you really want to produce RunningDevService then I don't know the way and I think you will need to tweak Db Dev Svcs and Kafka to be able to do that (like produce some build item).

There is one else thing - I tried PG Dev Svc and it doesn't work OOTB, I had to set quarkus.datasource.devservices.command=postgres -c wal_level=logical so I think you will need to do more than just consume other dev svcs config, but I don't know Debezium that well.

Good luck!

from quarkus.

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.