# bpbpublications/backend-developer-in-30-days architecture

> Architecture diagram of the GitHub repository bpbpublications/backend-developer-in-30-days, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-28). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/bpbpublications/backend-developer-in-30-days
- Repository: https://github.com/bpbpublications/backend-developer-in-30-days

## Overview

This repository is a set of independent, chapter-organized backend teaching examples, not one integrated application. Its examples span HTTP and RPC/GraphQL services, reporting and calculation, OAuth, MVC and persistence, logging/error handling, and an instrumented order service. There is no single user-to-result workflow across the repository; individual samples demonstrate their own runtime behavior. Relationships below are limited to excerpted calls or source-index references, so several components remain unconnected where wiring was not shown.

Main entry points: [`Chapter 03/golang/grpc/server.go`](https://github.com/bpbpublications/backend-developer-in-30-days/blob/main/Chapter%2003/golang/grpc/server.go) (gRPC server), [`Chapter 05/unit_tests/python/ReportService.py`](https://github.com/bpbpublications/backend-developer-in-30-days/blob/main/Chapter%2005/unit_tests/python/ReportService.py) (Report and print service), [`Chapter 10/express-server-with-instrumentation/server.js`](https://github.com/bpbpublications/backend-developer-in-30-days/blob/main/Chapter%2010/express-server-with-instrumentation/server.js) (Instrumented orders API), [`Chapter 03/golang/grpc/client.go`](https://github.com/bpbpublications/backend-developer-in-30-days/blob/main/Chapter%2003/golang/grpc/client.go) (gRPC client)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_servers["Servers and APIs"]
  node_http_basic["Express HTTP demo<br/>[server.js]"]
  node_http_java["Java HTTP server<br/>[HttpServer.java]"]
  node_http_java_multi["Multithreaded server"]
  node_graphql["GraphQL endpoint<br/>[server.go]"]
  node_grpc_server["gRPC server<br/>[server.go]"]
  node_grpc_client["gRPC client<br/>[client.go]"]
  node_grpc_contract["Hello service contract<br/>[helloworld.proto]"]
  node_soap_service["SOAP service demo<br/>[Main.java]"]
  node_java_rpc["Java RPC example<br/>[RPC1.java]"]
end

subgraph group_business["Business Examples"]
  node_calculator["Calculator<br/>[Calculator.py]"]
  node_calculator_test["Calculator example test"]
  node_report_service["Report and print service<br/>[ReportService.py]"]
  node_report_test["Report service example tests"]
  node_orders_api["Instrumented orders API<br/>[server.js]"]
  node_pizza_order_service["Pizza order generator<br/>[pizza-service.js]"]
end

subgraph group_security["Security and Operations"]
  node_oauth_client["OAuth client<br/>[client.js]"]
  node_oauth_resource["OAuth resource<br/>[resource.js]"]
  node_error_demo["Error handling demo<br/>[handling-errors.js]"]
  node_logging_demo["Text logging demo"]
  node_elk_config["Log pipeline config"]
end

subgraph group_architecture["Application Architecture"]
  node_mvc_app["Express MVC demo<br/>[index.js]"]
  node_hibernate_app["Hibernate example<br/>[App.java]"]
  node_pizza_controller["Order controller"]
  node_pizza_service["Order service<br/>[OrderService.java]"]
  node_pizza_model["Order model<br/>[Order.java]"]
  node_docker_web["Containerized web demo<br/>[server.js]"]
end

node_user(("API caller"))

node_user -->|"sends requests"| node_http_basic
node_user -->|"queries"| node_graphql
node_grpc_client -.->|"calls"| node_grpc_server
node_grpc_server -->|"registers service"| node_grpc_contract
node_user -->|"requests orders"| node_orders_api
node_orders_api -->|"gets orders"| node_pizza_order_service
node_calculator_test -->|"imports and tests"| node_calculator
node_report_test -->|"imports and tests"| node_report_service
node_report_service -.->|"prints report"| node_user

click node_http_basic "https://github.com/bpbpublications/backend-developer-in-30-days/blob/main/Chapter%2002/express-server/server.js"
click node_http_java "https://github.com/bpbpublications/backend-developer-in-30-days/blob/main/Chapter%2002/HttpServer.java"
click node_http_java_multi "https://github.com/bpbpublications/backend-developer-in-30-days/blob/main/Chapter%2002/HttpServerMultiThread.java"
click node_graphql "https://github.com/bpbpublications/backend-developer-in-30-days/blob/main/Chapter%2003/golang/graphql/server.go"
click node_grpc_server "https://github.com/bpbpublications/backend-developer-in-30-days/blob/main/Chapter%2003/golang/grpc/server.go"
click node_grpc_client "https://github.com/bpbpublications/backend-developer-in-30-days/blob/main/Chapter%2003/golang/grpc/client.go"
click node_grpc_contract "https://github.com/bpbpublications/backend-developer-in-30-days/blob/main/Chapter%2003/golang/grpc/proto/helloworld.proto"
click node_soap_service "https://github.com/bpbpublications/backend-developer-in-30-days/blob/main/Chapter%2003/java/Main.java"
click node_java_rpc "https://github.com/bpbpublications/backend-developer-in-30-days/blob/main/Chapter%2003/java/app/src/main/java/chapter3/RPC1.java"
click node_calculator "https://github.com/bpbpublications/backend-developer-in-30-days/blob/main/Chapter%2005/unit_tests/python/Calculator.py"
click node_calculator_test "https://github.com/bpbpublications/backend-developer-in-30-days/blob/main/Chapter%2005/unit_tests/python/CalculatorUnitTest.py"
click node_report_service "https://github.com/bpbpublications/backend-developer-in-30-days/blob/main/Chapter%2005/unit_tests/python/ReportService.py"
click node_report_test "https://github.com/bpbpublications/backend-developer-in-30-days/blob/main/Chapter%2005/unit_tests/python/ReportServiceUnitTests.py"
click node_oauth_client "https://github.com/bpbpublications/backend-developer-in-30-days/blob/main/Chapter%2006/oauth/client.js"
click node_oauth_resource "https://github.com/bpbpublications/backend-developer-in-30-days/blob/main/Chapter%2006/oauth/resource.js"
click node_error_demo "https://github.com/bpbpublications/backend-developer-in-30-days/blob/main/Chapter%2007/exception/handling-errors.js"
click node_logging_demo "https://github.com/bpbpublications/backend-developer-in-30-days/blob/main/Chapter%2007/logging/python-text-logging.py"
click node_elk_config "https://github.com/bpbpublications/backend-developer-in-30-days/blob/main/Chapter%2007/elk-stack/logstash-simple.conf"
click node_mvc_app "https://github.com/bpbpublications/backend-developer-in-30-days/blob/main/Chapter%2008/express-mvc/index.js"
click node_hibernate_app "https://github.com/bpbpublications/backend-developer-in-30-days/blob/main/Chapter%2008/hibernate-example/src/main/java/hibernate/example/App.java"
click node_pizza_controller "https://github.com/bpbpublications/backend-developer-in-30-days/blob/main/Chapter%2008/pizza-place/src/main/java/com/example/pizzaplace/controller/OrderController.java"
click node_pizza_service "https://github.com/bpbpublications/backend-developer-in-30-days/blob/main/Chapter%2008/pizza-place/src/main/java/com/example/pizzaplace/service/OrderService.java"
click node_pizza_model "https://github.com/bpbpublications/backend-developer-in-30-days/blob/main/Chapter%2008/pizza-place/src/main/java/com/example/pizzaplace/model/Order.java"
click node_docker_web "https://github.com/bpbpublications/backend-developer-in-30-days/blob/main/Chapter%2009/docker-pizza-place/web/server.js"
click node_orders_api "https://github.com/bpbpublications/backend-developer-in-30-days/blob/main/Chapter%2010/express-server-with-instrumentation/server.js"
click node_pizza_order_service "https://github.com/bpbpublications/backend-developer-in-30-days/blob/main/Chapter%2010/express-server-with-instrumentation/pizza-service.js"

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_http_basic,node_http_java,node_http_java_multi,node_graphql,node_grpc_server,node_grpc_client,node_grpc_contract,node_soap_service,node_java_rpc toneBlue
class node_calculator,node_calculator_test,node_report_service,node_report_test,node_orders_api,node_pizza_order_service toneAmber
class node_oauth_client,node_oauth_resource,node_error_demo,node_logging_demo,node_elk_config,node_user toneMint
class node_mvc_app,node_hibernate_app,node_pizza_controller,node_pizza_service,node_pizza_model,node_docker_web toneRose
```

## Components

### Servers and APIs

- [Express HTTP demo](https://github.com/bpbpublications/backend-developer-in-30-days/blob/main/Chapter%2002/express-server/server.js): `Chapter 02/express-server/server.js`
- [Java HTTP server](https://github.com/bpbpublications/backend-developer-in-30-days/blob/main/Chapter%2002/HttpServer.java): `Chapter 02/HttpServer.java`
- [Multithreaded server](https://github.com/bpbpublications/backend-developer-in-30-days/blob/main/Chapter%2002/HttpServerMultiThread.java): `Chapter 02/HttpServerMultiThread.java`
- [GraphQL endpoint](https://github.com/bpbpublications/backend-developer-in-30-days/blob/main/Chapter%2003/golang/graphql/server.go): `Chapter 03/golang/graphql/server.go`
- [gRPC server](https://github.com/bpbpublications/backend-developer-in-30-days/blob/main/Chapter%2003/golang/grpc/server.go): `Chapter 03/golang/grpc/server.go`
- [gRPC client](https://github.com/bpbpublications/backend-developer-in-30-days/blob/main/Chapter%2003/golang/grpc/client.go): `Chapter 03/golang/grpc/client.go`
- [Hello service contract](https://github.com/bpbpublications/backend-developer-in-30-days/blob/main/Chapter%2003/golang/grpc/proto/helloworld.proto): `Chapter 03/golang/grpc/proto/helloworld.proto`
- [SOAP service demo](https://github.com/bpbpublications/backend-developer-in-30-days/blob/main/Chapter%2003/java/Main.java): `Chapter 03/java/Main.java`
- [Java RPC example](https://github.com/bpbpublications/backend-developer-in-30-days/blob/main/Chapter%2003/java/app/src/main/java/chapter3/RPC1.java): `Chapter 03/java/app/src/main/java/chapter3/RPC1.java`

### Business Examples

- [Calculator](https://github.com/bpbpublications/backend-developer-in-30-days/blob/main/Chapter%2005/unit_tests/python/Calculator.py): `Chapter 05/unit_tests/python/Calculator.py`
- [Calculator example test](https://github.com/bpbpublications/backend-developer-in-30-days/blob/main/Chapter%2005/unit_tests/python/CalculatorUnitTest.py): `Chapter 05/unit_tests/python/CalculatorUnitTest.py`
- [Report and print service](https://github.com/bpbpublications/backend-developer-in-30-days/blob/main/Chapter%2005/unit_tests/python/ReportService.py): `Chapter 05/unit_tests/python/ReportService.py`
- [Report service example tests](https://github.com/bpbpublications/backend-developer-in-30-days/blob/main/Chapter%2005/unit_tests/python/ReportServiceUnitTests.py): `Chapter 05/unit_tests/python/ReportServiceUnitTests.py`
- [Instrumented orders API](https://github.com/bpbpublications/backend-developer-in-30-days/blob/main/Chapter%2010/express-server-with-instrumentation/server.js): `Chapter 10/express-server-with-instrumentation/server.js`
- [Pizza order generator](https://github.com/bpbpublications/backend-developer-in-30-days/blob/main/Chapter%2010/express-server-with-instrumentation/pizza-service.js): `Chapter 10/express-server-with-instrumentation/pizza-service.js`

### Security and Operations

- [OAuth client](https://github.com/bpbpublications/backend-developer-in-30-days/blob/main/Chapter%2006/oauth/client.js): `Chapter 06/oauth/client.js`
- [OAuth resource](https://github.com/bpbpublications/backend-developer-in-30-days/blob/main/Chapter%2006/oauth/resource.js): `Chapter 06/oauth/resource.js`
- [Error handling demo](https://github.com/bpbpublications/backend-developer-in-30-days/blob/main/Chapter%2007/exception/handling-errors.js): `Chapter 07/exception/handling-errors.js`
- [Text logging demo](https://github.com/bpbpublications/backend-developer-in-30-days/blob/main/Chapter%2007/logging/python-text-logging.py): `Chapter 07/logging/python-text-logging.py`
- [Log pipeline config](https://github.com/bpbpublications/backend-developer-in-30-days/blob/main/Chapter%2007/elk-stack/logstash-simple.conf): `Chapter 07/elk-stack/logstash-simple.conf`

### Application Architecture

- [Express MVC demo](https://github.com/bpbpublications/backend-developer-in-30-days/blob/main/Chapter%2008/express-mvc/index.js): `Chapter 08/express-mvc/index.js`
- [Hibernate example](https://github.com/bpbpublications/backend-developer-in-30-days/blob/main/Chapter%2008/hibernate-example/src/main/java/hibernate/example/App.java): `Chapter 08/hibernate-example/src/main/java/hibernate/example/App.java`
- [Order controller](https://github.com/bpbpublications/backend-developer-in-30-days/blob/main/Chapter%2008/pizza-place/src/main/java/com/example/pizzaplace/controller/OrderController.java): `Chapter 08/pizza-place/src/main/java/com/example/pizzaplace/controller/OrderController.java`
- [Order service](https://github.com/bpbpublications/backend-developer-in-30-days/blob/main/Chapter%2008/pizza-place/src/main/java/com/example/pizzaplace/service/OrderService.java): `Chapter 08/pizza-place/src/main/java/com/example/pizzaplace/service/OrderService.java`
- [Order model](https://github.com/bpbpublications/backend-developer-in-30-days/blob/main/Chapter%2008/pizza-place/src/main/java/com/example/pizzaplace/model/Order.java): `Chapter 08/pizza-place/src/main/java/com/example/pizzaplace/model/Order.java`
- [Containerized web demo](https://github.com/bpbpublications/backend-developer-in-30-days/blob/main/Chapter%2009/docker-pizza-place/web/server.js): `Chapter 09/docker-pizza-place/web/server.js`

### Other components

- **API caller**

## Connections

- API caller → Express HTTP demo: sends requests (evidence: `Chapter 02/express-server/server.js`)
- API caller → GraphQL endpoint: queries (evidence: `Chapter 03/golang/graphql/server.go`)
- gRPC client → gRPC server: calls
- gRPC server → Hello service contract: registers service (evidence: `Chapter 03/golang/grpc/server.go`)
- API caller → Instrumented orders API: requests orders (evidence: `Chapter 10/express-server-with-instrumentation/server.js`)
- Instrumented orders API → Pizza order generator: gets orders (evidence: `Chapter 10/express-server-with-instrumentation/server.js`)
- Calculator example test → Calculator: imports and tests (evidence: `Chapter 05/unit_tests/python/CalculatorUnitTest.py`)
- Report service example tests → Report and print service: imports and tests (evidence: `Chapter 05/unit_tests/python/ReportServiceUnitTests.py`)
- Report and print service → API caller: prints report
