October 2019
Intermediate to advanced
520 pages
13h 5m
English
As we mentioned previously, Cloud Functions are stateless and the state needs to be saved on external storage or in a database. This can be done with external storage such as Cloud Storage or a database such as Cloud SQL. In general, any external storage can be used. We introduced Cloud SQL in Chapter 3, Google Cloud Platform Core Services. To remind you, it is a managed MySQL or Postgres database. With Cloud Functions, you can connect to Cloud SQL using a local socket interface that's provided in the Cloud Functions execution environment. It eliminates the need for exposing your database to a public network.
Read now
Unlock full access