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
Network Layer Abstraction
Search
Swift India
February 29, 2020
Technology
0
100
Network Layer Abstraction
Swift India
February 29, 2020
Tweet
Share
More Decks by Swift India
See All by Swift India
Efficient JSON to Object Parsing
swiftindia
0
78
Sign In with Apple
swiftindia
0
88
Furlenco's AR Journey
swiftindia
0
75
Image processing using Core Image and Metal
swiftindia
0
150
Combine - Diving into Apple’s Reactive Programming
swiftindia
1
160
Social in Hotstar
swiftindia
0
150
Improving App Launch Time
swiftindia
1
72
Backend Driven UIs
swiftindia
0
83
Introduction to AsyncDisplayKit / Texture
swiftindia
0
100
Other Decks in Technology
See All in Technology
プロデザ! BY リクルート vol.18_リクルートのリサーチ実践組織「リサーチブーストコミュニティ」
recruitengineers
PRO
3
260
GraphQL 成熟度モデルの紹介と、プロダクトに当てはめた事例 / GraphQL maturity model
mh4gf
7
1.2k
検証を通して見えてきたTiDBの性能特性
lycorptech_jp
PRO
6
3.7k
プラットフォームってつくることより計測することが重要なんじゃないかという話 / Platform Engineering Meetup #8
taishin
0
320
本当のAWS基礎
toru_kubota
0
350
Postman v10リリース後を振り返る
nagix
0
170
SPI原点回帰論:事業課題とFour Keysの結節点を見出す実践的ソフトウェアプロセス改善 / DevOpsDays Tokyo 2024
visional_engineering_and_design
4
1.8k
よく聞くけど使ったことないソフトウェアNo.1 KafkaとSnowflake
foursue
4
280
「手動オペレーションに定評がある」と言われた私が心がけていること / phpcon_odawara2024
blue_goheimochi
2
360
Meta Quest 3 で動く桜マシマシ WebXR アプリを IBM Cloud Code Engine と Babylon.js で作った話
1ftseabass
PRO
0
110
ServiceNow Knowledge 24の歩き方 EYストラテジー・アンド・コンサルティング
manarobot
0
170
オーナーシップを持つ領域を明確にする
konifar
13
3k
Featured
See All Featured
Creatively Recalculating Your Daily Design Routine
revolveconf
209
11k
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
119
39k
Unsuck your backbone
ammeep
662
57k
A Modern Web Designer's Workflow
chriscoyier
689
190k
KATA
mclloyd
14
12k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
13
1.5k
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
220
21k
Teambox: Starting and Learning
jrom
128
8.4k
Infographics Made Easy
chrislema
238
18k
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
501
140k
Making Projects Easy
brettharned
108
5.5k
The Brand Is Dead. Long Live the Brand.
mthomps
48
28k
Transcript
Rakesh Chander - Comviva Technologies NETWORK LAYER ABSTRACTION • Interceptors
• Validators • Dependency Injection
Rakesh Chander - Comviva Technologies Problem Statement – Common Request
/ Response operations – Serialization / Deserialization – Bearer Token Management – End to End Encryption – Testable Code
Rakesh Chander - Comviva Technologies Unfolding – Common code templates
& patterns – Generics – Abstraction – Over-riding behavior – Dependency Injection
Rakesh Chander - Comviva Technologies Interceptors ▪ Interceptors are a
powerful mechanism that can pre-process or post-process a request
Rakesh Chander - Comviva Technologies Interceptors (Request Header Definition)
Rakesh Chander - Comviva Technologies Interceptors (Request Body Definition)
Rakesh Chander - Comviva Technologies Interceptors (Response Body Definition)
Rakesh Chander - Comviva Technologies Interceptors (Usage)
Rakesh Chander - Comviva Technologies Validators ▪ Serialization / Deserialization
▪ Fallback Mechanism ▪ Common Error Generation ▪ Bearer Token Management
Rakesh Chander - Comviva Technologies Adoption ▪ API call can
be declared using structs, its simple ▪ Implement Protocols for required Request Type viz GET, POST, PUT, DELETE etc
Rakesh Chander - Comviva Technologies Adoption (Overriding defaults)
Rakesh Chander - Comviva Technologies Adoption (Execution)
Rakesh Chander - Comviva Technologies Conclusion ▪ Increased Productivity ▪
Lesser error scenarios
Rakesh Chander - Comviva Technologies Dependency Injection ▪ Multiple Network
Clients ▪ Unit Tests
Rakesh Chander - Comviva Technologies Dependency Injection (Network Client Implementation)
Rakesh Chander - Comviva Technologies Dependency Injection (Network Client Mock)
Rakesh Chander - Comviva Technologies Summary Scalable, Maintainable, Reusable &
Testable Interceptors – Wrappers, Parsers, End to End Encryption Validators – Serialization/ Deserialization, Fallback Response DAO, Token Management
Rakesh Chander - Comviva Technologies Try It Out! ▪ https://github.com/rakeshchander/RCNetworkClient