R
R
Reactive Endpoints with Quarkus on OpenShift
Search…
README
Setup the IBM Cloud Environment
Overview
Access the Cluster
Access IBM Cloud Shell
Setup the sample application
Exercise 1 - Deploy the example application via one script
YouTube - How to setup the sample application (optional)
Build a new version of the Microservice
Exercise 1 - Develop reactive Endpoints
Exercise 2 - Invoke Endpoints reactively
Exercise 3 - Deploy Service to OpenShift
Exercise 4 (optional) - Use distributed Logging
YouTube Videos related to the Exercises
Exercise 1 - Develop reactive Endpoints (optional)
Exercise 2 - Invoke Endpoints reactively (optional)
Exercise 3 - Deploy Service to OpenShift (optional)
Exercise 4 - Use distributed Logging (optional)
Additional Resources
Blog posts related to reactive
Workshop: Reactive Messaging with Quarkus on OpenShift
Cloud-Native-Starter project
Cloud-Native-Starter project reactive
Known Issues
Quarkus needs Apache Maven 3.6.2+
Powered By
GitBook
Exercise 1 - Deploy the example application via one script
In this short exercise you'll deploy Kafka, PostgreSQL, and the Microservices of the reactive example via a script and test the example application.
Step 1: Deploy the example application
Invoke the following command:
1
bash
~/cloud-native-starter/reactive/os4-scripts/deploy-example.sh
Copied!
The deployment takes approximately
10 minutes
.
The script console output shows links to the Microservices and the Web-App at the end of the execution.
The following
35 sec
YouTube video shows a example execution of the script and the test of the application.
​
​
​
​
Step 2: Launch the web application
To launch the web application get the URL from the last output and open the application in a browser.
web-app-url
Step 3: Copy the curl command
Copy the curl command to create a new article and insert it into your current terminal session.
create-articles-curl
Step 4: Test the example application
Open the web application in a browser. Then invoke the curl post command. The web application should show the new entry.
verify-app6
Step 5 (optional): Verify the deployed PostgreSQL
You can check the status via the OpenShift web console. On the 'Pods' page select the 'postgres' project.
postgres-verify
Step 6 (optional): Verify the deployed Kafka
You can check the status via the OpenShift web console. On the 'Pods' page select the 'kafka' project.
kafka-deployment2
Step 7 (optional): Verify the deployed Services and Web Application
Make sure all four pods in the 'cloud-native-starter' project are running.
verify-app1
The previous steps have create build configs, builds and image streams.
verify-app2
verify-app3
verify-app4
Setup the IBM Cloud Environment - Previous
Access IBM Cloud Shell
Next - Build a new version of the Microservice
Exercise 1 - Develop reactive Endpoints
Last modified
1yr ago
Copy link
Contents
Step 1: Deploy the example application
Step 2: Launch the web application
Step 3: Copy the curl command
Step 4: Test the example application
Step 5 (optional): Verify the deployed PostgreSQL
Step 6 (optional): Verify the deployed Kafka
Step 7 (optional): Verify the deployed Services and Web Application