Overview
Edge computing with Cloudflare Workers, Vercel Edge Runtime, and Deno Deploy. Edge-side rendering, caching, and edge databases.
Capabilities
- Cloudflare Workers development
- Vercel Edge Runtime
- Deno Deploy
- Edge caching strategies
- Edge databases (D1, Turso)
- Edge middleware
- KV storage at edge
When to Use
Trigger phrases:
"edge computing"
"Edge computing — Cloudflare Workers, Vercel Edge, Deno Deploy"
Low-latency global apps
A/B testing at edge
Geo-based routing
Personalization at CDN edge
When NOT to Use
- Task is outside your authorization scope
- You need to implement controls (use implementing-* skills)
- Task is about analysis, not action (use analyzing-* skills)
- You don't have access to target systems
- Task requires compliance expertise (consult professionals)
- Task is about defense, not offense (use defensive skills)
Pseudo Code
The edge-computing workflow follows a standard pipeline pattern.
Core flow:
# edge-computing primary flow
input = prepare(raw_data)
result = process(input, config={caching, cloudflare, computing, databases, deno})
validate(result)
deliver(result)
Error handling:
on error:
log(error_details)
retry_with_backoff(max=3)
if still_failing: alert_and_escalate()
Cloudflare Worker + D1
export default {
async fetch(request, env) {
const { results } = await env.DB.prepare("SELECT * FROM users").all();
return Response.json(results);
},
};
Common Patterns
- Cache at edge, compute at origin
- Use KV for config, D1 for data
- Middleware for auth/geo routing
- Minimize bundle size
How to Use
- Define infrastructure as code (Terraform, CloudFormation, Pulumi)
- Review changes through PR process before applying
- Configure monitoring and alerting for critical paths
- Set up secrets management (Vault, AWS Secrets Manager, etc.)
- Document runbooks for deployment, rollback, and incident response
- Test disaster recovery procedures regularly
Red Flags
- Infrastructure changes without review: Unreviewed changes cause outages — use PRs for infra code
- No rollback strategy: Every deployment needs a tested rollback plan before it runs
- Secrets in configuration files: Secrets in YAML/JSON get committed to version control
- Missing monitoring and alerting: Without monitoring, outages go undetected until users report them
- No documentation for runbooks: Without runbooks, on-call engineers waste time re-discovering procedures
Verification
Process
- Analyze the task requirements
- Apply domain expertise
- Verify output quality
Anti-Rationalization Table
| Rationalization |
Reality |
| "Manual deployments are fine" |
Manual deployments are error-prone and不可 repeatable. Automate. |
| "We do not need monitoring" |
Without monitoring, you are flying blind. Add observability from day one. |
| "Infrastructure as code is overkill" |
IaC enables reproducibility, version control, and disaster recovery. |
1---2name: edge-computing3description: Use when edge computing — Cloudflare Workers, Vercel Edge, Deno Deploy.4 Edge rendering, caching, edge databases. Use when working with edge computing.5domain: devops6author: oyi777license: Apache-2.08subdomain: devops9tags:10- ci-cd11- computing12- devops13- edge14- infrastructure15version: 1.0.016category: devops17metadata:18 source: https://skillmd.com/skills/oyi77/edge-computing19---20212223## Overview2425Edge computing with Cloudflare Workers, Vercel Edge Runtime, and Deno Deploy. Edge-side rendering, caching, and edge databases.2627## Capabilities2829- Cloudflare Workers development30- Vercel Edge Runtime31- Deno Deploy32- Edge caching strategies33- Edge databases (D1, Turso)34- Edge middleware35- KV storage at edge3637## When to Use38**Trigger phrases:**39- "edge computing"40- "Edge computing — Cloudflare Workers, Vercel Edge, Deno Deploy"414243- Low-latency global apps44- A/B testing at edge45- Geo-based routing46- Personalization at CDN edge4748## When NOT to Use4950- Task is outside your authorization scope51- You need to implement controls (use implementing-* skills)52- Task is about analysis, not action (use analyzing-* skills)53- You don't have access to target systems54- Task requires compliance expertise (consult professionals)55- Task is about defense, not offense (use defensive skills)565758## Pseudo Code5960The edge-computing workflow follows a standard pipeline pattern.6162Core flow:63```64# edge-computing primary flow65input = prepare(raw_data)66result = process(input, config={caching, cloudflare, computing, databases, deno})67validate(result)68deliver(result)69```7071Error handling:72```73on error:74 log(error_details)75 retry_with_backoff(max=3)76 if still_failing: alert_and_escalate()77```787980### Cloudflare Worker + D181```javascript82export default {83 async fetch(request, env) {84 const { results } = await env.DB.prepare("SELECT * FROM users").all();85 return Response.json(results);86 },87};88```8990## Common Patterns9192- Cache at edge, compute at origin93- Use KV for config, D1 for data94- Middleware for auth/geo routing95- Minimize bundle size9697## How to Use98991. Define infrastructure as code (Terraform, CloudFormation, Pulumi)1002. Review changes through PR process before applying1013. Configure monitoring and alerting for critical paths1024. Set up secrets management (Vault, AWS Secrets Manager, etc.)1035. Document runbooks for deployment, rollback, and incident response1046. Test disaster recovery procedures regularly105106## Red Flags107108- **Infrastructure changes without review**: Unreviewed changes cause outages — use PRs for infra code109- **No rollback strategy**: Every deployment needs a tested rollback plan before it runs110- **Secrets in configuration files**: Secrets in YAML/JSON get committed to version control111- **Missing monitoring and alerting**: Without monitoring, outages go undetected until users report them112- **No documentation for runbooks**: Without runbooks, on-call engineers waste time re-discovering procedures113114## Verification115116- [ ] Skill output matches expected behavior117118## Process1191201. Analyze the task requirements1212. Apply domain expertise1223. Verify output quality123124## Anti-Rationalization Table125126| Rationalization | Reality |127|---|---|128| "Manual deployments are fine" | Manual deployments are error-prone and不可 repeatable. Automate. |129| "We do not need monitoring" | Without monitoring, you are flying blind. Add observability from day one. |130| "Infrastructure as code is overkill" | IaC enables reproducibility, version control, and disaster recovery. |