42 lines
873 B
Plaintext
42 lines
873 B
Plaintext
== Register a Function:
|
|
|
|
----
|
|
./registerFunction.sh -n uppercase -f "f->f.map(s->s.toString().toUpperCase())"
|
|
----
|
|
|
|
== Run a Stream Processing Microservice using that Function:
|
|
|
|
----
|
|
./stream.sh -i words -o uppercaseWords -f uppercase
|
|
----
|
|
|
|
== Run a REST Microservice using that Function:
|
|
|
|
----
|
|
./web.sh -p /words -f uppercase
|
|
----
|
|
|
|
== Compose Functions:
|
|
|
|
(assuming the `uppercase` function was already registered as above)
|
|
|
|
----
|
|
./registerFunction.sh -n pluralize -f "f->f.map(s->s+\"S\")"
|
|
|
|
./web.sh -p /words -f uppercase,pluralize
|
|
----
|
|
|
|
== Run a Task Microservice using a Supplier, Function, and Consumer:
|
|
|
|
(assuming the `uppercase` function was already registered as above)
|
|
|
|
----
|
|
./registerSupplier.sh -n words -f "()->Flux.just(\"foo\",\"bar\")"
|
|
|
|
./registerConsumer.sh -n print -f "System.out::println"
|
|
|
|
./task.sh -s words -f uppercase -c print
|
|
----
|
|
|
|
(more docs soon)
|