Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Serverless GraphQL Subscriptions

I recently started working with GraphQL and have been able to successful set it up on AWS Lambda giving me a "serverless" architecture. However I would like to utilize GraphQL Subscriptions for more realtime functionality.

I understand that AWS Lambda doesn't allow WebSockets, since the connections only last as long as the function runs or the timeout limit is reached.

But is there some way to setup the GraphQL backend so that it can utilize subscriptions and keep it within AWS services and have it scale like a "serverless" application.

Something like using AWS Lambda for GraphQL Queries and Mutations and then a different AWS service for GraphQL Subscriptions.

like image 533
Dan Avatar asked Jul 01 '17 18:07

Dan


1 Answers

AWS AppSync was announced this week (Nov. 29th) it supports graphQL subscriptions.

like image 131
Dan Crawford Avatar answered Oct 08 '22 04:10

Dan Crawford