Ask questions and see you at October, 3rd at 6.PM. CET: http://www.ustream.tv/channel/adambien Also see archives: airhacks.tv
- Java EE 8 News
- JavaOne San Francisco impressions
Ask questions and see you at October, 3rd at 6.PM. CET: http://www.ustream.tv/channel/adambien Also see archives: airhacks.tv
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.
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"} ?
In the consumer service, where I consume that service should I threat the response json or just the status?
Thank you!
- 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"} ?
How about Status-Code 204 (No Content)?
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:
Any ideas what else should we check? Any help will be very appreciated.
Best regards,
Artur
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
Hi Adam,
which JavaOne 2016 sessions would you recommend for viewing?
Thanks,
Nenad
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!
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.
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 !
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
Hi Adam,
What tool do you recommend to generate Rest API docs?
Thanks,
Anoop
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
Hi Adam, do you have a favorite zero downtime deployment strategy with JEE and docker? Thanks, Ivan
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,
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 ;)
Thanks Michael
(and sunny greetings from the Costa Blanca)
Hi Adam,
What is your point of view about RAML ( restful api modeling language ) for documenting REST APIs ?
Thank's
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