Developing Cloud Applications Distributed system class eko sakti

Download Report

Transcript Developing Cloud Applications Distributed system class eko sakti

Developing Cloud Applications
Distributed system class
eko sakti
Review
•
•
Cloud computing is a style of computing in which
dynamically scalable and often virtualized
resources are provided as a serve over the Internet.
Users need not have knowledge of, expertise in, or
control over the technology infrastructure in the
"cloud" that supports them.
Review:
Characteristics of
cloud computing
• Virtual.
software, databases, Web servers,
operating systems, storage and
networking as virtual servers.
• On demand.
add and subtract processors, memory,
network bandwidth, storage.
Review: Types of
cloud service
• IaaS
• SaaS
• PaaS
Any question and any comments ?
• Chances are good that the
application you need to work on
the cloud has already been
created; it’s just a matter of finding and
subscribing to it.
• But if you can’t find the application , you
can make your own
• If you want to get an app on the cloud,
the Google App Engine is the perfect
tool to use to make this dream become
reality.
• In essence, you write a bit of code in
Python, tweak some HTML code, and
then you’ve got your app built, and it
only takes a few minutes.
Google App Engine
• Does one thing well: running web apps
• Simple app configuration
• Scalable and Secure
• Best of all, you don’t have to worry
about buying servers, load balancers,
or DNS tables—Google handles all the
heavy lifting for you.
Python Vs Java
•
•
•
Java is very prevalent on the cloud. It is a very
robust scripting tool and one that programmers
know well. But its complexity is probably hurting
it more than helping.
On average, hosting for Java applications
begins around US$10 per month, while Python
services start at around US$2 per month.
Other Python advantages include the opensource nature of Python and the fact that the
language’s creator—Guido van Rossum—
works at Google.
•
•
•
A means to leverage Python in a scalable cloud
environment and interact directly with database,
workflow, and logic capabilities in Force.com.
Force.com for Google App Engine enables the
creation of Python libraries that, when placed on
Google App Engine, allow App Engine apps to read
and write to Force.com using the Force.com API.
App Engine developers get access to Force.com
services and capabilities including mobile, analytics,
security and sharing models, user authentication,
multilanguage and currency support, and more.
Development
• Google App Engine
• Google uses Python, so we’ll use that
script in this demonstration
• To get started, you must first download
the Google App Engine development
kit, located at
http://code.google.com/appengine/down
loads.html.
• The SDK includes a web server
application that simulates the App
Engine environment.
• Download and install the App Engine
SDK. For this demonstration, you will
use two commands from the SDK:
• • dev_appserver.py The development
web server
• appcfg.py Used to upload your app to
App Engine
Create Apps
• Example code and howto:
• http://pendek.in/1n5g