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

JavaScript API Proxy Pattern

JavaScript API Proxy Pattern

The presentation describes what is API proxy pattern, the problem it solves and how to implement it. It also showcases how it makes testing easier and the future of ES6 Proxies.

Allan Chua

March 13, 2019

More Decks by Allan Chua

Other Decks in Technology


  1. • What is Proxy Design Pattern • Problems it solves

    • How to implement • How to improve • How it makes testing easy • The Future Agenda
  2. • Provide a surrogate or placeholder for another object to

    control access to it. • Use an extra level of indirection to support distributed, controlled, or intelligent access. • Add a wrapper and delegation to protect the real component from undue complexity. What is Proxy Pattern
  3. Why its perfect for API Calls API Consumer Proxy Encapsulates

    protocol and framework used to call API