Skip to content

jmonster/heroku-as-a-function-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

heroku-as-a-function [example]

FAAS Heroku as a Function (HAAF) runs your collection of request handlers without concerning you with the underlying server. Serverless? It's certainly less server.

Functions

You write nodejs functions as Koa request handlers. See functions/example.js.

const verb = 'get'
const path = '/'
const fctn = (ctx) => { ctx.body = "wubalubadubdub" }

module.exports = [verb, path, fctn]

Auto-Scaling

Thanks to Heroku Autoscaling your functions can dynamically grow/shrink inline with demand. Classic Heroku.

Try it

Deploy

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published