Skip to content

Backend Overview

Paulo Gomes da Cruz Junior edited this page Aug 27, 2026 · 2 revisions

Backend Component — Overview

Overview

The backend component is the primary business logic layer for the Waste Plus application, providing RESTful APIs for forest client searching, user preferences, and reporting unit data.

Purpose

It serves as the bridge between the React frontend and several data sources, including the PostgreSQL database, Amazon Cognito for authentication, and legacy integration services.

Structure

Boundary/Layer Framework Version Purpose
Controller Spring Boot Web 4.0.6 REST API Exposure
Service Spring Boot 4.0.6 Business Logic & Transactions
Repository Spring Data JPA 4.0.6 Database Access
Provider Spring Boot 4.0.6 External Service Integration
Security Spring Security 6.x OAuth2/JWT Resource Server

Authentication

Authentication is handled via Amazon Cognito. The backend acts as an OAuth2 Resource Server, validating JWTs issued by Cognito. Claims are parsed using JwtPrincipalUtil to identify user identity and roles (BCEID/IDIR).

Observability

The component uses Micrometer Observation for tracing and metrics.

  • @Observed at the class level (Controllers/Services).
  • @NewSpan for specific method tracking.
  • Distributed tracing headers are propagated to downstream services.

See Also

Waste Plus Wiki

Home

Architecture

Codes

Decisions

Knowledge Base

Development

Changes

Clone this wiki locally