Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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.

@ulfRossang
Copy link

ulfRossang commented Apr 17, 2020

Hi Adam!

Thanks for your latest airhacks.io with webcomponents. Really good. I know you most often use docker in production for backend. But for the frontend? Do use any webserver like apaches or ngnix?

Or do you have frontend inside docker container?

Kr Ulf

Loading

@alexnerd
Copy link

alexnerd commented Apr 22, 2020

Hello Adam!

Thank you so much for the work that you have been doing for a long time. I recently bought the Effective WebStandards course and it’s truly great. But the last four courses are exclusively about the front-end, the last back-end course was 4 years ago, maybe it is time to return to the back-end? Maybe a Quarkus or something else?

Regards Alex.

Loading

@AdamBien
Copy link
Author

AdamBien commented Apr 24, 2020

Hello Adam!

Thank you so much for the work that you have been doing for a long time. I recently bought the Effective WebStandards course and it’s truly great.
Big thanks!
But the last four courses are exclusively about the front-end, the last back-end course was 4 years ago, maybe it is time to return to the back-end?

I got a lots of requests like: "The backend is clear, but what should we do in the frontend?"
Also: the backend courses are still up-to-date.

Maybe a Quarkus or something else?

Checkout: http://airhacks.live
The next one is going to be about backend :-)

Regards Alex.

cheers,

adam

Loading

@glitchcube
Copy link

glitchcube commented Apr 26, 2020

Hi Adam!

I recently bought Apps with Web Components, redux and lit-html, but haven't watch through the whole course, but I liked the use of snowpack.
When I attended your workshop in December you used rollup.js when we needed to convert existing components to web components. Is snowpack a replacement of rollup.js?

/Frank from Norway :)

Loading

@albert-pa
Copy link

albert-pa commented Apr 28, 2020

Hello Adam,

In BCE pattern, in which package should you put the Microprofile @RegisterRestClient interfaces, and why?

Thank you

Loading

@vanuatoo
Copy link

vanuatoo commented Apr 29, 2020

Hello Adam,

  1. To test RESTful web services we use separate project for implementing system tests. How to measure code coverage in this scenario? In other words, how to measure how many resources/subresources are called from the system tests project?
  2. Could you recommend best practice for implementing OpenAPI documentation in the development process? Goals are:
  • Each developer writes documentation to the API he/she develops
  • During the deployment whole documentation is exposed as a Swagger endpoint

Loading

@dempile
Copy link

dempile commented May 4, 2020

Hi Adam, hope you doing well and stayin at home to do more nice stuff about java as usual
i have three questions,

  1. Im trying to cluster payuara full in Openshift with discovery mode kubernetes with your dockland payara-S2i image, but im strugglin to make it work, when I scale to two instances , the second doesnt find the hazelcast data grid. Instead it work great with Payara-S2i-Micro.

  2. When using the @bulkhead, is it suitable to put it in @ApplicationScoped or @RequestScoped ?

3- How to prevent multiple calls to the same endpoint ? in order to that the application will not slow down or crash

Thanks

Loading

@sdaschner
Copy link

sdaschner commented May 4, 2020

Hi Adam, Thanks for creating the web standard/components video courses, I found them very helpful.

I like the idea of structuring the app with BCE but what confused me is what goes into Entity and Control. I don't get why the reducers, in my eyes more a control, go into the entity package. I think of entities as the nouns in the business domain, e.g. AirhacksEvent or Customer.

I would have expected all the reducers and dispatchers in the control package. If we had real entity classes (the data entries are only anonymous objects), they would have packaged there, right? What's the reasoning behind this?

Loading

@sdaschner
Copy link

sdaschner commented May 4, 2020

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?

Loading

@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!

Loading

@yeahservice
Copy link

yeahservice 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?

Loading

@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?

Loading

@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?

Loading

@GADNT
Copy link

GADNT commented May 4, 2020

Hi Adam,

what are your thoughts about JHipster ?

Thanks and good topics this airhacks edition.
Gabriel

Loading

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