Diagrama de Arquitectura
┌─────────────────────────────────────────────────────────────────────────────────┐
│ INTERNET / USUARIOS │
└────────────────────────────────────┬────────────────────────────────────────────┘
│
┌────────────▼────────────┐
│ Azure Front Door + WAF │ ← CDN + DDoS protection
│ (Global Load Balancer) │
└────────────┬────────────┘
│
┌────────────────────────────────────▼────────────────────────────────────────────┐
│ API Management (Standard v2) │
│ Rate limiting · Auth · Versioning · Dev Portal │
└──────┬─────────────────┬──────────────────────┬───────────────────────┬─────────┘
│ │ │ │
┌──────▼──────┐ ┌───────▼───────┐ ┌──────────▼──────────┐ ┌────────▼────────┐
│ API REST │ │ Notif. Svc │ │ Reco. IA Engine │ │ HRIS Webhooks │
│ (Node.js) │ │ (Node.js) │ │ (Python) │ │ (Fastify) │
│ AKS: app │ │ AKS: app │ │ AKS: jobs pool │ │ AKS: app │
└──────┬──────┘ └───────┬───────┘ └──────────┬──────────┘ └────────┬────────┘
│ │ │ │
┌──────▼─────────────────▼──────────────────────▼───────────────────────▼────────┐
│ Azure Service Bus (Standard) │
│ Queues: notif · reco-jobs · hris-events │
└──────────────────────────────────────────────────────────────────────────────────┘
│ │ │
┌──────▼──────┐ ┌───────▼───────┐ ┌─────────▼─────────┐
│ Cosmos DB │ │ Blob Storage │ │ Azure SQL DB │
│ (NoSQL) │ │ (archivos) │ │ (datos empresa) │
│ multi-model │ │ Cool tier │ │ GP_S_Gen5_2 │
└─────────────┘ └───────────────┘ └───────────────────┘
┌─────────────────────────────────────────────────────────────────────────────────┐
│ SEGURIDAD: Key Vault · Entra ID Workload Identity · Private Endpoints · NSGs │
│ OBSERVABILIDAD: Azure Monitor · Application Insights · Log Analytics │
│ COMPLIANCE: Azure Policy (SOC2 + GDPR) · Defender for Cloud · Purview │
└─────────────────────────────────────────────────────────────────────────────────┘
Stack de Servicios
Estimación de Costes Mensual
| Servicio | SKU / Configuración | Categoría | Coste/mes (USD) |
|---|---|---|---|
| ☸️ AKS Node Pools (×3) | D4s_v5 — system + app + jobs | Compute | $350 – $500 |
| 🔀 API Management | Standard v2 | Gateway | $175 |
| 🗄️ Cosmos DB | Multi-model, 400 RU/s base | Database | $100 – $400 |
| 📊 Azure SQL Serverless | GP_S_Gen5_2, auto-pause 60min | Database | $50 – $120 |
| 📨 Service Bus | Standard tier | Messaging | $10 – $50 |
| 📦 Container Registry | Basic | DevOps | $5 |
| 📈 Azure Monitor + App Insights | Log Analytics (5 GB/día) | Observabilidad | $50 – $100 |
| 🔐 Key Vault | Standard, <10K operaciones/mes | Seguridad | $1 – $5 |
| 🌐 Front Door + WAF | Standard tier | Networking | $35 – $60 |
| TOTAL ESTIMADO | $776 – $915/mes | ||
Infraestructura como Código — Bicep (generado)
| Anti-Patrón | Decisión correcta |
|---|---|
| ARM JSON para IaC | Bicep (compila a ARM, sintaxis limpia) |
| Secrets en App Settings | Key Vault references |
| Un solo node pool AKS | 3 pools: system + app + jobs |
| Endpoints públicos en PaaS | Private Endpoints + VNet integration |
| Sobre-provisionamiento fijo | Autoscale + right-size mensual |
| Sin estrategia de tags | environment, owner, cost-center, app-name |