meta_pixel
Tapesearch Logo
Log in
Syntax - Tasty Web Development Treats

More on Severless - Databases × Files × Secrets × Auth × More!

Syntax - Tasty Web Development Treats

Wes Bos

Js, Technology, Css, Html5, Tech News, Webdevelopment, News, Javascript, Html

4.91.1K Ratings

🗓️ 4 March 2020

⏱️ 61 minutes

🧾️ Download transcript

Summary

In this episode of Syntax, Scott and Wes do a part 2 about Serverless — databases, files, secrets, auth, and more!

Sanity - Sponsor

Sanity.io is a real-time headless CMS with a fully customizable Content Studio built in React. Get a Sanity powered site up and running in minutes at sanity.io/create. Get an awesome supercharged free developer plan on sanity.io/syntax.

Freshbooks - Sponsor

Get a 30 day free trial of Freshbooks at freshbooks.com/syntax and put SYNTAX in the “How did you hear about us?” section.

Show Notes

2:47 - Wes tried Cloudflare Workers

  • Also this is so cool:

Hey Wes, just listened to the latest Syntax episode on the serverless setup. Not sure if it’s an episode idea or not, but if you wanna do a bit of a dive on Cloudflare’s service workers, I’m currently leading an “invisible infrastructure migration” right now from a legacy WordPress setup to a new Storyblok/Netlify setup. We’re using Cloudflare’s service workers to basically “stitch” the headers/menus/footers from the old WordPress site into our new Netlify pages, but serving the page back as if it was part of the normal domain. This means we can migrate from the old to the new slowly without massively disrupting SEO, doing a lengthy/costly rebuild, etc.

  • A word on Digital Ocean
  • Kubernetes + FAAS allows you to scale up/down

13:54 - Secret management

  • Some have a great UI
  • Some have a CLI
  • Some only have production
  • Some have dev/staging/prod

16:24 - Vendor lock-in

  • Two kinds of vendor lock-in
    • Lock into a low-level provider (Like AWS, or MongoDB)
    • Lock into a framework
  • Questions to ask:
    • Can I go, take my app as-is, and host it on another provider?
    • Can I refactor the config and run my code as-is?
    • Do I need to refactor my code for it to run on other platforms?
  • Next.js will only run on Now
  • There is a community package
  • Begin all runs on Arc.codes
  • Firebase is locked in?

25:12 - Sharing dependencies

  • Each function will have its own package.json, which can be a pain
  • Publish utils a private module
  • AWS Layers
  • Import/export
  • Bundle and tree shake

30:26 - Local development

  • Now dev
  • NPX sandbox
  • Wrangler for Cloudflare workers

36:40 - Existing applications

  • Difficult to move with many routes, but easy to move a Graphql API that has one single route
  • Maybe do piece by piece instead of all at once
  • Begin has http express method

45:21 - Data

  • Any DB you want
  • Dynamo DB integrated into many
  • Firebase
  • KV Storage for Cloudflare workers
  • Fauna

48:14 - File storage

  • Generally files go in the associated file place like Amazon S3, Backblaze B2, Cloudinary
  • Many also have this integrated as well

52:18 - Auth

  • Serverless is ephemeral and stateless
  • JWT likely as sessions will work, but doesn’t really make sense

Links

××× SIIIIICK ××× PIIIICKS ×××

Shameless Plugs

Tweet us your tasty treats!

Transcript

Click on a timestamp to play from that location

0:00.0

You're listening to Syntax, the podcast with the tastiest web development treats out there.

0:06.1

Strap yourself in and get ready.

0:08.0

Here is Scott Telinsky and West Boss.

0:10.5

Are you ready for your second course? This is Cidax, the podcast with the tastiest web development treats out there.

0:17.0

Today we've got our sort of second show which is continuing the serverless show that we did.

0:23.8

So two episodes ago or four, if you count the Hacey treats,

0:27.8

we did a intro to what serverless is.

0:30.8

And today we're going to continue on that talk about databases files secrets off and we've also

0:36.8

got a couple little updates since we last aired the last serverless one we've had a lot of

0:41.7

awesome feedback from you guys who listen to it and a couple

0:46.2

things myself we are sponsored by sanity and fresh books sanity is a structured

0:52.1

content CMS and fresh Books is cloud accounting.

0:55.0

We'll talk about them part way through the episode with me today.

0:58.0

Mr. Scott Tolinsky, how you doing today, Scott?

1:01.0

Hey, tired man.

1:03.0

Brooklyn's got that kind of like sickness where she can't breathe and you know when a little baby,

1:08.3

a little baby can't breathe.

1:11.0

They are up all night, very and we got to do that the nose

1:14.4

frita thing. Those frita? Yeah. The nose frita is the most discussing thing in the

1:19.8

world but it's so disgusting. So worth your sleep. I can't do it. I have to be the helper. Like I have to hold hold the baby while

1:26.7

Well, Courtney does the nose free da it grosses me out that much that I can't do it.

1:30.6

We need to explain what the nose freeida is. So the nose frida is like a little tube on this like almost looks like a pen and you put the

...

Please login to see the full transcript.

Disclaimer: The podcast and artwork embedded on this page are from Wes Bos, and are the property of its owner and not affiliated with or endorsed by Tapesearch.

Generated transcripts are the property of Wes Bos and are distributed freely under the Fair Use doctrine. Transcripts generated by Tapesearch are not guaranteed to be accurate.

Copyright © Tapesearch 2025.