# Serverless GraphQL

**URL:** <https://forum.serverless.com/t/serverless-graphql/2194>\
**Category:** Serverless Framework\
**Created:** [July 1, 2017, 5:54pm UTC](https://forum.serverless.com/t/serverless-graphql/2194 "2017-07-01T17:54:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Plinpod](https://avatars.discourse-cdn.com/v4/letter/p/e68b1a/32.png) [@Plinpod](https://forum.serverless.com/u/Plinpod)\
**Post date:** [July 1, 2017, 5:54pm UTC](https://forum.serverless.com/t/serverless-graphql/2194/1 "2017-07-01T17:54:43Z")

</div>

Hello,

I recently read the posts about running GraphQL with Serverless on AWS Lambda and I got it working well. However I would like to utilize GraphQL subscriptions in my app and don’t know how to go about it with this structure. I know that AWS Lambda doesn’t support web sockets since the connection is only opened for a small period of time.

Has anyone here used serverless to deploy GraphQL and found a way to also use GraphQL subscriptions maybe with another AWS service?

Looking forward to reading any responses.

Thanks!

---

<div class="post-metadata">

**Author:** ![hassankhan](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.serverless.com/hassankhan/32/473_2.png) [@hassankhan](https://forum.serverless.com/u/hassankhan)\
**Post date:** [July 2, 2017, 3:25pm UTC](https://forum.serverless.com/t/serverless-graphql/2194/2 "2017-07-02T15:25:03Z")

</div>

I’m quite new to GraphQL, I’d never even heard of subscriptions before! 😄

After having now read a little about it, it seems like GraphQL uses a PubSub service to update clients. AWS has SNS for this purpose, so I’d imagine you could use that.

Looking around, seems there’s an older project that might be a good base (although outdated): [https://github.com/jonsharratt/graphql-aws](https://github.com/jonsharratt/graphql-aws).

Please do let us know how it goes 😃

---

<div class="post-metadata">

**Author:** ![Plinpod](https://avatars.discourse-cdn.com/v4/letter/p/e68b1a/32.png) [@Plinpod](https://forum.serverless.com/u/Plinpod)\
**Post date:** [July 2, 2017, 4:33pm UTC](https://forum.serverless.com/t/serverless-graphql/2194/3 "2017-07-02T16:33:42Z")

</div>

Interesting, I haven’t considered using AWS SNS but will look into it. After researching some more, people have been suggesting AWS IoT as well to maintain a websocket connection. If I can find a way to integrate that with GraphQL Subscriptions that may be a good solution as well.
