Infrastructure Architecture

Service Dependency Map

Complete Docker container topology across all JIL Sovereign environments - from 23-container full SCN validators to 250 production services on DevNet. Every service, dependency chain, and memory budget documented.

4 Environments
23 Full Node Containers
20 Compact Node Containers
13 Service Categories
Section 1

Environment Topology

JIL Sovereign runs across four distinct environments, each with different container counts and resource profiles.

DevNet

Hetzner
192
services on Hetzner CPX62
  • All frontend apps + internal dashboards
  • Full API layer + all backend services
  • CI/CD, monitoring, AI agents
  • CPX62 (16 vCPU, 32 GB, 640 GB NVMe)

MainNet Full

Hetzner
23
containers per full SCN validator
  • Genesis, US, DE, EU, SG, BR
  • CPX52 (12 vCPU, 24 GB) or CCX33 (8 vCPU, 32 GB)
  • Includes retail APIs (wallet, explorer, launchpad)
  • Memory budget: ~13.5 GB

MainNet Compact

Hetzner
20
containers per compact SCN validator
  • CH, JP, GB, AE
  • CPX31 (4 vCPU, 8 GB)
  • No retail APIs - SCN validator duties only
  • Memory budget: ~6.5 GB (30-50% reduction)

Sandbox / TestNet

POC
28
public-facing services + Caddy TLS
  • All public apps (portal, wallet, explorer, launchpad)
  • CPX31 (8 vCPU, 16 GB)
  • Basic auth gated - no internal dashboards
  • Memory budget: ~6.5 GB
Section 2

Full Node - 23 Containers

Running on Genesis, US, DE, EU, SG, and BR SCN validators. Each container is a pre-built Docker image pulled from JILHQ's signed registry via docker save/load transfer - no source code on SCN validators.

ContainerCategoryPortMemoryDepends OnPurpose
jil-postgresInfra5432
4 GB
-PostgreSQL 16 - primary datastore for all services
jil-redisInfra6379
640 MB
-Redis 7 - caching, session store, pub/sub
redpandaInfra9092, 19092
2 GB
-Kafka-compatible event streaming (RedPanda v24.1)
SCN validator-nodeSCN Validator26656, 26657
1 GB
postgres, redis, redpandaRust L1 consensus node (jil5600-core), heartbeat to JILHQ
SCN validator-update-agentSCN Validator8070
128 MB
redpanda, SCN validator-node14-phase startup, Kafka fleet heartbeat, image pull agent
ledger-serviceCore8081
1 GB
postgres, redpandaLedger read/write engine, Kafka event producer
ledger-routerCore8000
512 MB
ledger-serviceSmart routing layer, load balancing to ledger-service
ledger-writerCore8060
256 MB
redpanda, ledger-serviceKafka consumer writing confirmed transactions to ledger
compliance-apiCompliance8100
512 MB
postgres, redisZone-based compliance rules, AML/KYC gate
policy-registryCompliance8103
256 MB
postgresOn-chain policy definitions and enforcement config
corridor-switchboardCompliance8055
256 MB
redpandaCross-zone corridor routing and compliance switching
settlement-apiSettlement8050
512 MB
postgres, ledger-router, redpandaSettlement engine - finality, webhooks, HMAC auth
settlement-consumerSettlement8051
512 MB
postgres, redpanda, settlement-apiKafka consumer for cross-zone settlement with retry backoff
proof-verifierSecurity8250
512 MB
postgresZero-knowledge proof verification (Groth16, PLONK)
mpc-cosignerSecurity8200
512 MB
postgresMPC 2-of-3 threshold signing (SoftHSM key store)
bridge-relayerBridge8150
512 MB
postgres, redpandaCross-chain bridge relay (ETH, Arbitrum, Base, Polygon)
bridge-chain-watcherBridge8151
256 MB
postgres, bridge-relayerMonitors external chain events for bridge deposits
market-stateDEX v58561
256 MB
postgresAMM v5 pool state, price feeds, liquidity tracking
execution-routerDEX v58562
256 MB
postgres, market-stateOrder routing, RFQ matching, buy-only enforcement
retail-lane-engineDEX v58563
256 MB
postgres, market-stateBatched retail order execution (3s batch window)
wallet-apiAPI8002
512 MB
postgres, ledger-service, ledger-router, policy-registry, redpandaUser wallet operations, WebAuthn, JWT auth
explorer-apiAPI8003
512 MB
postgres, ledger-serviceBlock explorer data API - transactions, blocks, accounts
launchpad-apiAPI8004
512 MB
postgres, redpandaToken launch engine, Build & Launch MemeCoins backend
web-walletApp80
128 MB
-React wallet UI (nginx static serve)

