Api-platform: Add Cloud Run (k8s serverless) support

Created on 16 Apr 2019  路  3Comments  路  Source: api-platform/api-platform

An API Platform project should be easily deployable in a Cloud Run environment: https://cloud.google.com/run/

We should provide the ability to do it out of the box, as done for the Helm chart.

The main issue is that we need to disable Varnish support when using Cloud Run.

By the way, it should be nice to deploy the demo of API Platform using Cloud Run, to reduce our hosting costs. We should use a managed Varnish (such as Fastly), or add support for CloudFlare Cache Tags for the cache.

Most helpful comment

Good idea!, for php there is a library that implements a serveless services on AWS lambda:

All 3 comments

Good idea!, for php there is a library that implements a serveless services on AWS lambda:

I totally agree as right now, the default mode pushed by API Platform is to run it on a Kubernetes cluster which can get quite expensive for a test project.

Is there a documentation somewhere giving an example configuration to replace the default Varnish one for a Fastly cache ? It would be a first step to help people deploy on cloud run.

We are planning to move one of our API to CloudRun in the near future. We also plan to use Fastly, and as far as I understand Fastly is not supported out of the box (the cache invalidator use BAN that's not supported by Fastly #727 ).
Should I wait for an official implementation or it is not a priority at the moment?

Was this page helpful?
0 / 5 - 0 ratings