ebook img

Essential App Engine Building High-Performance Java Apps with Google App Engine PDF

343 Pages·2011·10.81 MB·English
Save to my drive
Quick download
Download
Most books are stored in the elastic cloud where traffic is expensive. For this reason, we have a limit on daily download.

Preview Essential App Engine Building High-Performance Java Apps with Google App Engine

Essential App Engine Building High-Performance Java Apps with Google App Engine Essential App Engine ptg6899256 Developer’s Library Series Visit developers-library.com for a complete list of available products ptg6899256 The Developer’s Library Series from Addison-Wesley provides practicing programmers with unique, high-quality references and tutorials on the latest programming languages and technologies they use in their daily work. All books in the Developer’s Library are written by expert technology practitioners who are exceptionally skilled at organizing and presenting information in a way that’s useful for other programmers. Developer’s Library books cover a wide range of topics, from open- source programming languages and databases, Linux programming, Microsoft, and Java, to Web development, social networking platforms, Mac/iPhone programming, and Android programming. Essential App Engine Building High-Performance Java Apps with Google App Engine ptg6899256 Adriaan de Jonge Upper Saddle River, NJ • Boston • Indianapolis • San Francisco New York • Toronto • Montreal • London • Munich • Paris • Madrid Capetown • Sydney • Tokyo • Singapore • Mexico City Many of the designations used by manufacturers and sellers to distinguish their products Editor-in-Chief are claimed as trademarks. Where those designations appear in this book, and the Mark Taub publisher was aware of a trademark claim, the designations have been printed with initial Acquisitions Editor capital letters or in all capitals. Trina MacDonald The author and publisher have taken care in the preparation of this book, but make no Development Editor expressed or implied warranty of any kind and assume no responsibility for errors or Michael Thurston omissions. No liability is assumed for incidental or consequential damages in connection with or arising out of the use of the information or programs contained herein. Managing Editor John Fuller The publisher offers excellent discounts on this book when ordered in quantity for bulk Project Editor purchases or special sales, which may include electronic versions and/or custom covers Anna V. Popick and content particular to your business, training goals, marketing focus, and branding interests. For more information, please contact: Copy Editor Carol Lallier U.S. Corporate and Government Sales (800) 382-3419 Indexer [email protected] Jack Lewis For sales outside the United States please contact: Proofreader Kelli Brooks ptg6899256 International Sales Technical [email protected] Reviewers Visit us on the Web: informit.com/aw Joseph Annuzzi Romin Irani Library of Congress Cataloging-in-Publication Data Alex Moffat Jonge, Adriaan de, 1979- Editorial Assistant Essential app engine : building high-performance Java apps with Google App engine / Olivia Basegio Adriaan de Jonge. p. cm. Cover Designer Includes index. Gary Adair ISBN 978-0-321-74263-6 (pbk. : alk. paper) Compositor 1. Computer software—Development. 2. Software architecture. 3. Java (Computer pro- LaurelTech gram language) 4. Google Apps. I. Title. QA76.76.D47D425 2012 005.1—dc23 2011030789 Copyright © 2012 Pearson Education, Inc. All rights reserved. Printed in the United States of America. This publication is protected by copyright, and permission must be obtained from the publisher prior to any prohibited reproduction, storage in a retrieval system, or transmission in any form or by any means, electronic, mechanical, photocopying, recording, or likewise. To obtain permission to use material from this work, please submit a written request to Pearson Education, Inc., Permissions Department, One Lake Street, Upper Saddle River, New Jersey 07458, or you may fax your request to (201) 236-3290. ISBN-13: 978-0-321-74263-6 ISBN-10: 0-321-74263-X Text printed in the United States on recycled paper at RR Donnelley in Crawfordsville, Indiana. First printing, October 2011 ❖ To everyone who is chasing their dreams… ❖ ptg6899256 This page intentionally left blank ptg6899256 Contents at a Glance Introduction xix Acknowledgments xxvii About the Author xxix I: An App Engine Overview 1 1 Setting Up a Development Environment 3 2 Improving App Engine Performance 17 II: Application Design Essentials 29 3 Understanding the Anatomy of a Google App Engine Application 31 4 Data Modeling for the Google App Engine Datastore 45 5 Designing Your Application 57 ptg6899256 III: User Interface Design Essentials 67 6 Presenting the User Interface with HTML5 69 7 Fine-Tuning the Layout Using CSS3 85 8 Adding Static Interactions Using JavaScript 99 9 Adding Dynamic Interactions Using AJAX 113 IV: Using Common App Engine APIs 127 10 Storing Data in the Datastore and Blobstore 129 11 Sending and Receiving E-Mail 155 12 Running Background Work with the Task Queue API and Cron 171 13 Manipulating Images with the App Engine Image Service 187 14 Optimizing Performance Using the Memory Cache 203 15 Retrieving External Data Using URL Fetch 215 16 Securing a Web Application Using Google Accounts, OpenID, and OAuth 229 17 Sending and Receiving Messages Using XMPP 241 V: Application Deployment 253 18 Improving the Development Process 255 19 Assuring Quality Using Measuring Tools 263 20 Selling Your Application 277 Index 289 ptg6899256 Contents Introduction xix Acknowledgments xxvii About the Author xxix I: An App Engine Overview 1 1 Setting Up a Development Environment 3 Working with Eclipse Tools 3 Installing Plugins in Eclipse 4 Starting a New App Engine Project 7 Starting the Development Server 9 Deploying to the Online App Engine 11 Deploying from the Command Line 14 Starting the Development Server Command Line 15 ptg6899256 Deploying to the App Engine Command Line 15 Summary 16 2 Improving App Engine Performance 17 Performing in the Cloud 17 Comparing the App Engine to Traditional Web Applications 18 Optimizing Payments for Resources 18 Measuring the Cost of Class Loading 18 Timing a Servlet That Contains a Library 19 Timing a Servlet That Does Not Contain a Library 21 Reducing the Size of web.xml 22 Avoiding Cold Startups 24 Reserving Instances with Always On 24 Preloading Classes Using Warm-Up Requests 24 Handling Concurrent Requests with Thread-Safe Mode 25 Handling Memory Intensive Requests with Backends 25

Description:
In Essential App Engine, Adriaan de Jonge shows Java developers how to rapidly build complex, productionquality, performance-driven cloud applications with Google App Engine. Using a start-to-finish case study and extensive Java example code, De Jonge covers the entire lifecycle, from application de
See more

The list of books you might like

Most books are stored in the elastic cloud where traffic is expensive. For this reason, we have a limit on daily download.