目前支持的扩展方式 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…