5 ms·
How do you differentiate background and worker processes? I’m currently running VMs for background processes processing pub sub topics. Is that not something th
by gt50201 6y ago
How do you differentiate background and worker processes? I’m currently running VMs for background processes processing pub sub topics. Is that not something that could go on cloud run?
- spyspy 6y agoWhen an instance isn't handling a request it either gets killed almost immediately, or if even if you have min idle instances configured, its CPU get's throttled to nothing. So you can't have goroutines or some such doing anything outside of the request context. It's my team's one gripe with Cloud Run. It'd be great to have an option for long-lived instances.
- andrewdb 6y agoYou can set minimum instances now ( well - currently Preview). https://cloud.google.com/run/docs/configuring/min-instances https://cloud.google.com/run/docs/configuring/min-instances
- spyspy 6y agoLike I said, even if the instance is "alive", if it's not currently handling a request it's CPU is throttled to nothing so you can't trust any background process will finish its work.
- wietsevenema 6y agoYou can use an HTTP push subscription to an IAM protected Cloud Run service.