title = "Cookie based A/B Testing" template = "render_hub_content_body" date = "2025-01-24T00:00:00Z" content-type = "text/plain" tags = ["http", "Rust"]
[extra] author = "Thorsten Hans" type = "hub_document" category = "Sample" language = "Rust" created_at = "2025-01-21T13:50:00Z" last_updated = "2025-01-21T13:50:00Z" spin_version = ">=v3.1.0" summary = "A Spin application showcasing how to implement A/B testing based on a cookie." url = "https://github.com/fermyon/fwf-examples/tree/main/samples/ab-testing-cookie" keywords = "Rust, HTTP"
This sample application shows how you can use a Spin application to implement A/B testing based on a cookie.
You need the following tools on your machine, to build, run and deploy the application to Fermyon Wasm Functions:
- The
spinCLI - Rust tools and the
wasm32-wasip1target - The
akaplugin forspinCLI - Access to Fermyon Wasm Functions