Skip to content

Instantly share code, notes, and snippets.

@AdamBien
Last active December 14, 2019 21:52
Show Gist options
  • Save AdamBien/46045e87888329caa3f8c29b2d56f3ea to your computer and use it in GitHub Desktop.
Save AdamBien/46045e87888329caa3f8c29b2d56f3ea to your computer and use it in GitHub Desktop.
69thAirhacksQ&A.md

Ask questions and see you at December, 9th, 8pm CET: http://www.ustream.tv/channel/adambien

Also checkout recent episode:

68 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.

@cbustamantem
Copy link

Hi Adam!!
What would be the best practice for this issue, i have several microservices proyects, and each one require some parts of others, Example, the service of Credits, requiere the entities of the clients service, and so on, for that reason, my solution was to create a common project for each service, (client-commons, credits-commons) when i need a entity or a data structure from another i use the "commons parts" like a maven dependency, is any other elegant solution for this?

Thanks.

@ares3
Copy link

ares3 commented Dec 2, 2019

Hi Adam,
thanks for providing this very informatic and pragmatic content to the community. Also airhacks.fm makes my way to the office nice.

You mentioned in one of your last episodes that you are building a hardware cluster. How is the status? Could you please provide a little bit more information about this project.

In the past you had an episode where you bought your private server hardware, I found this episode also very interesting.

Thank you!

@robert-niestroj
Copy link

robert-niestroj commented Dec 3, 2019

Hi,
question about microservices architecture and reporting. Let's say you are doing software for the environmental ministry have following domian-oriented microservices and :

  • companies
  • water
  • air
  • wastes
  • forests

Now you need to do a report for a certain company which does buisness in air and water. The report needs to be exported to PDF or Excel.

How you design this?
Where you put the logic for aggregating data from 3 microservices?
Where you have the components to export data to Excel or PDF?
Does each microservices have Apache POI for Excel and iText for PDF creation?

@sjetesjete
Copy link

Hi Adam,
could you please comment on https://thoughts-on-java.org/dont-expose-entities-in-api/ ? What are your experiences towards that?

Greetings from Frankfurt am Main.

@whyvrafvr
Copy link

whyvrafvr commented Dec 9, 2019

Hi Adam.

Thanks a lot for your work, you’re awesome 😎!

Do you know if it possible to use Microprofile config with DataSource annotation?
Payara offers a specific Tag ${MPCONFIG-foo} but it’s necessary to declare the variable foo using asadmin command line.
I guess we cannot use the default property file at the present time.

Working with docker and Kubernetes, we’ve decided to use environment variables but if you have a tip about using the microprofile properties, that’s perfect 👌

@ciment7
Copy link

ciment7 commented Dec 9, 2019

Hi Adam,
Do you have some experience how to protect open api endpoint generated by microprofile library to fetch open api files?
I don`t want to expose my API on production.

Thanks

@srnjak
Copy link

srnjak commented Dec 14, 2019

Hi Adam,

I have a project, where JUnit5 is used as testing framework. I would like to add some integration tests for JAX-RS functionality. After searching on internet, it became obvious that Arquillian doesn't support this version of JUnit.

What would be the best approach to make it possible to run Arquillian?
I was thinking about having JUnit5 and 4 as testing dependencies in the same project, but - is that even possible?

Thanks

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