https://github.com/lreimer/packtpub-building-javaee8-webservices-section.4
Building Webservices with Java EE 8 - Packt Publishing Video Course Section 4
https://github.com/lreimer/packtpub-building-javaee8-webservices-section.4
javaee8 microservice packt packtpub payara payara-micro webservice
Last synced: 10 months ago
JSON representation
Building Webservices with Java EE 8 - Packt Publishing Video Course Section 4
- Host: GitHub
- URL: https://github.com/lreimer/packtpub-building-javaee8-webservices-section.4
- Owner: lreimer
- License: mit
- Created: 2018-03-29T19:49:47.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-03-29T21:29:45.000Z (over 7 years ago)
- Last Synced: 2025-03-05T15:02:18.000Z (10 months ago)
- Topics: javaee8, microservice, packt, packtpub, payara, payara-micro, webservice
- Language: Java
- Homepage: https://www.packtpub.com/application-development/building-web-services-java-ee-8-video
- Size: 63.5 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Building Web Services with Java EE 8
Section 4: Building Asynchronous Web Services
## Videos
### Video 4.1: Benefits and usage scenarios of asynchronous processing
In this video we are talking about the benefits and possible usage scenarios of asynchronous processing.
### Video 4.2: Implementing asynchronous web services
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 |
### Video 4.3: Using ManagedExecutorService and Server-side Callbacks
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 |
### Video 4.4: Implementing asynchronous web service clients
In this video we are showing how to implement an async REST client.
## Building and Running
```bash
$ mvn clean verify
$ docker build -t async-service:1.0 .
$ docker run -it -p 8080:8080 async-service:1.0
```