tree: 237996bfed3c0fb71fc7dc85ed791faa766af3e3 [path history] [tgz]
  1. conversion-workflow/
  2. conversion-workflow-full/
  3. conversion-workflow-function/
  4. conversion-workflow-spec/
  5. kubernetes/
  6. multiplication-service/
  7. subtraction-service/
  8. pom.xml
  9. README.md
serverless-workflow-examples/serverless-workflow-temperature-conversion/README.md

Serverless Workflow Temperature Conversion - Services Orchestration Example

In this example we demonstrate a simple workflow that calls two distinct services via REST. The workflow aims to solve an equation that converts a given Fahrenheit temperature value into Celsius.

The figure below illustrates the architecture:

                                      +-------------+  
                                      |             |  
                                      | Subtraction |  
                                   -->| Service     |  
+-------------+               ----/   |             |  
|             |         -----/        +-------------+  
| Temperature |    ----/                               
| Conversion  | --/                                    
| Service     |--\                                     
|             |   ---\                                 
+-------------+       ---\          +-----------------+
                          ---\      |                 |
                              ---\  |  Multiplication |
                                  ->|  Service        |
                                    |                 |
                                    +-----------------+
  1. The Temperature Conversion service expects a Fahrenheit value as input
  2. The workflow then calls the Subtraction service to perform the first computation step
  3. The difference of the previous subtraction is used as input to the Multiplication service
  4. The resulting product is the converted temperature to Celsius

Please see each service README file to understand how to use and run them locally:

  1. Temperature Conversion Service
  2. Multiplication Service
  3. Subtraction Service

You can also find alternative OpenAPI endpoint configuration approaches for the Temperature Conversion workflow: