Chapter 6Building (Micro)Services with Lambda

While running every line of code needed for your application in the browser may be preferable, it’s not always possible. In some situations, creating a custom web service to support your application makes a lot of sense. As we saw in the last chapter, you may want to enforce data constraints that can’t be specified in an access policy. You also might want to filter query results before sending them back to the browser, perhaps to save bandwidth costs or to improve user experience on devices with limited or intermittent network access. Providing an additional HTTP interface to your data can also enable third-party access to your app or create opportunities for caching data via browser-supported HTTP ...

Get Serverless Single Page Apps 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.