What Programming Languages Can I Use with Akamai Functions

Published
Length
3 min read

Luis Felipe Dias

All posts

You can write edge code in JavaScript and TypeScript right out of the box. When asking what programming languages can I use with Akamai Functions, WebAssembly adds more choices. Teams can compile Rust, Go, C, and C++ to run at the network edge. This setup lets developers pick the right tool for each workload. Understanding what programming languages can I use with Akamai Functions in practice Akamai runs serverless edge code on its EdgeWorkers platform using a fast JavaScript engine. Develope

Cloud Functions IAM: the complete guide

Architecture patterns, implementation strategies, and security best practices. Delivered to your inbox.

Free white paper. No spam. Unsubscribe anytime.

You can write edge code in JavaScript and TypeScript right out of the box. When asking what programming languages can I use with Akamai Functions, WebAssembly adds more choices. Teams can compile Rust, Go, C, and C++ to run at the network edge. This setup lets developers pick the right tool for each workload.

Understanding what programming languages can I use with Akamai Functions in practice

Akamai runs serverless edge code on its EdgeWorkers platform using a fast JavaScript engine. Developers write standard JavaScript or TypeScript to inspect and change HTTP traffic. You can check headers, rewrite URLs, and build custom responses near the user. TypeScript code compiles down to plain JavaScript before you upload the bundle.

The platform runs on the V8 engine to keep startup times very low. Because V8 also supports WebAssembly, you are not stuck with just one language. Engineers can write heavy logic in Rust, Go, or C and compile it. Your JavaScript handler loads the compiled binary and passes data to it. AI agents can also generate and test these small edge scripts for your team.

Each edge function runs inside a tight sandbox with strict memory and CPU limits. Heavy runtime frameworks like Python or Java do not fit well in this space. Lightweight languages that compile to small binaries work best for fast web traffic.

How to pick the right language for edge workloads

Most teams start with JavaScript or TypeScript for basic web routing tasks. These two languages handle JSON parsing, header checks, and cookie logic with ease. Your web developers can reuse existing skills without learning a new toolset. They can also share helper code between the front end and the edge.

Some edge tasks need more raw speed or strict memory control. Image changes, token checks, and custom data parsing can slow down plain JavaScript. Rust and C++ shine here when you compile them into WebAssembly modules. Go also works well if you use a compiler that makes small binaries.

Keep an eye on your total bundle size when you mix languages. Edge platforms enforce strict size rules so code can spread across the globe fast. Large libraries or heavy language runtimes can push your code over the limit. Test your build output early to make sure the package stays small.

Cloud Functions IAM: architecture patterns and best practices

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

Security and operational tradeoffs at the edge

Running code across global edge servers brings clear security and management risks. Engineers and automated deploy scripts need API keys to push new code bundles. Static keys stored on laptops or in build servers can leak over time. Role rules control who can deploy code, but they stop at the upload step.

Once an active session starts, standard role rules do not watch live actions. An engineer with broad rights could push bad routing logic to every server. Edge functions also read backend API keys and user data during live traffic. If a log prints full requests, sensitive details like emails or card numbers appear.

Data masking rewrites matched fields like phone numbers or national IDs in results. Without strict controls, teams struggle to track who changed edge logic during an outage. Good operations require tight deployment checks and clear audit logs for every session.

Check database and API queries on the wire

Identity tools, roles, and network rules decide who opens a session. Setup alone cannot check what each query does or mask sensitive values in a response once a session starts. When workflows touch Postgres, MySQL, SQL Server, MongoDB, ClickHouse, Kubernetes APIs, SSH, or internal HTTP APIs, hoop.dev runs beside those services as an open-source proxy, a sidecar for your Postgres or API. It inspects requests coming in and results going back on the wire.

Your login details and client tools stay as they are while hoop.dev guardrails refuse bad deletes or drops before they run. On responses, hoop.dev data masking rewrites matched sensitive values in memory. Furthermore, hoop.dev holds SOC 2 Type II, is MIT licensed, and writes every query and decision to an audit trail that generates evidence for HIPAA, GDPR, and PCI DSS. See the source on GitHub.

Frequently asked questions

Does Akamai support Python or Ruby at the edge?

Native edge runtimes do not run Python or Ruby directly due to size limits. You must use JavaScript, TypeScript, or a language that compiles to small WebAssembly files.

How do I use TypeScript for my edge functions?

You write your logic in TypeScript on your local machine using standard type definitions. Before deployment, you run a build step that turns the code into standard JavaScript.

Can I use standard Node.js packages in my edge code?

You can use small npm packages that rely only on standard JavaScript features. Packages that need native OS access, file systems, or raw network sockets will fail.

Save the open-source gateway.

hoop is MIT-licensed infrastructure for controlling how AI agents reach production data. Star hoophq/hoop so you can inspect it, deploy it, or share it when your team starts governing agent access.