Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/distributed kafka docs #885

Merged
merged 3 commits into from
Oct 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 2 additions & 11 deletions docs/examples/scenarios/distributed-axon-server.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,18 +29,9 @@ Before you begin, please build the entire project with `mvn clean install` from
You will need some backing services (Axon Server, PostgreSQL, MongoDB) and you can easily start them locally
by using the provided `docker-compose.yml` file.

Before you start change the directory to `examples/scenarios/distributed-axon-server` and run a preparation script `.docker/setup.sh`.
You can do it with the following code from your command line (you need to do it once):


```bash
cd examples/scenarios/distributed-axon-server
.docker/setup.sh
```

Before you start change the directory to `examples/scenarios/distributed-axon-server`:
Now, start required containers. The easiest way to do so is to run:


```bash
docker-compose up -d
```
Expand All @@ -61,8 +52,8 @@ packaged application using:


```bash
java -jar process-platform-jpa/target/*.jar
java -jar taskpool-application/target/*.jar
java -jar process-application/target/*.jar
```

## Useful URLs
Expand Down
45 changes: 45 additions & 0 deletions docs/examples/scenarios/distributed-with-kafka.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,48 @@ persistence of the query model.
#### From Kafka to Tasklist API

![Kafka to Tasklist API Messaging](../../img/scenario_kafka_to_tasklist_detail.png)

### System Requirements

* JDK 11
* Docker
* Docker Compose

### Preparations

Before you begin, please build the entire project with `mvn clean install` from the command line in the project root directory.

You will need some backing services (Kafka, PostgreSQL) and you can easily start them locally
by using the provided `docker-compose.yml` file.

Before you start change the directory to `examples/scenarios/distributed-kafka` and start required containers. The easiest way to do so is to run:

```bash
docker-compose up -d
```

### Start

The demo application consists of several Maven modules. In order to start the example, you will need to start only two
of them in the following order:

1. taskpool-application (process platform)
2. process-application (example process application)

The modules can be started by running from command line in the `examples/scenarios/distributed-kafka` directory using Maven or start the
packaged application using:


```bash
java -jar process-application-local-polyflow/target/*.jar
java -jar process-platform-view-only/target/*.jar
```

## Useful URLs

### Process Platform
* [http://localhost:8081/polyflow/tasks](http://localhost:8081/polyflow/tasks)
* [http://localhost:8081/polyflow/archive](http://localhost:8081/polyflow/archive)

### Process Application
* [http://localhost:8080/camunda/app/](http://localhost:8080/camunda/app/)