GrowGen | 整

21st Week: Cloudflare Workers and GraphQL Yoga

J.Gong

2023-05-29

0.47min

21st Week: Cloudflare Workers and GraphQL Yoga

I’ve been working on adding a backend for qwert-learner.

To keep this App a static site, I decided to ditch the Restful API and use GraphQL instead. Since it only requires one endpoint. A lot schemes can found like Azure functions, AWS Lambda, Google Cloud Functions, DigitalOcean Functions and Cloudflare Workers. MongoDB Atlas is a cheap choice for database. But Cloudflare workers can use KV to store data, which is a better choice for me.

Campared with Apollo Server, GraphQL Yoga is a lightweight one. Can be simply integrated with a lot providers like cloudflare. Here is the document.

Developing cloudfalre workers is much easier with wrangler. Can use miniflare to do unit testing.

J.Gong

相关文章

Tags

plan

© 2025 我的技术博客. 保留所有权利.

使用 Astro.build + Mantine 构建 | 部署在 Vercel