惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

AWS News Blog
AWS News Blog
T
Tenable Blog
Project Zero
Project Zero
T
The Exploit Database - CXSecurity.com
L
LINUX DO - 热门话题
T
Threat Research - Cisco Blogs
T
Threatpost
Security Latest
Security Latest
C
Cisco Blogs
L
Lohrmann on Cybersecurity
S
Security @ Cisco Blogs
Google Online Security Blog
Google Online Security Blog
NISL@THU
NISL@THU
AI
AI
V
Vulnerabilities – Threatpost
Google DeepMind News
Google DeepMind News
C
Cyber Attacks, Cyber Crime and Cyber Security
C
CXSECURITY Database RSS Feed - CXSecurity.com
The Last Watchdog
The Last Watchdog
G
GRAHAM CLULEY
Cloudbric
Cloudbric
H
Hackread – Cybersecurity News, Data Breaches, AI and More
H
Hacker News: Front Page
U
Unit 42
A
Arctic Wolf
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
MyScale Blog
MyScale Blog
O
OpenAI News
Scott Helme
Scott Helme
V2EX - 技术
V2EX - 技术
P
Proofpoint News Feed
博客园 - 叶小钗
Hugging Face - Blog
Hugging Face - Blog
云风的 BLOG
云风的 BLOG
V
Visual Studio Blog
Application and Cybersecurity Blog
Application and Cybersecurity Blog
Cyberwarzone
Cyberwarzone
博客园 - 【当耐特】
H
Heimdal Security Blog
S
Schneier on Security
阮一峰的网络日志
阮一峰的网络日志
Help Net Security
Help Net Security
D
DataBreaches.Net
Y
Y Combinator Blog
Hacker News - Newest:
Hacker News - Newest: "LLM"
TaoSecurity Blog
TaoSecurity Blog
K
Kaspersky official blog
N
News and Events Feed by Topic
WordPress大学
WordPress大学
P
Palo Alto Networks Blog

Fastly Blog

Fastly Fastly Fastly Fastly Fastly Fastly Fastly Fastly Fastly Fastly Fastly Fastly Fastly Fastly Fastly Fastly Fastly Fastly Fastly Fastly Six Common Live Streaming Mistakes (And How to Avoid Them) How Fastly and Skyfire Enable Trusted Agentic Commerce at the Edge Bot Defense is Table Stakes. Machine Traffic Requires a Business Strategy AI Traffic Grew 6.5x Faster Than Human Traffic This Year Give AI Agents the Markdown They Actually Want How to Configure Local Logging for an On-Prem Next-Gen WAF Agent Accountability Without Control Is Breaking Security Leadership Fastly Joins the Agentic AI Foundation (AAIF) to Guide Edge AI Interoperability The E-commerce Industry in the AI Era: Has the Agentic Flood Hit? No Margin for Error: What the FIFA World Cup Teaches Us About Performance at the Edge Why iGaming Infrastructure is Breaking and What Comes Next The Publishing Industry in the AI Era: Why Bot Strategy is Now a Business Strategy Bad Performance Kills SaaS/PaaS Growth — Why Your CDN Matters Why your code is safe from Copy Fail on Fastly Compute Myth or Marvel: Claude Mythos and What it Means for Security Introducing Compliance Audit Reports Supporting Google Private AI Compute with Privacy-Preserving Edge Infrastructure Fastly Nearly Half the Web Isn’t Human: Inside Fastly’s Threat Insight Report Media over QUIC: Can Streaming Finally Have Both Scale and Low Latency? Introducing Fastly’s Redesigned Homepage: Your Central Hub for Actionable Insights The False Choice of Indiscriminate Blocking: Why Technical Precision is the New Standard for an Open Internet What is CVE-2026-23869? React Server Components Security Alert Fastly enables first-party tagging for Google Advertisers Shrink Your Bill With Efficient Software Your AI coding agent just got better at Fastly Fastly Ranked as a Leader in the 2026 Forrester Wave™ for Edge Development Platforms Fastly at RSAC 2026: New Advances in AppSec, Bot Management, and Deception Mastering the Edge: What Golf Can Teach Us About Speed, Precision, and Performance Real-Time CDN Monitoring for Live Events with Bronto Imperva Alternatives Fastly + Scalepost: Extending the Fastly platform to manage AI Crawlers Best content delivery networks for bot management Vibe Shift? Senior Developers Ship nearly 2.5x more AI Code than Junior Counterparts Maximizing Compute Performance with Log Explorer & Insights Fastly CDN Expands Scaling Fastly Network: Balancing Requests | Fastly Best Practices for Multi-CDN Implementations | Fastly Compute@Edge: Serverless Insights by Company | Fastly Fastly can teach you about the Wasm future in just 6 talks Fastly's Observability Unleashed: New Updates and Insights Optimizing your multi-CDN infrastructure to improve performance Stay ahead of attackers by pushing your security perimeter to the edge Are APIs the Key to Digital Innovation or a Trojan Horse? Fastly Academy: on-demand learning at your fingertips. | Fastly 30 Years of Web: Building for Tomorrow 4 Ways Legacy WAF Fails to Protect Your Apps Adobe boosts performance and MTTR with Epsagon and Fastly logs | Fastly Beta" A New Serverless Compute Environment Early TLS at Fastly Technical trainings & the future of edge delivery at Altitude 2016: a year in review Innovation Capacity Defined: Tech Stack Values | Fastly Deep Log Visibility Offered by Logentries | Fastly Caching the Uncacheable: CSRF Security Increase Your Hit Ratio With This Simple Tip
Python SDK Beta: How the Language of AI Runs Faster and Safer with Fastly
Erik Rose, Ajay Bharadwaj, Terri Allegretto · 2026-06-03 · via Fastly Blog

