![]() Having completed my setup, it was time to let the experiment run its course, so I passed the time doing highly academic things like rinsing noobs at dominion.games. (I used the Node.js one as a basis.)Īt this point in the study, I had 2 instances of my app running:īecause real applications have real traffic, I set up a ping service to send requests to each site exactly once every 47 minutes for the rest of time, just like how a Real Human Being™️ would browse. It’s worth noting that the Cloud Run Quickstart provides 9 example Dockerfiles depending on your language of choice. GOOGLE CLOUD MONEY PORTABLEUnlike App Engine, Cloud Run only runs when requests come in, so you don’t pay for time spent idling.Ĭontainerized apps are more portable but not always something you focus on during development. “Build and Deploy” Quickstart for Cloud RunĬloud Run runs containers, so for each release you have to build a container and push it to GCP.At the end of the month, you pay for the amount of time it was running, which is typically “the entire month”. AE is a traditional hosting platform: it runs continuously and serves requests as they come in. On AE, my express app runs as a node process, like booting it up with npm start locally. (Both Quicks-start are pretty easy to follow once you have the gcloud command-line tools installed.) For the initial setup, I used the Quickstart material provided by Google at no cost to embedded researchers like me. My research question was “Should I use App Engine or Cloud Run to host my fun but unprofitable app?”, and to investigate that I opted for the immersion method where I would assume the role of a developer trying to host an app on Google Cloud.Īs a precursor, I needed to set up my app on both services simultaneously. Are you thinking what I’m thinking? Let’s run a research study! Seemed perfect: they anticipated me like how I anticipated Canadians are looking for information about holidays.īy signing up, I was granted 300 (!!) GCP bucks, and as a long-time government employee I knew this meant I had to find a creative way to spend it before the end of the fiscal year. It seems like you’re not a real cloud vendor unless you can bury newcomers under an avalanche of vaguely differentiated products with abstract geometrical logos, so a straightforward question like “where do I host a basic express app?” didn’t have an obvious answer.Ĭutting through the media bias with facts and logic, I was able to narrow it down by following the research methodology of googling “ google cloud how do I host express app”.īoth services will run apps and I had an app to run. However, as a hapless first-time user, there are a lot of “ solutions” to choose from. GCP was the cloud vendor with the most bonus cash on sign-up, so I figured that was a pretty neutral and unbiased reason to pick it. But around month five, it dawned on me that it was going to cost $7/month for the rest of my life, so I started looking for other options. Heroku was really easy to get going with, to integrate with GitHub Actions, and to ssh into when I needed to fiddle with something. (ie, that’s like 3 coffees: ‘a coffee’ being the base unit of diminutive purchases.) Initially, I was using Heroku’s $7/month Hobby Plan because at the end of the day month, it’s only $7. My incredible journey went basically thus: I built a small express app for upcoming Canadian holidays and wanted cheap but usable hosting. Which GCP service do 4 out of 5 scientists recommend? Let’s find out. Imagine you have a side-project-type web app and you’re looking to host it on Google’s Cloud Platform (GCP) but you don’t want to spend too much ca$h. This study finds that Cloud Run is usually the best option, although if you have money to burn are a “price insensitive consumer,” then App Engine is a bit zippier. Using rigorous methods and markdown tables, I performed a science-inspired “how much does this cost?” comparison between App Engine and Cloud Run. I started out using Heroku, then moved to Google’s Cloud Platform. I was hosting a small web app as a side-project and looking to spend less money. For low-traffic applications, Cloud Run is dramatically cheaper than App Engine. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |