Skip to main content

Command Palette

Search for a command to run...

Week-11 @ 100xdevs cohort : Server and serverless deployment on AWS EC2 and Cloudflare Workers

Updated
1 min read
Week-11 @ 100xdevs cohort : Server and serverless deployment on AWS EC2 and Cloudflare Workers

This week delved into serverless and remote virtual server deployments. We learnt how serverless setups offer rapid bootstrapping, auto-scaling for uncertain user numbers, and cost-effectiveness for low-traffic deployments. Yet, they face challenges like high costs at scale and cold start issues. In contrast, remote virtual servers provide full infrastructure control, predictable performance, and customization options. However, they may encounter scalability hurdles, higher initial costs, and require self-security management.

In our serverless deployment journey, we utilized Cloudflare Workers for backend execution and leveraged the Hono library for building HTTP servers. We explored the intricacies of crafting HTTP servers for edge functions like Cloudflare Workers and implemented database connection pooling with Prisma accelerate, enabling CRUD operations seamlessly.

For remote virtual server deployment, AWS EC2 instances were our tool of choice. We mastered SSH access, code deployment, and network security configurations. Furthermore, we utilized NGINX for reverse proxy, enabling efficient management of multiple apps on a single server.

More from this blog

Aviral's Tech Blog

20 posts

Self-taught full-stack web developer by passion, a mechanical engineer by qualification and an avocational musician.