Netlify Functions
A modern, scalable backend built into every Netlify account. No setup, servers, or ops required.
Full-powered sites—no servers required
Meet the modern backend. Infinitely scalable. Genuinely simple.
Serverless made painless
Powered by AWS Lambda. Simplified by Netlify.
Write JavaScript or Go APIs to perform just about any backend task, scaling automatically as demand increases. Setting up AWS Lambdas on your own can be fairly complex—tutorials average 20 steps! With Netlify, simply set a folder and drop in your functions. Everything else is automatic.
How Netlify Functions work
Write simple functions that automatically become APIs.
Netlify deploys the functions you write as full API endpoints and will even run them automatically in response to events (like a form submission or a user login). Functions receive request context or event data, and return data back to your frontend.
Give backend superpowers to your frontend code
Functions can respond to events, sanitize user input, and know who’s logged in.
Automated triggers
Automatically trigger any function to run when a new deploy succeeds, a user authenticates, or a new form submission arrives.
Third-party APIs
Set up functions to check and sanitize user data before sending on to third-party APIs. Or use functions to process API responses and combine API services in new and exciting ways.
User authentication
Instead of managing sessions on a server, use JavaScript Web Tokens to handle identity right in the browser, passing session tokens directly to your serverless functions.
Less setup, more productivity
Functions as a Service (FaaS) providers like AWS handle some of the infrastructure hassle; Netlify takes the final step to bring functions directly to your workflow.
Running a server | Cloud FaaS | Netlify Functions | |
---|---|---|---|
Managed infrastructure | |||
Automatic scaling | |||
Code deployment | |||
Versioning |
Decoupled but not divided
Frontend code & backend code in one powerful workflow.
Develop modularly. Deploy collectively
Atomically deploy your sites and apps, pushing frontend code and backend functions together, as a unit, without even requiring a maintenance window.
Stage, preview, and rollback
Netlify Functions share all of Netlify’s beloved workflow features. Preview every commit with Deploy Preview links. Rollback when needed by simply clicking a prior deployment.
Run A/B testing and phased rollouts Beta
Deploy and test multiple branches, and even control which users see which version. Plan full experiments and rolling upgrades that include both front and backend code changes. A/B test not just a button color, but an entire user workflow.
Pricing for Netlify Functions
Netlify Functions are free to try and available as soon as you activate your account. Pricing scales as your usage grows—from small projects to fully customized enterprise plans.
Functions | Level 0 | Level 1 | Level 2 |
---|---|---|---|
Requests per month | 125,000 | 2 million | Custom limits |
Runtime per month | 100 hours | 1,000 hours | Custom limits |
Deploy to custom AWS account | |||
Security by Intrinsic | |||
Extras | $19/each | Contact sales |
Get started with Netlify Functions
Deploy a scalable backend with Netlify Functions in minutes.