Prisma1: 'Out of the box' Subscriptions for GraphQL Servers hosted on AWS Lambda

Created on 15 Jan 2018  路  7Comments  路  Source: prisma/prisma1

Hey there! 馃憢

Now that Subscriptions have been implemented for Prisma, and since GraphQL Servers hosted on AWS Lambda cannot support them due to its limitations, it'd be awesome if Prisma could support 'out of the box' Subscriptions just like the Graphcool Framework so that clients could directly subscribe to Prisma instead of going through the server. This will help avoid hosting another server (just for Subscriptions), which is one of the main reasons for going serverless in the first place. 馃挭

Talked to @marktani about this, and he asked me to create a FR here. 馃檭

Cheers! 馃槂

kinfeature

Most helpful comment

I love this idea @RishitKedia!

All 7 comments

I love this idea @RishitKedia!

This could be awesome! Clients could directly connect to the Prisma server since it's going be deployed as a server anyways and the Graphcool server can remain as a cloud function on AWS or Google.

while we die waiting for that, any ideas for https://serverless.com/blog/how-to-manage-your-aws-step-functions-with-serverless/ or at least documentation?>

The above link is trash, this is definitely on topic: https://docs.fanout.io/docs/overview

this is the open source counterpart: https://pushpin.org/

Thanks for the Fanout mention, @janat08 ! I'm the founder, and happy to answer any questions or explore how to integrate.

Fanout provides a gateway between raw WebSockets and HTTP. Hopefully we support the necessary primitives to be able to speak Prisma's GraphQL subscription protocol, but if not then we could add whatever's needed.

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 10 days if no further activity occurs. Thank you for your contributions.

Was this page helpful?
0 / 5 - 0 ratings