Skip to content

Latest commit

 

History

History
11 lines (6 loc) · 1.22 KB

README.md

File metadata and controls

11 lines (6 loc) · 1.22 KB

racket-template

OpenFaaS template for developing functions based on the Racket environment.

To find out more about the OpenFaaS templates see the faas-cli.

Note: This template is completely customizable - so if you want to alter it please do fork it and use faas template pull to make use of your updated versions.

To utilize this template, edit the handler.rkt file, adding any necessary function deffinitions. The top level function handle will be executed whenever the deployed function is invoked. Input can be read from stdin, and any output should be printed to stdout. The builder image makes use of raco exe and raco distribute to compile the functions and distribute any necessary libraries to speed up execution. You can read more about how raco exe works here.

The current version of OpenFaaS templates use the original watchdog which forks processes - a bit like CGI. The newer watchdog of-watchdog is more similar to fastCGI/HTTP and should be used for any benchmarking or performance testing along with one of the newer templates. Contact the project for more information.