Skip to content

Instantly share code, notes, and snippets.

@AdamBien
Created February 11, 2022 09:32
Show Gist options
  • Save AdamBien/0b9f2cfc903d92c43c8bd8aa1b605c72 to your computer and use it in GitHub Desktop.
Save AdamBien/0b9f2cfc903d92c43c8bd8aa1b605c72 to your computer and use it in GitHub Desktop.
96thAirhacksQ&A.md

Ask questions and see you at March, 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

@pblakez
Copy link

pblakez commented Feb 19, 2022

Hi Adam have you checked out https://github.com/quarkiverse/quarkus-renarde would like your impressions of it

@thehpi
Copy link

thehpi commented Mar 3, 2022

If I use bean validation and create a class that implements ConstraintValidator<MyAnnotation, TargetType> then I cannot @Inject things here.

Would it be safe to use the programmatic CDI here? So:

CDI.current().select(ClassToFind).get()

If not is there another way to inject beans?

@AdamBien
Copy link
Author

AdamBien commented Mar 6, 2022

"Hi, is there any benefit of using Quarkus developer mode? I've been using Netbeans and for years it has worked well enough for my use cases. I change the code and Netbeans recompiles and locally redeploys the app instantly. I don't find developer mode in Quarkus as anything new. Maybe my microservices are not big (complex) enough to see a huge difference."

A comment from 95th airhacks.tv: https://www.youtube.com/watch?v=3Gtw9fS4PMw

@AdamBien
Copy link
Author

AdamBien commented Mar 6, 2022

"What are the killer use cases of cdi event and @observes"

A comment from 95th airhacks.tv -> https://www.youtube.com/watch?v=3Gtw9fS4PMw

@AdamBien
Copy link
Author

AdamBien commented Mar 6, 2022

Java, Productivity and AWS Lambda clarifications

@dwamara
Copy link

dwamara commented Mar 6, 2022

Hi Adam, it's been a long time since I've asked a question but I'm still following the airhacks faithfully :-)
I am actually working on an online voting system for an African country I'm not allowed to name and one of my biggest concerns is the mean to prevent DDoS.
I am building the entire solution with Quarkus, it will be hosted on Rancher (this is not decided yet) and I would like to know how you will do things if you were in my shoes.

  1. Citizens of that country are supposed to vote from all over the world so the traffic will surely be huge and I don't want to have neither false negative nor false positive in case of high traffic and misinterpret that as DDoS.
  2. How can I configure or implement services to detect and react to DDoS?

Regards,
D.

@FlorinAlexandru
Copy link

Hi Adam,

Is there a way to integrate log4j2 with wildfly?

Can I use only log4j2 as logging infrastructure or under the hood it will delegate to application server logging and log4j will be used only as facade/api?

I know that the logging subsystem can be disabled.

  • What disable means when logging only to stdout?
  • log4j2 will still be able to log to stdout if logging subsystem is disabled?
  • Where is the correct location for jboss-deployment-structure.xml file ?

Regards,
Florin

@thehpi
Copy link

thehpi commented Mar 7, 2022

I need an interceptor to intercept method calls but also use the parameter values to programmatically do metrics (because microprofile metrics cannot (yet) do dynamic tags).

But I don't want to use reflection to everytime find out what parameters there are on a method, and also parameter names are not available by default, and doing positional parameter assumptions is terrible.

Is it possible to create an annotation processor that programmatically creates na interceptor (or decorator?) which then is injected where I use it? The annotation processor then should scan for my (new) annotations used on parameters so I have knowledge about all parameters in my interceptor/decorator.

@altuga
Copy link

altuga commented Mar 7, 2022

What do think about anemic domain model? https://martinfowler.com/bliki/AnemicDomainModel.html

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