Skip to main content

Expensive cloud tutorials

Beware when trying out cloud tutorials! It may cost you more than you expect if you're not paying attention.

Step 1 - Follow a tutorial like Quickstart for Node.js in the App Engine Flexible Environment to deploy a simple, Hello World-like application to Google App Engine.

Step 2 - Let it sit unused for 28 days.

Step 3 - Profit!

Not for me, for Google. They billed me for $35.40 for 40,384 minutes of "Flex Instance Core Hours" even though there was no traffic on the site. I have another toy App Engine instance that's been up for like a year with more occasional traffic and I don't think it's generated any cost yet.

I had played around with adding Passport auth to the tutorial app and storing session information to Cloud SQL, so that added another $20 or so.

Do all cloud tutorials end up being this expensive?

Comments

Popular posts from this blog

Java command line app with Spring and Gradle

Many Java developers have had to build a command line app for one reason or another over the years, and there are many(!) ways to do it.  There are a bevy of command line libraries, some people roll their own when they get to this point (which is one reason why there are so many command line libraries!), and others just pull in the arguments simply and directly, eschewing a library. However, writing a tool, a developer should just focus on the meat of the problem rather than having to worry about the enabling functionality that allows it to work.  The Spring Framework very much supports this approach to development with its inversion of control (IoC) container and a myriad of other features. To support that approach for command line applications, the spring-cmdline library provides a bridge between the Spring framework and the JOpt Simple command line library. This tutorial will show how to leverage the spring-cmdline library to stand up a very simple command line ap...

manifest classpath + taglib jars + Tomcat = FAIL

I found an interesting side-effect of using manifest classpaths in our application jar files as it applies to taglib jar dependencies and embedded Tomcat 6. ·          Manifest classpaths do not appear to be expanded in the URLClassLoaders that load the jars with the manifests, so only the jar file referenced directly on the classpath are included in its URLs. The taglib search mechanism in Tomcat 6 (haven't checked Tomcat 7 to see if there's a difference) only walks the classpath looking for URLClassLoaders, looking at the underlying JAR URLs. Thus, if the taglib jar is referenced only as a dependency in the manifest of the main jar file and is not specifically on the classpath, it will not be spotted and use of that taglib by the JSP engine will throw an exception. This problem won’t actually show up in tests as IDE environments and builds generally include all the jar files in the classpath, so this one will bite you at runtime. ...