Flow – Action Items su Miglioramenti Architetturali

Formato: Priorità | Ambito | Azione | Outcome atteso | Owner | Stima

  1. Alta | Comunicazione | Introdurre event bus (Redis Streams PoC) con eventi EventCreated, EventCancelled, UserProfileUpdated, NotificationRequested; producer/consumer separati per event-, social-, notification-service | Disaccoppiamento, retry, audit eventi | Platform | 5 gg
  2. Alta | Realtime | Abilitare Redis adapter per Socket.IO, sticky sessions LB, test di fan-out | Scalabilità orizzontale chat/presence | Realtime | 3 gg
  3. Alta | Gateway | Allineare porta notification-service (3004) in env/compose/gateway; healthcheck coerenti | Eliminare mismatch e 503 spuri | Platform | 1 gg
  4. Alta | Data Strategy | PoC CDC Mongo→Postgres con Debezium per feed admin/analytics; schema di destinazione definito | Dati admin consistenti senza query cross-DB | Data | 7 gg
  5. Media | AI Data | Read-replica Mongo dedicata ai servizi AI o export batch Parquet su storage oggetti; scheduler per refresh | Ridurre carico sui DB operativi | AI | 4 gg
  6. Media | Observability | Aggiungere OpenTelemetry trace-id a tutti i servizi (HTTP + WS), export su Prometheus/Grafana; /ready separato da /health | Tracing end-to-end e readiness corretta | Platform | 4 gg
  7. Media | Caching | Response cache su gateway per GET idempotenti (event detail, categories); invalidazione via eventi | Latenza ridotta, meno carico servizi | Backend | 3 gg
  8. Media | Security | Centralizzare segreti in secret manager; rotazione JWT secret/ provider keys; signed URLs per upload | Riduzione rischio leakage | SecOps | 4 gg
  9. Media | Testing | Contract testing (OpenAPI lint + schema validation al gateway), suite E2E Playwright per flussi core (signup, create event, join, chat) | Prevenire regressioni | QA | 6 gg
  10. Bassa | Governance schema | Rimuovere modelli SQL non usati o pianificare migrazione; introdurre migrate-mongo e changelog schema versionato | Schema coerente e tracciabile | Backend | 3 gg
  11. Bassa | Gateway evoluzione | Valutare gateway managed (Kong/Traefik) in staging con subset di rotte | Base per migrazione futura | Platform | 5 gg
  12. Bassa | Performance | Profilare query Mongo (index su slug, organizer, startDate+geo); materialized feed per social via eventi | Miglior throughput letture | Backend | 4 gg