SlideShare a Scribd company logo
1 of 15
8 rules to build web app on
 top of Google AppEngine
         effectively
        Lessons learned




            www.comvai.com
Google App Engine



• Keep in mind Google AppEngine supports
  subset of Java EE specifications. Check at
  http://code.google.com/p/googleappengine/wiki/W



                  www.comvai.com
1. Design Data model as simple as
                possible
•   The App Engine Datastore is not traditional relational SQL database and
    there are several important differences.

•   AppEngine datastore is schemaless. Entities of the same kind can have
    different properties. The application itself is responsible for ensuring that
    entities conform to it.

•   If you want to migrate your existing data model to App Engine you will
    probably need it to redesign.

•   Data-model consistency will be split to the data-model and application.

•   Check app engine datastore limitations to understand it. It gives you better
    overview regarding your future data-model design.
    http://code.google.com/appengine/articles/datastore/overview.html
                                   www.comvai.com
How to
•   Use recommended High Replication Datastore HRD.

•   Use Objectify with JPA annotations over built-in JPA or JDO.

•   Prefer to use unowned relationships between entities.

•   Forget about count entities over filtered query result. Design your UI so
    that count is not being required.

•   If you need statistic calculations, do it on entity update.

•   Note: Building data model on top of built-in either JPA or JDO doesn't
    guarantee that application will be vendor independent because of different
    behavior of AppEngine datastore in some cases. Even it doesn't mean that's
    not possible to do so just requires understanding of AppEngine datastore
    behavior.
                                   www.comvai.com
2. Handle your data model via non
     default version of your GAE app



•   The AppEngine allows you to deploy more than one non default version of
    your application. Deploy specifically designed application to perform update
    of your data model only as a non default version to be independent from
    your main application release cycle.




                                  www.comvai.com
3. Price shields tips

•   Use Appstats out of the box tool to detect datastore bottleneck. Just plug
    in. It helps you to find the hidden unnecessary datastore operations that are
    dragging you down.

•   Use memcache. Datastore operations costs money and caching of "static"
    data could save you from using unnecessary datastore operations.

•   Use as many static files as possible. Static files are handled with high
    performance static front-end servers (CDN) which are highly optimized for
    this type of content.

•   See more
    http://www.gregtracy.com/revisiting-google-app-engines-pricing-changes

                                  www.comvai.com
4. Improve cold startup time
•   AppEngine instances starts quite often thus cold startup time (known as
    well as warmup request, loading request) is more important than in
    traditional Java EE application. Good startup time improves user experience.

•   Minimize number of your application java library dependencies as much as
    possible. Make sure if all your libs are really needed. Otherwise it will slow
    your cold startup time down.

•   Don't use JSP if you are already using another Frontend framework

•   Using JSPs will add additional libraries into your lib directory that are used
    for processing of JSP.
    http://www.listry.com/blog/2010/03/google-app-engine-cold-start-tip-dont

•   Use Objectify over built-in JPA or JDO.
    http://www.listry.com/blog/2010/03/google-app-engine-cold-start-guide-for
                                   www.comvai.com
5. Prefer Google Guice as DI framework




•   It's simple, small in size and powerful library and you probably won't need
    more.




                                  www.comvai.com
6. Use GWT for your desktop like web
                app


•   GWT together with GAE offers lot of built-in technics to improve your
    web app performance. Built-in features coming as advice from the book
    High Performance Web Sites.

•   It's better to have only one framework for the UI even it means to build
    some components yourself. Among other things it means less dependencies
    and simplified upgrade process.




                                www.comvai.com
How to GWT


•   Use built-in optimization technics with help of GWT's ClientBundles.

•   ClientBundles and ImageResource makes using images more efficient.

•   CssResource for CSS minification, CSS image strips and much more, see
    docs for ClientBundles (DataResource, TextResource,
    ExternalTextResource).

•   Switch on minification and obfuscation of the Java-JavaScript compiler.




                                  www.comvai.com
How to GAE



•   Content Delivery Network CDN

•   Gzip compression

•   Memcache




                            www.comvai.com
7. Use GWT MVP pattern




•   It's not easy to work with but worth of time. GWT has built-in support for
    MVP pattern.




                                 www.comvai.com
Benefits

•   Well suited for large scale application.

•   Separation of functionality into components. Helps simplify UI unit testing.

•   Built-in browser history management. MVP is not concerned with browser
    history management, but Activities and Places may be used very well with
    MVP development.

•   Built-in event bus as a central point for app events.

•   Caching all of your code books via GWT event bus as a central pipe to go
    to the backend.


                                   www.comvai.com
