Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Network Layer Abstraction

Swift India
February 29, 2020

Network Layer Abstraction

Swift India

February 29, 2020
Tweet

More Decks by Swift India

Other Decks in Technology

Transcript

  1. Rakesh Chander - Comviva Technologies Problem Statement – Common Request

    / Response operations – Serialization / Deserialization – Bearer Token Management – End to End Encryption – Testable Code
  2. Rakesh Chander - Comviva Technologies Unfolding – Common code templates

    & patterns – Generics – Abstraction – Over-riding behavior – Dependency Injection
  3. Rakesh Chander - Comviva Technologies Interceptors ▪ Interceptors are a

    powerful mechanism that can pre-process or post-process a request
  4. Rakesh Chander - Comviva Technologies Validators ▪ Serialization / Deserialization

    ▪ Fallback Mechanism ▪ Common Error Generation ▪ Bearer Token Management
  5. 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
  6. Rakesh Chander - Comviva Technologies Summary Scalable, Maintainable, Reusable &

    Testable Interceptors – Wrappers, Parsers, End to End Encryption Validators – Serialization/ Deserialization, Fallback Response DAO, Token Management