Wiring Prismatic's API with fnHouse and Coax

A session at Clojure/West 2014

  • Dave Golland

Tuesday 25th March, 2014

3:50pm to 4:30pm (PST)

In the functional programming paradigm, web services should consist simply of functions that turn requests into responses. At Prismatic, we’ve developed fnHouse -- a minimal library that transforms a collection of lightly-annotated functions into a full-fledged, production-grade web service. fnHouse enables concise handler definitions, query parameter parsing, and input and output validation (and even coercion) using the Schema library. We also use the function metadata to generate living API documentation that is always up-to-date. Using this functional view, middleware for rate-limiting, authorization, and analytics become straightforward function compositions.

In this talk, we will describe Prismatic’s web infrastructure: how we construct a service graph using the Plumbing and Graph libraries, and how functions turn into handlers using fnHouse and Schema. We also present Coax, a Prismatic library that generates Objective-C and ClojureScript API clients from the annotated functions. In one fell swoop, these libraries transform a simple, lightly-annotated function into a secure, validated API endpoint and ObjectiveC client API and model classes. Come learn how you can do the same.

About the speaker

This person is speaking at this event.
Dave Golland

Sign in to add slides, notes or videos to this session

Tell your friends!


Time 3:50pm4:30pm PST

Date Tue 25th March 2014


Ballroom 2, The Palace Hotel

Short URL


Official event site


View the schedule


See something wrong?

Report an issue with this session