Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Integrating iOS Applications with Backend REST ...
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
Adrian Kosmaczewski
October 04, 2010
Technology
300
0
Share
Integrating iOS Applications with Backend REST Services
Presentation given at JAOO 2010, Århus, Denmark.
Adrian Kosmaczewski
October 04, 2010
More Decks by Adrian Kosmaczewski
See All by Adrian Kosmaczewski
What's in your Container? Securing the Software Supply Chain without Slowing Down
akosma
0
45
Managing Fleets of Kubernetes Clusters with GitOps
akosma
4
290
DevOps in Switzerland from 2018 to 2022
akosma
4
370
APPUiO Cloud
akosma
2
800
Introduction to K8up
akosma
0
440
Creating Products through DevOps: The Story of VSHN
akosma
0
300
Everyday Life of an Open-Source Company: The Story of VSHN
akosma
0
380
Creating a Product through DevOps: The Story of APPUiO Cloud
akosma
0
780
Migrating the GitLab–Kubernetes Integration from Certificates to the Agent
akosma
0
620
Other Decks in Technology
See All in Technology
2026-04-02 IBM Bobオンボーディング入門
yutanonaka
0
260
Oracle AI Database@AWS:サービス概要のご紹介
oracle4engineer
PRO
4
2.2k
新規サービス開発におけるReact Nativeのリアル〜技術選定の裏側と実践的OSS活用〜
grandbig
2
160
あるアーキテクチャ決定と その結果/architecture-decision-and-its-result
hanhan1978
2
560
さくらのクラウドでつくるCloudNative Daysのオブザーバビリティ基盤
b1gb4by
0
140
Databricksを用いたセキュアなデータ基盤構築とAIプロダクトへの応用.pdf
pkshadeck
PRO
0
230
レガシーシステムをどう次世代に受け継ぐか
tachiiri
0
330
会社紹介資料 / Sansan Company Profile
sansan33
PRO
16
410k
ログ基盤・プラグイン・ダッシュボード、全部整えた。でも最後は人だった。
makikub
5
1.3k
AIペネトレーションテスト・ セキュリティ検証「AgenticSec」ご紹介資料
laysakura
0
1.6k
第26回FA設備技術勉強会 - Claude/Claude_codeでデータ分析 -
happysamurai294
0
400
LLM とプロンプトエンジニアリング/チューターを定義する / LLMs and Prompt Engineering, and Defining Tutors
ks91
PRO
0
320
Featured
See All Featured
What’s in a name? Adding method to the madness
productmarketing
PRO
24
4k
Abbi's Birthday
coloredviolet
2
6.4k
Typedesign – Prime Four
hannesfritz
42
3k
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
31
3.1k
Imperfection Machines: The Place of Print at Facebook
scottboms
270
14k
Agile Actions for Facilitating Distributed Teams - ADO2019
mkilby
0
170
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
254
22k
Odyssey Design
rkendrick25
PRO
2
570
Ruling the World: When Life Gets Gamed
codingconduct
0
190
Agile Leadership in an Agile Organization
kimpetersen
PRO
0
120
Evolution of real-time – Irina Nazarova, EuRuKo, 2024
irinanazarova
9
1.3k
Sam Torres - BigQuery for SEOs
techseoconnect
PRO
0
240
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/