and its operations including provisioning, scaling, patching, etc. • Serverless architecture is when an app is built entirely on serverless components (compute, storage, networking) • FaaS is the compute component in a serverless architecture
infrastructure • Powerful: Transparent and limitless scaling • Faster: Deploy faster, iterate faster, innovate faster • Cheaper: Only pay for what you use to the 100ms (never idle)
one thing well and are easy to understand and maintain • As a service means no complicated plumbing, the system takes care of provisioning, scaling, patching, maintaining, etc. Each function scales independently. In mathematics, a function is a relation between a set of inputs and a set of permissible outputs with the property that each input is related to exactly one output. Function (mathematics) - Wikipedia https://en.wikipedia.org/wiki/Function_(mathematics)
Can be deployed to any cloud and on-premise • Simple, elegant, and extensible by design • Containers are primitives • Hot containers provide fast response times (< 100ms) • Active w/ 2500+ commits across 50+ contributors • Independently governed with plans for foundation
a container image • Gets input via STDIN and environment • Produces output to STDOUT • Logs to STDERR The Fn server handles everything else, like the API gateway, piping things around, storing logs, etc.
input and writing output • Familiar syntax for Lambda developers • Simply write a `handler` function that adheres to the FDK’s interface and it will parse STDIN and provide the input data to your function and deal with writing the proper output format. • Makes it a lot easier to write hot functions
myapp <call-id> • fn logs get myapp <call-id> • Metrics created using OpenTracing w/ initial collectors and extensions for Prometheus, ZipKin, and soon Jaeger
and functions • Executes sync functions, returning responses to clients immediately • Queues async function calls • Executes async functions when capacity is available • Written in Go, easy to extend via plugin module system
to certain nodes consistently for hot function efficiency • Scales each function independently based on traffic to any particular function • Can be used to scale Fn servers and infrastructure as well as it has a view of global state of all fn servers
modules that are thin wrappers around their respective drivers. ◦ DB: MySQL, sqlite3, Postgres ◦ Queue: Redis, Kafka ◦ Registry: Any Docker v2-compliant, even private • Metrics/Monitoring ◦ OpenTracing API for metrics ◦ Prometheus support, pluggable backends ◦ Logging via syslog
work in process to optimize on Kubernetes • Helm chart available at https://github.com/fnproject/fn-helm • Thinking about deeper Kubernetes integrations including CRD’s to model functions
is too slow for sync requests b. Coordinating all resource alloc to one k8s master is slow c. Yes we can preload + hot pod like we do with current scheduling but… 2. Scale a. Runs out of addressable network space quickly b. Functions easily scale to the hundreds of thousands / millions
a. Overlay1 ran out of file descriptors / blocks b. Btrfs container creation / deletion under load was minutes c. Overlay2 was the only one that ended up tenable
VM b. Kick the fn container and fire up a new one c. Systemd can manage Fn nicely 2. Control Docker version / config easier for our customers a. Inner can differ from outer
sets of language-specific primitives including fork-join, chaining, delays and error handling • Supports complex parallel processes that are readable and testable (including unit tests) with standard programming tools • Java support using CompletableFuture API from Java 8 with JS, Python, Go language support on the way!
conversation: slack.fnproject.io 3. Learn more: fnproject.io 4. We’re hiring engineers and evangelists: [email protected] Name Title @twitter Get Involved