We don’t need no stinkin app server! Building a Two-Tier Mobile App

28
We Don’t Need No Stinkin’ App Server! Building a Two-Tier Mobile App Pat Patterson @metadaddy Principal Developer Evangelist salesforce.com

description

Slides from my 5/23/2012 Gluecon 2012 session.

Transcript of We don’t need no stinkin app server! Building a Two-Tier Mobile App

Page 1: We don’t need no stinkin app server! Building a Two-Tier Mobile App

We Don’t Need No Stinkin’ App Server!

Building a Two-Tier Mobile App

Pat Patterson@metadaddy

Principal Developer Evangelistsalesforce.com

Page 2: We don’t need no stinkin app server! Building a Two-Tier Mobile App

Safe HarborSafe harbor statement under the Private Securities Litigation Reform Act of 1995: This presentation may contain forward-looking statements that involve risks, uncertainties, and assumptions. If any such uncertainties materialize or if any of the assumptions proves incorrect, the results of salesforce.com, inc. could differ materially from the results expressed or implied by the forward-looking statements we make. All statements other than statements of historical fact could be deemed forward-looking, including any projections of subscriber growth, earnings, revenues, or other financial items and any statements regarding strategies or plans of management for future operations, statements of belief, any statements concerning new, planned, or upgraded services or technology developments and customer contracts or use of our services.

The risks and uncertainties referred to above include – but are not limited to – risks associated with developing and delivering new functionality for our service, our new business model, our past operating losses, possible fluctuations in our operating results and rate of growth, interruptions or delays in our Web hosting, breach of our security measures, the immature market in which we operate, our relatively limited operating history, our ability to expand, retain, and motivate our employees and manage our growth, new releases of our service and successful customer deployment, and utilization and selling to larger enterprise customers. Further information on potential factors that could affect the financial results of salesforce.com, inc. is included in our annual report on Form 10-K filed on March 9, 2012 and in other filings with the Securities and Exchange Commission. These documents are available on the SEC Filings section of the Investor Information section of our Web site.

Any unreleased services or features referenced in this or other press releases or public statements are not currently available and may not be delivered on time or at all. Customers who purchase our services should make the purchase decisions based upon features that are currently available. Salesforce.com, inc. assumes no obligation and does not intend to update these forward-looking statements.

Page 3: We don’t need no stinkin app server! Building a Two-Tier Mobile App

Agenda

• Database-as-a-Service

• Hybrid Mobile App Frameworks

• Combining the two approaches for rapid mobile app development

Page 4: We don’t need no stinkin app server! Building a Two-Tier Mobile App

Agenda

• Database-as-a-Service

• Hybrid Mobile App Frameworks

• Combining the two approaches for rapid mobile app development

Page 5: We don’t need no stinkin app server! Building a Two-Tier Mobile App

3-Tier Architecture

Page 6: We don’t need no stinkin app server! Building a Two-Tier Mobile App

3-Tier Architecture

Page 7: We don’t need no stinkin app server! Building a Two-Tier Mobile App

3-Tier Architecture

Page 8: We don’t need no stinkin app server! Building a Two-Tier Mobile App

3-Tier Architecture

Page 9: We don’t need no stinkin app server! Building a Two-Tier Mobile App

3-Tier Architecture

Page 10: We don’t need no stinkin app server! Building a Two-Tier Mobile App

3-Tier Architecture

Page 11: We don’t need no stinkin app server! Building a Two-Tier Mobile App

3-Tier Architecture

Page 12: We don’t need no stinkin app server! Building a Two-Tier Mobile App

2-Tier Architecture

Page 13: We don’t need no stinkin app server! Building a Two-Tier Mobile App

2-Tier Architecture

iOSAndroid

Page 14: We don’t need no stinkin app server! Building a Two-Tier Mobile App

2-Tier Architecture

iOSAndroid

database.comSimpleDB/DynamoDB

GAE DatastoreCouchDBMongoDB

Page 15: We don’t need no stinkin app server! Building a Two-Tier Mobile App

RESTful Database APIResource Name URI Description

