Transforming responses from a modern API

Next, we'll walk through a scenario where we have an existing API interface that we need to support, but would like to change the backend implementation entirely. This scenario is common and one I've dealt with personally. Existing clients point to a particular set of API endpoints. Breaking a public API that many developers depend on isn't something anyone wants to do. But, when that API is built on top of hard-to-maintain or poorly performing code, how does one iterate without requiring hundreds or thousands of developers to update their mobile, web, or GUI applications?

In this example, I will walk through the steps necessary to take a pretend legacy API and reimplement it using our modern API. ...

Get Serverless Design Patterns and Best Practices now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.