Memory total: ~13.5 GB across 23 containers. The top 3 consumers are PostgreSQL (4 GB), RedPanda (2 GB), and the SCN validator-node + ledger-service (1 GB each). Infrastructure alone accounts for ~6.6 GB (49% of total).

Section 3

Full vs Compact Node Comparison

Compact nodes run on smaller servers (CPX31: 4 vCPU, 8 GB) with reduced memory limits and 3 fewer services. They handle consensus and validation duties but do not serve retail API traffic.

ContainerFull MemoryCompact MemoryReductionIn Compact?
jil-postgres4 GB1 GB-75%
jil-redis640 MB320 MB-50%
redpanda2 GB768 MB-62%
SCN validator-node1 GB512 MB-50%
SCN validator-update-agent128 MB128 MB-
ledger-service1 GB512 MB-50%
ledger-router512 MB512 MB-
ledger-writer256 MB128 MB-50%
compliance-api512 MB256 MB-50%
policy-registry256 MB128 MB-50%
corridor-switchboard256 MB128 MB-50%
settlement-api512 MB256 MB-50%
settlement-consumer512 MB256 MB-50%
proof-verifier512 MB256 MB-50%
mpc-cosigner512 MB256 MB-50%
bridge-relayer512 MB256 MB-50%
bridge-chain-watcher256 MB192 MB-25%
market-state256 MB192 MB-25%
execution-router256 MB192 MB-25%
retail-lane-engine256 MB192 MB-25%
web-wallet128 MB128 MB-
wallet-api512 MB-removed
explorer-api512 MB-removed
launchpad-api512 MB-removed

Compact saves ~7 GB by removing 3 retail APIs (-1.5 GB) and reducing memory limits across all 20 remaining services (-5.5 GB). This allows compact nodes to run on CPX31 instances at ~EUR 16/mo versus CPX52 at ~EUR 65/mo.

Section 4

Service Dependency Chain

Services start in dependency order. Infrastructure boots first, then core ledger, then everything else. The critical path runs through PostgreSQL, RedPanda, and the ledger layer.

Critical Path (startup order)

PostgreSQL

:5432

Redis

:6379

RedPanda

:9092

Ledger Service

:8081

Ledger Router

:8000

Wallet API

:8002

Full Dependency Graph

ServiceDirect DependenciesStartup Layer
jil-postgresnone (root)Layer 0 - Infrastructure
jil-redisnone (root)Layer 0 - Infrastructure
redpandanone (root)Layer 0 - Infrastructure
web-walletnone (static)Layer 0 - Static
ledger-servicepostgres, redpandaLayer 1 - Core
compliance-apipostgres, redisLayer 1 - Core
policy-registrypostgresLayer 1 - Core
mpc-cosignerpostgresLayer 1 - Core
proof-verifierpostgresLayer 1 - Core
market-statepostgresLayer 1 - DEX
corridor-switchboardredpandaLayer 1 - Core
launchpad-apipostgres, redpandaLayer 1 - API
bridge-relayerpostgres, redpandaLayer 1 - Bridge
ledger-routerledger-serviceLayer 2 - Routing
ledger-writerredpanda, ledger-serviceLayer 2 - Routing
SCN validator-nodepostgres, redis, redpandaLayer 2 - Consensus
explorer-apipostgres, ledger-serviceLayer 2 - API
execution-routerpostgres, market-stateLayer 2 - DEX
retail-lane-enginepostgres, market-stateLayer 2 - DEX
bridge-chain-watcherpostgres, bridge-relayerLayer 2 - Bridge
settlement-apipostgres, ledger-router, ledger-compliance, redpandaLayer 3 - Settlement
wallet-apipostgres, ledger-service, ledger-router, policy-registry, redpandaLayer 3 - API
SCN validator-update-agentredpanda, SCN validator-nodeLayer 3 - Fleet
settlement-consumerpostgres, redpanda, settlement-apiLayer 4 - Consumer
Section 5

SCN Validator Fleet Map

