1. 介绍 Fn is an event-driven, open source, functions-as-a-service compute platform that you can run anywhere. Some of it's key features: Write once Any language AWS Lambda format supported Run anywhere Public, private and hybrid cloud Import functions
目前支持的扩展方式 Listeners - listen to API events such as a route getting updated and react accordingly. Middleware - a chain of middleware is executed before an API handler is called. Add API Endpoints - extend the default Fn API. 具体的官方介绍 Listeners L
此为官方的参考说明 Running Fn in Production The QuickStart guide is intended to quickly get started and kick the tires. To run in production and be ready to scale, you need to use more production ready components. Put the Fn API behind a load balancer and l
Applications At the root of everything are applications. In fn, an application is essentially a grouping of functions with path mappings (routes) to each function. For instance, consider the following URLs for the app called myapp: http://myapp.com/h
Creating Lambda Functions Creating Lambda functions is not much different than using regular functions, just use the lambda-node-4 runtime. fn init --runtime lambda-node-4 --name lambda-node Be sure the filename for your main handler is func.js. TO
Option 1 (recommended): Use the fn cli tool We recommend using the fn cli tool which will handle all of this for you. But if you'd like to dig in and customize your images, look at Option 2. Option 2: Build your own images Packaging a function has
主要是文件 func.yaml func.json 详细说明如下: An example of a function file: name: fnproject/hello version: 0.0.1 type: sync memory: 128 config: key: value key2: value2 keyN: valueN headers: Content-Type: text/plain build: - make - make test expects: config: - n
具体部署还是比较简单的,以下为官方参考,只是有一个service type 为 loadBlancer 实际使用需要修改为NodePort Prerequisite 1: working Kubernetes cluster (v1.7+), and a locally configured kubectl. Quickstart Steps Deploy Fn to the Kubernetes cluster: $ cd docs/operating/ $ kubectl create -
Message Queues A message queue is used to coordinate asynchronous function calls that run through Fn. We currently support the following message queues and they are passed in via the MQ_URL environment variable. For example: docker run -e "MQ_URL=r
Databases We currently support the following databases and they are passed in via the DB_URL environment variable. For example: docker run -e "DB_URL=postgres://user:pass@localhost:6212/mydb" ... sqlite3 (default) URL: sqlite3:///functions/data/
Env Variables Description Default values DB_URL The database URL to use in URL format. SeeDatabases for more information. sqlite3:///app/data/fn.db MQ_URL The message queue to use in URL format. SeeMessage Queues for more information. bolt:///app/dat
cncf landscape CNCF Cloud Native Interactive Landscape 1. App Definition and Development 1. Database Vitess:itess is a database clustering system for horizontal scaling of MySQL. Apache CarbonData:Apache CarbonData is an indexed columnar data format
funktion open source event based lambda programming for kubernetes 官方地址: funktion.fabric8.io serverless framework A framework - not a service github 地址 https://github.com/serverless openfaas 功能还是比较强大的,而且更新也比较频繁 https://github.com/openfaas/faas fn pro