Instantly share code, notes, and snippets.

Embed
What would you like to do?
53rdAirhacksQ&A.md
@alibttb

This comment has been minimized.

Show comment
Hide comment
@alibttb

alibttb Jul 14, 2018

Hello Adam,

Thank you for the great content, I've learned about BCE from your videos and talks, and thanks to you I've used that in 3 projects with success.

Now I'm facing a situation for the first time, I'm doing two projects with javaee7 with Jax-rs communications between them, my question is how to organize code.

The entity package of each business component has common classes they are used in both, my question is how to package the common entity classes, as they are JPA beans and messages with @XmlRootElement that are transferred as JSON to some clients but used as objects in the other jee client.
Thank you.

alibttb commented Jul 14, 2018

Hello Adam,

Thank you for the great content, I've learned about BCE from your videos and talks, and thanks to you I've used that in 3 projects with success.

Now I'm facing a situation for the first time, I'm doing two projects with javaee7 with Jax-rs communications between them, my question is how to organize code.

The entity package of each business component has common classes they are used in both, my question is how to package the common entity classes, as they are JPA beans and messages with @XmlRootElement that are transferred as JSON to some clients but used as objects in the other jee client.
Thank you.

@rniestroj

This comment has been minimized.

Show comment
Hide comment
@rniestroj

rniestroj Jul 18, 2018

Hello,
question: we're building small to medium webapps as monoliths. Our frontend framework is Apache Wicket (it's conceptually something like JSF - serverside, component framework). A redeploy cycle (Maven clean & build & redeploy on WildFly) takes 40 to 80 seconds depending on the size of the project and the dev machine.
How much would we gain if we would move to a REST backend and JS frontend in terms of time? I was looking at some angular movies and some of your movies and i see a Web Development Server being used and the changes made in the JS frontend are visible instantenously. Would we really reduce that 1 minut redeploy cycle to see a change to let's say 3 seconds when changing something in javascript and see the results in the browser immediately?

rniestroj commented Jul 18, 2018

Hello,
question: we're building small to medium webapps as monoliths. Our frontend framework is Apache Wicket (it's conceptually something like JSF - serverside, component framework). A redeploy cycle (Maven clean & build & redeploy on WildFly) takes 40 to 80 seconds depending on the size of the project and the dev machine.
How much would we gain if we would move to a REST backend and JS frontend in terms of time? I was looking at some angular movies and some of your movies and i see a Web Development Server being used and the changes made in the JS frontend are visible instantenously. Would we really reduce that 1 minut redeploy cycle to see a change to let's say 3 seconds when changing something in javascript and see the results in the browser immediately?

@rieckpil

This comment has been minimized.

Show comment
Hide comment
@rieckpil

rieckpil Jul 21, 2018

Hi Adam,

  1. What's your favorite approach for generating PDF documents based on templates with Java EE? I am looking for a templating solution (e.g. Word, HTML) which is able to replace some variables and render the result to a PDF. The use case is, for example, the generation of a contract based on some input values. It would be nice if my business could create the pixelperfect templates by themselves. I already tried Jasper Reports and Thymeleaf HTML templates.

  2. How would you implement rate limiting if you are a vendor of an API? Let's say every customer gets and API key and gets access to request /api/v1/duke 1000 x a day/month/year? Should I use a servlet filter or write a custom interceptor?

See you at the upcoming airhacks workshop in December!

Philip

rieckpil commented Jul 21, 2018

Hi Adam,

  1. What's your favorite approach for generating PDF documents based on templates with Java EE? I am looking for a templating solution (e.g. Word, HTML) which is able to replace some variables and render the result to a PDF. The use case is, for example, the generation of a contract based on some input values. It would be nice if my business could create the pixelperfect templates by themselves. I already tried Jasper Reports and Thymeleaf HTML templates.

  2. How would you implement rate limiting if you are a vendor of an API? Let's say every customer gets and API key and gets access to request /api/v1/duke 1000 x a day/month/year? Should I use a servlet filter or write a custom interceptor?

See you at the upcoming airhacks workshop in December!

Philip

@ssr7

This comment has been minimized.

Show comment
Hide comment
@ssr7

ssr7 Jul 28, 2018

Hi Adam,
I want to start project that like storj.io (decentralized cloud storage network ). So i research for programming language for this type of project and i understood that Go lang is used in Storj, IPFS and Sia . Would i ask a several question?
1- Why with using java or Scala is not good? (I before ask question of Storj programmer and he said: "Java is one of the worst languages for powerful and stable software. The resource handling is less than optimal and especially the overhead slows things down drastically." )

2- Does java or Scala is good for this type of project or C, C++ or Go lang is good?
3- Which of java platform is good for this type of project (this project contains Blockchian, encrypt file and split it and send to nodes and aggregate file from several nodes and decrypt file and report send and receive of each nodes to center server.)
Thanks.

ssr7 commented Jul 28, 2018

Hi Adam,
I want to start project that like storj.io (decentralized cloud storage network ). So i research for programming language for this type of project and i understood that Go lang is used in Storj, IPFS and Sia . Would i ask a several question?
1- Why with using java or Scala is not good? (I before ask question of Storj programmer and he said: "Java is one of the worst languages for powerful and stable software. The resource handling is less than optimal and especially the overhead slows things down drastically." )

2- Does java or Scala is good for this type of project or C, C++ or Go lang is good?
3- Which of java platform is good for this type of project (this project contains Blockchian, encrypt file and split it and send to nodes and aggregate file from several nodes and decrypt file and report send and receive of each nodes to center server.)
Thanks.

@surendrand

This comment has been minimized.

Show comment
Hide comment
@surendrand

surendrand Aug 5, 2018

Hello Adam,

What is the ideal use case to use Reactive Extensions (RxJava/RxJS)?
Most of the projects are simple CRUD operations of reading from DB (or aggregate data from two/three different source at max) and populate a Single Page App (forms/table/graphs). How does Rx help in these projects?

Thanks,
Surendran

surendrand commented Aug 5, 2018

Hello Adam,

What is the ideal use case to use Reactive Extensions (RxJava/RxJS)?
Most of the projects are simple CRUD operations of reading from DB (or aggregate data from two/three different source at max) and populate a Single Page App (forms/table/graphs). How does Rx help in these projects?

Thanks,
Surendran

@ScottHamiltonSite

This comment has been minimized.

Show comment
Hide comment
@ScottHamiltonSite

ScottHamiltonSite Aug 6, 2018

Hi Adam,

I'm starting a Java EE 7 project that will need to process messages from a JMS provider. The app needs to be able to determine the message type, then completely parse, validate, and persist each message before displaying certain attributes to a HTML5 front end. There are over 100 message types (representing various sensor data) and somewhat complex business rules on how to handle chunks of missing or conflicting data. The messages will usually come in at a rate of a few per second, though sometimes there will be bursts of higher volume. Can you please go over any architectural/design considerations or recommendations for building something like this?

Also, any special considerations on how to test performance of microservices - either individually or app as a whole?

Thanks!

ScottHamiltonSite commented Aug 6, 2018

Hi Adam,

I'm starting a Java EE 7 project that will need to process messages from a JMS provider. The app needs to be able to determine the message type, then completely parse, validate, and persist each message before displaying certain attributes to a HTML5 front end. There are over 100 message types (representing various sensor data) and somewhat complex business rules on how to handle chunks of missing or conflicting data. The messages will usually come in at a rate of a few per second, though sometimes there will be bursts of higher volume. Can you please go over any architectural/design considerations or recommendations for building something like this?

Also, any special considerations on how to test performance of microservices - either individually or app as a whole?

Thanks!

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