Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Integrating iOS Applications with Backend REST ...
Search
Adrian Kosmaczewski
PRO
October 04, 2010
Technology
370
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Integrating iOS Applications with Backend REST Services
Presentation given at JAOO 2010, Århus, Denmark.
Adrian Kosmaczewski
PRO
October 04, 2010
More Decks by Adrian Kosmaczewski
See All by Adrian Kosmaczewski
Patterns in AI Driven Software Development
akosma
PRO
0
480
What's in your Container? Securing the Software Supply Chain without Slowing Down
akosma
PRO
0
380
Managing Fleets of Kubernetes Clusters with GitOps
akosma
PRO
4
360
DevOps in Switzerland from 2018 to 2022
akosma
PRO
4
450
APPUiO Cloud
akosma
PRO
2
890
Introduction to K8up
akosma
PRO
0
500
Creating Products through DevOps: The Story of VSHN
akosma
PRO
0
390
Everyday Life of an Open-Source Company: The Story of VSHN
akosma
PRO
0
450
Creating a Product through DevOps: The Story of APPUiO Cloud
akosma
PRO
0
940
Other Decks in Technology
See All in Technology
コードレビューをなくして見えたもの
henteko
0
130
企画からFlutter実装まで、1つの機能を一貫して開発したプロセスと成果物
khiroyuki1003
1
150
`go get`したらELFが降ってきた件
taiyow
0
170
reInvent2026stby LT00 "Change your life!"
shinichirokawano
1
570
OneLakeをデータソースにした AI Search(Foundry IQ)の ライフサイクル管理
ryuseiiida
0
220
Software Engineering in an AI-Driven World
erikjhordan_rey
0
110
サボる子はいねぇがー!AgentCoreハーネスの脆弱性に学ぶ、エージェントの入力バリデーション
iwamot
PRO
3
150
SLOを阻む不安
sraku2159
0
220
WireGuard for Apache NuttX - Bringing Secure Remote Access to embedded Devices -
aki310ooooo
0
140
バックオフィスに染み出すTypeScript ── clasp で安全に仕組みを作る
nealle
1
180
生き様としてのSRE
hokkai7go
1
170
Flutter Widget Previewerで始めるUIプレビューとVRTの自動化
sakusaku3939
0
210
Featured
See All Featured
VelocityConf: Rendering Performance Case Studies
addyosmani
331
25k
Google's AI Overviews - The New Search
badams
0
1.7k
GitHub's CSS Performance
jonrohan
1033
470k
Paper Plane
katiecoart
PRO
5
54k
Have SEOs Ruined the Internet? - User Awareness of SEO in 2025
akashhashmi
0
540
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
31
3.4k
Darren the Foodie - Storyboard
khoart
PRO
4
4.1k
Max Prin - Stacking Signals: How International SEO Comes Together (And Falls Apart)
techseoconnect
PRO
0
520
How Software Deployment tools have changed in the past 20 years
geshan
2
35k
Color Theory Basics | Prateek | Gurzu
gurzu
1
510
A Soul's Torment
seathinner
8
3.9k
The Language of Interfaces
destraynor
162
27k
Transcript
Integrating iOS Applications with Backend REST Services Monday, October 4th
- JAOO - Århus, Denmark
Adrian Kosmaczewski
akosma software
akosma.com github.com/akosma linkedin.com/in/akosma formspring.me/akosma twitter.com/akosma slideshare.com/akosma
None
My Software Passion
People
Team members, users, clients, society in general
Software is a process
Software is a social process
None
One Problem
Several Solutions
None
Questions
Web Developers?
iOS Developers?
API Designers or Developers?
Server-side Technologies?
None
1 The Problem
Database
Many Questions
Formats?
Libraries?
“Best” approaches?
2 The Solutions
Bad news
Far too many
REST vs SOAP
XML vs JSON
Synchronous vs. Asynchronous
None
Good News
Introducing iPhoneWebServicesClient
http://github.com/akosma/ iPhoneWebServicesClient
2 parts
1 PHP server app
2 iOS client
Many formats
XML
JSON
(duh)
• XML • 8 libraries • JSON • 2 parsers
• YAML • CSV • SOAP • Property List • XML • Binary • Protocol Buffers
Extensible
(add more formats and libraries if you want)
Variable sized dataset
(from 1 to 5000 items per call)
Heterogenous Data Source
(the same data in different formats)
XML Libraries
(lots of them)
None
3 Demo
None
4 The Tests
• Local • Wifi • 3G • EDGE • All
Combinations • Different dataset sizes each time
None
5 Results
Easier to implement on the iOS side?
1. JSON + Property Lists + CSV 2. XML (DOM)
+ Protocol Buffers 3. XML (SAX) 4. SOAP + YAML
Easier to implement on the PHP side?
1. JSON + YAML 2. Property List + CSV +
XML 3. Protocol Buffers 4. SOAP
Smaller Payload
1. CSV + Protocol Buffers + Binary Plist 2. JSON
+ YAML 3. XML 4. SOAP
Fastest Deserialization Speed
1. Property Lists + TBXML 2. SOAP + libxml (DOM)
+ Google XML 3. JSON 4. YAML + CSV + APXML
More Portable?
1. XML + JSON 2. Protocol Buffers + YAML +
CSV 3. SOAP 4. Property Lists
More Readable?
1. JSON + YAML 2. XML + XML Property Lists
3. Protocol Buffers 4. Binary Property Lists
Less Memory Consumption?
1. Binary Property List + Protocol Buffers 2. CSV +
JSON + TBXML 3. XML 4. SOAP + APXML
Some raw, deeply flawed comparisons?
• Binary Plists are 3 to 4 times faster to
deserialize than JSON • iPod touch 2nd Gen is ~25% faster than iPhone 3G • iPhone 4 is ~300% faster than iPhone 3G • JSON is 45% of its equivalent XML plist • Binary plist is 35% of its equivalent XML plist
The “Best”?
1. JSON + Property Lists 2. TBXML + Protocol Buffers
3. Other XML parsers + CSV 4. YAML + SOAP + APXML
None
6 Next Steps
Test with other server-side technologies
(J2EE, ASP.NET, Ruby on Rails, Django...)
Test with other Cocoa networking libraries
• AsyncSocket http://akos.ma/0x37v • IP*Works! for Mac OS X http://www.nsoftware.com/portal/macos/
• OmniNetworking http://akos.ma/0q • ThoMoNetworking http://hci.rwth-aachen.de/thomonet • ConnectionKit http://github.com/karelia/ConnectionKit/
Test with other serialization systems
• MessagePack http://msgpack.org/ • Apache Thrift http://incubator.apache.org/thrift/ • BERT http://bert-rpc.org/
• Apache Avro http://avro.apache.org/ • ONC RPC aka Sun RPC http://akos.ma/va Open Network Computing Remote Procedure Call
Test with different data sets
(sport results, weather, financial data, hyerarchical data, binary data, etc...)
None
Thanks!
Questions?
These slides are released under a Creative Commons Attribution-No Derivative
Works 3.0 Unported License http://creativecommons.org/licenses/by-nd/3.0/