Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Fastly Compute @ Kauche

Fastly Compute @ Kauche

Kenta Takahashi

November 06, 2024
Tweet

More Decks by Kenta Takahashi

Other Decks in Programming

Transcript

  1. Agenda • Overview of Kauche’s Architecture • How do we

    use Fastly Compute? • Future of Using Fastly Compute
  2. Agenda • Overview of Kauche’s Architecture • How do we

    use Fastly Compute? • Future of Using Fastly Compute
  3. The Fastly Compute platform is an advanced edge computing system

    that runs your code, in your favorite language, on our global edge network. Security and portability are provided by compiling your code to WebAssembly. We run your code using Wasmtime. Fastly Compute
  4. The Fastly Compute platform is an advanced edge computing system

    that runs your code, in your favorite language, on our global edge network. Security and portability are provided by compiling your code to WebAssembly. We run your code using Wasmtime. Fastly Compute
  5. The Fastly Compute platform is an advanced edge computing system

    that runs your code, in your favorite language, on our global edge network. Security and portability are provided by compiling your code to WebAssembly. We run your code using Wasmtime. Fastly Compute
  6. Agenda • Overview of Kauche’s Architecture • How do we

    use Fastly Compute? • Future of Using Fastly Compute
  7. Compute Scenario • HTTP Header Modifications • Configure response headers

    based on request methods and hostnames • Add request headers for requests from specific clients • Implement headers like CORS, X-Frame-Options, X-Content-Type-Options, etc. • Per-Hostname Cache Settings • Default caching is off; enable caching for asset paths • Handling Unauthorized Hostnames • Logging Configuration
  8. Why do we use Fastly Compute? • Leveraging a general-purpose

    language (Rust) • Testability • Logging
  9. Why do we use Fastly Compute? • Leveraging a general-purpose

    language (Rust) • Testability • Logging
  10. Why do we use Fastly Compute? • Leveraging a general-purpose

    language (Rust) • Testability • Logging
  11. Fastly CLI • Generating the Template • Using the Emulator

    • use the Fastly CLI’s ``fastly compute serve`` command to start the implemented service locally and send actual HTTP requests to verify that the responses are as expected.
  12. Why do we use Fastly Compute? • Leveraging a general-purpose

    language (Rust) • Testability • Logging
  13. Why do we use Fastly Compute? • Leveraging a general-purpose

    language (Rust) • Testability • Logging
  14. Streaming Logging • Implementing Custom Log Fields • Can Be

    Implemented in Wasm • Send logs to BigQuery • Enabling Log Viewing and Aggregation Using Queries
  15. Agenda • Overview of Kauche’s Architecture • How do we

    use Fastly Compute? • Future of Using Fastly Compute
  16. Fastly AI Acceletor Fastly AI Accelerator reduces API calls and

    bills with intelligent, semantic caching.
  17. Expectations for Fastly • Fastly Image Optimizer for Compute •

    Keyless Authentication with Origin • Uses authentication methods like Workload Identity Federation • Ensures traffic doesn’t bypass FastlyEdge • Database at the Edge