Module 6 · Dual-rail failover blueprintGenerator autonomne Dual-Rail arhitekture i Webhook Failovera
Generišite produkcioni circuit-breaker kod u TypeScript, Python, Go i JSON Policy formatu sa ISO regulatornim proverama i DLR tajmerom.
Combined SLA 99.999%ACK ≤ 3750msDLR watchdog 12s
Quick ISO:
SimpleTexting (85%) → MSG91 (15%) · US_CA · DO
1< 5ms GSM-7 / RFC check
OTP · 100,000/mo
2Quiet hours: 21:00–08:00 local time
NANP / National Telecom Regulator · numeric_10dlc_or_tf_only
3ACK budget: 3750ms
85% Primary / 15% Standby · Rolling 5m DLR ≥ 92%
499.98% 90d SLA
85% allocation · corridor leader (US_CA)
599.999% combined SLA
15% active warm + instant <2s overflow
6Watchdog TTL: 12s
Auto-retry on carrier silence or grey-route drop
Regulatorni zahtevi izabranog ISO koridora pre produkcionog saobraćaja. · DO
- Орган
- Политика Sender ID
- Мандат
- Тихи сати
- Макс. повезаних сегмената
Otvori dosije koridora →Validate latency, quantify outage ROI, then launch Decision Brief with the same corridor.
Produkcioni circuit-breaker stubovi za TypeScript, Python, Go i mašinski čitljiva JSON politika.
// IOSOR 2027 Autonomous Dual-Rail Router (US_CA · DO · OTP)
export interface DispatchPayload {
to: string;
body: string;
idempotencyKey: string;
}
export const ROUTING_BLUEPRINT = {
corridor: 'US_CA',
isoCountry: 'DO',
scenario: 'otp',
primary: { id: 'simpletexting', name: 'SimpleTexting', weight: 0.85 },
failover: { id: 'msg91', name: 'MSG91', weight: 0.15 },
ackTimeoutMs: 3750,
dlrWatchdogSec: 12,
maxSegments: 6,
} as const;
export async function dispatchWithDualRailFailover(
payload: DispatchPayload,
sendViaPartner: (partnerId: string, p: DispatchPayload, signal: AbortSignal) => Promise<{ messageId: string }>
) {
const controller = new AbortController();
const timer = setTimeout(() => controller.abort(), ROUTING_BLUEPRINT.ackTimeoutMs);
try {
const res = await sendViaPartner(ROUTING_BLUEPRINT.primary.id, payload, controller.signal);
return { rail: 'primary', partnerId: ROUTING_BLUEPRINT.primary.id, ...res };
} catch {
const fallbackController = new AbortController();
const res = await sendViaPartner(ROUTING_BLUEPRINT.failover.id, payload, fallbackController.signal);
return { rail: 'failover', partnerId: ROUTING_BLUEPRINT.failover.id, ...res };
} finally {
clearTimeout(timer);
}
}