0PricingLogin
Edge Computing with Cloudflare Workers & Deno · Lesson

Database Proxies with Deno

Create efficient database proxies using Deno and Workers to connect to traditional or serverless databases.

What are Database Proxies?

Welcome to our lesson on Deno database proxies! An edge database proxy acts as an intermediary layer between your application (like a Cloudflare Worker) and your database.

Instead of your edge function connecting directly to the database, it talks to the proxy. The proxy then handles the actual database connection.

  • Why use them? They centralize connection management, enhance security, and enable data transformation before reaching your database.

Why Deno for Proxies?

Deno is an excellent choice for building these database proxies at the edge. Here's why:

  • Native HTTP Server: Deno has a powerful, built-in web server, perfect for handling proxy requests.
  • Security Model: Its granular permission system means you explicitly grant network or file access, enhancing security.
  • Performance: Deno's fast startup times and efficient runtime make it suitable for responsive proxy services.
  • TypeScript First: Built-in TypeScript support helps you write more robust and maintainable code for your proxy logic.

All lessons in this course

  1. Workers Sites & Pages
  2. Frontend Framework Integration
  3. Database Proxies with Deno
  4. Server-Side Rendering at the Edge
← Back to Edge Computing with Cloudflare Workers & Deno