api first

11

Upload: kirsten-hunter

Post on 08-May-2015

661 views

Category:

Technology


1 download

DESCRIPTION

API First talk from Gluecon '14, talking about putting the API behind all of your products and having a single stack. Presenter notes are included and probably necessary for when you don't have my interpretive dance to watch.

TRANSCRIPT

Page 1: API First
Page 2: API First

API Ninja@3scale I’ve worked with REST APIs since 2005 - Socialtext, Netflix, LinkedIn I spend time telling API providers how to make APIs that don’t make developers cry, and telling developers how to use APIs without crying Generally committed to reducing frustration in the world !About me: Kirsten Hunter @synedra on twitter http://www.princesspolymath.com

Page 3: API First

* Dedicated resources * Excellent developer experience/support * Consistent with website features

Page 4: API First

* Duplicate code/business logic * Resource contention (engineers) * Inconsistent interfaces * Poor communication between backend and API engineers

Page 5: API First

* All products run from the same API * Takes MVC to the next level, decoupling front end from back end * Enforces consistency within interfaces * Allows mobile and 3rd party clients to stay current with website * Allows for quick iterations

Page 6: API First

* You already have a model that's working for you * You don't have the time/resources to add an extra layer * You're never ever going to have a second product * You only want the external API to do a couple of things * These are all examples of short-term thinking

Page 7: API First

* Cloud printing/mailing service * API based product * Everything external/internal uses APIs

Page 8: API First

* Backed into API first with Mobile first * Users clamoring for website, no resources available to provide it * Opened up their API, third party developers made some nice websites

Page 9: API First

* API Management Company * Strong commitment to supporting APIs * All functionality is available via API

Page 10: API First

* Global company, 18 million items, 60 million monthly visitors, 25 million members * Etsy sellers made over 1 billion dollars in 2013 * v2 API - standard REST, clients made multiple requests for a single view * Access control added complexity * Duplicated code and business logic * v3 - domain resources, not row resources (not driven by DB schema) * scripting for more complex requests (for multiple related resources) using bespoke * Improved communication between backend and frontend engineers * Faster iterations, more confidence in API * Activity Feed went from asynchronous to on-demand, from minutes to sub-second http://www.slideshare.net/PaulWright9

Page 11: API First

* Cat photo ends any intelligent discussion on the internet * … but I’d love to hear your questions!