GAE as free Java hosting? Not really.

If you plan to deploy your new, shiny, low traffic application on Google App Engine, because you think that you can get it for free - don't bother. That was my idea recently - to took Play framework (nice integration with GAE and Siena through modules) build simple (but not trivial)  low traffic application, and deploy it on GAE. Quota that is assigned to free GAE option was more than enough for my requirements.

After quick warm-up with framework and GAE infrastructure I have created first snapshot of my application.  All was smooth and easy. The only problem was with page response time: it was taking even ~5s to get response. In logs I found this information:

This request caused a new process to be started for your application, and thus caused your application code to be loaded for the first time. This request may thus take longer and use more CPU than a typical request for your application.

Quick search through a mailing lists and I found information that GAE will utilize your instances, if they are not used (with in case of low traffic application is more than sure). There is solution to prevent that: you can buy Always On option, but at this moment it costs 9$/month. Its not much as for Java hosting solution, but well - its still more than PHP.


Java and transactions strategies

There is great series of articles writed by Mark Richards about transaction and transaction strategies in java:

At this moment are desribed two types of strategies:

I hope that in near future there will occur articles for:

  • High Concurrency transaction strategy
  • High-Speed Processing transaction strategy

Great reading.

Powered by WordPress with GimpStyle Theme design by Horacio Bella.
Entries and comments feeds. Valid XHTML and CSS.