Fastly’s Compute@Edge offering allows you to build high scale, globally distributed applications and execute code at the edge.
Execute code quickly – No cold start on servers running around the world.
Exceptional user experiences – Local development and debugging environment help increase end-user experience.
Enhanced security – Isolation technology helps keep requests secure.
Compute@Edge provides a fast, secure and instant global compute platform that can be used for various use cases, such as ad targeting, content stitching and authentication. For a complete list of use cases, refer to the Compute@edge documentation.
There are various restrictions and limitations to Compute@Edge to note when running Full Stack feature flags and experiments. Refer to the official Fastly Compute@Edge documentation for the most recent resource limitations. Also, review the known limitations and constraints for Compute@Edge before getting started.
Out of the box, Optimizely's Feature Experimentation SDKs require a user-provided identifier to be passed in at runtime to drive experiment and feature flag decisions. This example generates a unique ID, stores it in a cookie and reuses it to make the decisions sticky. Alternatively, you can use an existing unique identifier available within your application and pass it in as the value for the
For more information on how Optimizely Feature Experimentation SDKs assign users to feature flags and experiments, see the documentation on how bucketing works.
You must have these prerequisites to use this start kit:
- A Compute@Edge account and Fastly CLI installed..
- An Optimizely account. If you do not have an account, you can register for a free account.
fastly compute init --from https://github.com/optimizely/fastly-compute-starter-kit
Follow the wizard and provide the service name, description and any other information.
- a) Add your
fastly.tomlif you want to use an existing Fastly servce.
- a) Add your
Update your Optimizely
src/index.js. Your SDK keys can be found in the Optimizely application under Settings.
Build and publish:
fastly compute publish
- Monitor logs:
Updated about 2 hours ago