Newman
A Functional REST Client for Scala
Aaron Schlesinger
Sr. Software Engineer, StackMob
Overview
Motivation
Apache HttpClient
Code
Finagle
Code
More
Newman
Part I: Common Interface
Part II: Safety
Functional Newman
Referential Transparency
Type Classes
JSON decoding in Newman
Type Safe Newman
Examples of Type Safety
Immutable Newman
Example of Immutability
Part III: Performance
More on Clients
Client Pros and Cons
Caching
Wrap Up: Upcoming Work
Thanks & Q/A
Extra: Performance Overhead
Extra: Best Tool For The Job
Extra: Extending
Extra: Using Futures