# udacity/devops_microservices architecture

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

- Interactive diagram: https://gitdiagram.com/udacity/devops_microservices
- Repository: https://github.com/udacity/devops_microservices

## Overview

This repository is a course collection, not one integrated application: it provides serverless-function tutorials, container and CSV-operation demos, supporting AWS material, and a Kubernetes machine-learning project. The main user-to-result paths are requests handled by tutorial functions or APIs, CSV aggregation through a CLI or Flask endpoint, and housing predictions from the ML API. The graph preserves those distinct products rather than implying they call one another. Unsampled subsystems are included only where the README establishes their capability; links to deployment infrastructure are documented rather than inferred from implementation.

Main entry points: [`Lesson-3-Containerization/csvcli.py`](https://github.com/udacity/devops_microservices/blob/master/Lesson-3-Containerization/csvcli.py) (CSV CLI), [`Lesson-3-Containerization/flask_app/web.py`](https://github.com/udacity/devops_microservices/blob/master/Lesson-3-Containerization/flask_app/web.py) (CSV Flask API), [`project-ml-microservice-kubernetes/app.py`](https://github.com/udacity/devops_microservices/blob/master/project-ml-microservice-kubernetes/app.py) (Prediction API), [`Lesson-3-Containerization/nlib/utils.py`](https://github.com/udacity/devops_microservices/blob/master/Lesson-3-Containerization/nlib/utils.py) (Plugin Discovery)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_lambda["Lambda Tutorials"]
  node_make_change["Make Change<br/>[make_change.py]"]
  node_wiki_exercise["Wikipedia Exercise"]
  node_wiki_solution["Wikipedia Solution"]
end

subgraph group_containers["Container Demos"]
  node_demo_api["Demo Flask API<br/>[app.py]"]
  node_repo_cli["Library CLI<br/>[cli.py]"]
  node_repo_service["Fake Data API<br/>[web.py]"]
  node_repo_library["Repository Library<br/>[repomod.py]"]
end

subgraph group_csv["CSV Operations"]
  node_csv_cli["CSV CLI<br/>[csvcli.py]"]
  node_csv_api["CSV Flask API<br/>[web.py]"]
  node_plugin_registry["Plugin Discovery<br/>[utils.py]"]
  node_csv_engine["CSV Aggregation<br/>[csvops.py]"]
  node_aggregation_functions["Aggregation Functions<br/>[appliable.py]"]
end

subgraph group_serverless["Serverless Material"]
  node_sqs_examples["SQS Examples"]
  node_sentiment_examples["Sentiment Examples"]
  node_state_machine["State Machine<br/>[state_machine.json]"]
end

subgraph group_ml["ML Microservice"]
  node_ml_api["Prediction API<br/>[app.py]"]
  node_model_artifacts["Model Artifacts"]
end

node_user(("User"))
node_docker["Docker"]
node_kubernetes["Kubernetes"]

node_user -->|"requests change"| node_make_change
node_user -->|"queries page"| node_wiki_exercise
node_user -->|"queries page"| node_wiki_solution
node_user -->|"runs command"| node_repo_cli
node_repo_cli -->|"calls print_name"| node_repo_library
node_user -->|"requests data"| node_repo_service
node_repo_service -->|"calls fake_data"| node_repo_library
node_user -->|"runs command"| node_csv_cli
node_csv_cli -->|"loads plugins"| node_plugin_registry
node_csv_cli -->|"calls aggregation"| node_csv_engine
node_plugin_registry -->|"discovers functions"| node_aggregation_functions
node_user -->|"uploads CSV"| node_csv_api
node_csv_api -->|"loads plugins"| node_plugin_registry
node_csv_api -->|"calls aggregation"| node_csv_engine
node_csv_engine -->|"applies function"| node_aggregation_functions
node_user -->|"requests prediction"| node_ml_api
node_ml_api -.->|"loads model"| node_model_artifacts
node_ml_api -->|"containerized for"| node_docker
node_docker -->|"deployed on"| node_kubernetes
node_user -.->|"uses examples"| node_sqs_examples
node_user -.->|"uses examples"| node_sentiment_examples
node_user -.->|"uses example"| node_state_machine

click node_make_change "https://github.com/udacity/devops_microservices/blob/master/Lesson-1-Lambda-functions/make-change-tutorial/make_change.py"
click node_wiki_exercise "https://github.com/udacity/devops_microservices/blob/master/Lesson-1-Lambda-functions/wikipedia-query/wikipedia_lambda_exercise.py"
click node_wiki_solution "https://github.com/udacity/devops_microservices/blob/master/Lesson-1-Lambda-functions/wikipedia-query/wikipedia_lambda_solution.py"
click node_demo_api "https://github.com/udacity/devops_microservices/blob/master/Lesson-2-Docker-format-containers/class-demos/demos/flask-sklearn-student-starter/app.py"
click node_repo_cli "https://github.com/udacity/devops_microservices/blob/master/Lesson-2-Docker-format-containers/myrepo/cli.py"
click node_repo_service "https://github.com/udacity/devops_microservices/blob/master/Lesson-2-Docker-format-containers/myrepo/web.py"
click node_repo_library "https://github.com/udacity/devops_microservices/blob/master/Lesson-2-Docker-format-containers/myrepo/myrepolib/repomod.py"
click node_csv_cli "https://github.com/udacity/devops_microservices/blob/master/Lesson-3-Containerization/csvcli.py"
click node_csv_api "https://github.com/udacity/devops_microservices/blob/master/Lesson-3-Containerization/flask_app/web.py"
click node_plugin_registry "https://github.com/udacity/devops_microservices/blob/master/Lesson-3-Containerization/nlib/utils.py"
click node_csv_engine "https://github.com/udacity/devops_microservices/blob/master/Lesson-3-Containerization/nlib/csvops.py"
click node_aggregation_functions "https://github.com/udacity/devops_microservices/blob/master/Lesson-3-Containerization/nlib/appliable.py"
click node_sqs_examples "https://github.com/udacity/devops_microservices/tree/master/Supporting-material/example_src"
click node_sentiment_examples "https://github.com/udacity/devops_microservices/tree/master/Supporting-material/example_src"
click node_state_machine "https://github.com/udacity/devops_microservices/blob/master/Supporting-material/example_src/state_machine.json"
click node_ml_api "https://github.com/udacity/devops_microservices/blob/master/project-ml-microservice-kubernetes/app.py"
click node_model_artifacts "https://github.com/udacity/devops_microservices/tree/master/project-ml-microservice-kubernetes/model_data"

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_make_change,node_wiki_exercise,node_wiki_solution,node_user toneBlue
class node_demo_api,node_repo_cli,node_repo_service,node_repo_library toneAmber
class node_csv_cli,node_csv_api,node_plugin_registry,node_csv_engine,node_aggregation_functions toneMint
class node_sqs_examples,node_sentiment_examples,node_state_machine toneRose
class node_ml_api,node_model_artifacts,node_docker,node_kubernetes toneIndigo
```

## Components

### Lambda Tutorials

- [Make Change](https://github.com/udacity/devops_microservices/blob/master/Lesson-1-Lambda-functions/make-change-tutorial/make_change.py): `Lesson-1-Lambda-functions/make-change-tutorial/make_change.py`
- [Wikipedia Exercise](https://github.com/udacity/devops_microservices/blob/master/Lesson-1-Lambda-functions/wikipedia-query/wikipedia_lambda_exercise.py): `Lesson-1-Lambda-functions/wikipedia-query/wikipedia_lambda_exercise.py`
- [Wikipedia Solution](https://github.com/udacity/devops_microservices/blob/master/Lesson-1-Lambda-functions/wikipedia-query/wikipedia_lambda_solution.py): `Lesson-1-Lambda-functions/wikipedia-query/wikipedia_lambda_solution.py`

### Container Demos

- [Demo Flask API](https://github.com/udacity/devops_microservices/blob/master/Lesson-2-Docker-format-containers/class-demos/demos/flask-sklearn-student-starter/app.py): `Lesson-2-Docker-format-containers/class-demos/demos/flask-sklearn-student-starter/app.py`
- [Library CLI](https://github.com/udacity/devops_microservices/blob/master/Lesson-2-Docker-format-containers/myrepo/cli.py): `Lesson-2-Docker-format-containers/myrepo/cli.py`
- [Fake Data API](https://github.com/udacity/devops_microservices/blob/master/Lesson-2-Docker-format-containers/myrepo/web.py): `Lesson-2-Docker-format-containers/myrepo/web.py`
- [Repository Library](https://github.com/udacity/devops_microservices/blob/master/Lesson-2-Docker-format-containers/myrepo/myrepolib/repomod.py): `Lesson-2-Docker-format-containers/myrepo/myrepolib/repomod.py`

### CSV Operations

- [CSV CLI](https://github.com/udacity/devops_microservices/blob/master/Lesson-3-Containerization/csvcli.py): `Lesson-3-Containerization/csvcli.py`
- [CSV Flask API](https://github.com/udacity/devops_microservices/blob/master/Lesson-3-Containerization/flask_app/web.py): `Lesson-3-Containerization/flask_app/web.py`
- [Plugin Discovery](https://github.com/udacity/devops_microservices/blob/master/Lesson-3-Containerization/nlib/utils.py): `Lesson-3-Containerization/nlib/utils.py`
- [CSV Aggregation](https://github.com/udacity/devops_microservices/blob/master/Lesson-3-Containerization/nlib/csvops.py): `Lesson-3-Containerization/nlib/csvops.py`
- [Aggregation Functions](https://github.com/udacity/devops_microservices/blob/master/Lesson-3-Containerization/nlib/appliable.py): `Lesson-3-Containerization/nlib/appliable.py`

### Serverless Material

- [SQS Examples](https://github.com/udacity/devops_microservices/tree/master/Supporting-material/example_src): `Supporting-material/example_src`
- [Sentiment Examples](https://github.com/udacity/devops_microservices/tree/master/Supporting-material/example_src): `Supporting-material/example_src`
- [State Machine](https://github.com/udacity/devops_microservices/blob/master/Supporting-material/example_src/state_machine.json): `Supporting-material/example_src/state_machine.json`

### ML Microservice

- [Prediction API](https://github.com/udacity/devops_microservices/blob/master/project-ml-microservice-kubernetes/app.py): `project-ml-microservice-kubernetes/app.py`
- [Model Artifacts](https://github.com/udacity/devops_microservices/tree/master/project-ml-microservice-kubernetes/model_data): `project-ml-microservice-kubernetes/model_data`

### Other components

- **User**
- **Docker**
- **Kubernetes**

## Connections

- User → Make Change: requests change (evidence: `README.md`)
- User → Wikipedia Exercise: queries page (evidence: `README.md`)
- User → Wikipedia Solution: queries page (evidence: `README.md`)
- User → Library CLI: runs command (evidence: `Lesson-2-Docker-format-containers/myrepo/cli.py`)
- Library CLI → Repository Library: calls print_name (evidence: `Lesson-2-Docker-format-containers/myrepo/cli.py`)
- User → Fake Data API: requests data (evidence: `Lesson-2-Docker-format-containers/myrepo/web.py`)
- Fake Data API → Repository Library: calls fake_data (evidence: `Lesson-2-Docker-format-containers/myrepo/web.py`)
- User → CSV CLI: runs command (evidence: `Lesson-3-Containerization/csvcli.py`)
- CSV CLI → Plugin Discovery: loads plugins (evidence: `Lesson-3-Containerization/csvcli.py`)
- CSV CLI → CSV Aggregation: calls aggregation (evidence: `Lesson-3-Containerization/csvcli.py`)
- Plugin Discovery → Aggregation Functions: discovers functions (evidence: `Lesson-3-Containerization/nlib/utils.py`)
- User → CSV Flask API: uploads CSV (evidence: `Lesson-3-Containerization/flask_app/web.py`)
- CSV Flask API → Plugin Discovery: loads plugins (evidence: `Lesson-3-Containerization/flask_app/web.py`)
- CSV Flask API → CSV Aggregation: calls aggregation (evidence: `Lesson-3-Containerization/flask_app/web.py`)
- CSV Aggregation → Aggregation Functions: applies function (evidence: `Lesson-3-Containerization/nlib/csvops.py`)
- User → Prediction API: requests prediction (evidence: `project-ml-microservice-kubernetes/app.py`)
- Prediction API → Model Artifacts: loads model
- Prediction API → Docker: containerized for (evidence: `README.md`)
- Docker → Kubernetes: deployed on (evidence: `README.md`)
- User → SQS Examples: uses examples
- User → Sentiment Examples: uses examples
- User → State Machine: uses example
