Serverless GraphQL API

Serverless GraphQL API

Updated:

08/11/2024

Released:

08/11/2024

This API was initally built to supply the project and tag information found on aaronjayoliver.com. It is now a tech demo for a serverless graphql api, integrated with a AWS Aurora Serverless V2 PostgreSQL DB.

One of the major drawbacks of serverless architecture is that your infrastructure can be 'cold', which means it needs to be initialised before it can respond to any requests. This is the cold start time, and it is exacerbated by the size of the package being intialised. GraphQL servers often contain middleware that bloats the package size, so choosing a lightweight one like GraphQL Yoga is vital for performance.

Tech Stack

  • AWS
  • NodeJS
  • TypeScript
  • JavaScript
  • Terraform
  • Lambda
  • PostgreSQL
  • Vitest