0

I am new to Google Cloud Functions. I want to write a small but execution intensive application. I researched doc and it is unclear if I can use PyPy or CPython when deploying to Google Cloud Functions.

tzovourn
  • 1,293
  • 8
  • 18
Dmytro Chasovskyi
  • 3,209
  • 4
  • 40
  • 82

1 Answers1

5

In function, you can't customize the runtime, it is standard to the service.

If you want more control on your environment, choose Cloud Run, serverless but container based, and thus you can do what you want in your Dockerbuild.

In addition, you always have 1vCPU dedicated to the process with a customizable quantity of memory. With Cloud Functions, if you want to have the full power of the CPU you have to pay 2GB of memory. Finally, your process can take up to 15 minutes with Cloud Run but only 9 minutes with Cloud Functions. I wrote an article on this if you want to know more

guillaume blaquiere
  • 66,369
  • 2
  • 47
  • 76