- CLAUDE.md v1.1, 19 ADRs (ADR-0019: rebuild from scratch, Anything MVP code not reused) - Architecture docs (microservices, stack, UI composition, Kubernetes deployment) - Cost, pricing and production run-cost estimate - Contract specs (CDC v1.0, v2.0, MVP V1, vision v4.0) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
12 lines
786 B
Markdown
12 lines
786 B
Markdown
# ADR-0006 — Temporal pour les sagas et traitements planifiés
|
|
**Statut** : Accepté · 2026-12-03
|
|
|
|
**Décision** : Temporal auto-hébergé sur EKS (persistance RDS `pg-support`, base `temporal`). Utilisé par :
|
|
- payment-orchestrator : workflow `Payment` par intent, avec minuteur d'expiration, attente du callback, interrogation du statut en repli, compensations ;
|
|
- identity : workflow `GuestActivation` (lien valide 72 h, relance J+1) ;
|
|
- reconciliation : traitement nocturne planifié.
|
|
|
|
Identifiant de workflow = identifiant métier (idempotence). L'UI Temporal permet de visualiser chaque saga.
|
|
|
|
**Alternatives rejetées** : machine à états XState + pg-boss (durabilité et minuteurs à réimplémenter) ; chorégraphie pure par événements (flux de paiement non traçable).
|