Panne API
Cible : Meta Graph API
Injecte une panne sur l’API sélectionnée (ou Meta) : statut down, erreurs 5xx, circuit OPEN.
Blast radius · Canal social · agent Carlos · fallback WhatsApp · 120s
Résilience
Pannes API, fallbacks automatiques, circuit breakers, monitoring temps réel et alerting intelligent
Gremlin · logs · retries · bascule canal · isolation microservices · Datadog / Grafana
Chaos engineering contrôlé : injectez une panne API ou un crash serveur, puis validez fallbacks, circuit breakers et alerting.
Panne API
Cible : Meta Graph API
Injecte une panne sur l’API sélectionnée (ou Meta) : statut down, erreurs 5xx, circuit OPEN.
Blast radius · Canal social · agent Carlos · fallback WhatsApp · 120s
Crash serveur
Cible : Worker communication (pod)
Simule un crash du serveur / worker : APIs canaux down, breakers OPEN, alerte critique Datadog.
Blast radius · Tous canaux com · Event Bus backlog · HITL recommandé · 90s
Latence extrême
Cible : Gmail API
Ajoute 5–8 s de latence (degraded) pour valider timeouts, retries et graceful degradation.
Blast radius · E-mail · Sophia · retries exponentiels · 60s
Journal Gremlin
Meta, Gmail, WhatsApp, M365… — cliquez pour sonder / activer le contexte agent.
Exemple : e-mail échoue → WhatsApp. Routes liées à l’API sélectionnée en premier.
gmail → whatsappAuto
Quand : E-mail en échec ≥ 2 retries ou circuit Gmail open
Renvoyer le même message via WhatsApp Cloud API
gmail → smsAuto
Quand : WhatsApp aussi indisponible
SMS court + lien portail sécurisé
Isolation type microservices — OPEN coupe le trafic, HALF-OPEN sonde, CLOSED reprend.
communication-email
half_opengmail · échecs 3/5 · cooldown 60s
GET /gmail/v1/users/me/profile
communication-social
openmeta · échecs 8/5 · cooldown 120s
GET /v19.0/me?fields=id
communication-whatsapp
closedwhatsapp · échecs 0/5 · cooldown 45s
GET /whatsapp/health
finance-payments
closedstripe · échecs 0/3 · cooldown 90s
GET /v1/balance
marketing-tiktok
half_opentiktok · échecs 2/4 · cooldown 75s
GET /tiktok/v2/user/info/
Retry e-mail (Gmail / M365)
3 essais · Exponentiel 2s → 8s → 32s · jitter
Envoi transactional + accusés
Retry webhooks Meta
5 essais · Linéaire + jitter 1–5 s · jitter
Delivery / read receipts
Retry jobs queue (BullMQ)
8 essais · Backoff custom microservices · jitter
OCR, pubs, relances H24
Patterns microservices appliqués aux canaux GIBG.
Incidents
Tableaux de bord
Alerting intelligent
Meta Graph down — bascule WhatsApp active
criticalCircuit breaker communication-social OPEN. Fallback DM → WhatsApp exécuté.
circuit-breaker + fallback · Il y a 40 s · fallback:meta→whatsapp
Gmail quota 429 — retry + probe half-open
warningError rate 18 %. Retries en cours, fallback WhatsApp si 3e échec.
api-health · Il y a 1 min · retry+fallback:gmail→whatsapp
TikTok upload 503 intermittent
warningp95 élevé. Fallback Meta Reels proposé à Lina.
grafana · Il y a 4 min · fallback:tiktok→meta
WhatsApp stable — capacité fallback OK
infoCanal sain disponible pour absorber le trafic e-mail / Meta.
datadog · Il y a 8 min
Console résilience (logs)
Les actions (probe, fallback, breaker) apparaissent ici…