5 ms·
GCP cheat sheet: Cloud functions: when you need a endpoint to run, don't need fast response times, don't have more than a few hundred lines of code in a contai
by ransom1538 6y ago
GCP cheat sheet:
Cloud functions: when you need a endpoint to run, don't need fast response times, don't have more than a few hundred lines of code in a contained class, that don't often run. Think image resizing, async email calls, etc.
Cloud Run: when you have a simple docker file that can run your code, don't mind paying a higher cost, can't take the bootup time of Cloud functions, light or no database connections, need specific os'es or hardware AND you consider k8s confusing. Think wordpress, microservices, or demo software that come self contained in docker,
k8s: when you are an k8 expert
vms: for anything else.
- adwww 6y agoI actually find VMs harder to manage than k8 via GKE. At least kubernetes has defined for you what the orchastration and configuration files should look like. With VMs you have to figure all that out yourself, unless you are happy just installing everything manually via SSH and apt-get.
- regularfry 6y agoThis is what terraform is for (among other things).
- rotten 6y agoAnother option is to use Instance Groups.