https://github.com/infiniticio/infinitic-example-java-hello-world
"Hello World" app (using Java)
https://github.com/infiniticio/infinitic-example-java-hello-world
Last synced: 4 months ago
JSON representation
"Hello World" app (using Java)
- Host: GitHub
- URL: https://github.com/infiniticio/infinitic-example-java-hello-world
- Owner: infiniticio
- Created: 2021-01-22T17:48:59.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2024-12-27T10:15:32.000Z (over 1 year ago)
- Last Synced: 2024-12-27T11:20:33.462Z (over 1 year ago)
- Language: Java
- Homepage:
- Size: 91.8 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Hello World App For Infinitic
The workflow `HelloWorld` takes a `name` string as input and return `"Hello $name!"` using sequentially 2 tasks run on distributed workers:
- a `sayHello` task that takes a `name` string as input and returns `"Hello $name"`
- an `addEnthusiasm` task that takes a `str` string as input and returns `"$str!"`
This repository is described in the [Infinitic documentation](https://docs.infinitic.io/docs/introduction/hello-world).
## Before running
If needed, update credentials in `infinitic.yml`.
You don't need to update `infinitic.yml` if you use a local standalone Pulsar instance. Run this Pulsar instance using `docker compose up`.
## Running services all together
run `./gradlew run`
## Launch
Launch 10 workflows! `./gradlew dispatch` (see Client.java main function)