O'Reilly logo

Building Serverless Web Applications by Diego Zanon

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

Graph

The Graph pattern is based on the GraphQL standard that was proposed by Facebook. It is an emerging technology with the objective to provide an alternative to RESTful APIs. Since it is growing in popularity among serverless projects, it deserves a section in this book.

In this pattern, we have just one Lambda function with a single endpoint. This endpoint is a query that will trigger the GraphQL to fetch the corresponding data in any form that the client needs:

Having just one endpoint is not a restriction. You can have multiple endpoints, but the objective of this pattern is to reduce the number of interfaces.

The serverless.yml file ...

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