Hi HN,
I need you.
I'd like to know what is the current state of the art regarding the use of serverless paradigm for API endpoints.
Context:
We currently use Google Cloud Functions for our API. Our startup is young, and just the 2 cofounders are working on it. Our product is a consumer iOS app. The backend is something we don't have a lot of time to dedicate yet.
~1k DAU
~5k Daily API calls,
Traffic spread between US, Europe, East Asia, Australia
Over a classic webserver deployed on Heroku/EC2,
Pros
- easy to deploy
- easy to maintain
- easy to setup
Cons
- cold starts are becoming really long (~4/6 seconds)
- we setup a pgbouncer to connect to Postgres instead of a simple Pooling client (and it will be more complicated for geo dns?)
What do you think?