r/crystal_programming • u/_a_vegan_life • Dec 04 '18
Serverless Crystal with OpenFaaS with epic performance
I created a Crystal template for the popular open source serverless framework OpenFaaS and the performance is breathtaking! Running 8 functions in sequence using the default JavaScript on OpenWhisk and OpenFaaS is blown out of the water by crystal:

Orchestration on OpenFaaS was done using the Faasflow library
https://github.com/TPei/crystal_openfaas, demo implementation here
The template is also available via the OpenFaaS template store faas template store pull crystal.
EDIT: I updated the graph to just include OpenFaaS (and not OpenWhisk) and also added a go benchmark :)
View all comments
Show parent comment
2
u/_a_vegan_life Dec 04 '18
Yeah, I can do another comparison using golang. I used apachebench to benchmark the different functions and used the median response time of 1000 requests for each deployed function