#1432
Implement Edge-Cached Dependency Pre-bundling
enhancement
priority: medium
status: in-progress
š Problem Statement
Current deployment pipelines bundle dependencies on every cold start, adding 1.2sā2.8s to initial boot time for Node.js/Python runtimes. This impacts serverless functions and preview environments significantly.
We need a distributed pre-bundling layer that caches optimized dependency bundles at the edge, reducing cold starts to <200ms while maintaining deterministic builds.
š§ Proposed Solution
- Introduce
git edge bundleCLI command to generate versioned lockfiles - Cache bundles in regional edge nodes using content-addressable storage (CAS)
- Fallback to local bundling if edge cache misses or integrity fails
- Expose cache hit/miss metrics in deployment logs
edge-config.yaml
v2.1.0
build:
edge_cache: true
runtime: nodejs20.x
regions: [us-east-1, eu-west-2, ap-south-1]
ttl: 24h
# Fallback strategy
fallback:
strategy: local-build
timeout: 30s
š Activity Timeline
Changed status to In Progress. Starting RFC draft for cache invalidation strategy.
Added enhancement label. This aligns with Q3 performance goals.
Initial POC benchmark: 1.8s ā 0.14s cold start improvement on eu-west region.
Issue created. Assigned to @platform-team. Milestone: v3.2.0
š¬ Comments (3)
MR
Marcus Rivera
1 day ago
We should consider cache warming on `git deploy --preview`. Also, what's the eTag strategy when `package.json` changes but `node_modules` content hash remains identical?
SK
18 hours ago
Good catch. We'll use composite hashing: `.`. If either changes, cache invalidates. I'll update the spec doc.
AL
6 hours ago
Security team approved the CAS design. Ready for implementation sprint starting Monday. Linking internal RFC: docs.git.internal/rfc/1432-cache