8. Use Apache Wicket for website

•   The component based web framework. Version 1.5 or higher optimized for
    Google AppEngine

•   In Java ecosystem there is a lot of front-end frameworks thus to choose the
    right one depends on many varying factors. We like Apache Wicket because
    it's Java, feature rich component-oriented framework with good API. As
    version 1.5 it very well operates on App Engine. So it's up to you and your
    requirements but ones Apache Wicket is good fit for you we recommend it.

•   Add wicketstuff-gae-initializer dependency along side with wicket core
    dependencies

•   Alternative Play framework as it has specific module for App Engine.

                                 www.comvai.com
•   Visit http://www.comvai.com/google-app-engine-development and register
    yourself to get development of your Google AppEngine project's Proof of
    Concept for free.

•   Validate suitability of your project to be built on top of Google App Engine.




                                  www.comvai.com

More Related Content

Viewers also liked

Cloud computing and Software as a Service Overview
Cloud computing and Software as a Service OverviewCloud computing and Software as a Service Overview
Cloud computing and Software as a Service OverviewRahul Sudame
 
NIST Cloud Computing Reference Architecture
NIST Cloud Computing Reference ArchitectureNIST Cloud Computing Reference Architecture
NIST Cloud Computing Reference ArchitectureThanakrit Lersmethasakul
 
Building a Scalable Architecture for web apps
Building a Scalable Architecture for web appsBuilding a Scalable Architecture for web apps
Building a Scalable Architecture for web appsDirecti Group
 
Pengenalan cloud computing
Pengenalan cloud computingPengenalan cloud computing
Pengenalan cloud computingirawan afrianto
 
Best Practices for Running eCommerce in the AWS Cloud
Best Practices for Running eCommerce in the AWS CloudBest Practices for Running eCommerce in the AWS Cloud
Best Practices for Running eCommerce in the AWS CloudAmazon Web Services
 
ALM (Application Lifecycle Management)
ALM (Application Lifecycle Management)ALM (Application Lifecycle Management)
ALM (Application Lifecycle Management)Terry Cho
 
Big Data Trends: Cloud Cost Benchmark Study
Big Data Trends: Cloud Cost Benchmark StudyBig Data Trends: Cloud Cost Benchmark Study
Big Data Trends: Cloud Cost Benchmark StudyDavid Feinleib
 
Application Lifecycle Management using Microsoft Team Foundation Server Train...
Application Lifecycle Management using Microsoft Team Foundation Server Train...Application Lifecycle Management using Microsoft Team Foundation Server Train...
Application Lifecycle Management using Microsoft Team Foundation Server Train...Mihails Galuška
 
Website Development Process
Website Development ProcessWebsite Development Process
Website Development ProcessHend Al-Khalifa
 
Sarah Beeny & David Hart - Social Media '09 (a mashup* event)
Sarah Beeny & David Hart - Social Media '09 (a mashup* event) Sarah Beeny & David Hart - Social Media '09 (a mashup* event)
Sarah Beeny & David Hart - Social Media '09 (a mashup* event) mashup* Event
 
Theoretical Distributions In Business Statistics 13 October
Theoretical Distributions In Business Statistics 13 OctoberTheoretical Distributions In Business Statistics 13 October
Theoretical Distributions In Business Statistics 13 OctoberDr. Trilok Kumar Jain
 
4 1 101年公眾版動力漁船報表修2
4 1 101年公眾版動力漁船報表修24 1 101年公眾版動力漁船報表修2
4 1 101年公眾版動力漁船報表修2Penlock Chen
 

Viewers also liked (15)

Cloud computing and Software as a Service Overview
Cloud computing and Software as a Service OverviewCloud computing and Software as a Service Overview
Cloud computing and Software as a Service Overview
 
NIST Cloud Computing Reference Architecture
NIST Cloud Computing Reference ArchitectureNIST Cloud Computing Reference Architecture
NIST Cloud Computing Reference Architecture
 
Cloud Reference Model
Cloud Reference ModelCloud Reference Model
Cloud Reference Model
 
Total Cost of Ownership (TCO)
Total Cost of Ownership (TCO)Total Cost of Ownership (TCO)
Total Cost of Ownership (TCO)
 
Building a Scalable Architecture for web apps
Building a Scalable Architecture for web appsBuilding a Scalable Architecture for web apps
Building a Scalable Architecture for web apps
 
Pengenalan cloud computing
Pengenalan cloud computingPengenalan cloud computing
Pengenalan cloud computing
 
Best Practices for Running eCommerce in the AWS Cloud
Best Practices for Running eCommerce in the AWS CloudBest Practices for Running eCommerce in the AWS Cloud
Best Practices for Running eCommerce in the AWS Cloud
 
