Command Palette

Search for a command to run...

UnylyUnyly
Back to skills

multi-region

FreeNo executable scriptsNot checked

Multi-region RAG deployments for latency and resilience. Covers geo-replicated vector stores (Pinecone multi-region, Qdrant cluster, MongoDB Atlas Global…

claude-dev-suiteby claude-dev-suite★ 51 GitHub stars

About this skill

Multi-Region RAG

Three drivers for multi-region: (1) latency — cut cross-ocean RTT to your users; (2) sovereignty — data must stay in EU / US-only / India; (3) resilience — survive a full region outage. Each implies different architecture.

Reference Architecture

                 ┌──────────────────── Users (global) ─────────────────────┐
                 │                                                          │
           GeoDNS / Anycast LB (Cloudflare, Route 53 geolocation)
                 │                                                          │
     ┌───────────┼────────────┬────────────────────────┐
     │           │            │                        │
  US-East     EU-West     AP-SE-1
  ┌──────┐   ┌──────┐    ┌──────┐
  │ App  │   │ App  │    │ App  │   stateless RAG orchestrator
  └──┬───┘   └──┬───┘    └──┬───┘
     │          │           │
  Embed/Rerank Embed/Rerank Embed/Rerank    (regional GPU pools)
     │          │           │
  Vector DB  Vector DB   Vector DB          (geo-replicated or sharded)
     │          │           │
  LLM (us-east1) LLM (eu1)  LLM (ap-south1) (regional provider endpoints)

Control plane (auth, tenant config, billing) can stay single-region behind the gateway; replicate only the read paths.

Geo-Replicated Vector Stores

Pinecone

  • Serverless: single-region per index today; you create one index per region and replicate from the writer region.
  • Pods: multi-AZ in-region; multi-region is still an app-layer concern.

Pattern:

from pinecone import Pinecone
pcs = {
    "us": Pinecone(api_key=US_KEY).Index("kb-us-east-1"),
    "eu": Pinecone(api_key=EU_KEY).Index("kb-eu-west-1"),
    "ap": Pinecone(api_key=AP_KEY).Index("kb-ap-se-1"),
}

def query_nearest(region, vector, k=5):
    return pcs[region].query(vector=vector, top_k=k, include_metadata=True)

Qdrant Cloud (Cluster)

Qdrant supports multi-node clustering with replication factor per collection:

from qdrant_client import QdrantClient
from qdrant_client.models import VectorParams, Distance

qc = QdrantClient(url="https://your-cluster.qdrant.cloud", api_key=KEY)
qc.create_collection(
    collection_name="kb",
    vectors_config=VectorParams(size=1024, distance=Distance.COSINE),
    replication_factor=3,
    write_consistency_factor=2,
    shard_number=12,
)

For true geo, run one cluster per region and replicate at the ingest layer (dual-write from Kafka).

MongoDB Atlas Global Clusters

Atlas supports native zoned sharding (by tenant_region shard key). Atlas Vector Search lives on the same cluster, so vector ops inherit the zoning:

  • Tenants in zone EU have their shards pinned to EU regions.
  • A vector query from an EU app hits EU shards only.

Weaviate Cluster

Multi-node with replication; cross-region typically means a cluster per region plus app-layer routing. Enterprise Weaviate has read-replica configurations.

Elastic / OpenSearch

Cross-Cluster Replication (CCR) propagates indices from a leader cluster in the writer region to follower clusters in reader regions. Vector fields replicate like any other field.

Per-Region Embedding and Rerank

Embeddings are stateless; deploy TEI/Triton per region and pin routing:

  • Each app pod calls the same-region embedder (http://tei.svc.cluster.local).
  • Cross-region embedder calls only during disaster failover.

Pre-warm each regional pool with a warmup request on pod start; cold start hurts the first query after region spin-up.

Embedding Cache per Region

Regional cache, not global — cross-region cache hits don't save latency.

# Redis per region; keyed by sha256(text) -> vector
async def embed_cached(text: str, region: str) -> list[float]:
    key = f"emb:{region}:{sha256(text)}"
    if (v := await redis[region].get(key)) is not None:
        return orjson.loads(v)
    v = await embed_via_tei(text, region)
    await redis[region].setex(key, 86400, orjson.dumps(v))
    return v

Common query embeddings get cache-hit rates of 30–60% in chat workloads.

LLM Routing by Latency and Residency

Provider Regional endpoints
Anthropic (direct API) us-east, eu-west (beta), expanding
AWS Bedrock (Claude) Many: us-east-1, us-west-2, eu-central-1, ap-northeast-1, ap-southeast-1
GCP Vertex (Claude, Gemini) All major regions
OpenAI (direct) Global anycast + data residency add-on for EU/KR/JP
Azure OpenAI Many regions; residency per deployment

Route in the gateway:

REGION_TO_BEDROCK = {
    "us": "us-east-1",
    "eu": "eu-central-1",
    "ap": "ap-southeast-1",
}

def llm_for(region):
    import boto3
    return boto3.client("bedrock-runtime", region_name=REGION_TO_BEDROCK[region])

Sovereignty: set the region by tenant, not by user IP. A US-resident admin for an EU tenant must still hit EU infra.

Eventual Consistency for Index Updates

Cross-region replication lag is the dominant sou

Full SKILL.md on GitHub

Install multi-region in Claude Code & Claude Desktop

Sign up to install this skill

Create a free account to reveal the install command and save the skill to your library.

  • Reveal the one-line install command
  • Save skills to your synced library
  • Get notified when skills update
Sign up freeI already have an account

Allowed tools

Tools this skill is permitted to call.

Read
Grep
Glob
Write
Edit

FAQ

What does the multi-region skill do?

Multi-region RAG deployments for latency and resilience. Covers geo-replicated vector stores (Pinecone multi-region, Qdrant cluster, MongoDB Atlas Global, Weaviate), per-region embedding/rerank pools, LLM routing to nearest provider region (Anthropic, OpenAI, Bedrock), eventual-consistency strategies for index updates, and failover patterns. USE WHEN: user mentions "multi-region RAG", "global RAG", "geo replication", "RAG failover", "latency routing", "regional LLM endpoint", "disaster recovery RAG" DO NOT USE FOR: single-region scaling - use `rag-production`; LLM gateway vendor routing - use `llm-gateway`; CDN caching - use `rag-caching`

How do I install the multi-region skill?

Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.

Does the multi-region skill run scripts?

No, this skill is instructions only (SKILL.md) with no executable scripts.

Related skills

Compare multi-region with