Skip to content

Instantly share code, notes, and snippets.

@AdamBien
Created April 13, 2020 05:28
Show Gist options
  • Save AdamBien/3e121e3a8b3f24b9c8d83aa4c2eaac3b to your computer and use it in GitHub Desktop.
Save AdamBien/3e121e3a8b3f24b9c8d83aa4c2eaac3b to your computer and use it in GitHub Desktop.
74thAirhacksQ&A.md

Ask questions and see you at May, 4th, 8.PM. CET: https://vimeo.com/event/19368

Also checkout recent episode:

73rd 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.

@sdaschner
Copy link

And one more on frontend architecture: Your Redux examples model events (e.g. NEW_EVENT_CREATED) which, with the Redux constraints, reminds me a lot of CQRS, and I think really makes sense.

However, the Redux documentation always talks about "actions", and calls them as such (e.g. CREATE_NEW_EVENT), only intentions (which in the CQRS world would be a command), rather than an event, a fact that already happened.

What is your experience, what's more common in real-world projects, and how to model the app, also to not confuse developers familiar with Redux?

@dinolupo
Copy link

dinolupo commented May 4, 2020

Hi Adam,
2 questions for you:

what are in your opinion the pros and cons of choosing Quarkus, Spring or standard Java/JakartaEE app server in an enterprise context? I mean companies where LTS, stability and support continuity are a must.

I’ve seen many times the behavior of running Spring into a full blown JavaEE app server, is that really a bad practice (as in my opinion) or do you think that there could be some hidden reason for that?

Thanks for being such an excellent ambassador of best practices for the Java ecosystem!

@botchk
Copy link

botchk commented May 4, 2020

Hi Adam,

I am currently implementing Debezium + Kafka in one of my projects and I am looking at options for consuming the Debezium Change Events. MicroProfile Reactive Messaging looks really nice for that but I am a bit confused about its place in MicroProfile.

I could find out that it is well supported in Quarkus but I am using Payara + Jakarta EE 8 + MicroProfile and there seems to be no mention of it in the latest MicroProfile version and therefore no Payara support for it. Will Reactive Messaging be fully integrated into MicroProfile in any upcoming releases and application server that support MicroProfile?

Also is the Payara Kafka JCA Connector (https://github.com/payara/Cloud-Connectors/tree/master/Kafka) a good alternative?

@thehpi
Copy link

thehpi commented May 4, 2020

Hi Adam,

Some Payara monitoring questions:

Do I need to enable monitoring to be able to get statistics. I'm asking because if I don't enable it and connect with visualVM I do see e.g. jdbc-connection-pool statistics. But if I connect with jmx_exporter from Prometheus I don't get them.

What is the impact on performance when I enable jdbc-connection-pool monitoring in Payara and get that data e.g using the jmx_exporter from Prometheus. So would it be wise to have this enabled in a production environment? If not how would you monitor the jdbc but also thread pools?

Is there a better way (compared to using jmx) to get the monitoring statistics? Or is e.g. the rest monitoring interface just built on top of the jmx stack?

@thehpi
Copy link

thehpi commented May 4, 2020

If my EJB is thread safe could I use @singleton instead of @stateless? If not what would be the main reasons not to do so?

@GADNT
Copy link

GADNT commented May 4, 2020

Hi Adam,

what are your thoughts about JHipster ?

Thanks and good topics this airhacks edition.
Gabriel

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