ALM (Application Lifecycle Management)
ALM (Application Lifecycle Management)ALM (Application Lifecycle Management)
ALM (Application Lifecycle Management)
 
Big Data Trends: Cloud Cost Benchmark Study
Big Data Trends: Cloud Cost Benchmark StudyBig Data Trends: Cloud Cost Benchmark Study
Big Data Trends: Cloud Cost Benchmark Study
 
Application Lifecycle Management using Microsoft Team Foundation Server Train...
Application Lifecycle Management using Microsoft Team Foundation Server Train...Application Lifecycle Management using Microsoft Team Foundation Server Train...
Application Lifecycle Management using Microsoft Team Foundation Server Train...
 
Website Development Process
Website Development ProcessWebsite Development Process
Website Development Process
 
Sarah Beeny & David Hart - Social Media '09 (a mashup* event)
Sarah Beeny & David Hart - Social Media '09 (a mashup* event) Sarah Beeny & David Hart - Social Media '09 (a mashup* event)
Sarah Beeny & David Hart - Social Media '09 (a mashup* event)
 
SkinsCalz erika
SkinsCalz erikaSkinsCalz erika
SkinsCalz erika
 
Theoretical Distributions In Business Statistics 13 October
Theoretical Distributions In Business Statistics 13 OctoberTheoretical Distributions In Business Statistics 13 October
Theoretical Distributions In Business Statistics 13 October
 
4 1 101年公眾版動力漁船報表修2
4 1 101年公眾版動力漁船報表修24 1 101年公眾版動力漁船報表修2
4 1 101年公眾版動力漁船報表修2
 

More from Aurel Medvegy

More from Aurel Medvegy (20)

Web software development
Web software developmentWeb software development
Web software development
 
Web 2.0 development
Web 2.0 developmentWeb 2.0 development
Web 2.0 development
 
Make google app
Make google appMake google app
Make google app
 
Google webtools
Google webtoolsGoogle webtools
Google webtools
 
Google websites
Google websitesGoogle websites
Google websites
 
Google website applications
Google website applicationsGoogle website applications
Google website applications
 
Google web tools
Google web toolsGoogle web tools
Google web tools
 
Google web tools kit
Google web tools kitGoogle web tools kit
Google web tools kit
 
Google web software
Google web softwareGoogle web software
Google web software
 
Google web development
Google web developmentGoogle web development
Google web development
 
Google web code
Google web codeGoogle web code
Google web code
 
Google web 2.0
Google web 2.0Google web 2.0
Google web 2.0
 
Google sites development
Google sites developmentGoogle sites development
Google sites development
 
Google site development
Google site developmentGoogle site development
Google site development
 
Google development
Google developmentGoogle development
Google development
 
Google apps reseller
Google apps resellerGoogle apps reseller
Google apps reseller
 
Google apps development
Google apps developmentGoogle apps development
Google apps development
 
Google appps
Google apppsGoogle appps
Google appps
 
Google appengine
Google appengineGoogle appengine
Google appengine
 
Google appengine apps
Google appengine appsGoogle appengine apps
Google appengine apps
 

Recently uploaded

DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningDSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningLars Bell
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Mark Simos
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfAddepto
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebUiPathCommunity
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfAlex Barbosa Coqueiro
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024Stephanie Beckett
 
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024BookNet Canada
 
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxPasskey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxLoriGlavin3
 
The State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxThe State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxLoriGlavin3
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubKalema Edgar
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Mattias Andersson
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsSergiu Bodiu
 
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxUse of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxLoriGlavin3
 
Generative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersGenerative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersRaghuram Pandurangan
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsPixlogix Infotech
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteDianaGray10
 
SALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICESSALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICESmohitsingh558521
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLScyllaDB
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 

Recently uploaded (20)

DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningDSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine Tuning
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdf
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio Web
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024
 
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
 
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxPasskey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
 
The State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxThe State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptx
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding Club
 
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special EditionDMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platforms
 
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxUse of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
 
Generative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersGenerative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information Developers
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and Cons
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test Suite
 
SALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICESSALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICES
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQL
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 

