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
130
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
98
Sign In with Apple
swiftindia
0
110
Furlenco's AR Journey
swiftindia
0
97
Image processing using Core Image and Metal
swiftindia
0
180
Combine - Diving into Apple’s Reactive Programming
swiftindia
1
200
Social in Hotstar
swiftindia
0
200
Improving App Launch Time
swiftindia
1
75
Backend Driven UIs
swiftindia
0
100
Introduction to AsyncDisplayKit / Texture
swiftindia
0
120
Other Decks in Technology
See All in Technology
成果を出しながら成長する、アウトプット駆動のキャッチアップ術 / Output-driven catch-up techniques to grow while producing results
aiandrox
0
180
マイクロサービスにおける容易なトランザクション管理に向けて
scalar
0
110
日本版とグローバル版のモバイルアプリ統合の開発の裏側と今後の展望
miichan
1
120
alecthomas/kong はいいぞ / kamakura.go#7
fujiwara3
1
300
Oracle Cloud Infrastructure:2024年12月度サービス・アップデート
oracle4engineer
PRO
0
160
CustomCopを使ってMongoidのコーディングルールを整えてみた
jinoketani
0
220
Turing × atmaCup #18 - 1st Place Solution
hakubishin3
0
470
10分で学ぶKubernetesコンテナセキュリティ/10min-k8s-container-sec
mochizuki875
3
320
権威ドキュメントで振り返る2024 #年忘れセキュリティ2024
hirotomotaguchi
2
730
社内イベント管理システムを1週間でAKSからACAに移行した話し
shingo_kawahara
0
180
小学3年生夏休みの自由研究「夏休みに Copilot で遊んでみた」
taichinakamura
0
140
WACATE2024冬セッション資料(ユーザビリティ)
scarletplover
0
190
Featured
See All Featured
YesSQL, Process and Tooling at Scale
rocio
169
14k
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
28
9.1k
Building Applications with DynamoDB
mza
91
6.1k
Six Lessons from altMBA
skipperchong
27
3.5k
Mobile First: as difficult as doing things right
swwweet
222
9k
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
29
2k
A designer walks into a library…
pauljervisheath
204
24k
How to Ace a Technical Interview
jacobian
276
23k
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
169
50k
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
356
29k
The Pragmatic Product Professional
lauravandoore
32
6.3k
Speed Design
sergeychernyshev
25
670
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