Google App Engine - Overview #1


Published on


Published in: Technology
1 Like
  • Be the first to comment

No Downloads
Total views
On SlideShare
From Embeds
Number of Embeds
Embeds 0
No embeds

No notes for slide
  • Google App Engine - Overview #1

    1. 1. 2008.10.07 Yoo Hyunjeong
    2. 2. <ul><li>Google web application platform </li></ul><ul><ul><li>Easy to build, easy to maintain, and easy to scale as user’s traffic and data storage needs grow </li></ul></ul><ul><ul><li>No servers to maintain, with App Engine : just upload an application, and it’s ready to serve your users. </li></ul></ul><ul><li>Providing a platform including database </li></ul><ul><li>호스팅을 GAE 에서 담당하여 개발자로 하여금 서비스 개발에 집중할 수 있도록 제공 </li></ul>
    3. 3. <ul><li>GAE 에서 제공하는 기능 </li></ul><ul><ul><li>Python 이 제공하는 기본 기능 </li></ul></ul><ul><ul><li>BigTable/GFS 기술이 뒷받침하는 견고한 Datastore </li></ul></ul><ul><ul><li>확장성을 제공하는 호스팅 공간 </li></ul></ul><ul><ul><li>Google account </li></ul></ul><ul><ul><li>SDK 를 이용한 로컬 개발 및 테스트 </li></ul></ul>
    4. 4. <ul><li>App Engine 을 통해 웹 서비스 개발자들은 또 다른 “ Web Development that doesn’t hurt”(Ruby on Rails’s 모토 ) 고통 없이 개발할 수 있는 선택권을 갖게 된다 . 다만 , 이 선택에는 세가지의 제약이 따른다 . </li></ul><ul><ul><li>1. 모든 코드는 반드시 Python 으로 작성해야 한다 . </li></ul></ul><ul><ul><li>2. 사용량 제한을 통해 비용 지불의 가능성이 존재한다 . </li></ul></ul><ul><ul><li>3. 모든 데이타는 구글 플랫폼에서 움직이며 구글이 갖게 된다는 점이다 . 이는 , 구글 플랫폼에 종속된 어플리케이션은 쉽게 구글 플랫폼을 벗어나지 못하게 할 것이다 . </li></ul></ul>
    5. 5. <ul><li>Google App Engine makes it easy to build an application that runs reliably, even under heavy load and with large amounts of data. The environment includes the following features: </li></ul><ul><ul><li>dynamic web serving, with full support for common web technologies </li></ul></ul><ul><ul><li>persistent storage with queries, sorting and transactions </li></ul></ul><ul><ul><li>automatic scaling and load balancing </li></ul></ul><ul><ul><li>APIs for authenticating users and sending email using Google Accounts </li></ul></ul><ul><ul><li>a fully featured local development environment that simulates Google App Engine on your computer </li></ul></ul>
    6. 6. <ul><li>Application run in a secure environment that provides limited access to the underlying operating system. </li></ul><ul><li>These limitations allow App Engine to distribute web requests for the application across multiple servers, and start and stop servers to meet traffic demands. </li></ul><ul><li>The sendbox isolates your application. </li></ul>
    7. 7. <ul><li>Examples of the limitations of the secure sandbox environment include: </li></ul><ul><ul><li>An application can only access other computers on the Internet through the provided URL fetch and email services and APIs. Other computers can only connect to the application by making HTTP(s) requests on the standard ports. </li></ul></ul><ul><ul><li>An application cannot write to the file system. An app can read files, but only files uploaded with the application code. The app must use the App Engine datastore for all data that persists between requests. </li></ul></ul><ul><ul><li>Application code only runs in response to a web request, and must return response data within a few seconds. A request handler cannot spawn a sub-process or execute code after the response has been sent. </li></ul></ul>
    8. 8. <ul><li>App Engine provides a runtime environment that uses the Python programming language. </li></ul><ul><li>Python version 2.5.2. </li></ul><ul><li>App Engine also provides a simple Python web application framework called webapp to make it easy to start building applications. </li></ul><ul><li>App Engine also includes the Django web application framework, version 0.96.1 </li></ul>
    9. 9. <ul><li>Providing a powerful distributed data storage service </li></ul><ul><li>The App Engine datastore is not like a traditional relational database. Data objects, or &quot;entities,&quot; have a kind and a set of properties. Queries can retrieve entities of a given kind filtered and sorted by the values of the properties. </li></ul>
    10. 10. <ul><li>The following APIs are provided to access these services: </li></ul><ul><ul><li>URL Fetch </li></ul></ul><ul><ul><ul><li>Applications can access resources on the Internet using App Engine's URL fetch service. The URL fetch service retrieves web resources using the same high-speed Google infrastructure that retrieves web pages for many other Google products. </li></ul></ul></ul><ul><ul><li>Mail </li></ul></ul>
    11. 11. <ul><li>The following APIs are provided to access these services: </li></ul><ul><ul><li>Memcache </li></ul></ul><ul><ul><ul><li>providing your application with a high performance in-memory key-value cache that is accessible by multiple instances of your application. </li></ul></ul></ul><ul><ul><ul><li>useful for data that does not need the persistence and transactional features of the datastore, such as temporary data. </li></ul></ul></ul><ul><ul><li>Image Manipulation </li></ul></ul>
    12. 12. <ul><li>Developing and uploading applications for Google App Engine using the App Engine software development kit (SDK). </li></ul><ul><li>The SDK includes a web server application that simulates the App Engine environment, including a local version of the datastore, Google Accounts, and the ability to fetch URLs and send email directly from your computer using the App Engine APIs. </li></ul><ul><li>The SDK runs on any computer with Python 2.5, and versions are available for Windows, Mac OS X and Linux. </li></ul>
    13. 13. <ul><li>Creating a simple request handler </li></ul><ul><ul><ul><li> </li></ul></ul></ul><ul><li>Creating the Configuration File </li></ul><ul><ul><ul><li>App.yaml </li></ul></ul></ul>
    14. 14. <ul><li>Testing the Application </li></ul><ul><ul><li>Start web server </li></ul></ul><ul><ul><ul><li> </li></ul></ul></ul><ul><ul><ul><li> </li></ul></ul></ul><ul><ul><li> hyunjeong/ </li></ul></ul>
    15. 15. <ul><li>The CGI standard is simple, but it would be cumbersome to write all of the code that uses it by hand. </li></ul><ul><li>Web application frameworks handle these details for you, so you can focus your development efforts on your application's features. </li></ul><ul><li>App Engine includes a simple web application framework of its own, called webapp . </li></ul>
    16. 16. <ul><li>A webapp application has three parts: </li></ul><ul><ul><li>one or more RequestHandler classes </li></ul></ul><ul><ul><li>a WSGIApplication instance </li></ul></ul><ul><ul><li>a main routine </li></ul></ul><ul><li>Edit </li></ul>
    17. 17. <ul><li>Testing </li></ul>
    18. 18. <ul><li>Edit </li></ul>