Template architetturali

1) fronteend (nginx) + backend (nodejs)
2) fronteend (nginx) + backend (nodejs) + db Postgresql
3) fronteend (nginx) + backend (nodejs) + db Mysql
4) fronteend (nginx) + backend (nodejs) + db mongoDb
5) fronteend (nginx) + backend (nodejs) + db mongoDb + S3
6) fronteend (nginx) + backend (nodejs) + db InfluxDb + S3


Opzione proporre i vari "Lego Bricks" da comporre come vuoi

---

# 🧱 Categorie di template (essenziali)

## 1️⃣ Microservizio Backend (core della piattaforma)

### 🎯 Use case

* API REST
* business logic
* servizi core

### 🔧 Stack tipici

* Java (Spring Boot)
* Node.js (NestJS)
* Python (FastAPI)


---

## 2️⃣ Worker / Job / Event-driven

### 🎯 Use case

* consumer Kafka / RabbitMQ
* batch processing
* cron job

### 📦 Include

* queue integration
* retry / DLQ
* idempotenza
* scaling (HPA su queue)

---

## 3️⃣ Frontend Web App


### 🎯 Use case

* UI applicativa

### 🔧 Stack

* React / Angular / Vue


---

## 4️⃣ API Gateway / BFF


### 🎯 Use case

* orchestrazione API
* security
* aggregation

### 📦 Include

* auth (OIDC)
* rate limit
* routing

---

## 5️⃣ Data Service (DB-enabled service)

### 🎯 Use case

* servizi con DB dedicato

### 📦 Include

* provisioning DB (CNPG 👀)
* migration (Flyway/Liquibase)
* backup automatico
* secret injection


## 6️⃣ AI / Batch / Data Pipeline (avanzato)

### 🎯 Use case

* ETL
* ML
* data processing

---------------------------------------------------------------------

# 🧩 Template trasversali (fondamentali)

## 🔐 Security baseline

* OIDC (Keycloak)
* RBAC
* Secret management


## 📊 Observability

* logging (Loki)
* metrics (Prometheus)
* tracing (Tempo)

## 🚀 CI/CD template

* build
* scan (SAST, container)
* deploy
* rollback


## 🧪 Testing

* unit
* integration
* contract test


