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
Adrian Kosmaczewski
October 04, 2010
Technology
340
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
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
290
Managing Fleets of Kubernetes Clusters with GitOps
akosma
4
320
DevOps in Switzerland from 2018 to 2022
akosma
4
410
APPUiO Cloud
akosma
2
850
Introduction to K8up
akosma
0
470
Creating Products through DevOps: The Story of VSHN
akosma
0
340
Everyday Life of an Open-Source Company: The Story of VSHN
akosma
0
420
Creating a Product through DevOps: The Story of APPUiO Cloud
akosma
0
870
Migrating the GitLab–Kubernetes Integration from Certificates to the Agent
akosma
0
660
Other Decks in Technology
See All in Technology
Multicaで30個のミニプロジェクトをAIエージェント運用して見えてきたこと
eiei114
1
630
Oracle Base Database Service 技術詳細
oracle4engineer
PRO
15
110k
発表と総括 / Presentations and Summary
ks91
PRO
0
190
2026年のソフトウェア開発を考える(2026/07版) / Agentic Software Engineering 2026-07 Findy Edition
twada
PRO
26
11k
Amplify Gen2でbackend.tsにCDKを定義する/しない事によるCDKの挙動の違いとユースケース
smt7174
1
490
StepFunctionsとGraphRAGを活用した暗黙知活用のためのRAG基盤
yakumo
0
140
伝票作成AIエージェントを支える、LLMOpsとインフラの選択肢 / AICon2026_takeda
rakus_dev
0
260
Devsumi 2026 Summer 人もAIも使える共通基盤を事業の加速装置にする~デザインシステム運用に学ぶ組織レバレッジ~ 渡辺 凌央
legalontechnologies
PRO
1
290
AI時代のPlaywright活用(システムテストを自動化する ー 実行エンジンにPla ywrightを選んだ理由)
ynisqa1988
2
950
複数プロダクト組織のAIネイティブ化における戦略 / AICon2026_kude
rakus_dev
0
300
VPCセキュリティ対応の最新事情
nagisa53
1
290
_NIKKEI_Tech_Talk__勉強会は熱量では続かない___17回続いた輪読会の設計術.pdf
_awache
1
110
Featured
See All Featured
Connecting the Dots Between Site Speed, User Experience & Your Business [WebExpo 2025]
tammyeverts
11
970
YesSQL, Process and Tooling at Scale
rocio
174
15k
Heart Work Chapter 1 - Part 1
lfama
PRO
8
36k
Public Speaking Without Barfing On Your Shoes - THAT 2023
reverentgeek
1
460
Paper Plane
katiecoart
PRO
2
52k
ラッコキーワード サービス紹介資料
rakko
1
4M
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
333
23k
Designing for Performance
lara
611
70k
The AI Search Optimization Roadmap by Aleyda Solis
aleyda
1
6k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
287
14k
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
52
6k
Six Lessons from altMBA
skipperchong
29
4.3k
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/