Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
101stAirhacksQ&A.md

Ask questions and see you at August, 1st, 8.PM. CET: youtube.com/c/bienadam

Also checkout recent episode:

100th 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

@AdamBien
Copy link
Author

AdamBien commented Jul 5, 2022

New agenda point / history lesson: a short review of topics 100 episodes ago: http://adambien.blog/roller/abien/entry/1st_airhacks_q_a_and

@mkwapisz
Copy link

mkwapisz commented Jul 6, 2022

Hi Adam,
can you explain/comment lack of consistent API/tools for testing Jakarta EE based applications? I do not know why specifications are prepared without testing in mind. You have to prepare your own project configurations (maven) like for example for rest endpoints: jetty+jersey+mockito. Or you have to use proprietary maven plugins for application servers to control their lifecycle during a maven build. The only good solution I know is Weld Junit which nicely allows you to test cdi components. But this is not a standard and covers only one technology and implementation out of hundred. I hate arquillian which always generates many problems for me and I have to fight with project configurtation instead of a project itself.

Regards.

@dempile
Copy link

dempile commented Jul 12, 2022

Hi Adam, congratulations for 100'th episodes of Airhacks.
My question is about concurrency. I have a Jax-rs endpoint with @post method that needs to be accessed in a concurrent way, so I have put it in @singleton EJB of a @ApplicationScoped CDI Bean . All this is deployed in a cluster of application servers.
With ApacheBench I have experienced a complete stop of that specific endpoint as it was saturated, all the application is responding except this endpoint.
Can you please show us the right way to implement this kind of architecture. I was thinking of externalizing this endpoint in a Quarkus microservice.
Thanks

@karlkilden
Copy link

karlkilden commented Jul 20, 2022

Do you ever do dependency inversion? Why/why not? The problem with interfaces is when they are useless, but dependency inversion is useful

@paloliska
Copy link

paloliska commented Jul 25, 2022

Hi Adam,
We are writing quarkus rest app. We are thinking about replacing @QuarkusTest with something, which will work even if we remove quarkus dependencies, like you did in video Quarkus vs. WildFly What you would suggest?

@anders97-q
Copy link

anders97-q commented Aug 1, 2022

Hi Adam,

We have a quarkus based app. It's all reactive using Mutiny. We're also using MongoDB. My question is related to security, authorization specific.
We have our own authorization service. Users are authorized using roles and their permissions. These permissions (for e.g. list.users), can have different constraints for e.g. only list users that begin with a specific character.
So a user role in application can have assigned permission "list.users" but under constraint that he can see only users that begin with specific character.

For every request we build a @RequestScoped class that holds information about current request info (even role and permission and any constraint if any).

Any suggestion from you, how can we implement such case without having to write IF conditions all over the place?
Is there any way to maybe somehow "intercept" mongo queries and add custom Filter based on constraint.
Architecture: We have a rest resource, then a service layer and the repo layer. Where do you think is the best place to build mongo query filters, or how do you think we should approach to resolve this issue?

I couldn't find a way in Quarkus to intercept the mongo query and maybe modify at runtime.

Thanks a lot,
Best regards

@senleft
Copy link

senleft commented Aug 8, 2022

Hi Adam,

I need to understand what exact application version is deployed to the target environment (dev, prod).
One of the solutions could be the endpoint that returns the commit id.
How do you address it on your projects?

Kind regards, Aleksandr

@jogueber
Copy link

jogueber commented Aug 8, 2022

Hi Adam,
have you looked into something like sops for managing your secrets safely in GIT ?
If yes how you integrate that with a java application ?
We experimented with using terragrunt to mount the sops file into the environment.
We really like to also manage our secrets in git obviously we can also store them in SSM but we found that less appealing. What is your preference here?

Best wishes
Johannes

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