Silicon Valley Code Camp : October 5th and 6th 2013session
Newman, a Functional REST client in Scala
About This Session
Over the past 4 months, StackMob has transitioned from a monolithic app to a Services-Oriented Architecture (SOA). Early in the transition, we decided to use REST as our RPC mechanism and JSON as our data interchange format.
Before we evaluated REST clients, we already were using Scala and Scalaz heavily, and built everything in the functional style. We decided to build our own REST client called Newman (http://github.com/stackmob/newman), also in the functional style.
Newman shows how well the functional style is suited for representing REST semantics in code, and how it leads to safer code by the implementor and user. By keeping a functional style, we can build high level features more quickly than with other styles. The library is open source on github (http://github.com/stackmob/newman), and issues and pull requests are always welcome.