SnakeBatch v6: Economics of Binary Divide and Conquer

Charles Dana · Monce SAS · April 2026

snakebatch.aws.monce.ai · /paper · /architecture

1. Cost Model

1.1 Lambda Pricing (eu-west-3)

v6 uses ONE Lambda type: v6-worker at 10GB.

v6-worker (10GB, ~6 vCPUs):
  invoke:  $0.0000002 per request
  compute: 10GB × duration × $0.0000166667/GB-s

  Leaf node (~200ms):    $0.000033
  Internal node (~100ms): $0.000017
  Total per worker:      ~$0.000025 avg

1.2 Workers Per Training Run

W(n, L) = Llayers × (2 × n/b − 1)

Binary tree: 2×leaves − 1 nodes per layer. All layers run in parallel.

ScaleLayersWorkers/layerTotal workersWall clockCost
2505L~7~352.0s$0.001
1K5L~25~1252.4s$0.003
5K15L~130~1,9505.3s$0.05
15K5L~400~2,0007.3s$0.05
150K5L~4,000~20,00019.8s$0.50
1M5L~27,000~135,000~30s (est)$3.40

1.3 v5 vs v6 Cost Comparison

Scalev5 costv5 wallv6 costv6 wallSpeedup
1K (5L)$0.002~5s$0.0032.4s2.1×
5K (15L)$0.0246s$0.055.3s8.7×
15K (5L)$0.0220s$0.057.3s2.7×
150K (5L)$0.14270s$0.5019.8s13.6×

v6 costs 2–3x more per training (10GB workers vs 2GB) but runs 3–14x faster. The cost-per-second is dramatically better. For time-sensitive workloads, v6 dominates.

2. Why 10GB Workers

v6 workers need 10GB not for memory but for CPU. At 10GB, Lambda provides ~6 vCPUs. The worker does:

Downgrading to 2GB would halve cost but triple wall clock. Not worth it for the binary recursion pattern where each hop adds ~100ms.

3. Scaling Projections

3.1 With 10K Concurrent Limit

ScaleLayersPeak concurrentWithin 10K?
5K15L~200
15K15L~1,500
30K15L~3,000
150K5L~4,000
150K15L~12,000✗ (queue)

3.2 With 100K Concurrent (pending approval)

ScaleLayersPeak concurrentWithin 100K?
150K15L~12,000
150K50L~40,000
1M5L~27,000
1M15L~80,000
1M25L~135,000

4. Fixed vs Variable Costs

ComponentMonthlyType
EC2 t4g.micro (proxy)$3Fixed
S3 storage~$0.50Fixed
Route53 + CloudWatch~$1.50Fixed
Total fixed$5/mo
Lambda compute$0.003–$3.40/trainVariable
Zero traffic = $5/mo. Same as v5. The binary recursion is purely variable. No provisioned capacity, no always-on workers, no orchestrator Lambda.

5. Business Model Impact

5.1 Speed as a Feature

v6’s 3–10x speed improvement enables new use cases:

5.2 Cost Per Classification

Scalev6 costPer rowComparable to
1K$0.003$0.000003Free tier
15K$0.05$0.0000033Cheaper than SageMaker inference
150K$0.50$0.0000033Same per-row at scale
1M$3.40$0.0000034Linear scaling
$3.40 per million classifications. Flat per-row cost at any scale. No bulk discount needed because the baseline is already near-zero. Explainable SAT audit traces included.

6. Summary

Charles Dana · Monce SAS · snakebatch.aws.monce.ai · April 2026
Co-Authored-By: Claude (Anthropic)