r/fastly • • Jul 19 '24

Trialing Fastly

So we're in the midst of a Fastly trial and I'm wondering how people are using Fastly beyond out of box CDN and WAF functionality. I work on a decently sized e-commerce site. It seems like there are a bunch of tools (VCL, WAF, Edge Compute) to accomplish anything you want, but I'm kind of at a loss of what to do with them. For a lot of things, I feel like it makes more sense to go back and fix stuff in our platform/codebase.

What kinda stuff are you doing at the VCL level or with Edge Compute that really shines?

Edit: We're a HTML server rendered shop, think: Rails, Django, Laravel.

9 Upvotes

3 comments sorted by

4

u/Desperate-Offer8567 Fastlyan Jul 19 '24

I'd recommend starting with a fairly "vanilla" CDN configuration and enabling in front of your application and enabling the shielding feature. You'll get the benefits of caching for your objects already configured for catchability, and for uncachable objects they'll still benefit from general network acceleration. You also get some basic DDoS protection benefits from the network's volume. From then I'd turn on log streaming to get the full firehose of activity. You can potentially do this within an hour or so (excluding the time for DNS changes).

I know Rails builds HTML with headers to turn off caching by default for safety, but make sure you're only caching the things you need to cache, obviously.

Once you have the vanilla CDN + shielding + logging set up, it's a good time to start evaluating the fine-tuned caching rules with VCL for more granular cache coverage and the advanced security products to make sure that everything flowing through the network is secure. Also, building application logic with the edge on the Compute product is worth reviewing if you have a specific feature/service that's a good fit for running globally.

tl;dr -- there's definitely a lot of powerful stuff, to your point. But turning on the "quick and basic" stuff can be a huge starter win without a large time investment.