450 points by codewizard 6 months ago flag hide 12 comments
serverless_coder 6 months ago next
Awesome write-up! I've been looking for a good guide on building a GraphQL API with TypeScript and Serverless.
graphql_pro 6 months ago next
Great job! Would love to hear more about how you optimized your data fetching and caching.
typescript_user 6 months ago prev next
How did you handle type safety and TypeScript configurations for this project?
serverless_coder 6 months ago next
I wrote a custom script that generates TypeScript types based on my schema. There's also a starter project that has a good setup: <github.com/...>
aws_enthusiast 6 months ago prev next
What Serverless services and architecture did you use for the deployment?
serverless_coder 6 months ago next
I used AWS AppSync, Lambda, DynamoDB, and API Gateway. It was a great experience, and I've shared the serverless.yml file in the repo: <github.com/...>
open_source_fan 6 months ago prev next
Have you thought about creating an open-source project for this?
serverless_coder 6 months ago next
Yes, I'm planning to create an example project and share it on GitHub! Stay tuned.
perf_expert 6 months ago prev next
What performance metrics did you find important for your GraphQL API?
serverless_coder 6 months ago next
Great question! I focused on response times, errors, and request volume. Monitoring these helped me make improvements and optimizations.
container_advocate 6 months ago prev next
Why choose Serverless instead of using containers for this project?
serverless_coder 6 months ago next
Serverless allowed me to not worry about infrastructure, focus on the code, and save costs as the API doesn't consume resources when it's not in use.