10 mainnet SCN validators across 13 compliance zones and 4 continents. Quorum: adaptive 70% target (minimum 7 SCN validators).

SCN ValidatorLocationZoneTypeServerContainersRAM
GenesisNuremberg, DEGLOBAL_FATFFullCPX522324 GB
USHillsboro, USUS_FINCENFullCCX332332 GB
DENuremberg, DEDE_BAFINFullCPX522324 GB
EUHelsinki, FIEU_ESMAFullCPX522324 GB
SGSingapore, SGSG_MASFullCPX522324 GB
CHNuremberg, DECH_FINMACompactCPX31208 GB
JPSingapore, SGJP_JFSACompactCPX31208 GB
GBHelsinki, FIGB_FCACompactCPX31208 GB
AENuremberg, DEAE_FSRACompactCPX31208 GB
BRNuremberg, DEBR_CVMFullCPX522330 GB

Total fleet: 6 full nodes (23 containers each) + 4 compact nodes (20 containers each) = 218 running containers across the mainnet. JILHQ fleet controller runs on a dedicated Hetzner CPX52 server (hq.jilsovereign.com) with 7 services.

Section 6

Service Categories

Every container serves a specific role in the platform. Seven categories organize the architecture from infrastructure to user-facing apps.

Infra Infrastructure

3
PostgreSQL, Redis, RedPanda
  • All data persistence (PostgreSQL)
  • Caching and sessions (Redis)
  • Event streaming / Kafka API (RedPanda)

SCN Validator Consensus

2
SCN validator-node, update-agent
  • Rust L1 consensus (jil5600-core)
  • JILHQ heartbeat + fleet coordination
  • 14-phase startup sequence

Core Ledger Layer

3
service, router, writer
  • Ledger read/write engine
  • Smart routing + load balancing
  • Kafka-to-ledger confirmed writes

Security Compliance + Bridge

7
compliance, policy, MPC, bridge, proof
  • Zone-based AML/KYC compliance
  • MPC 2-of-3 threshold signing
  • Cross-chain bridge relay + watcher
  • ZK proof verification

Settlement Settlement

2
API + Kafka consumer
  • Finality engine with confirmations
  • Cross-zone settlement routing
  • Retry backoff (5 levels)

DEX DEX v5

3
market-state, execution, retail-lane
  • AMM v5 pool state + pricing
  • Order routing + RFQ matching
  • Batched retail execution (3s window)

API Retail APIs + App

3 + 1
wallet, explorer, launchpad + web-wallet
  • User wallet operations + WebAuthn
  • Block explorer data API
  • Token launch / Build & Launch MemeCoins
  • Full node only (excluded from compact)
Section 7

Image Distribution Pipeline

Every container image follows a secure pipeline from build to deployment. Images are signed, pinned, and digest-verified before any SCN validator runs them.

Build

DevNet local

Transfer

docker save/load

Release

JILHQ sign + pin

Pull

SCN Validator pulls

Verify

Digest match

Deploy

compose up

Security guarantee: SCN Validators never build images locally. Every image is pre-built on DevNet, transferred to the portal server via docker save/load, then registered/signed/pinned by JILHQ. SCN Validators pull by digest (not tag) and verify the SHA-256 matches the JILHQ manifest before deploying.

Section 8

Complete Service Catalog

All microservices across the JIL Sovereign platform, grouped by functional domain. Each service is a deployable container with its own lifecycle, ed25519 signing identity for Kafka envelopes, and topic membership. Stateless services (FWEA categories, renderers, watchers, verifiers) replicate across every SCN validator node and use Kafka consumer groups for horizontal fan-out; stateful services (databases, registries, front doors) run as singletons. Port assignments are tracked separately in docs/PORT_MAPPINGS.md.

Core L1 / Ledger (15)

jilhq · kafka-bootstrapper · kafka-consumer · l1-submitter · l2-bridge-adapter · l3-bridge-adapter · ledger-compliance · ledger-router · ledger-service · ledger-writer · obs-bus · pg-writer · SCN validator-key-ceremony · SCN validator-monitor · SCN validator-update-agent

API & User-Facing (12)

creator-studio · developer-annotation-sdk · enterprise-api · explorer-api · handle-resolver · launchpad-api · mobile-sdk-backend · ramps-api · regulator-portal · sdk-gateway · wallet-api · wallet-ui

Settlement & DEX (27)

