fnproject/fdk-go

How to organize multiple functions under same repo?

Opened this issue · 1 comments

What is a recommended way to manage multiple functions from code base perspective? My company want to move around 80 functionalities as OCI functions and I am wondering about the best way to organize these projects in a repository. Having 80 different git repos seems like an overkill. Do you have some best practices to organize multiple functions under same repo?

Do you still need help with this?

On the OCI Fn side, the best practice is to create an app and then your functions. It is encouraged to scope the functions in apps properly, so if 80 of your features can be categorized in say 5 groups, create 5 apps and then corresponding functions. On the repo side, there is no standard practice, but git submodules can come in handy. Each app can be a submodule - a root dir with each function having its own dir. You should be able to work with a shared library this way.