petherson.
← All projects

Academic software architecture project

HelpDesk TI

Tickets, users and equipment across three services. An inventory outage affects only operations that depend on it.

Python · FastAPI · SQLAlchemy · SQLite · Docker Compose

HelpDesk TISupport queue

The real problem

Split a monolithic help desk into services without forcing users to change interfaces.

What I built

I configured the gateway and per-service SQLite databases, adapted HTTP calls and wrote integration and authorization tests in the academic project. The original monolith remains for comparison.

Evidence and tests

The outage test confirms that equipment-linked tickets fail in a controlled way when inventory stops. Independent tickets remain available. Tested locally with Docker Compose; public hosting is not established.

Project screenshots

Advanced technical details

Technical decisions: independent persistence

Each service owns its SQLite database. Logical references and HTTP requests replace direct database coupling.

Technical decisions: partial failure and authorization

Requests forward JWTs and enforce timeouts. Dependent operations fail in a controlled manner; role changes may take until token expiry. An asynchronous queue remains future work.

System design

Interactive architecture

Select a component to inspect its responsibility and trade-offs. The diagram represents documented behavior.

HTTP

Interface

The interface preserves existing paths.

Decision and trade-off

Migrating the backend without replacing the UI reduces user disruption.

Interactive experience

How the system responds to failure

Illustrative simulation based on documented behavior and integration tests.

Documented flow1/3

Gateway → Services

Services available

The gateway routes requests to the responsible service. Each persists its own data.

Infrastructure / CI

Infrastructure and deployment

Documented topology, not a live inventory. Select a component to inspect the source.

GitHub Actions → Docker ComposeDocker Compose → Gateway :8000Gateway :8000 → 3 services3 services → 3 SQLite volumes

pytest · pip-audit

GitHub Actions

Integration tests, Compose and controlled outages.

Inspect source ↗

API / HTTP

API reference

Read-only contract examples verified against source code and tests. No requests are sent. Tokens and IDs are placeholders; responses may be partial.

Partial response verified in the integration test.

Authorization: Public

Request

GET /saude

Expected response

200 OK
{"servicos":{"usuarios":"ok","inventario":"ok","chamados":"ok"}}
Inspect contract source ↗

HTTP / Sandbox

API playground

Explore verified contract shapes without connecting to production.

Architecture Decision Records

Architecture decisions

Retrospective records based on the implemented code. Alternatives are analytical comparisons, not a claimed historical shortlist.

ADR-01 · Database per service
Context
Split the monolith without sharing service persistence.
Options compared
Shared database versus independent SQLite volumes.
Decision
Each service owns its database and uses logical references.
Consequences and trade-offs
Isolation; cross-service queries and consistency require integration.
Inspect source ↗
ADR-02 · Partial failure
Context
Equipment-linked tickets depend on Inventory.
Options compared
Fail the entire system versus isolate failures to dependencies.
Decision
Synchronous HTTP with timeouts and 503 only for dependent operations.
Consequences and trade-offs
Independent operations continue; synchronous calls retain temporal coupling.
Inspect source ↗

Technical dossier · Miguel Petherson Silva

https://petherson-dev.vercel.app/en/projetos/helpdesk-ti

Infrastructure

GitHub Actions: Integration tests, Compose and controlled outages.

Docker Compose: Reproducible environment; public hosting is not established.

Gateway :8000: Only the gateway publishes a local host port.

3 services: Users, Inventory and Tickets run in separate containers.

3 SQLite volumes: Per-service persistence and a separate JWT secret volume.

API

GET /saude

Partial response verified in the integration test.

GET /saude

200 OK
{"servicos":{"usuarios":"ok","inventario":"ok","chamados":"ok"}}

https://github.com/pethersonzada/helpdesk-ti/blob/005c74c72ff3714430e68d7562110074810abd75/tests-integracao/test_fluxo.py

POST /chamados

The test demonstrates ticket creation without equipment during an Inventory outage. Test payload, not real data.

POST /chamados
Authorization: Bearer <token>
Content-Type: application/json

{"titulo":"Solicitação sem equipamento","descricao":"Não depende do inventário.","prioridade":"baixa"}

201 Created

https://github.com/pethersonzada/helpdesk-ti/blob/005c74c72ff3714430e68d7562110074810abd75/tests-integracao/test_falha.py

POST /chamados

Expected failure only when Inventory is unavailable, verified by the test.

POST /chamados
Authorization: Bearer <token>
Content-Type: application/json

{"titulo":"Falha controlada no inventário","descricao":"A API deve responder sem travar.","prioridade":"alta","ativo_id":1}

503 Service Unavailable
JSON detail: contains indisponível

https://github.com/pethersonzada/helpdesk-ti/blob/005c74c72ff3714430e68d7562110074810abd75/tests-integracao/test_falha.py

ADRs

ADR-01 · Database per service

Context: Split the monolith without sharing service persistence.

Options: Shared database versus independent SQLite volumes.

Decision: Each service owns its database and uses logical references.

Trade-offs: Isolation; cross-service queries and consistency require integration.

https://github.com/pethersonzada/helpdesk-ti/blob/005c74c72ff3714430e68d7562110074810abd75/README.md

ADR-02 · Partial failure

Context: Equipment-linked tickets depend on Inventory.

Options: Fail the entire system versus isolate failures to dependencies.

Decision: Synchronous HTTP with timeouts and 503 only for dependent operations.

Trade-offs: Independent operations continue; synchronous calls retain temporal coupling.

https://github.com/pethersonzada/helpdesk-ti/blob/005c74c72ff3714430e68d7562110074810abd75/tests-integracao/test_falha.py

Source and demonstration

Professional contact

Get in touch

I am seeking an internship or junior full-stack role. Send me the job description or connect on LinkedIn.