Skip to content

Instantly share code, notes, and snippets.

@AdamBien
Created January 12, 2022 07:56
Show Gist options
  • Save AdamBien/a0b7e3fb17efc4c2fff4208641c6bc68 to your computer and use it in GitHub Desktop.
Save AdamBien/a0b7e3fb17efc4c2fff4208641c6bc68 to your computer and use it in GitHub Desktop.
95thAirhacksQ&A.md

Ask questions and see you at February, 7th, 8.PM. CET: youtube.com/c/bienadam

Also checkout recent episode:

95th airhacks.tv

Please keep the questions Jakarta EE-stic. Means: as short and as concise as only possible. Feel free to ask several, shorter questions.

Upcoming airhacks.tv events are also going to be announced at meetup.com/airhacks

@jefrog1844
Copy link

jefrog1844 commented Jan 30, 2022

Hi Adam, what are the reasons you would use cdi event and @observes? I'm thinking specifically about communication between boundary and control layers in a b-c-e structure to avoid dependencies between boundaries.

@haglo
Copy link

haglo commented Jan 31, 2022

Hi Adam, we have implemented an CDC with PostgreSQL & Debezium & Kafka.
All works.
What is now the best way to visualize the CRUD statements, which are saved via Debezium in Kafka?

@haglo
Copy link

haglo commented Feb 4, 2022

Hi Adam
have you any experience with WebAssembly.
When i read the documentation of WebAssembly it seems to be a very very good technology.
Write code in Java, Compile native and let it run in browser?

@Vagspath
Copy link

Vagspath commented Feb 6, 2022

Hi Adam,
I'm looking for integrating elastic search in a wildfly with mysql project for improving searching.

First of all , is it better to split my data between mysql and elasticsearch or have elasticsearch as a cache ,which means data duplication?

I have two options for the integration: internally or externally:
a) externally by using A CDC approach like debezium seems good enough but it has an extra complexity ,maintenance mostly, for project administators and i will like to avoid it. Also this approach works only for cache (not if i want to split data between different datastores) , but it provides a good consistency model for me to ensure that if sth commits to mysql will go next to elasticsearch, also if sth goes wrong to ES , i can restore ES storage to a previous ex. one week ES backup and replay the command history and recreate the correct state to ES.. Am I correct on this?

b)In internal integration case: What is the best approach to handle persisting data in elastic search in a specific jee transaction which on sucesfull commit persist data on mysql ? I thought sth like firing CDI event on sucesfull transaction commit which will persist data to ES also and with some scheduled timer checkup periodically if everything is ok between ES and Mysql state. But this also only suitable for cache, not for data split. I would like your opinion for both cache and data split case.

Thanks in advance,

Vaggelis
big fan of the show...

@AdamBien
Copy link
Author

AdamBien commented Feb 7, 2022

Correction: GlassFish vs. Payara

@jefrog1844
Copy link

What is your opinion regarding Mockito vs embedded database for unit testing?

@cbustamantem
Copy link

Hi Adam!! a question, i still have a monolith app with jsf & payara, and my question is you think i can migrate that to quarkus to use the developer mode?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment