Skip to content

Instantly share code, notes, and snippets.

@AdamBien
Last active October 3, 2016 09:58
Show Gist options
  • Save AdamBien/e6e20c129e673ad558be495dd4f3afc4 to your computer and use it in GitHub Desktop.
Save AdamBien/e6e20c129e673ad558be495dd4f3afc4 to your computer and use it in GitHub Desktop.
31stAirhacksQ&A.md
@roamingthings
Copy link

In the last time I had the feeling that JavaFX is loosing traction and may become obsolete. Is this impression correct or are there new impulses? Is it worth to invest time in learning JavaFX nowadays?

Thanks,
Alex
@fischbauch

@wesleyegberto
Copy link

Hi Adam, firstly thank you for all this content you are providing for the community!

I have two questions about communication between applications using REST.

  1. Which are the best practices out there to design API returns, for instance, a service to verify if a customer has credit.
    Should I return status 200 to show that some customer has credit and a 404 to show that he hasn't? Or should I return an object with the result of verification, like { "status": 0, "return": true, "message": "Has credit"} ?

  2. In the consumer service, where I consume that service should I threat the response json or just the status?

Thank you!

Copy link

ghost commented Sep 25, 2016

  1. Which are the best practices out there to design API returns, for instance, a service to verify if a customer has credit.
    Should I return status 200 to show that some customer has credit and a 404 to show that he hasn't? Or should I return an object with the result of verification, like { "status": 0, "return": true, "message": "Has credit"} ?

Hi @wesleyegberto

How about Status-Code 204 (No Content)?

@arturkowalczyk
Copy link

Hi Adam,

I just wanted to ask you about a small advice how to resolve a problem that we found in one of our projects.

There is a JEE application deployed as .EAR file in WildFly 9.0.2. Sometime after the application server restart it starts to consuming 100% CPU and unfortunately we were not able to find what is the source of the problem. At the moment we are planning to introduce two mechanisms in order to find what is wrong with our app:

  1. logging in GC - to check if there is any problem with the memory consumption,
  2. we are also planning to monitor the system status using MXBeans.

Any ideas what else should we check? Any help will be very appreciated.

Best regards,
Artur

@dwamara
Copy link

dwamara commented Sep 28, 2016

Hi Adam,

I am passing here the question that I asked on youtube after watching the video regarding communication between microservices.
It's not always evident to be able to use Docker on some projects (the company hosting my VPS for example told me that I won't be able to install Docker and use it on the VPS as the virtual machine uses Virtuozzo), what will then be the best (or appropriate) way to make services communicating with one another? As far as I could see on the internet, everybody tends to recommend the use of service registries like Zookeper or Netflix's Eureka.
I tend to not considering them at the moment as using them will IMO "pollute" code (http://blog.arungupta.me/zookeeper-microservice-registration-discovery/), is there a more elegant way to solve that problem?

Beste Grüße,
Daniel

@enji7
Copy link

enji7 commented Sep 28, 2016

Hi Adam,

which JavaOne 2016 sessions would you recommend for viewing?

Thanks,
Nenad

@wesleyegberto
Copy link

Hi @rherschke
Thank you for the answser =) I forgot about that one!

But would be nice to know some common HTTP status for operations like CRUD, verify something, validation errors, business errors or requirements and so on.

Thank you!

@dsurendran
Copy link

Hello Adam,

Saw your talk on infoshare on 'A Code-Driven Microservices Session', you explained about monitoring in Payara using url localhost:4848/monitoring/domain1/server.
How to do same kind of monitoring in Wildfly?

Thank You.

@nebrass
Copy link

nebrass commented Sep 30, 2016

Hello Adam,

I watched recently your great training course about Microservices, which is the most complete one about Java EE & Docker.
I just hope to see "Service Discovery" video, to complete the series ;)

PS: The video about load balancing & docker was wonderful !

Thank you !

@joshgontijo
Copy link

Hi Adam
I would like to hear you opinion on event sourcing. Have you worked in a project that uses this pattern ?

Thanks and keep the good work !
Josh

@anoopk84
Copy link

anoopk84 commented Oct 2, 2016

Hi Adam,

What tool do you recommend to generate Rest API docs?

Thanks,
Anoop

@thomasdarimont
Copy link

Hello Adam,

do you already use the HEALTHCHECK CMD support introduced in docker release 1.12?
https://blog.newrelic.com/2016/08/24/docker-health-check-instruction/

Cheers,
Thomas

@ivanzorcic
Copy link

ivanzorcic commented Oct 2, 2016

Hi Adam, do you have a favorite zero downtime deployment strategy with JEE and docker? Thanks, Ivan

@matlach
Copy link

matlach commented Oct 3, 2016

Hi Adam,

How would you wire programmatically the EntityManager without using persistence.xml file.
Does the only way would be to rely on vendor specific feature? ex, hibernate: http://docs.jboss.org/hibernate/orm/5.1/userguide/html_single/Hibernate_User_Guide.html#bootstrap-jpa-hibernate

Thanks,

@mtrefzer
Copy link

mtrefzer commented Oct 3, 2016

Hi Adam,

I watched your latest screencasts accessing javaee backend with angular2, reactiveJS and native javascript as frontend implementation.
First off all thanks for that, great job as always ;)

  • What's your setup vor ES6 development ? ( webpack, babel, ...)
  • Which javascript libs do you use for unit- and integrationtests ?

Thanks Michael
(and sunny greetings from the Costa Blanca)

@rac021
Copy link

rac021 commented Oct 3, 2016

Hi Adam,

What is your point of view about RAML ( restful api modeling language ) for documenting REST APIs ?

Thank's

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