Functions Glossary

Functions are blocks of code that run on demand without the need to manage any infrastructure. Develop on your local machine, test your code from the command line (using doctl), then deploy to a production namespace or App Platform — no servers required. Learn more about functions.

This glossary defines the core concepts behind functions to help build your mental model of how functions work and understand what the documentation is referring to when it uses certain terminology.

Function as a Service (FaaS) is a type of cloud service that allows you to develop, run, and manage reusable functions without needing to build and maintain a backend infrastructure.
A function is a reusable block of code that you can deploy to the DigitalOcean Functions service and then access via a URL. For example, you can write a traditional Node.js function that returns a list of products from a database and then deploy that function to the Functions service.
A namespace is a a collection of resources containing one or more functions hosted on the DigitalOcean Functions service.
A package is a collection of functions. Packages let you organize functions within a project.
A project is a collection of resources, including a configuration file and one or more packages, which is stored on your local computer or in a GitHub repository.