﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>BlogJava-心无所虑-做想做的-文章分类-Google Application Engine</title><link>http://www.blogjava.net/FlySnow/category/39761.html</link><description /><language>zh-cn</language><lastBuildDate>Fri, 22 May 2009 01:31:31 GMT</lastBuildDate><pubDate>Fri, 22 May 2009 01:31:31 GMT</pubDate><ttl>60</ttl><item><title>Google Application Engine基础入门教程JAVA篇（一）-GAE简介</title><link>http://www.blogjava.net/FlySnow/articles/277233.html</link><dc:creator>飞雪无情</dc:creator><author>飞雪无情</author><pubDate>Fri, 22 May 2009 01:28:00 GMT</pubDate><guid>http://www.blogjava.net/FlySnow/articles/277233.html</guid><wfw:comment>http://www.blogjava.net/FlySnow/comments/277233.html</wfw:comment><comments>http://www.blogjava.net/FlySnow/articles/277233.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/FlySnow/comments/commentRss/277233.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/FlySnow/services/trackbacks/277233.html</trackback:ping><description><![CDATA[<div style="color: #000000; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 14px; margin-top: 8px; margin-right: 8px; margin-bottom: 8px; margin-left: 8px; background-image: initial; background-repeat: initial; background-attachment: initial; background-color: #ffffff; ">
<p style="line-height: 1.5; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font-size: 14px; "><span mce_name="strong" mce_style="font-weight: bold;" style="font-weight: bold; ">一:什么是Google App Engine</span></p>
<p style="line-height: 1.5; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font-size: 14px; "><span mce_name="strong" mce_style="font-weight: bold;" style="font-weight: bold; "><span mce_style="font-weight: normal;" style="font-weight: normal; "><span mce_style="white-space: pre;" style="white-space: pre; "><span class="Apple-tab-span" style="white-space:pre">	</span> </span>最近工作也不是很忙，就闲来无聊看了看最近比较火的Google App Engine（GAE）。那么GAE是一个什么东西呢？它是一个基于 Google 的基础架构运行您的网络应用程序，Google App Engine 使您可以在支持 Google 应用程序的同一可扩展系统上构建网络应用程序。App Engine 应用程序易于构建和维护，并可根据您的访问量和数据存储需要的增长轻松扩展。使用 Google App Engine，将不再需要维护服务器：您只需上传您的应用程序，它便可立即为您的用户提供服务。</span></span></p>
<p style="line-height: 1.5; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font-size: 14px; "><span mce_name="strong" mce_style="font-weight: bold;" style="font-weight: bold; "><span mce_style="font-weight: normal;" style="font-weight: normal; "><span mce_style="white-space: pre;" style="white-space: pre; "> <span class="Apple-tab-span" style="white-space:pre">	</span></span>您可以使用 <code><span mce_style="color: #ff0000;" style="color: #ff0000; ">appspot.com</span></code> 域上的免费域名为您的应用程序提供服务，也可以使用 <a href="http://www.google.com/a/" mce_href="http://www.google.com/a/">Google 企业应用套件</a>从您自己的域为它提供服务。您可以与全世界的人共享您的应用程序，也可以限制为只有您组织内的成员可以访问。</span></span></p>
<p style="line-height: 1.5; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font-size: 14px; "><span mce_name="strong" mce_style="font-weight: bold;" style="font-weight: bold; "><span mce_style="font-weight: normal;" style="font-weight: normal; "><span mce_style="white-space: pre;" style="white-space: pre; "> <span class="Apple-tab-span" style="white-space:pre">	</span></span>可以免费开始使用 App Engine。注册一个免费帐户即可开发和发布您的应用程序以供全世界的人共享，而且不需要承担任何费用和责任。免费帐户可以使用多达 500MB 的持久存储空间，以及可支持每月约 500 万页面浏览量的超大 CPU 和带宽。</span></span></p>
<p style="line-height: 1.5; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font-size: 14px; "><span mce_style="white-space: pre;" style="white-space: pre; "> </span>基于以上描述,我们发现GAE有3个特点：<span mce_name="strong" mce_style="font-weight: bold;" style="font-weight: bold; ">无需汇编</span>、<span mce_name="strong" mce_style="font-weight: bold;" style="font-weight: bold; ">它易于扩展</span>、<span mce_name="strong" mce_style="font-weight: bold;" style="font-weight: bold; ">它易于入门</span>。</p>
<p style="line-height: 1.5; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font-size: 14px; "><span mce_name="strong" mce_style="font-weight: bold;" style="font-weight: bold; ">二：应用程序环境</span></p>
<p style="line-height: 1.5; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font-size: 14px; "><span mce_style="white-space: pre;" style="white-space: pre; "><span class="Apple-tab-span" style="white-space:pre">	</span> </span>通过 Google App Engine，即使在负载很重和数据量极大的情况下，也可以轻松构建能安全运行的应用程序。该环境包括以下特性：</p>
<ul>
    <li>动态网络服务，提供对常用网络技术的完全支持</li>
    <li>持久存储空间，支持查询、分类和事务</li>
    <li>自动扩展和负载平衡</li>
    <li>用于对用户进行身份验证和使用 Google 帐户发送电子邮件的 API</li>
    <li>一种功能完整的本地开发环境，可以在您的计算机上模拟 Google App Engine</li>
