Hi

My initial testing with Google App Engine used JPA, JAX-RS, Google
GSON, Google Closure Templates - elegant REST development, but it
wasn't the quickest loading or serving app. Everything loosely
coupled, lots of class path scanning, compiling of templates on the
fly.

So I've ditched the frameworks and gone for all base APIs - direct
streaming of XML (XMLStreamWriter) and JSON (streaming Jackson
JsonGenerator). And using code generation (from an XML Schema, using
Ant and currently XSLT 2.0 generator templates) to create speedy
boilerplate code (hopefully) optimized for Google App Engine (no
reflection, everything compiled and strongly typed).

First page loading requests down to 1 - 2 seconds, rather than 10
seconds plus with framework overload.

That's using the code generation to create some base AtomPub type
model classes and streaming some very basic XML.

It's actually quite refreshing to keep it simple.

(Sure, even simpler would be to hard code even the boilerplate code,
but this is aimed towards allowing me to quickly prototype support for
a range of social type web protocols and feed types.)

I wondered whether anyone else was looking into possible code
generation for App Engine and Java? Which particular scenarios they
felt it could be good to deliver? Which code generation tools?

Andy
-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.


Reply via email to