feat(infra): add multi-region deployment and failover strategy (#620)#695
Open
Nworah-Gabriel wants to merge 2 commits into
Open
feat(infra): add multi-region deployment and failover strategy (#620)#695Nworah-Gabriel wants to merge 2 commits into
Nworah-Gabriel wants to merge 2 commits into
Conversation
…code#620) Implement an active/warm-standby two-region topology by composing the existing single-region Terraform modules with aliased providers. - tf/multi-region: full stack (networking, compute, storage, monitoring) in primary + secondary regions - modules/dns-failover: Route 53 health checks + active-passive failover - modules/replication: S3 cross-region replication (uploads, backups) - modules/database-replica: cross-region RDS read replica + standby Redis - infra/scripts: failover.sh (promote/scale/failback), failover-drill.sh, validate-multiregion.sh - dr/: data-replication strategy + multi-region deployment runbook - add db_instance_arn output; required_providers in each module Validated with terraform fmt + validate (single- and multi-region). Closes rinafcode#620
|
@Nworah-Gabriel Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
rinafcode#615) Implement reliable outbound webhook delivery on the existing webhooks worker: - webhook-backoff.util: exponential backoff with equal jitter + max cap, and retryability classification (5xx/408/425/429/transport = retry; 4xx = permanent) - webhook-delivery.service: HMAC-signed HTTP POST; retryable failures throw so Bull re-enqueues with backoff (retry queue); permanent/exhausted -> dead-letter - webhook-monitor.service: failure counters + CustomMetrics/alert + events - webhook-retry.config: env-overridable maxRetries/delays/jitter/timeout - wire WebhooksWorker to the delivery service (optional-dep fallback for the orchestration pool); register WebhooksDeliveryModule Tests: 19 unit tests (backoff math, retry vs dead-letter, HMAC, job options). Closes rinafcode#615
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implement an active/warm-standby two-region topology by composing the existing single-region Terraform modules with aliased providers.
Validated with terraform fmt + validate (single- and multi-region).
Closes #620