Cloud service provider

  • 1. 8 rules to build web app on top of Google AppEngine effectively Lessons learned www.comvai.com
  • 2. Google App Engine • Keep in mind Google AppEngine supports subset of Java EE specifications. Check at http://code.google.com/p/googleappengine/wiki/W www.comvai.com
  • 3. 1. Design Data model as simple as possible • The App Engine Datastore is not traditional relational SQL database and there are several important differences. • AppEngine datastore is schemaless. Entities of the same kind can have different properties. The application itself is responsible for ensuring that entities conform to it. • If you want to migrate your existing data model to App Engine you will probably need it to redesign. • Data-model consistency will be split to the data-model and application. • Check app engine datastore limitations to understand it. It gives you better overview regarding your future data-model design. http://code.google.com/appengine/articles/datastore/overview.html www.comvai.com
  • 4. How to • Use recommended High Replication Datastore HRD. • Use Objectify with JPA annotations over built-in JPA or JDO. • Prefer to use unowned relationships between entities. • Forget about count entities over filtered query result. Design your UI so that count is not being required. • If you need statistic calculations, do it on entity update. • Note: Building data model on top of built-in either JPA or JDO doesn't guarantee that application will be vendor independent because of different behavior of AppEngine datastore in some cases. Even it doesn't mean that's not possible to do so just requires understanding of AppEngine datastore behavior. www.comvai.com
  • 5. 2. Handle your data model via non default version of your GAE app • The AppEngine allows you to deploy more than one non default version of your application. Deploy specifically designed application to perform update of your data model only as a non default version to be independent from your main application release cycle. www.comvai.com
  • 6. 3. Price shields tips • Use Appstats out of the box tool to detect datastore bottleneck. Just plug in. It helps you to find the hidden unnecessary datastore operations that are dragging you down. • Use memcache. Datastore operations costs money and caching of "static" data could save you from using unnecessary datastore operations. • Use as many static files as possible. Static files are handled with high performance static front-end servers (CDN) which are highly optimized for this type of content. • See more http://www.gregtracy.com/revisiting-google-app-engines-pricing-changes www.comvai.com
  • 7. 4. Improve cold startup time • AppEngine instances starts quite often thus cold startup time (known as well as warmup request, loading request) is more important than in traditional Java EE application. Good startup time improves user experience. • Minimize number of your application java library dependencies as much as possible. Make sure if all your libs are really needed. Otherwise it will slow your cold startup time down. • Don't use JSP if you are already using another Frontend framework • Using JSPs will add additional libraries into your lib directory that are used for processing of JSP. http://www.listry.com/blog/2010/03/google-app-engine-cold-start-tip-dont • Use Objectify over built-in JPA or JDO. http://www.listry.com/blog/2010/03/google-app-engine-cold-start-guide-for www.comvai.com
  • 8. 5. Prefer Google Guice as DI framework • It's simple, small in size and powerful library and you probably won't need more. www.comvai.com
  • 9. 6. Use GWT for your desktop like web app • GWT together with GAE offers lot of built-in technics to improve your web app performance. Built-in features coming as advice from the book High Performance Web Sites. • It's better to have only one framework for the UI even it means to build some components yourself. Among other things it means less dependencies and simplified upgrade process. www.comvai.com
  • 10. How to GWT • Use built-in optimization technics with help of GWT's ClientBundles. • ClientBundles and ImageResource makes using images more efficient. • CssResource for CSS minification, CSS image strips and much more, see docs for ClientBundles (DataResource, TextResource, ExternalTextResource). • Switch on minification and obfuscation of the Java-JavaScript compiler. www.comvai.com
  • 11. How to GAE • Content Delivery Network CDN • Gzip compression • Memcache www.comvai.com
  • 12. 7. Use GWT MVP pattern • It's not easy to work with but worth of time. GWT has built-in support for MVP pattern. www.comvai.com
  • 13. Benefits • Well suited for large scale application. • Separation of functionality into components. Helps simplify UI unit testing. • Built-in browser history management. MVP is not concerned with browser history management, but Activities and Places may be used very well with MVP development. • Built-in event bus as a central point for app events. • Caching all of your code books via GWT event bus as a central pipe to go to the backend. www.comvai.com
  • 14. 8. Use Apache Wicket for website • The component based web framework. Version 1.5 or higher optimized for Google AppEngine • In Java ecosystem there is a lot of front-end frameworks thus to choose the right one depends on many varying factors. We like Apache Wicket because it's Java, feature rich component-oriented framework with good API. As version 1.5 it very well operates on App Engine. So it's up to you and your requirements but ones Apache Wicket is good fit for you we recommend it. • Add wicketstuff-gae-initializer dependency along side with wicket core dependencies • Alternative Play framework as it has specific module for App Engine. www.comvai.com
  • 15. Visit http://www.comvai.com/google-app-engine-development and register yourself to get development of your Google AppEngine project's Proof of Concept for free. • Validate suitability of your project to be built on top of Google App Engine. www.comvai.com