</ul>
<span mce_style="white-space: pre;" style="white-space: pre; "><span class="Apple-tab-span" style="white-space:pre">	</span> </span>Google App Engine刚发布的时候,它的 应用程序是使用 <a href="http://www.python.org/" mce_href="http://www.python.org/">Python 编程语言</a>实现的。该运行时环境包括完整 Python 语言和多数 Python 标准库。我不会Python,当时也没注意看，不过还好现在它已经完整的支持JAVA了，这就给我们这些会JAVA的不会Python的带来了福音，当然如果你会Python，就不用看该教程了，因为该教程只介绍有关JAVA的，你可以去GAE主页去看采用Python开发的中文文档。GAE对Python的中文支持还是比较好的，毕竟Python是第一个实现GAE的语言，使用JAVA的朋友们只能劳点神去看英文文档了，虽然文档是英文的，但是该有的功能（就是提供的API）还是有的。</div>
<div style="color: #000000; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 14px; margin-top: 8px; margin-right: 8px; margin-bottom: 8px; margin-left: 8px; background-image: initial; background-repeat: initial; background-attachment: initial; background-color: #ffffff; "><span style="font-weight: bold; ">三：JAVA运行时环境</span></div>
<div style="color: #000000; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 14px; margin-top: 8px; margin-right: 8px; margin-bottom: 8px; margin-left: 8px; background-image: initial; background-repeat: initial; background-attachment: initial; background-color: #ffffff; "><span style="font-weight: bold; "><span style="font-weight: normal; "><span class="Apple-tab-span" style="white-space:pre">	</span>App Engine 提供了一个使用 JAVA编程语言的运行时环境。JAVA运行时环境使用JAVA5或者6的JDK版本。<span mce_style="white-space: pre;" style="white-space: pre; ">&#160;</span></span></span></div>
<div style="color: #000000; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 14px; margin-top: 8px; margin-right: 8px; margin-bottom: 8px; margin-left: 8px; background-image: initial; background-repeat: initial; background-attachment: initial; background-color: #ffffff; "><span style="font-weight: bold; "><span style="font-weight: normal; "><span class="Apple-tab-span" style="white-space:pre">	</span>JAVA运行时环境也为我们提供了丰富的关于数据库、Google账户、网页抓取和电子邮件服务的JAVA API，就像我说的，Python该有的JAVA都有，一点都不像后来生的。</span></span></div>
<div style="color: #000000; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 14px; margin-top: 8px; margin-right: 8px; margin-bottom: 8px; margin-left: 8px; background-image: initial; background-repeat: initial; background-attachment: initial; background-color: #ffffff; "><span style="font-weight: bold; "><span style="font-weight: normal; "><span class="Apple-tab-span" style="white-space:pre">	</span>通过以上介绍让大家对Google Application Engine有一个全面的认识,明白Google App Engine是做什么的，它有什么优点，我们为什么要用它.这一节就讲到这里，下一次我们讲JAVA运行时环境的配置和Google账户以及GAE账户的申请。。</span></span></div>
<img src ="http://www.blogjava.net/FlySnow/aggbug/277233.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/FlySnow/" target="_blank">飞雪无情</a> 2009-05-22 09:28 <a href="http://www.blogjava.net/FlySnow/articles/277233.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>