lithops-cloud / lithops

A multi-cloud framework for big data analytics and embarrassingly parallel jobs, that provides an universal API for building parallel applications in the cloud ☁️🚀
http://lithops.cloud
Apache License 2.0
320 stars 106 forks source link

How to add a new backend, like openfaas #512

Closed tanwww closed 3 years ago

tanwww commented 3 years ago

how to add a new backend , like openfaas

JosepSampe commented 3 years ago

@tanwww The easiest way is to copy-paste a backend from https://github.com/lithops-cloud/lithops/tree/master/lithops/serverless/backends. For example, you can copy the ibm_cf backend, rename it to openfaas, and then change the implementation of all the internal public methods. (you can delete all the private methods and create new ones if necessary)

As with the other backends, A new backend must have (at least) 3 files:

dansantan commented 3 years ago

@JosepSampe thanks for your reply, I'll try.