# Appsync or Apollo for GraphQL based real time chat app

**URL:** <https://forum.serverless.com/t/appsync-or-apollo-for-graphql-based-real-time-chat-app/8511>\
**Category:** Serverless Framework\
**Tags:** aws, lambda, security\
**Created:** [June 9, 2019, 9:50am UTC](https://forum.serverless.com/t/appsync-or-apollo-for-graphql-based-real-time-chat-app/8511 "2019-06-09T09:50:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mdesilva](https://avatars.discourse-cdn.com/v4/letter/m/e99b99/32.png) [@mdesilva](https://forum.serverless.com/u/mdesilva)\
**Post date:** [June 9, 2019, 9:50am UTC](https://forum.serverless.com/t/appsync-or-apollo-for-graphql-based-real-time-chat-app/8511/1 "2019-06-09T09:50:24Z")

</div>

I am evaluating best option to develop a real-time chat application back-end using Serverles framework with GraphQL and my front-end is Angular. My doubt is if I should use Appsynce or Apollo. My concerns are with Appsync is how to handle the security through Serverless application. I know that Appsynce security can be handled through Cognito. In fact, I am planing to develop a Cognito based Auth service in order to authorise API end-point using Lambda authoriser. How do I use my Auth service to authorise Chat application endpoints through Serverless framework if I use Appsynce ? What are the other limitations with Appsync compared to Apollo?

If I use Apollo to develop chat application end-points, will that be easier than Appsync and do I have more controls over my end-points? How to handle GraphQL endpoint security through my Cognito based Auth service with Serverless framework if I use Apollo?

What should I consider from front-end perspectives in order to chose Appsync or Apollo?
