Skip to content

Instantly share code, notes, and snippets.

@AdamBien
Last active February 6, 2023 19:16
Show Gist options
  • Save AdamBien/d5e03decb40c390ff44c1a41de52657c to your computer and use it in GitHub Desktop.
Save AdamBien/d5e03decb40c390ff44c1a41de52657c to your computer and use it in GitHub Desktop.
107thAirhacksQ&A.md

Ask questions and see you at February 6, 8 pm CET: youtube.com/c/bienadam

Also checkout recent episode:

106th airhacks.tv

Please keep the questions as short and as concise as only possible. Feel free to ask several, shorter questions. I will also cover some questions in my "shorts" https://youtube.com/playlist?list=PLxU9yM-_yPs8xqd8Yu4ecpVwiUD_1Xv4N between the shows.

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

New: the airhacks.tv discord server: https://discord.com/invite/airhacks

@AdamBien
Copy link
Author

AdamBien commented Jan 4, 2023

Time travel - what questions were asked 100 episodes ago? The 7th airhacks.tv: https://www.adam-bien.com/roller/abien/entry/javaone_news_entitymanagers_sessionscoped_stateful

@waldmaier
Copy link

Hi Adam! Do you know whether in Quarkus the runtime Thread Pool is used when i use Java Stream#paralllel invocation?

@AdamBien
Copy link
Author

"(...) at the 106th i asked about quarkus jar size and embedded web server. Did you change your mind about 'micro jars' + jakartaee servers + docker vs 'fat jars'? (...)" question from: https://discord.com/invite/airhacks

@AdamBien
Copy link
Author

"Thank You for great video with usefull explanation. What will be the time costs for hot deploy of changed code in case when the application is classical monolithic application (like Java EE or Spring based one) ? Will be the application restarted completely or the changed code will be hot swapped only with this approach?" from: https://www.youtube.com/watch?v=_c8ZkSSpdWI&lc=UgxatJ9VbfxZFmiEpLN4AaABAg

@AdamBien
Copy link
Author

"Do you still recommend this approach after almost 10years? Or nowadays do you structure your projects in different way?
Also what structure do you recommend for Spring projects?" from "Structuring Java EE 7 Applications": https://www.youtube.com/watch?v=grJC6RFiB58&lc=Ugws0i_LMrCGSS9aXmx4AaABAg

@scrmtrey91
Copy link

scrmtrey91 commented Jan 30, 2023

How to JPA Multitenancy with JavaEE, Inject, CDI, Payara 5 (not plain hibernate, without spring data) ? Must be transactional out of the box without weird magic.

;)

  • single database server (mysql 8)
  • multiple schemas for tenants (n-schemas)
  • one schema per tenant (n-tables)
  • one schema for storing users, app settings etc (n-tables)..

Maybe some examples and guides or different approache. Thanks.

@wanderer2097
Copy link

How to JPA Multitenancy with JavaEE, Inject, CDI, Payara 5 (not plain hibernate, without spring data) ? Must be transactional out of the box without weird magic.

;)

  • single database server (mysql 8)
  • multiple schemas for tenants (n-schemas)
  • one schema per tenant (n-tables)
  • one schema for storing users, app settings etc (n-tables)..

Maybe some examples and guides or different approache. Thanks.

Interested to see what Adam has to say here, as well. As far as I'm aware - multitenancy is not included in the JPA spec but is supported by provider-specific extensions. You mention Payara - that indicates eclipselink - have you taken a look at the eclipselink solution guide?

@AdamBien
Copy link
Author

AdamBien commented Feb 5, 2023

So what do you think with your experience is a good approach?
Switching tech and increasing horizontal knowledge or sticking to one and going deep with the vertical approach (ajv) question from: https://discord.gg/airhacks

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