An example of how easy it is to orchestrate interactions between multiple microservices with Netifi Proteus.
The example works as follows:
- The client generates random alphabetic strings.
- The client streams the randomly generated strings to the vowelcount microservice over a bidirectional channel.
- The vowelcount microservice splits the incoming strings into a stream of individual characters which it then sends one by one to the isvowel microservice using request/reply semantics.
- The isvowel microservice determines if the character is a vowel and sends back an appropriate boolean response to the vowelcount microservice.
- If a vowel was identified by the isvowel microservice, the vowelcount microservice increments its internal vowel counter and streams a message to the client with the latest vowel count.
This example requires that you have a running Proteus broker.
You can pull the latest Proteus Broker from DockerHub using the following command:
$ docker pull netifi/proteus
Start the Proteus Broker by running the following command:
$ docker run -p 8001:8001 -p 7001:7001 -e BROKER_SERVER_OPTS='-Dnetifi.authentication.0.accessKey=3006839580103245170 -Dnetifi.authentication.0.accessToken=SkOlZxqQcTboZE3fni4OVXVC0e0=' netifi/proteus
TODO
For bugs, questions, and discussions please use the Github Issues.
Copyright 2018 Greg Whitaker
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.