FFIG / rest-api

A REST API and server for FFIG
0 stars 0 forks source link

Deployment options #24

Open petr-tik opened 6 years ago

petr-tik commented 6 years ago

Thinking about the use cases of the API and how it's going to influence the deployment options.

API use cases:

  1. ffig explorer web application
  2. curl/CLI like godbolt's compiler explorer API

API requirements/constrains:

Dependencies - llvm, libclang, python (we have golang and luajit as dependencies - are they used by ffig to generate bingings or are they only for testing?)
If I understand correctly, our API is stateless and doesn't need storage?

Deployment options:

For a stateless API with <10 endpoints and a mostly idle time, it feels wasteful to reserve a DO instance.

AWS Lambda

Pros:
Cons:

Digital Ocean - reserved instance

Pros
Cons

@jbcoe thoughts?

jbcoe commented 6 years ago

We have no money as it stands. Will need to ponder.

petr-tik commented 6 years ago

AWS Lambda has a free tier, which is offered indefinitely (as of now anyway). Will add it to pros for AWS lambda