简体   繁体   中英

Is there anything against using Cloud Run for a server side GTM

I have been setting up several server side GTMs for my company in the last months. I have deployed both App Engine Flexible versions, as well as Cloud Run hosted ssGTMs.

I found using Cloud Run easier to setup and also cheaper as long as you stay under 300 million requests per month. Custom domain setup is also only slightly different.

The official documentation Basically only covers App Engine and Manual deployment.

I was wondering if there is any downside towards using Cloud Run for hosting your ssGTM besides potential cold starts (which I do not really care about).

I'm not very familiar with GTM but here are few things for using Cloud Run you have to figure out first.

  • Is GTM completley stateless? Or does it needs State, Cloud Run doesn't offer a filesystem kind capabilities for storing files on disk
  • Is GTM already available as a container?
  • You can avoid cold starts by setting the min replicas to 1 or higher so that there is at least always 1 instance available to serve traffic.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM