Aller au contenu
IMPULS2IA GLOBAL AGENTS
Mode démo4

Résilience

Gestion des erreurs & résilience

Pannes API, fallbacks automatiques, circuit breakers, monitoring temps réel et alerting intelligent

Gremlin · logs · retries · bascule canal · isolation microservices · Datadog / Grafana

Gremlin — tests de robustesse

Chaos engineering contrôlé : injectez une panne API ou un crash serveur, puis validez fallbacks, circuit breakers et alerting.

Panne API

ready

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

ready

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

ready

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

Panne API · Hier 16:42 · observedFallback WhatsApp déclenché en 2,1 s — SLA client OK.
Crash serveur · Lun. 09:15 · haltedHalt manuel après validation alerting Datadog + page HITL.

Gestion des pannes API

Meta, Gmail, WhatsApp, M365… — cliquez pour sonder / activer le contexte agent.

Fallback automatique

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é

Circuit breaker

Isolation type microservices — OPEN coupe le trafic, HALF-OPEN sonde, CLOSED reprend.

communication-email

half_open

gmail · échecs 3/5 · cooldown 60s

GET /gmail/v1/users/me/profile

communication-social

open

meta · échecs 8/5 · cooldown 120s

GET /v19.0/me?fields=id

communication-whatsapp

closed

whatsapp · échecs 0/5 · cooldown 45s

GET /whatsapp/health

finance-payments

closed

stripe · échecs 0/3 · cooldown 90s

GET /v1/balance

marketing-tiktok

half_open

tiktok · é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

Système de résilience

Patterns microservices appliqués aux canaux GIBG.

Incidents

Monitoring temps réel & alerting

Live · Datadog / Grafana

Tableaux de bord

Alerting intelligent

Meta Graph down — bascule WhatsApp active

critical

Circuit 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

warning

Error 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

warning

p95 élevé. Fallback Meta Reels proposé à Lina.

grafana · Il y a 4 min · fallback:tiktok→meta

WhatsApp stable — capacité fallback OK

info

Canal 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…