A Three-Tier Web Application Pattern with GraphQL

In Chapter 2, A Three-Tier Web Application Using REST,  we walked through the entire process of authoring a REST API on top of a serverless system with accompanying hosted services for the data and presentation layers. Our serverless logic layer was implemented with AWS Lambda and API Gateway, which provide many advantages regarding deployment, iteration speed, and scalability. REST APIs are well understood among the web development community and a safe choice when building a new web-based API. However, emerging tools and protocols are taking shape and providing us with alternatives to REST. GraphQL is arguably one of the most popular alternatives to REST APIs lately, evidenced by AWS and ...

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.