News for hackers. Stuff that matters.
Re:Cheap or free web-based tools for your web startup by phsr on Tuesday March 30, 2010 @01:39PM (#1229687)
How is Google App Engine? Are there any pain points one should be aware of before using it?
Re:Cheap or free web-based tools for your web startup by eop on Tuesday March 30, 2010 @01:46PM (#1229712)
No RDBMS. No SQL. No joins. That's the main adjustment for me. But after you adjust to that, it's great.
Re:Cheap or free web-based tools for your web startup by sadiq on Tuesday March 30, 2010 @01:50PM (#1229722)
I thought NoSQL was a selling point these days?
Re:Cheap or free web-based tools for your web startup by eop on Tuesday March 30, 2010 @01:58PM (#1229737)
Perhaps, but the question I was responding to was about "pain points". All I was saying is if you're coming from an RDBMS background, as I am, then there are growing pains in adjusting to using BigTable. If you don't have the time or patience to make the adjustment, then this will be a pain point. Otherwise, perhaps it's a selling point.
Re:Cheap or free web-based tools for your web startup by jazzdev on Tuesday March 30, 2010 @02:30PM (#1229807)
The 30 second per page limit can be a pain too. If you need to manipulate (i.e. validate, import, export, etc.) more than a few hundred persistent objects, you'll need to write your code to do it in chunks.
Re:Cheap or free web-based tools for your web startup by eop on Tuesday March 30, 2010 @02:36PM (#1229829)
That's what Task Queue is for:

With the Task Queue API, applications can perform work outside of a user request but initiated by a user request. If an app needs to execute some background work, it may use the Task Queue API to organize that work into small, discrete units, called Tasks. The app then inserts these Tasks into one or more Queues. App Engine automatically detects new Tasks and executes them when system resources permit.

Python:

http://code.google.com/appengine/docs/python/taskqueue/overv...

Java:

http://code.google.com/appengine/docs/java/taskqueue/overvie...

Re:Cheap or free web-based tools for your web startup by jazzdev on Tuesday March 30, 2010 @04:02PM (#1230006)
The task queue has the same 30 second limit. Follow either of those links above and you'll find:

the lifetime of a single task's execution is limited to 30 seconds

You still have to do more coding to chunk the work.

Re:Cheap or free web-based tools for your web startup by cgrinds on Tuesday March 30, 2010 @01:49PM (#1229719)
Cold startup sucks - it's horrendous for Java and just bad for Python.

If you have a popular app, this isn't an issue. If you don't, it hurts.

Re:Cheap or free web-based tools for your web startup by eop on Tuesday March 30, 2010 @02:07PM (#1229760)
Cold startup is almost unnoticeable for Python apps (bite my lip! see update below). On the Java side it can be an issue but, as with most things, if you dig around, you can find some acceptable workarounds.
Re:Cheap or free web-based tools for your web startup by cgrinds on Tuesday March 30, 2010 @02:29PM (#1229806)
No - I've seen 'Hello World' style apps take over 4s to cold startup. For example http://timezonetimezone.appspot.com/iscorrect?query=EST

Took 4.67s to render http://www.webpagetest.org/result/100306_5PZ7/1/details/

I monitored cold startup for a month on one of my apps and some times see 10s cold startup. http://www.webpagetest.org/result/100309_5TDW/

This is after profiling, reducing imports, caching, using app appstats, etc.

Re:Cheap or free web-based tools for your web startup by eop on Tuesday March 30, 2010 @02:47PM (#1229849)
Wow, you're right. I just ran a test on one of my Python apps and found the same thing. I always assumed 4 seconds was an acceptable start up time, especially when compared with some of the Java apps I have runnning on App Engine which have often exceeded the 30 second page limit on startup and generated a DeadlineExceededException. Thanks for showing your results. I would never have known this was an issue.
Re:Cheap or free web-based tools for your web startup by jeff18 on Tuesday March 30, 2010 @06:14PM (#1230333)
Couldn't you just set up a cron job to ping your app every 15 minutes until you start getting some real traffic?
Re:Cheap or free web-based tools for your web startup by cgrinds on Tuesday March 30, 2010 @08:24PM (#1230583)
You could - but it would need to be every 1 minute. Google tears down your app after 60-90 seconds of inactivity.

Some folks have resorted to pinging every minute but Google discourages that since it ties up their resources. If everyone pinged their site once a minute then resources would never be freed....

Here's a good thread on the issue https://groups.google.com/group/google-appengine/browse_thre...

Re:Cheap or free web-based tools for your web startup by cmelbye on Tuesday March 30, 2010 @05:02PM (#1230167)
They're fixing this in the future by allowing reserved instances that will always run.
Re:Cheap or free web-based tools for your web startup by bockris on Tuesday March 30, 2010 @01:44PM (#1229702)
You mean besides lock-in?
Re:Cheap or free web-based tools for your web startup by jazzdev on Tuesday March 30, 2010 @02:24PM (#1229792)
There's no lock-in on the Java side. Change a few lines in jdconfig.xml, add the datanucleus-rdbms jar file, add a JDBC driver jar file and you're app will run on Tomcat or Jetty with MySQL or any database with a JDBC driver.
Re:Cheap or free web-based tools for your web startup by jeff18 on Tuesday March 30, 2010 @06:15PM (#1230338)
Check out the AppScale project: http://code.google.com/p/appscale/

You can run your App Engine apps pretty much anywhere.