Staff Engineer - WebAssembly

Your backends are written in Python. You’re building AI agents in Python. Wouldn’t it make sense to write your edge code in Python too? Now you can, with the beta release of the Fastly Compute Python SDK

Because Fastly runs one of the largest, fastest, most secure networks in the world, we can give your growing body of Python code every possible advantage. Whether you are vibe-coding your first AI project, validating access control tokens, or doing something we haven’t yet imagined, this new SDK moves your Python to the network’s edge, close to your users. And it does so with industry-leading speed and security.

Standard CPython, Standard Frameworks

For maximum compatibility, we cross-compile standard CPython so it runs inside our isolated WebAssembly sandboxes. Then, we provide an adapter to run standard WSGI apps atop our high-performance HTTP implementation. If you use popular Python web frameworks like Flask — or even an unusual one, as long as it conforms to WSGI — your code can run on our edge nearly unmodified and feel fully idiomatic. Pure Python modules also work great right out of the box.

A simple hello-world Flask application running on Fastly Compute looks like this:

from fastly_compute.wsgi import WsgiHttpIncoming
from flask import Flask

app = Flask(__name__)

@app.route("/")
def hello_world():
    return "Hello from Python, living on the Fastly edge!"

# The only special line: register the Flask app as the recipient
# of incoming requests, using our WSGI adapter.
HttpIncoming = WsgiHttpIncoming(app)

How We Make Python Fast

If you caught our recent talk at Wasm I/O on Componentizing Fastly Compute, you know that getting runtime-heavy languages to perform well at the edge requires serious engineering work. We shook out a diverse bag of tricks to eliminate CPython’s typically slow startup and present the quickest possible performance to the end user.

  • Memory Snapshotting: In the common case, a great deal of Python code, like module top levels, executes at startup, introducing massive cold-start delays. Fastly completely bypasses this. We let Python do that execution at build time, then create a pre-initialized snapshot of memory. In production, we instantiate from this snapshot within microseconds, allowing it to start up even faster than ordinary Python on a local machine.

  • Data Loops at the Edge vs. The Cloud: For real-time applications and AI agents, proximity matters. If the use of your application involves a series of network round trips to the user — for instance, checking a context, calling a tool, then grabbing a secret — shuttling back and forth to a centralized cloud server kills performance. Keeping that data-orchestration loop localized near the user, care of Fastly’s edge network, keeps the experience snappy and the customer happy.

How We Make Python Secure

The conversation around AI has evolved significantly in a very short time. As we saw across the dedicated AI and Security tracks at PyCon 2026 last month, the focus has shifted from mere prompt engineering to moving autonomous, agentic workflows into production.

This introduces enormous engineering challenges because, as a very dynamic language, Python has historically been hard to sandbox. If you are running LLM-generated code that isn’t fully trustworthy, doing so inside your core infrastructure poses major security risks. Conversely, Fastly’s isolation model offers a bulletproof place to host that code. We isolate every single request execution into its own ephemeral WebAssembly sandbox.

If code does something unintended, whether a mistake or malice, the blast radius is limited to our network edge, completely out of reach from your critical backend infrastructure. In addition, many exploits, like the recent Copy Fail and its brethren, are impossible on our platform because the kernel API surface area is protected — not the case for typical container-based isolation.

How We Keep Python Beautiful

On Fastly, you don't have to write clunky cross-language wrapper code. By leveraging WebAssembly Components and the WIT IDL, we provide type-safe APIs that look, feel, and act like pure, modern Python, even though they mate up to high-performance native code on the backend.

Beyond the WSGI support mentioned earlier, we make additional HTTP requests familiar and quick by giving you a compatible implementation of the de-facto-standard requests library that delegates to our optimized network stack. Just import it like so…

from fastly_compute import requests

... and then use it to make HTTP calls as you normally would.

Current Caveats

Because this is a beta and because of our focus on security and speed, please keep these caveats in mind:

  • Native ML computation frameworks aren’t here yet. NumPy, SciPy, and Pandas need some additional work before they’ll run in our environment. Pure Python logic and any native extensions that support WASI are fair game today.

  • Top-level imports needed. So our memory-snapshotting build process can snag them, packages must be imported at the top level of some module. (If you have third-party code that uses inner imports, you can work around this by importing them at the top level elsewhere.)

  • No filesystem or threads. If you are loading templates off disk or using multiple threads within a web request, your code will need adjustment. There isn’t yet a virtual filesystem or that sort of parallelism within our sandboxes.

Get started today

Ready to bring your Python code to the edge? Here’s how to get started:

We encourage submitting pull requests or open issues on the GitHub repo. Let us know any Python packages that are giving you trouble, what you are building, and how we can refine the developer experience on our way to General Availability!