← All Learning Paths

Edge Computing Engineer

An edge computing path covering CDN delivery, HTTP caching, ETag revalidation, cache invalidation, edge functions, and Hono.

roleintermediate9 nodes13.42h total

Path overview

边缘计算把逻辑推到离用户最近的位置,代价是对缓存一致性与失效策略要求极高。本路径从 CDN 与 HTTP 缓存语义出发,覆盖 ETag 条件请求、缓存键与失效、静态资源版本化、边缘函数与 Hono,以及安全清理 CDN 缓存的工作流。

This path pushes logic to the edge: CDN and HTTP caching semantics, ETag conditional requests, cache keys and invalidation, asset versioning, edge functions with Hono, and a safe cache-purge workflow.

  1. Compare "In-Application Caching: LRU and TTL" with "Invalidation: The Hard Problem" in "Caching Strategies for Web Applications" and state which trade-off you would accept in edge code.

    Completion criteria: Attach a one-page summary that quotes "In-Application Caching: LRU and TTL", lists two trade-offs, and links the commit where you applied it.

    Next step: Vercel Next.js Edge Functions

    ⏱ 1h

  2. Read "Vercel Next.js Edge Functions" as an architecture drill: for each Zero-cold-start edge runtime component, state what it owns and what it delegates.

    Completion criteria: Attach the component-to-responsibility table for Zero-cold-start edge runtime and annotate one trade-off with evidence from "WASM module support".

    Next step: Go + Hono Edge Microservice

    ⏱ 1.5h

  3. Compare "Go + Hono Edge Microservice"'s Go, Hono, OpenTelemetry design with your edge stack and list the trade-off "Minimal runtime surface and tree-shaking to keep cold starts small" implies.

    Prerequisites: Vercel Next.js Edge Functions

    Completion criteria: List each Go, Hono, OpenTelemetry component of "Go + Hono Edge Microservice", its responsibility, and one trade-off, citing "Minimal runtime surface and tree-shaking to keep cold starts small".

    Next step: Set HTTP Cache Headers for Static Assets and HTML

    ⏱ 1.5h

  4. Run "Filenames such as app.3f9c2a1b.js with a content hash." from "Set HTTP Cache Headers for Static Assets and HTML" and confirm the documented result "Confirm that asset filenames contain a content hash. Only then is a long immutable cache".

    Prerequisites: Go + Hono Edge Microservice

    Completion criteria: Deliver a transcript of "Set HTTP Cache Headers for Static Assets and HTML" with each step's command and observed state, ending at "Filenames such as app.3f9c2a1b.js with a content hash.".

    Next step: Purge CDN Cache After Every Deploy

    ⏱ 0.5h

  5. Apply "Purge CDN Cache After Every Deploy" to a edge task, checking that "An invalidation is created with an ID and the requested paths." appears after the "Make a deploy visible immediately without purging the entire distribution and hammering the" step.

    Prerequisites: Set HTTP Cache Headers for Static Assets and HTML

    Completion criteria: Run "Purge CDN Cache After Every Deploy" twice — once as written and once with a changed input — and attach both transcripts with the observed difference.

    Next step: Serve Stale Content on Origin Errors

    ⏱ 0.5h

  6. Execute "Serve Stale Content on Origin Errors" end to end, then repeat the last step with one parameter changed and compare "Keep a site available during short origin outages by extending the usable lifetime of cached".

    Prerequisites: Purge CDN Cache After Every Deploy

    Completion criteria: Run the steps through "Keep a site available during short origin outages by extending the usable lifetime of cached", paste the command output, and mark the line that matches "Upstream 5xx responses are replaced by a cached copy when one exists, and the response is"; then rerun with one parameter changed.

    Next step: Hono

    ⏱ 0.5h

  7. Wire "Hono" into a scratch edge project, following "Routing app.get(path: string, handler: Handler): void", and record one working request/response pair.

    Prerequisites: Serve Stale Content on Origin Errors

    Completion criteria: Attach one successful call and one invalid call against "Hono", citing "Middleware app.use(path: string, ...middleware: MiddlewareHandler): void" as the documented surface.

    Next step: Decide Cache Revalidation from Headers

    ⏱ 1h

  8. Solve "Decide Cache Revalidation from Headers" for edge work: turn JSON object: { response: { cacheControl, ageSeconds, etag? }, into {directives:{public:true,maxAge:60,staleWhileRevalidate:30},status:304 and pass both samples.

    Prerequisites: Hono

    Completion criteria: Submit a solution for "Edge Computing Engineer" that passes both samples ({response:{cacheControl:public, max-age=60, to {directives:{public:true,maxAge:60,staleWhileRevalidate:30},) and attach the failing case you fixed.

    Next step: Capstone: Edge Computing Engineer

    ⏱ 0.42h

  9. Build "Build an Image CDN Proxy with On-the-Fly Resizing" through its phases, keeping "Signed parameters" independently testable.

    Prerequisites: Hono, Decide Cache Revalidation from Headers

    Completion criteria: Run the project's test command for "Build an Image CDN Proxy with On-the-Fly Resizing", paste the passing output, and attach the acceptance note for "Signed parameters" with the test name.

    Next step: Run the capstone's tests, publish the repository, and demo it to a reviewer.

    ⏱ 4h