O'Reilly logo

Serverless Single Page Apps by Ben Rady

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required