Home

Awesome

Inventa Examples

LinkedIn Twitter HitCount License

Cross-language example projects to demonstrate how Inventa works and how to use it as microservice registry and for executing RPC.

Currently only "calculator" example project is available.

Orchestrator registering logs

Running containers (some of them are replicated):

Running containers

WHY THIS PROJECT?

This project aims to present you how to use the Inventa library. Inventa can be used in Orchestrator or Service roles. You can find example usages for both roles. E.g., the calculator/go-orchestrator project uses Inventa on Orchestrator role. The other projects use Inventa on Service role.

For more information, play with the project in "calculator" folder, as follows:

INSTALLATION and RUNNING

This project was designed to run in Docker Container. For some configurations, you can check out docker-compose.yaml and .env file in "calculator" folder.

Docker Compose file creates some containers, with some replica instances:

Orchestrator calculation logs

go-calculator-service logs

py-calculation-service logs

py-linalg-service logs

You can run it in production mode or development mode.

Production Mode

$ cd calculator
$ docker-compose up -d
$ docker-compose logs -f
$ docker logs -f calculator-go-orchestrator-1

<a name="dev-mode"></a>Development Mode: VS Code Remote - Containers

To continue with VS Code and if this is your first time to work with Remote Containers in VS Code, you can check out this link to learn how Remote Containers work in VS Code and follow the installation steps of Remote Development extension pack.

Then, follow these steps:

<br>

INVENTA IMPLEMENTATIONS

LICENSE

Inventa Examples project is licensed under the Apache License, Version 2.0. See LICENSE for the full license text.