Building Webservices with Java EE 8 - Packt Publishing Video Course Section 4
In this video we are talking about the benefits and possible usage scenarios of asynchronous processing.
In this video we are implementing simple asynchronous web services.
Method | URI | Status | Description |
---|---|---|---|
GET | /api/thread | 200 | Returns request and response threads name |
GET | /api/async | 200 or 503 | Locks the request thread and returns the response thread name or 503 if timeout |
DELETE | /api/async | 204 | Unlocks the previous request thread |
In this video is showing how to use ManagedExecutorService and Server-side Callbacks
to calculate Fibonacci numbers async.
Method | URI | Status | Description |
---|---|---|---|
GET | /api/fibonacci/{i} | 200 | Returns the Fibonacci for i |
In this video we are showing how to implement an async REST client.
$ mvn clean verify
$ docker build -t async-service:1.0 .
$ docker run -it -p 8080:8080 async-service:1.0