jeudi 23 juillet 2009

Grails - App engine - the search is not over

In fact I'm very disappointed by the way grails managing app-engine.
For now I begin thinking that the cost to be hosted by the appengine is two hight and we are far from an industrial technology.

I gladly admit that I don't have many time to try solving all problems I met. But this is the real life and I have to make choice:)

Anyway i will do some test with Python and django in order to see if the solution is stronger.

For now I didn't succeed in using JPA so all items described hereafter are linked to JDO.
  • The whole model of persitency have changed, say goodbye to the save() method, say goodbye to all generated findBy.... methods.
  • The code you're writing looks like using Spring with Java by having a persistency manager. The problem is that you're writing in Groovy and of course the completion done by the IDE isn't as fine as if you were in Java. Without the implicit job done by Grails, writing this code is painfully.
  • Most of your code is linked to google, the "import com.google.appengine.api.datastore.*" is everywhere. Don't expect a fast come back to a more traditionnal hosting by changing a config file.
  • I don't succeed to create integration test (I guess it's possible by making some spring call during the setup()). So don't expect that your exiting tests will run.
  • Forget the validation() method and thus forget the smart contraint management provided by Grails
To end, these problems come only after trying to create two objects without any relationship or complex pocessus.
For now, my personal feeling is that this is not a stable solution for a real application. Nevertheless, I of course continue to follow the developement.
Another problem is that nowhere on the official sites, these limitations are detailled. All tutorials are very simple and work only if you do exactly that's written (for exemaple don't try to create a domain class without any package).

Aucun commentaire:

Enregistrer un commentaire