# jmhreif/microservices-level1 architecture

> Architecture diagram of the GitHub repository jmhreif/microservices-level1, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-17). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/jmhreif/microservices-level1
- Repository: https://github.com/jmhreif/microservices-level1

## Overview

This introductory example has a single request path: a caller requests `/hello` from Service2, which calls Service1’s `/text` endpoint and returns its text response. The service implementations are shown in the sampled Java files; the README documents the endpoints and expected result. The graph omits deployment and build details.

Main entry points: [`service2/src/main/java/com/jmhreif/service2/Service2Application.java`](https://github.com/jmhreif/microservices-level1/blob/main/service2/src/main/java/com/jmhreif/service2/Service2Application.java) (Hello endpoint), [`service1/src/main/java/com/jmhreif/service1/Service1Application.java`](https://github.com/jmhreif/microservices-level1/blob/main/service1/src/main/java/com/jmhreif/service1/Service1Application.java) (Text endpoint)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_svc1["Service1 backend"]
  node_text["Text endpoint"]
end

subgraph group_svc2["Service2 client"]
  node_hello["Hello endpoint"]
end

node_caller(("HTTP caller"))

node_caller -->|"requests /hello"| node_hello
node_hello -->|"GET /text"| node_text
node_text -->|"returns text"| node_hello
node_hello -->|"returns result"| node_caller

click node_hello "https://github.com/jmhreif/microservices-level1/blob/main/service2/src/main/java/com/jmhreif/service2/Service2Application.java"
click node_text "https://github.com/jmhreif/microservices-level1/blob/main/service1/src/main/java/com/jmhreif/service1/Service1Application.java"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_text toneBlue
class node_hello toneAmber
class node_caller toneIndigo
```

## Components

### Service1 backend

- [Text endpoint](https://github.com/jmhreif/microservices-level1/blob/main/service1/src/main/java/com/jmhreif/service1/Service1Application.java): `service1/src/main/java/com/jmhreif/service1/Service1Application.java`

### Service2 client

- [Hello endpoint](https://github.com/jmhreif/microservices-level1/blob/main/service2/src/main/java/com/jmhreif/service2/Service2Application.java): `service2/src/main/java/com/jmhreif/service2/Service2Application.java`

### Other components

- **HTTP caller**

## Connections

- HTTP caller → Hello endpoint: requests /hello (evidence: `README.adoc`)
- Hello endpoint → Text endpoint: GET /text (evidence: `service2/src/main/java/com/jmhreif/service2/Service2Application.java`)
- Text endpoint → Hello endpoint: returns text (evidence: `service2/src/main/java/com/jmhreif/service2/Service2Application.java`)
- Hello endpoint → HTTP caller: returns result (evidence: `README.adoc`)
