DEV Community

Discussion on: Beginner's Guide for Creating a Serverless REST API using NodeJS over Google Cloud Functions

Collapse
 
spock123 profile image
Lars Rye Jeppesen

Functions as a backend only works for the US region.

In other words, it's a no-go for people using firebase hosting, database, storage in other regions, as latency will be atrocious.

We had our entire backend rewritten as functions before we discovered this issue. Had to completely abandon Firebase functions because all our other Firebase assets are located in Europe. So we moved our backend elsewhere, unfortunately.

Just be aware guys: functions as an API for your frontend ONLY works for US region. We had 500ms latency for every request because of this.