Versions / List of supported API versions

Resources by Version

/vXX.X/ Available resources for this version

Describe Global /vXX.X/sobjects/ Available objects and metadata

SObject Basic Info /vXX.X/sobjects/SObject/ Metadata for object

SObject Describe /vXX.X/sobjects/SObject/describe/ Metadata for object fields etc

SObject Rows /vXX.X/sobjects/SObject/id/ Access record by native ID

SObject Rows by External ID

/vXX.X/sobjects/SObject/fieldName/fieldValue

Access record by external ID

User Password /vXX.X/sobjects/User/userId/password Set/reset user password

Query /vXX.X/query/?q=soql SOQL query

Search /vXX.X/search/?s=sosl SOSL query

http://www.salesforce.com/us/developer/docs/dbcom_api_rest/index.htm

Page 16: We don’t need no stinkin app server! Building a Two-Tier Mobile App

Agenda

• Database-as-a-Service

• Hybrid Mobile App Frameworks

• Combining the two approaches for rapid mobile app development

Page 17: We don’t need no stinkin app server! Building a Two-Tier Mobile App

Agenda

• Database-as-a-Service

• Hybrid Mobile App Frameworks

• Combining the two approaches for rapid mobile app development

Page 18: We don’t need no stinkin app server! Building a Two-Tier Mobile App

Mobile App Spectrum

Objective C /Java

Native

HTML5 +CSS +

JavaScript

Hybrid

HTML5 +CSS +

JavaScript

Web

Page 19: We don’t need no stinkin app server! Building a Two-Tier Mobile App

Atwood’s Law

“Any application that can be written in JavaScript, will eventually be written in

JavaScript.”

http://www.codinghorror.com/blog/2007/07/the-principle-of-least-power.html

Page 20: We don’t need no stinkin app server! Building a Two-Tier Mobile App

Proof Point: LinkedIn iPad App

“Yes, only one screen in the entire LinkedIn iPad app is actually native.

The rest is good ol’ HTML5-based mobile web technology, running in the

browser.”

http://venturebeat.com/2012/05/02/linkedin-ipad-app-engineering/

Page 21: We don’t need no stinkin app server! Building a Two-Tier Mobile App

Hybrid Mobile App Platforms

• Apache Cordova (aka [Adobe] PhoneGap)• Trigger.io• Appcelerator Titanium• Ansca Corona• Many, many, more

– http://en.wikipedia.org/wiki/Mobile_application_development

Page 22: We don’t need no stinkin app server! Building a Two-Tier Mobile App

Salesforce Mobile SDK

• Hybrid support built on PhoneGap 1.2+ OAuth 2.0 built in+ JavaScript binding to database.com REST API

• Current Version 1.1– Added Secure Offline API, more flexible OAuth 2.0 and more

• Version 1.2 coming soon– Adds PIN protection, session timeout and more

2012

1.0Dec 2011

1.1Mar 2012

1.2Soon!

• And…

Page 23: We don’t need no stinkin app server! Building a Two-Tier Mobile App

It’s 100% open source

Page 24: We don’t need no stinkin app server! Building a Two-Tier Mobile App

Agenda

• Database-as-a-Service

• Hybrid Mobile App Frameworks

• Combining the two approaches for rapid mobile app development

Page 25: We don’t need no stinkin app server! Building a Two-Tier Mobile App

Agenda

• Database-as-a-Service

• Hybrid Mobile App Frameworks

• Combining the two approaches for rapid mobile app development

Page 26: We don’t need no stinkin app server! Building a Two-Tier Mobile App

Code Time…

http://bit.ly/gc12-mobile-demo

Page 27: We don’t need no stinkin app server! Building a Two-Tier Mobile App

Conclusion

• Database-as-a-Service can dramatically simplify your web app’s back end

• Frameworks such as Apache Cordova accelerate mobile app development

• Combine the two for rapid mobile app development

Page 28: We don’t need no stinkin app server! Building a Two-Tier Mobile App

Thank You!Pat Patterson@metadaddy

Principal Developer Evangelistsalesforce.com