Working out Backend Knots and Building Routers (Austin Real World Serverless Video Recap)

Andrew Fitch
2 min readintermediate
--
View Original

Overview

The article discusses the Real World Serverless event held in Austin, featuring talks on Serverless technology by Victoria Bernard and Preston Pham from Cloudflare. It highlights the use of Cloudflare Workers for backend improvements and the development of a JavaScript routing library for serverless applications.

What You'll Learn

1

How to use Cloudflare Workers to enhance site performance

2

Why implementing a routing library is essential for serverless applications

3

How to build a simple JavaScript routing library for serverless scripts

Key Questions Answered

What are Cloudflare Workers and how do they improve performance?
Cloudflare Workers are scripts that run between clients' browsers and a site's origin, allowing for request interception. They can significantly enhance site performance by acting as proxy workers, enabling features that would typically require complex backend services.
How can I build a router for serverless applications?
Preston Pham explains how to create a simple JavaScript routing library specifically for serverless Worker scripts. This router can facilitate API gateway functionalities, similar to established frameworks like Flask or Express.js, making serverless computing more effective.

Technologies & Tools

Backend
Cloudflare Workers
Used for serverless development and deployment, enabling request interception and performance enhancements.

Key Actionable Insights

1
Utilize Cloudflare Workers to intercept requests and enhance site functionality.
This approach allows developers to implement performance improvements without altering backend services, making it a valuable strategy for optimizing web applications.
2
Consider building a custom routing library for serverless applications.
Creating a routing library can simplify the development of serverless APIs, providing a structured way to handle requests and responses, similar to traditional web frameworks.

Common Pitfalls

1
Neglecting the importance of routing in serverless applications can lead to inefficient request handling.
Without a proper routing mechanism, serverless applications may struggle with scalability and performance, making it crucial to implement a robust routing solution.

Related Concepts

Serverless Architecture
API Gateways
Javascript Routing Libraries