Silly Fast Fresh Deploys with Rust (Part 2)

Опубликовано: 20 Февраль 2025
на канале: fasterthanlime
8,212
310

This video is sponsored by https://controlplane.com/

Follow me on Mastodon: https://hachyderm.io/@fasterthanlime
Support me on Patreon or GitHub: https://fasterthanli.me/donate

Fresh web framework: https://fresh.deno.dev/

Contents

00:00 - Sponsor disclaimer
00:04 - Recap
00:32 - A synchronous Rust TCP proxy
01:43 - Child process cleanup (PR_SET_PDEATHSIG)
02:03 - Bidirectional TCP copy in sync Rust
02:46 - Making a Docker image for the Rust proxy
05:57 - Deploying the Rust proxy to Control Plane
07:05 - The Fresh app is really small
07:43 - Spinning up a local postgres with devenv
09:41 - Making our Rust code async
12:37 - Exiting on SIGINT
13:19 - Teaser