Cloud computing and mobile rit
-
Upload
kopertop -
Category
Technology
-
view
630 -
download
1
description
Transcript of Cloud computing and mobile rit
![Page 1: Cloud computing and mobile rit](https://reader033.fdocuments.us/reader033/viewer/2022051108/5461f18faf7959422a8b4b08/html5/thumbnails/1.jpg)
How CloudComputing changed Mobile Development
Chris MoyerVP of Technology @ Newstex, LLC
Monday, October 1, 12
![Page 2: Cloud computing and mobile rit](https://reader033.fdocuments.us/reader033/viewer/2022051108/5461f18faf7959422a8b4b08/html5/thumbnails/2.jpg)
Who am I?
✦ Author
✦ Building Applications in the Cloud
✦ Not just about AWS, but cloud computing “patterns” in general
Monday, October 1, 12
![Page 3: Cloud computing and mobile rit](https://reader033.fdocuments.us/reader033/viewer/2022051108/5461f18faf7959422a8b4b08/html5/thumbnails/3.jpg)
Author
✦ Now available in multiple languages
✦ Available through Amazon.com
Monday, October 1, 12
![Page 4: Cloud computing and mobile rit](https://reader033.fdocuments.us/reader033/viewer/2022051108/5461f18faf7959422a8b4b08/html5/thumbnails/4.jpg)
Newstex VP
✦ VP of Technology: Newstex, LLC
✦ Took Newstex from a datacenter to AWS
✦ All applications run entirely within AWS
Monday, October 1, 12
![Page 5: Cloud computing and mobile rit](https://reader033.fdocuments.us/reader033/viewer/2022051108/5461f18faf7959422a8b4b08/html5/thumbnails/5.jpg)
Mobile + CloudMonday, October 1, 12
![Page 6: Cloud computing and mobile rit](https://reader033.fdocuments.us/reader033/viewer/2022051108/5461f18faf7959422a8b4b08/html5/thumbnails/6.jpg)
What is a cloud service?
Monday, October 1, 12
![Page 7: Cloud computing and mobile rit](https://reader033.fdocuments.us/reader033/viewer/2022051108/5461f18faf7959422a8b4b08/html5/thumbnails/7.jpg)
Do you have a smartphone or
tablet?
Monday, October 1, 12
![Page 8: Cloud computing and mobile rit](https://reader033.fdocuments.us/reader033/viewer/2022051108/5461f18faf7959422a8b4b08/html5/thumbnails/8.jpg)
The original Mobile Phone
Radio Common Carrier
1960s by AT&T
Voice only
Monday, October 1, 12
![Page 9: Cloud computing and mobile rit](https://reader033.fdocuments.us/reader033/viewer/2022051108/5461f18faf7959422a8b4b08/html5/thumbnails/9.jpg)
Smartphones - Business only
Blackberry introduces a phone with Email
Lets you keep in contact with the office outside the office
Allows you to be mobile
Monday, October 1, 12
![Page 10: Cloud computing and mobile rit](https://reader033.fdocuments.us/reader033/viewer/2022051108/5461f18faf7959422a8b4b08/html5/thumbnails/10.jpg)
Smartphones for everyone!
Smartphones for normal people
“Apps” become more useful then the phone
Usage shifts
“Mobile” doesn’t just mean “phone” anymore
Monday, October 1, 12
![Page 11: Cloud computing and mobile rit](https://reader033.fdocuments.us/reader033/viewer/2022051108/5461f18faf7959422a8b4b08/html5/thumbnails/11.jpg)
What do you use your mobile for?
Monday, October 1, 12
![Page 12: Cloud computing and mobile rit](https://reader033.fdocuments.us/reader033/viewer/2022051108/5461f18faf7959422a8b4b08/html5/thumbnails/12.jpg)
Data usage increasing
Monday, October 1, 12
![Page 13: Cloud computing and mobile rit](https://reader033.fdocuments.us/reader033/viewer/2022051108/5461f18faf7959422a8b4b08/html5/thumbnails/13.jpg)
Faster processors use more battery
Small - Not a desktop
Use less power
Produce less heat
Don’t process:
Background Tasks
Expensive Tasks
Monday, October 1, 12
![Page 14: Cloud computing and mobile rit](https://reader033.fdocuments.us/reader033/viewer/2022051108/5461f18faf7959422a8b4b08/html5/thumbnails/14.jpg)
Selling a service, not an application
Applications have short lifespan
Services give you paying customers forever
Think “World of Warcraft” vs “Warcraft 3”
Monday, October 1, 12
![Page 15: Cloud computing and mobile rit](https://reader033.fdocuments.us/reader033/viewer/2022051108/5461f18faf7959422a8b4b08/html5/thumbnails/15.jpg)
But where do I run these tasks?
Traditional DCs don’t scale
Users may jump from 500 to 5 million overnight
Users may drop, need to be flexible
Monday, October 1, 12
![Page 16: Cloud computing and mobile rit](https://reader033.fdocuments.us/reader033/viewer/2022051108/5461f18faf7959422a8b4b08/html5/thumbnails/16.jpg)
Offloading data/processing to a CloudElastic back-end
Scale when you get more users
Network accessible
Allow localized access
Monday, October 1, 12
![Page 17: Cloud computing and mobile rit](https://reader033.fdocuments.us/reader033/viewer/2022051108/5461f18faf7959422a8b4b08/html5/thumbnails/17.jpg)
Lets put everything on the backend!
HTML5 Only apps
HTML5 is slow
Not everything is “standard”
Not all devices deserve the same layout
Transmitting data + layout over high-latency networks
Monday, October 1, 12
![Page 18: Cloud computing and mobile rit](https://reader033.fdocuments.us/reader033/viewer/2022051108/5461f18faf7959422a8b4b08/html5/thumbnails/18.jpg)
How often are you on-the-go with your
mobile?
Monday, October 1, 12
![Page 19: Cloud computing and mobile rit](https://reader033.fdocuments.us/reader033/viewer/2022051108/5461f18faf7959422a8b4b08/html5/thumbnails/19.jpg)
Speed is everythingMonday, October 1, 12
![Page 20: Cloud computing and mobile rit](https://reader033.fdocuments.us/reader033/viewer/2022051108/5461f18faf7959422a8b4b08/html5/thumbnails/20.jpg)
LTE “Speed”Monday, October 1, 12
![Page 21: Cloud computing and mobile rit](https://reader033.fdocuments.us/reader033/viewer/2022051108/5461f18faf7959422a8b4b08/html5/thumbnails/21.jpg)
Mobile networksLatency is much higher
Users pay for data usage
Networks are unreliable
Minimal offline functionality
Monday, October 1, 12
![Page 22: Cloud computing and mobile rit](https://reader033.fdocuments.us/reader033/viewer/2022051108/5461f18faf7959422a8b4b08/html5/thumbnails/22.jpg)
Big Data, Big analytics
Monday, October 1, 12
![Page 23: Cloud computing and mobile rit](https://reader033.fdocuments.us/reader033/viewer/2022051108/5461f18faf7959422a8b4b08/html5/thumbnails/23.jpg)
Tracking: Device or API?Track on Device:
Interactions
User Workflow
Track in API:
API Calls
Usage statistics
Monday, October 1, 12
![Page 24: Cloud computing and mobile rit](https://reader033.fdocuments.us/reader033/viewer/2022051108/5461f18faf7959422a8b4b08/html5/thumbnails/24.jpg)
What about the User?
Monday, October 1, 12
![Page 25: Cloud computing and mobile rit](https://reader033.fdocuments.us/reader033/viewer/2022051108/5461f18faf7959422a8b4b08/html5/thumbnails/25.jpg)
Mobile devices are disposable
Phones get lost, destroyed, or stolen
Enterprise:
Prevent unauthorized access on stolen devices
Protect your data
Monday, October 1, 12
![Page 26: Cloud computing and mobile rit](https://reader033.fdocuments.us/reader033/viewer/2022051108/5461f18faf7959422a8b4b08/html5/thumbnails/26.jpg)
Sync everywhere
One login, any device
Makes you mobile
Use services, not apps
“My data is in the cloud”
Monday, October 1, 12
![Page 27: Cloud computing and mobile rit](https://reader033.fdocuments.us/reader033/viewer/2022051108/5461f18faf7959422a8b4b08/html5/thumbnails/27.jpg)
Newstex System
External ServicesReal Time updates
Push notifications
Email notifications
Social Sharing
Monday, October 1, 12
![Page 28: Cloud computing and mobile rit](https://reader033.fdocuments.us/reader033/viewer/2022051108/5461f18faf7959422a8b4b08/html5/thumbnails/28.jpg)
Newstex’s Solution
Monday, October 1, 12
![Page 29: Cloud computing and mobile rit](https://reader033.fdocuments.us/reader033/viewer/2022051108/5461f18faf7959422a8b4b08/html5/thumbnails/29.jpg)
One API to rule them all?
Not all devices have the same “workflow”
Not all devices authenticate the same
API developer and client developer disconnect
Monday, October 1, 12
![Page 30: Cloud computing and mobile rit](https://reader033.fdocuments.us/reader033/viewer/2022051108/5461f18faf7959422a8b4b08/html5/thumbnails/30.jpg)
Taking a cue from Netflix
Different APIs for different clients
One underlying API with different adapters
Client Adapter written specifically for each development team
Monday, October 1, 12
![Page 31: Cloud computing and mobile rit](https://reader033.fdocuments.us/reader033/viewer/2022051108/5461f18faf7959422a8b4b08/html5/thumbnails/31.jpg)
Newstex API
CloudSearch DynamoDB SimpleDB S3
Web Adapter
Device Adapter
AdaptersPlug in Cloud Services to Centralized API
Build adapters on top of this API for individual use-cases
Web adapter - HTTP/REST + JSON
Mobile devices: Socket + XDR
Monday, October 1, 12
![Page 32: Cloud computing and mobile rit](https://reader033.fdocuments.us/reader033/viewer/2022051108/5461f18faf7959422a8b4b08/html5/thumbnails/32.jpg)
REST is not always bestVersion 1:
REST + JSON
Slow
Lots of overhead
Not Bandwidth efficient
No Sessions
Text parsing is expensive on mobile
Monday, October 1, 12
![Page 33: Cloud computing and mobile rit](https://reader033.fdocuments.us/reader033/viewer/2022051108/5461f18faf7959422a8b4b08/html5/thumbnails/33.jpg)
Custom APIsVersion 2:
Custom “Socket” API
Simple XDR based output
Compact data representation
Fast - Session based
Cheap to decode
Monday, October 1, 12
![Page 34: Cloud computing and mobile rit](https://reader033.fdocuments.us/reader033/viewer/2022051108/5461f18faf7959422a8b4b08/html5/thumbnails/34.jpg)
DNS
us-west
us-east
eu-west
Request RoutingLocation-based DNS
Takes you to the closest servers
Reduce latency
Synchronize databases
Monday, October 1, 12
![Page 35: Cloud computing and mobile rit](https://reader033.fdocuments.us/reader033/viewer/2022051108/5461f18faf7959422a8b4b08/html5/thumbnails/35.jpg)
We’re hiring!
newstex.com/about/jobs
Web Developers
Mobile Developers
Python Developers
Monday, October 1, 12