corridor-engine · corridor-switchboard · corridor-worker · cross-chain-router · cross-portfolio-optimizer · dex-integration · dex-order-manager · dvp-settlement · execution-router · fix-generation-engine · fpml-processor · intent-engine · iso20022-gateway · market-state · multi-strategy-engine · nlp-interface · quarterback · retail-lane-engine · rfq-service · settlement-aggregator · settlement-api · settlement-consumer · settlement-dashboard · settlement-receipt-renderer · settlement-router · stablecoin-settlement · twap-engine

FWEA Verdict Engine (15 categories) (20)

attestation-aggregator · attestation-service · fraud-attestation-engine · fraud-firewall · fwea-common · fwea-cyber-integrity · fwea-data-residency · fwea-emerging-threats · fwea-esg-compliance · fwea-healthcare · fwea-identity · fwea-integrity · fwea-international-typology · fwea-payment-rail · fwea-regulatory · fwea-sanctions-deep · fwea-systemic · fwea-tax-compliance · fwea-trade-finance · fwea-velocity

Identity / KYC / KYB (27)

bid-service · biometric-processor · compliance-api · compliance-checker · consent-killswitch · consent-ledger · credential-registry · gleif-lei · identity-layer · kyc-service · liveness-detection · mica-compliance · ownership-verification · policy-decision-api · policy-registry · policy-timemachine · provenance-attestation · regulatory-reporter · reverification-scheduler · rule-engine · sanctions-screener · sanctions-screening-cache · selective-disclosure · tax-rules-engine · verifiable-claims · view-issuer · witness-notary

MPC / Crypto / Post-Quantum (20)

cross-chain-attestation · cross-chain-vault · device-attestor · emergency-disclosure · emergency-pause · guardian-attestor · hsm-key-management · key-management · mpc-cosigner · pq-crypto · pq-epoch-registry · pq-migration · pq-transition · recovery-ceremony · recovery-orchestrator · replay-attestor · solvency-attestor · verifier-quorum · zk-circuits · zk-receipts

Bridge & Chain Watchers (11)

anchor-adapter · bridge-chain-watcher · bridge-relayer · canton-bridge · ccip-bridge · cosmos-ibc-adapter · eth-migrator · financial-bridge · kinexys-connector · stellar-bridge-adapter · xrpl-bridge-adapter

Payment Rails / Connectors (15)

bank-attestation-ingestion · bank-safe-mode · bis-nexus-gateway · brazil-pix-connector · chips-connector · dtcc-connector · euroclear-connector · fednow-connector · nacha-interface · sepa-connector · sg-fast-connector · swift-gateway · target2-connector · uae-aani-connector · uk-fps-connector

Liquidity & Risk (13)

attack-pattern-library · behavioral-drift-detector · containment-mesh-router · liquidity-analytics · liquidity-drill · liquidity-metrics · liquidity-predictor · liquidity-risk · liquidity-sla · risk-scoring · risk-scoring-attest · risk-sentinel · toxicity-engine

Billing / Onboarding (9)

alert-dispatcher · analytics-integrations · aum-billing · billing-metering · calendar-integration · email-orchestrator · ops-alerts · ops-sentinel · performance-monitor

Document & Vault (10)

arweave-integration · audit-export · audit-session · auditsessions-transcript-ledger · document-classifier · document-templates · document-viewer · evidence-vault · ipfs-pinning · sdv-storage

Proof / Verification (19)

bulletin-federator · forensic-timeline · proof-bulletin · proof-capsule · proof-gateway · proof-graph · proof-ledger · proof-marketplace · proof-mesh · proof-mirror · proof-orchestrator · proof-redactor · proof-report · proof-score · proof-verifier · proofguard-gateway · public-proof · receipt-api · root-cause-analysis

Operations / Resilience (31)

accessibility-accommodations · agent-certification · ai-curator · ai-security-monitor · ai-trading-agent · borrow-integration · bug-bounty · chaos-engine · continuous-fuzzer · demo-orchestrator · devnet-runner · dispute-resolution · event-escalator · formal-verification · fuzzing-campaign · invariant-scan · invariant-verifier · perf-harness · pool-bootstrapper · privacy-budget-meter · recurring-obligation-detector · resilience-drill · sandbox-simulation · slo-reporter · telemetry-store · telemetry-ui · treasury-manager · upgrade-drill · vesting-distributor · watchtower · wie-service