Latest / Talk Python To Me / #496: Scaf: Complete blueprint for new Python Kubernetes projects
Transcript
- 0:00Today we explore the wild world of Python deployment with my friend Calvin Hendryx-Parker from 6 Feet Up.
- 0:05We'll tackle some of the biggest challenges in taking a Python app from "it works on my machine" to production, covering inconsistent environments, conflicting dependencies, and sneaky security pitfalls.
- 0:17Along the way, Calvin shares how containerization with Docker and Kubernetes can both simplify and complicate deployments, especially for smaller teams.
- 0:26Finally, we'll introduce Scaf, a powerful project blueprint designed to give developers a rock-solid start on Python web projects of all sizes.
- 0:35This is Talk Python To Me, episode 496, recorded Tuesday, January 21st, 2025.
- 0:43Are you ready for your host, please?
- 0:45You're listening to Michael Kennedy on Talk Python To Me.
- 0:49Live from Portland, Oregon, and this segment was made with Python.
- 0:55Welcome to Talk Python To Me, a weekly podcast on Python.
- 0:58This is your host, Michael Kennedy.
- 1:01Follow me on Mastodon, where I'm @mkennedy, and follow the podcast using @talkpython, both accounts over at fosstodon.org, and keep up with the show and listen to over nine years of episodes at talkpython.fm.
- 1:14If you wanna be part of our live episodes, you can find the live streams over on YouTube.
- 1:18Subscribe to our YouTube channel over at talkpython.fm/youtube and get notified about upcoming shows.
- 1:25This episode is sponsored by Posit Connect from the makers of Shiny.
- 1:29Publish, share, and deploy all of your data projects that you're creating using Python.
- 1:34Streamlit, Dash, Shiny, Bokeh, FastAPI, Flask, Quarto, Reports, Dashboards, and APIs.
- 1:41Posit Connect supports all of them.
- 1:43Try Posit Connect for free by going to talkpython.fm/posit, P-O-S-I-T.
- 1:49And it's brought to you by my new book, Talk Python in Production.
- 1:53I've long felt that most guidance and marketing about how we need to run Python apps in production has been overly complex and expensive.
- 2:01This book is both a look at the history of Talk Python To Me and an antidote to this overly complex cloud world.
- 2:07Read it online and get the full book at talkpython.fm/devopsbook.
- 2:14This episode has something unique and special.
- 2:17I thought it'd be fun if I could come up with a song that was about deploying code, about Kubernetes, about the cloud, all the different things that Calvin's gonna come on and tell us all about.
- 2:30I turned that into a song and I stuck it at the end of the show.
- 2:33I wanted to put it at the beginning, but it's three minutes or so long and I think it might take away from getting right into the episode.
- 2:40So if you're interested in that, you can check out the song, it's called "Deploy the Dream".
- 2:45It's at the very end, almost the end, that lasts maybe another 45 seconds after that.
- 2:51And you'll find the link to the standalone song and MP3 file right on the episode page in the link section or in your podcast player show notes.
- 2:58I hope you love it.
- 2:59It was a lot of fun to create and I think it'll make a lot of you smile out there.
- 3:03Quick announcement before we jump into the show.
- 3:05I recently completely re-imagined and rewrote the effective PyCharm course.
- 3:13So if you wanna be effective with an IDE and use professional tools to build your Python applications, you should give my new and updated course, Effective PyCharm, a look.
- 3:27You'll find it at talkpython.fm.
- 3:28Just click on courses in the menu at the top.
- 3:31And if you were already in the prior version of the course, it's been automatically updated for you.
- 3:36So you'll have access to the new course right away.
- 3:39Head on over and check it out.
- 3:41And if you have one of our everything bundles that gives you access to all of our courses in the library.
- 3:47Well, you also have access to this course, assuming the original was in your bundle.
- 3:52Thanks to everyone who's taking courses over there and checking it out.
- 3:54This is a really fun course.
- 3:56I think you'll get a ton out of it if you haven't taken it yet.
- 3:58And with that, let's jump into the show.
- 4:01Alvin, welcome to Talk Python To Me.
- 4:03Great to finally have you on the show.
- 4:05What have you been doing all this time?
- 4:07- I don't know, not being on your show, I guess.
- 4:09I actually was super excited when you asked that I could be on here, This has been like a life goal, at least a goal since Talk Python To Me has ever existed.
- 4:17>> I really appreciate that. That's very kind.
- 4:19Well, it's great to have you on here and I am all about DevOps and deployment these days.
- 4:23I think it's another superpower that I think people can really have.
- 4:28You've got an idea, you want to deploy the dream as the song that we'll play later, we'll say.
- 4:34If you're not familiar with this stuff, it's a huge roadblock.
- 4:37I built this thing, but how do I get it up there and how can I keep it running?
- 4:41- Yeah.
- 4:42- And so what we're gonna talk about is a framework you all have created to make this much more automated and easy and packaged up, if you will.
- 4:49- Yeah, I agree.
- 4:49I mean, part of the developer experience, not just the deployment story, but how do I make a developer be productive from day one?
- 4:58Like I get super obsessed about the experience.
- 5:01Like, is it smooth?
- 5:02Is it easy?
- 5:03Can developers like join your organization and be productive right away?
- 5:07Like that's important to me as a owner of a business who produces software.
- 5:11We'll start there.
- 5:13Who are you?
- 5:13What is your business?
- 5:14What do you do?
- 5:15Set the stage for everyone.
- 5:16- All right.
- 5:17So my name's Calvin Hendryx-Parker.
- 5:18I am CTO and co-founder of Six Feet Up.
- 5:21We are a Python and AI for good software agency based out of the Midwest here in Indiana, but we have folks all across the country and a few folks across the globe.
- 5:30We help impactful tech leaders level up their game.
- 5:34Like if you've got an idea and you can see the future, our part of our goal is to make that happen.
- 5:39Like we love tackling the super hard software problems.
- 5:44The harder the better and the more unique and the more impactful the better.
- 5:48Part of our goal has been to do 100 impactful projects by 2033 and those impactful projects are things that are making the world a better place.
- 5:55So some of our projects do actually impact climate or energy, done some stuff with NASA on space travel.
- 6:04So it's cool stuff like that that the people who work at Six Feet Up get super excited about.
- 6:09And like part of what drives me to do what we do every day for sure.
- 6:12Yeah.
- 6:13And to get to work on space travels.
- 6:14Oh man.
- 6:16It's like, I'm getting up early today.
- 6:17I'm going to work on space travels.
- 6:18It's literally rocket science.
- 6:19Literally rocket science.
- 6:20Yeah.
- 6:21How amazing.
- 6:21And you've been doing Python for a long time.
- 6:23You've been involved since the early days, right?
- 6:26Yeah.
- 6:26I first adopted or touched Python in literally the year 2000.
- 6:30I started working on it.
- 6:31I was in a startup in the Bay Area and the guy sitting next to me was like, check out this Python based application server called Zope.
- 6:39And at that point in time in my life, I had just graduated college.
- 6:42I think I understood the three words in between all the other words that he just said.
- 6:46And so that was a whole new world that got opened up to me.
- 6:49And so I started out my journey in Python really with Zope as the kind of the first thing that got me in.
- 6:55But back in that day, like Zope and BitTorrent were kind of the killer apps for Python.
- 7:01Folks remember there were like Zope tracks at PyCon And my keynotes were like around Zope.
- 7:06It was the thing.
- 7:07And I still attribute that community to really bringing me into Python and getting me engaged.
- 7:13It's some of the smartest people I've ever worked with who are part of that open source community who made that a thing.
- 7:19And I'm still friends with those people today.
- 7:20You know, people like Paul Everitt and Trey Seaver.
- 7:22And those folks were really part of my upbringing into the Python community.
- 7:26And I can't thank them enough.
- 7:28That's awesome.
- 7:29You
- 7:29know, there's a really interesting fact that was shown at least amongst survey respondents in the PSF JetBrains survey, I can't pull out of it, that, that I would say 40% of the people who are doing Python these days are two years or less into it, which is an incredible statistic.
- 7:48I think 30%, 30% or so is this is their first year.
- 7:51And then, you know, the rest of the second year.
- 7:54So we're amongst the rare birds, but the reason I bring that up 25
- 7:57years later, we're still here doing it.
- 7:59Exactly.
- 8:00the reason I bring that up is, you know, I suspect people who've been at this for three or four years, maybe don't know what ZOPE is.
- 8:05They probably heard the word, but they're like, yeah, is that, is that like a thing that Django does?
- 8:11Tell people what ZOPE is like.
- 8:13I mean, the application framework space back in the, in the 2000s was not a crowded space.
- 8:19There weren't many options.
- 8:20And I think the beauty of what the app, the ZOPE was an application framework.
- 8:24It had some interesting opinions.
- 8:26One of them being the ZODB, which I still do love to this day, which is an object graph database that enabled you to build applications quickly.
- 8:36And I think initially one of their goals was through the web even.
- 8:40Like if you remember Z-classes, you could build and rapid prototype through the web in your browser.
- 8:47I mean, this is the year 2000.
- 8:48This is not last year where people were like, "Wow, cool.
- 8:51This is a low-code thing." This was that 25 years ago.
- 8:54>> This was ahead of its time.
- 8:55- He's way ahead of his time.
- 8:57Now, granted, I don't think that was not the future.
- 8:59That shouldn't be the future.
- 9:01I'm actually hoping to give some conference talks this year about low code, no code, in my opinions on that.
- 9:06Especially, I should frame it in my context of Zope and Z-Classes.
- 9:10But maybe that's too much of an inside joke.
- 9:12I don't know if enough people would even understand what I'm talking about there.
- 9:16Because like you said, so many people are new to the community, which I think is awesome.
- 9:20I think that shows it's a vibrant, growing community.
- 9:23If you're in a community and you're wondering where the new next generation is gonna come from, there's a problem.
- 9:29And I don't think Python has that problem.
- 9:31Python has an incredible traction with new people.
- 9:34And I've always loved it because of the simplicity.
- 9:37I love it because the language is predictable in its patterns.
- 9:41It's not a cognitive overhead to remember all the various ways to call things in Python 'cause typically they're pretty consistent.
- 9:48- Yeah,
- 9:49but Python's slow, we can't use it for stuff.
- 9:51(laughing)
- 9:52I do not believe that for a second.
- 9:54- No.
- 9:54If you're doing maybe mathematical simulations or certain types of really, really intense low level things maybe, but as a general application framework, it applies, it's fine.
- 10:04Yeah.
- 10:04And that's the problem too is that if you go off right now and you ask your ChatGPT or your cloud about like, you know, maybe what are some disadvantages of Python, it's going to mention these kind of broad old opinions about it because it only knows the average of all the knowledge has ever been on the internet.
- 10:19And it's learned
- 10:20a bunch of like trash talk as well.
- 10:23and which is mostly inaccurate.
- 10:25But if you ask it to dig deeper, and
- 10:27someday
- 10:28we'll be able to ask it I think a little more critically, you'll probably dig in and get the truth.
- 10:31- Yeah, a bit of a side note.
- 10:32I recently, for a couple things I needed, got the Chat GPT Pro.
- 10:37Not the paid version, but the insane pro version.
- 10:39- Oh, the $200?
- 10:41- Yeah, $200 a month, and I laughed at myself.
- 10:43Like, this is the stupidest thing I've ever done, but I need it, so I'm gonna do it for a little few days, turn it off.
- 10:47It's incredible, I'm not turning it off.
- 10:49It's like my side buddy, I can ask anything.
- 10:53And it's so good.
- 10:56The future is here, it's just not evenly distributed.
- 10:59- It's not evenly distributed because it's hard for most folks to have the right mindset, I think, to approach to get that level of value out of it.
- 11:08I think you have to know how to talk to it.
- 11:10And I've said this before, it's the same problem with people who aren't good at using Google, just plain old search.
- 11:17Like, you know, the people who have to say, let me Google that for you, are the ones who understand how to like, use the search engine, you know, well.
- 11:24Some people-- - You know,
- 11:25that can be answered in an exact phrase if you
- 11:27just say the phrase, just say the
- 11:29phrase, you know what I mean, you know?
- 11:31And it's also a mindset, right?
- 11:32Like, I started thinking like, instead of this is a cost or something, like, this is like another employee that I can just give jobs and five minutes later, I'll come back and it's done pretty thorough research.
- 11:43You know, it's--
- 11:44- Yeah, especially with the new scheduling feature, where you can actually schedule tasks to happen.
- 11:48I'm getting kind of excited about, everyone's talking about agents, and I know this isn't the AI show we're here to talk about, but I think agents are interesting, but we're not there yet.
- 11:57They're about the level of maybe interns and what you would trust them to do for you.
- 12:01- Yeah, I totally agree.
- 12:02I'm a little worried about what all this stuff is gonna do to the industry
- 12:06in
- 12:06a broad sense.
- 12:07My main concern is
- 12:08I
- 12:08think it'll sort of carve out that gap between early dev and senior dev, and it's gonna be harder for folks to cross that.
- 12:15but
- 12:15it's also an incredible technology and I think it's also silly to pretend it doesn't exist.
- 12:20So anyway, you're right, it's not the AI show, but boy is it, is it top of mind for a lot of us, right?
- 12:25- Yeah, for sure.
- 12:26- Yeah, okay, so let's talk Python deployment.
- 12:30Talk some pitfalls, maybe a little bit of Docker.
- 12:33How's this?
- 12:34- It's a shame.
- 12:35- Why did you all attack this problem?
- 12:37And I guess setting the stages, where does this fit in your consulting story, right?
- 12:41You must need to deliver these applications often in a way that people can continue to let keep them going on their own without you constantly going back. Yeah, there's a there's some pip updates. So we'll take care of that for you.
- 12:51Well, and that definitely reaches into the longer tale of the whole story. I think if you go back to the beginning of the story of deployment, a lot of us started out or a lot of us older ones, more seasoned veteran developer folks in a world where if you wanted to deploy your web application, you threw some PHP into a web root. And as long as you had modphp installed, the stuff ran.
- 13:13Like you didn't have to think about configuring ingress and egress routes.
- 13:17And it was, you know, databases just ran on the same server you were on.
- 13:21So you just ran it on local host.
- 13:22Like it's the world has changed when it comes to the deployment story.
- 13:26But it's because things have gotten more complex and sophisticated because they had to.
- 13:31Like we had needs for more sophisticated authentication mechanism.
- 13:35We have needs for caching and delivery.
- 13:37We have needs for time series data.
- 13:39Like, because those opportunities opened up, more sophisticated software gets built, which means it's a little trickier to deploy.
- 13:47- Well, looking back, and with your perspective of all this experience as well, and it's something I've seen, every time the technology gets easier to work with, you know, like that used to be 100 lines of code, now it's three.
- 13:58You know, we're gonna be out of jobs soon, a lot of people would say, it's like, no, we're just gonna solve bigger, more ambitious problems.
- 14:04And that's been the case for so long, and it's not that, well, things got easier, so we're not gonna do it.
- 14:09No, every time it got easier, we were able to just think of bigger, more, instead of, we don't need a team, one person can solve this amazing problem.
- 14:17But that means, underneath that, there's this mountain, this iceberg of stuff going on, right?
- 14:22- Well, and that's where deployment has gotten, I think, hard in a lot of people's minds, is because there is a mountain of knowledge, like there's a giant shoulders that you're standing on that makes that happen.
- 14:35And my VP of engineering was complaining to me yesterday, Like, why can't we just, how can we not easily put websites on the internet anymore?
- 14:42And it's not that we can't put websites on the internet anymore.
- 14:45They just do so much for us.
- 14:47Like the complexity and the sophistication and the covers is what's causing a lot of this issue.
- 14:52And the person who wrote software is not always the person who deploys software because I think they've just got kind of different mindsets or different ways of thinking about the problems.
- 15:01And it's rare you find people who are truly a full stack and do front end to the back into the database, the network, all the layers that are in between.
- 15:09And it's nice that services like, you know, the cloud have come about where it greatly simplifies that deployment.
- 15:16And that was part of our journey into containers.
- 15:18I was resistant to containers probably until 2020 when we did, in 2020 there was a change, obviously, some things happened in the world, but we also
- 15:30built...
- 15:30- You had more time to be at home and figure out stuff.
- 15:32- Right.
- 15:33But we also had time to build some software to help us in our little conference we were doing. We put on the Python web conference during the pandemic.
- 15:40We actually started the pre-pandemic, but during the pandemic, we took time to write some software to deploy a virtual event platform. And I think containers, at that point in time, I adopted containers and container orchestration because it allowed the developers to think more about developing and less about the deploying part of a sophisticated application like streaming web video, audio mixing, switching, live chats and web sockets. I mean, there's a whole lot of moving parts in something when you're delivering a live video conference experience. And the containers were a nice, like, equalizing layer to allow us to say, I don't care where it goes to, whether it's in Docker Compose or Kubernetes or Docker Swarm, or in our case, we used Amazon's Fargate, because I just didn't want to deal with infrastructure. I just told Fargate, I got some tasks here, some containers, make
- 16:31them live, like turn them on.
- 16:34Yeah.
- 16:34And it sounds like that's for devs as well.
- 16:37Yeah.
- 16:37And we do-- Not just the infrastructure you're pointing to, but this is, it sounds like you're smoothing the path for the whole team, right?
- 16:44Correct.
- 16:44That's an opinion I hold that containers are for development as well.
- 16:48Like that developer experience, some organizations I've seen, they may be deploying on the Kubernetes because there were operational opinions about deploying into containers, but the developers themselves haven't adopted that fully on their local workstation because it may feel hard until you've got that muscle built up for doing that level of development. That's originally, that's why Scaf came about, to make that development experience just a breeze.
- 17:14We focused on how quickly can a developer be productive locally using containers and still have all your tools. It shouldn't feel different than if you were developing with your local Django files on your local file system and you were just running a Postgres instance, you know, out of homebrew, except it's better because now the versions will match what's running in production and you can have five different projects running with five different versions of things because you want to make sure they match your expectations when they go to launch and not be surprised when, you know, the version of Redis doesn't support some new operator because you were one minor version off in your local machine compared to the sandbox and production machines.
- 17:54>>
- 17:54Yeah.
- 17:54I was not against containers, but I was resistant to use them myself because I felt
- 18:00like, well, here's another thing to understand, another thing that's a layer between me and my code, and it could go wrong and I don't need it.
- 18:09You know what? I'm a believer.
- 18:11It is so nice to be able to just say, here's three commands you can run.
- 18:15>> Exactly.
- 18:16>> Always going to be exactly.
- 18:17Another thing that I've done is on my new Macs and stuff, my dev machines, I don't put databases on there.
- 18:24Nope.
- 18:24Caching.
- 18:25I don't even necessarily install Python directly on, you know, as in go to python.org or homebrew or something like that.
- 18:32It's, if I want a tool and you know, instead of installing say MongoDB, I can just have a Docker command that runs MongoDB.
- 18:39That listens on the same port.
- 18:40Yep.
- 18:40And it's, it's always up to date.
- 18:42And if I don't like it, I get rid of it.
- 18:43If I want to change the version of it, I just change the flag somewhere in a file.
- 18:47And it's, it's incredible.
- 18:49That and uv.
- 18:50Yeah.
- 18:50Think back to the old, old days.
- 18:52and the old days for us, but probably the current state for a lot of people in certain organizations, is you had a large getting started document that you would have to follow top to bottom.
- 19:01You know, make sure you get this version of that, make sure you get that version of this, make sure you put these files there, make sure your database is running with these couple extra options because we've enabled some, and maybe we've enabled GIS or some extension to the database.
- 19:13If you didn't get all those magic incantations just right and follow the document to the letter, you were having, you know, a long time to get started.
- 19:21like it was a struggle.
- 19:22Whereas you just tell someone Git pull and then we'll tilt up, in our case for Scaf, we've adopted the tilt management tool, they're running and they can start making, contributing code within an hour.
- 19:35That's my goal.
- 19:35My goal has always been fresh laptop out of the box, on my desk and be able to contribute like a pull request in an hour.
- 19:43- This portion of Talk Python To Me is brought to you by the folks at Posit.
- 19:46Posit has made a huge investment in the Python community lately.
- 19:49Known originally for RStudio, they've been building out a suite of tools and services for Team Python.
- 19:55Over the past few years, we've all learned some pretty scary terms, hyper-squatting, supply chain attack, obfuscated code, and more.
- 20:04These all orbit around the idea that when you install Python packages, you're effectively running arbitrary code off the internet on your dev machine, and usually even on your servers.
- 20:15The thought alone makes me shudder, and this doesn't even touch the reproducibility issues surrounding external packages.
- 20:21But there are tools to help.
- 20:23Posit Package Manager can solve both problems for you.
- 20:27Think of Posit Package Manager as your personal package concierge.
- 20:30Use it to build your own package repositories within your firewall that keep your project safe.
- 20:35You can upload your own internal packages to share or import packages directly from PyPI.
- 20:40Your team members can install from these repos in normal ways using tools like pip, poetry, and ub.
- 20:47Posit Package Manager can help you manage updates ensuring you're using the latest, most secure versions of your packages.
- 20:54But it also takes point-in-time snapshots of your repos, which you can use to rerun your code reproducibly in the future.
- 21:01Posit Package Manager reports on packages with known CVEs and other vulnerabilities so you can keep ahead of threats.
- 21:08And if you need the highest level of security, you can even run Posit Package Manager in air-gapped environments.
- 21:14If you work on our data science team where security matters, you owe it to you and your to check out Posit Package Manager.
- 21:21Visit talkpython.fm/ppm today and get a three month free trial to see if it's a good fit.
- 21:27That's talkpython.fm/ppm.
- 21:29The link is in your podcast player show notes.
- 21:32Thank you to Posit for supporting the show.
- 21:34Do
- 21:35you, when you guys are doing development, do you actually do development in containers or do you just use them to support all of your stuff?
- 21:42- No, everything's in containers.
- 21:44That was, Scaf primarily, And some people will see Scaf as a deployment tool.
- 21:49I see Scaf as a developer experience tool and a deployment tool.
- 21:52I covered both ends of that spectrum because everything starts obviously with the developer and an idea and some building some software.
- 21:59Well, if they can't build the software easily or they can't collaborate with another contributor on that software, it slows things down.
- 22:06So part of what we, you know, that Scaf tool is, it's gonna be able to give you the scaffolding to build out of an initial project.
- 22:13Like starting from scratch, you have nothing on the file system, Scaf will build out those initial tools, but then Scaf is a set of opinions, more importantly, because lots of scaffolding tools exist out there.
- 22:22I mean, current Scaf is built on Cookie Cutter, but we can move that, we can move those opinions as we change our opinions about the development world.
- 22:31So as we build a new project and let that get started, we now can develop locally on containers.
- 22:39Like we use Kind for our Kubernetes cluster locally, which is nice.
- 22:44and you'd think running Kubernetes might be overkill for a local development environment.
- 22:48But the nice part about that is, is like now the Kubernetes manifests, you know, layer nicely.
- 22:54You've got a local base layer, a local instance, you've got a sandbox instance or a development instance you may launch into the cloud someplace, or you've got your production layers all right in there using customized, for example.
- 23:07- Nice.
- 23:07- Yeah, nice part about that is, if my machine doesn't have enough horsepower or memory or disk space to run a specific project that where I need to jump in and help, I can just run that in the cloud.
- 23:18I don't, there's nothing saying I have to be running that locally on my own machine.
- 23:22All the tooling, all the file synchronization will work just as well if it's running in a sidecar.
- 23:28Like if I had a big white box, Intel machine or machine sitting in my, under my desk, I can run that or I can just launch it into a digital ocean or an AWS cloud, doesn't matter.
- 23:39- Yeah, absolutely.
- 23:40So let's dive in, let's dive into Scaf.
- 23:43But before we do, have you seen, I think it was in the last episode, this new AI computer thing that NVIDIA announced?
- 23:50- I'm pretty excited about that actually.
- 23:51- I'm super excited.
- 23:52NVIDIA unveils a $3,000 desktop AI computer.
- 23:56And I think it's just, you kind of remote in and run containers on it as well, I'm pretty sure.
- 24:00- Yeah, I was excited 'cause I felt like CES, this is obviously launched at CES by NVIDIA on stage.
- 24:06And I was excited to see CES have something It was interesting for developers again.
- 24:11I feel like CES had kind of gotten boring maybe over the last decade.
- 24:15And this was exciting.
- 24:17I think
- 24:17that...
- 24:17It's got to be all doorbells and TVs.
- 24:19Yeah,
- 24:19right.
- 24:20Exactly.
- 24:21I love home automation.
- 24:23Don't get me wrong.
- 24:24But there's only so much of that junk I could possibly be interested in.
- 24:27This is something I'm very interested in.
- 24:28Exactly.
- 24:29Well, Jamie out in the audience says, "Totally all in on developing with Guinness.
- 24:33Very few tools installed on my Mac, but we're here with you."
- 24:36Awesome.
- 24:37Yeah, the important tools.
- 24:38Like you've got your IDE, your VS Code, you've got your, you know, you've got your favorite Git visualization tool.
- 24:43Like, I mean, those, those are critical to your, your tool chain, your workflow and they should work everywhere.
- 24:48They should work just as work alike on every project you're on.
- 24:50Yeah, I agree.
- 24:52I don't develop containers, but I work with local virtual environments and then like basically try to replicate exactly the same, but all the surrounding stuff, all the daemons and the servers and all that.
- 25:02It's all like, so we're at a slightly different stage of our container journey, I believe, We're both far down the path, I think.
- 25:07>>
- 25:08Much further than we used to be.
- 25:09>> Certainly.
- 25:11[LAUGHTER]
- 25:12>>
- 25:12All
- 25:13right. Here we are, six feet up slash Scaf on GitHub.
- 25:15>> Yep.
- 25:16>> Scaf provides developers and DevOps engineers with a complete blueprint for a new project using Kubernetes.
- 25:22We talked a lot about the motivation and so on, but let's start with the beginning.
- 25:26You said I have an idea for a project that wasn't well-structured.
- 25:29This is a little cookie cutter-ish in a sense, but what it makes is more than just a Python project, right?
- 25:36Tell us what we got here.
- 25:38- So this started out, if you've ever followed the Cookie Cutter project, there was a Cookie Cutter Django template out there made by Pi Danning.
- 25:48It kind of kicked that off and started it.
- 25:50I liked a lot of his opinions, but I wanted more to it, or I wanted to change some of them.
- 25:55So that was the original, like, kind of kernel of where this started.
- 25:59And then we grew a lot more around the deployment story and some of the developer tools so that we could be on Kubernetes.
- 26:06We could standardize on Kubernetes as a container platform, so we could launch into any cloud, whether it's a managed Kubernetes or whether you're bare metal and are running like VMs and EC2, or it doesn't matter.
- 26:17Because the nice part about Kubernetes is it gives you that agnostic interface to launch new containers.
- 26:25I think a lot of people see Kubernetes as complex and used for like container orchestration and scaling.
- 26:31But I see Kubernetes as a way, it's an interface, it's an API to allow us to deploy easily.
- 26:38So we wanted to focus on things like CI/CD, and could you make that simple?
- 26:41So SCAF includes opinions around Argo CD, for example.
- 26:46So when you deploy into Sandbox, it deploys the Argo CD operator, and then it sits and watches your repository for changes.
- 26:53So anytime you merge to Dev branch, for example, it will release to Sandbox, and then the QA team can go test.
- 26:59You don't have to think about it.
- 27:00Like you just make a PR, if it gets reviewed and accepted and merged, the release happens.
- 27:05Like no one forgets to do the release.
- 27:07No one has to do manual steps to do the release.
- 27:09Long gone are the days of shelling into a box and doing a Git pull or SPN up in a directory and forgetting to restart some service to pick up those changes.
- 27:20Because humans, we're humans.
- 27:22We're terrible about repeatability and maintaining and being able to do maintenance type tasks like that.
- 27:28We're just not built for it.
- 27:29We're built for creative type thinking.
- 27:31We should let the computers do the bits are good at, which I feel like that's what some of these opinions are based around is can we automate those pieces away?
- 27:37Right.
- 27:37It's like a deployment checkbox.
- 27:39Oh yeah.
- 27:40Checklist
- 27:40and like tech, tech, tech.
- 27:41Have we installed this?
- 27:42Do you set this version exactly?
- 27:43Yeah.
- 27:44Yeah.
- 27:45Yeah.
- 27:45And some, some humans are good at checklists.
- 27:47Like there's people who are, that is their thing.
- 27:49Like, you know, doctors and surgery.
- 27:50Don't take their checks from them.
- 27:51Right.
- 27:52Like they love their checklists and glad they've got them.
- 27:55I feel like people who have gravitated towards software development are craftsmen, kind of artisans around a craft.
- 28:02And it's not so much about checking check boxes as it is how do they creatively solve a problem because a lot of the problems they're solving haven't existed.
- 28:09If they existed already, they would be solved.
- 28:11And what would be the point of us writing any software?
- 28:13Yeah.
- 28:13And that's why we have that.
- 28:14It works on my machine.
- 28:15Yeah, totally.
- 28:16Program because
- 28:16we
- 28:18don't check the boxes and we're not amazing at making everything work the same, but yeah.
- 28:24And
- 28:24this is my goal is the getting rid of the works on my machine.
- 28:29Like it should work everywhere the same, exactly the same.
- 28:32And you should be able to use your own machine for development.
- 28:34Like a lot of I've seen a lot of teams where they have this big central server that's called dev and that's where they all shell into and work simultaneously on a single spot.
- 28:44And that just feels fraught with errors and terror to me.
- 28:49Yeah.
- 28:50You know what it feels like it screams to me is you might end up It doesn't work on my machine.
- 28:53It only works on that machine.
- 28:55Exactly.
- 28:56Even worse.
- 28:56It only works.
- 28:57I once worked on a research project with a pretty big funding organization and there was a bunch of different contractors, one of them out of Seattle, and we all had to build some pretty complex software team.
- 29:09I was on, we built something that kind of coordinated all of them and it was fine.
- 29:12Worked great.
- 29:13We were all happy.
- 29:14The other people will deliver, but there was this one team that had built something on a big, big Linux server and big fat desktop thing.
- 29:22Why do I know the size of it?
- 29:24Because they had worked on it for nine months and then they tried to get it to run on another, they literally could not get it to run on any other computer.
- 29:32And so they put it into the most fragile, or most careful shipping container they could and they drove it from Seattle to San Diego and they set it up in the corner 'cause they literally couldn't get the software they wrote to run on any other system.
- 29:45Could you imagine?
- 29:46Like, what are you going to do in the next time around?
- 29:48What if it breaks?
- 29:49- Right.
- 29:50- Yeah, that, that, I'm working on a big central server.
- 29:52Maybe there's a way to like restore it and stuff, but you could, you could craft your software into a corner on that big server where it's like, well, we're going to move to the cloud.
- 30:01Like, no, we're going to keep it on that thing and it better just be enough, you know?
- 30:04- Right.
- 30:05And how do you onboard someone new to help you?
- 30:07Like, you gotta be like, well, be very, very careful.
- 30:09There's this one, only one server where it only runs.
- 30:11- Oh my goodness.
- 30:12Could you, could you not?
- 30:13- Onboarding is such a challenge there.
- 30:15- Yeah.
- 30:16You want to be able to onboard developers like with confidence and they can have the confidence to know that they can make mistakes and they can burn things to the ground and they can try stuff knowing that it's not going to affect like the production machine or even the sandbox machine.
- 30:29Like they can experiment with a little bit of reckless abandon because that's how you learn.
- 30:34Like you break things.
- 30:35In my mind, you break things to learn.
- 30:37There's a lot of learning that happens when you get to break things.
- 30:39And if you can break things confidently knowing that no big deal, I can just get full or put a branch and delete that branch and start over.
- 30:46>> 100 percent. And there's different, there's different layers at which people should embrace that to the maximum.
- 30:51They should embrace that in refactoring, reorganizing, right?
- 30:55So if I have, if I have Git and I have frequent check-ins, I should be able to go crazy.
- 31:00You shouldn't be like, "Oh, don't mess with that." You should be able to go crazy on your code and go, "Oh my gosh, it's better." Or, "That was a horrible idea." Revert.
- 31:08>> Get rid of that.
- 31:10>>
- 31:10And it should not, it should not be terror.
- 31:12It should be like, "Oh, let's give that a try.
- 31:14I bet that would be awesome.
- 31:15And if it's not, we're going to get out.
- 31:16Also though, on the containers give you that for your infrastructure locally and in the cloud.
- 31:21What if we ran on the newest version of Postgres?
- 31:24Yep.
- 31:24Let's try it.
- 31:25Is that
- 31:25amazing or is it a horrible idea?
- 31:26Like, you've got the one server that everyone's using.
- 31:29You're definitely, or even the QA server.
- 31:31You're like, we're not going to break everyone because there's 10 people who are going to lose their productivity if we screw this up, but I can change a number in a Docker file and try it.
- 31:40And I've seen this in action, again, in production, in action, in we have with our own customer stuff where a junior, you know, admin, sysadmin was doing some standard maintenance activity, you know, maybe they accidentally dropped the database.
- 31:53But if you have all the things lined up and all the infrastructure, you know, set up in this kind of optimal way, no big deal.
- 32:00It's like, no problem.
- 32:01Like you go push, you go run the command that like restores the DB.
- 32:04Like for example, one of our opinions in here is a cloud native PG.
- 32:08So you have options.
- 32:08Like we can use cloud native PG in the cluster and that does things like point time restore, recovery, you can be using RDS.
- 32:16Those opinions can happen afterwards, but given that the whole thing can be blown away and redeployed in a moment, in literally a moment's notice, gives you a lot of confidence in being able to bring something back from a destructive action.
- 32:28- Yeah,
- 32:29absolutely.
- 32:29I
- 32:29think
- 32:30we're both so excited about this, we keep getting on tangents.
- 32:33I originally would have asked you kind of, how do I get started with this?
- 32:35Like, talk us through.
- 32:36(laughing)
- 32:37Talk us through,
- 32:38like I'm a-- - Oh, you'd like to try it?
- 32:40(laughing)
- 32:41They give people a sense of like, if they, if they don't, obviously most people don't have this already.
- 32:46Like what are they, they want a new project.
- 32:48They want it to have this more forward looking.
- 32:51Yep.
- 32:51So on that structure, yeah.
- 32:54On that GitHub page, there's a one-liner you can just copy paste into your terminal.
- 32:58I think it's toward the, yeah, it is right there.
- 33:00Yeah.
- 33:00There's a little, I
- 33:01applaud you for not having the dollar at the beginning.
- 33:03Thank you.
- 33:05I'm
- 33:05dollar fan, not a fan.
- 33:06I'm pragmatic about this.
- 33:07Yeah.
- 33:07Yeah.
- 33:08And that one liner will install a lot of the opinions.
- 33:12I've mentioned this before to some people that Scaf gives you all of those kind of cool opinions, cool tools, like neat techniques that as a developer, like it takes like decades to refine and hone and kind of gain into your toolbox.
- 33:28Scaf tries to give those to you like right away.
- 33:30Like, so it's, for example, it's going to install kubectl and kind and tilt and a couple of other tools if they're not found on your system and it'll use, if homebrew installed, it'll just use homebrew out of the box to do that and it puts it into your home directory. It doesn't, it shouldn't require, you know, one of my goals is not to require sudo anywhere in this process, you know, there's no sudo needed here for that curl command to run. And so it should be less impactful on your system than a lot of other tools, but it gives you a lot of power for what you are installing. So you run that one liner, it will now give you in like your dot local bin directory, a scaf CLI command that you'll be able to run.
- 34:10And you can just run scaf and then the name of the project you want to build.
- 34:14And it'll ask you some questions.
- 34:15So this is the kind of cookie cutter part at that point, is that it's going to ask you, "Hey, do you want to build a Django app with Next.js running?
- 34:22And do you want to use Sentry? Do you want to have Celery?" Just some standard questions.
- 34:26What mail provider are you going to use?
- 34:28So it gives you then on your file system a new, in this case, a Django project.
- 34:33I'll talk about some of the future vision pieces of that, but that's what it gives you today.
- 34:37It also gives you, in addition to a standard Django project, because you can get a Django project just by running the Django start project, a Django admin start project command, it would blow out a very simple version of a Django project.
- 34:50This has more to it.
- 34:51There's some opinions about users and sites and some other things.
- 34:55But not only that, there's going to be all the Kubernetes manifests for running locally.
- 34:58There's going to be Terraform in there for deploying into a sandbox cloud, like on Amazon, for example.
- 35:03So if you chose Amazon as your target cloud, There's going to be all these kind of other opinions in here.
- 35:10What database we're using, what if we're using Celery, we're going to use Redis, actually we should change that.
- 35:16We're changing from Redis over to Valkey at the moment as well.
- 35:21>> Valkey, what is this?
- 35:23>> So Valkey, V-A-L-K-E-Y.
- 35:26>> Close.
- 35:27>> Valkey, which is the Redis.
- 35:29>> Valkey,
- 35:30okay.
- 35:31>> The Redis for Blake's Code.
- 35:32>> Yeah.
- 35:33>> Okay. Why this?
- 35:35- Just because of licensing changes on the Reddit side of things.
- 35:38I think that's another whole, we could do a whole other podcast on just open source licensing and interesting history.
- 35:44You know, the Elastic folks did this with ElasticCache.
- 35:47I think the Reddit folks kind of were following suit, but then you now-- - I think Mongo did
- 35:51maybe a little bit as well.
- 35:52- Well,
- 35:53now you've seen the Elastic folks kind of go back on that, heading back toward the more open open source licensing.
- 35:59We'll see.
- 35:59- I'm sympathetic to, at least some of these, because they built these businesses and the cloud folks are just like, "Awesome, we'll host that for you, thanks." You're like, "Wait a minute, we were hoping to kind of "have some kind of deal." - Yeah, be that.
- 36:11- Yeah, yeah, yeah. - That'd be great for you.
- 36:12- I can also totally understand, "No, we just want this stuff unencumbered." - Yeah. - It's not that complicated, probably we could probably make this work, and we got together and teamed up, and okay, this is news to me, this is awesome.
- 36:23- Yeah, no, it's, again, it's drop-in replacement for the most current version of Redis.
- 36:28- I was actually
- 36:29just thinking about doing something with Redis, but I think I might just do a little Norse legend type of stuff.
- 36:35Try that out.
- 36:38This portion of the talk Python to me is brought to you by a very special project that I've been working hard on for some time, a new book, the talk Python in production book.
- 36:47I've long felt that most guidance and marketing about how we need to run Python apps in production has been overly complex and expensive.
- 36:55I'm sure you've heard me espouse the ideas that you're not Google, you're not and you're not Netflix to emphasize that the legitimately incredible technology powering these companies can be admired but mostly shouldn't be used as a guide for your own applications and APIs. This book, "Talk Python in Production" is me pulling back the curtain and showing the world how this can be easily done.
- 37:17You'll see how and why various technology choices have led us to truly maintainable web apps that can be managed by a single developer, cost a tiny fraction of most cloud-based solutions
- 37:27and
- 37:28result in a blazing fast web app built on modern Python. You might be wondering if you need to be an expert in Docker or Linux to benefit from this book. You don't. While having some exposure to Docker or Linux servers helps, the book walks through setting up and managing a modern Docker-based deployment from scratch. Think of it as a guided tour of these technologies with best practices and pitfalls explained along the way. When deploying to the cloud, you often hear that you should just use serverless or other no-touch services. While they can work well, they often suffer from cold start slowness and more importantly, unpredictable bursts of costs if your app becomes popular. In Python in production, we keep these costs low and nearly flat by avoiding dozens of microservices and serverless functions. You won't be blindsided by unpredictable bills if you adopt this methodology.
- 38:21Some of the more notable chapters include chapter 4, one big server rather than many small ones.
- 38:27Chapter 6, running on Rust Python application servers.
- 38:31Chapter 8, visualizing servers and other tools.
- 38:34Chapter 14, picking a Python web framework.
- 38:37Talk Python in production is available to read online or you can buy the full book at talkpython.fm/devopsbook.
- 38:44If you're interested in running professional web applications and APIs in production with high availability and yet keeping things simple and manageable, then please consider the Talk Python in production book from yours truly.
- 38:56Read it online or get the full book at talkpython.fm/devopsbook.
- 39:00Getting the book is a great way to support Talk Python and keep the show going strong.
- 39:04The link to the book is in your podcast player show notes.
- 39:08Russ out there asks,
- 39:10"Wagtail?" Not yet. I don't believe we have a Wagtail template, but I'll talk about that in the roadmap. That's coming.
- 39:19I guess it's worth pointing out to people that this is sort of at its core Django philosophy, right?
- 39:25Currently. We have some other
- 39:29use cases that we want to be able to satisfy with Scaf as well.
- 39:32For example, instead of deploying into a cloud and like you've got Argo CD, watching for like continuous deployment type stuff. What if you were deploying an appliance like into someone's data center.
- 39:42And there were different concerns around security and updates and adopting updates and how it got updated.
- 39:47We want to be able to support that use case.
- 39:49We want to be able to, I'd love to be able to support a fully serverless, you know, SCAF lite type environment where maybe we're using Lambdas and DynamoDB and API Gateway to deploy the backend in a totally serverless manner.
- 40:03SCAF should be able to support that too.
- 40:04It's not there yet.
- 40:05That's definitely, that's the roadmap piece for sure.
- 40:08There probably is some, I'm not totally up on it, but it's probably some open source Valkey equivalent Docker based Lambda type stuff as well that you might be able to say, we want to have a self-contained serverless as part of this.
- 40:21- Yeah, for example, the Scaf challenge.
- 40:25So if you went to DjangoCon last year, 6PF ran a Scaf challenge where it was to see how fast you could basically run and get a running Django project on your machine in Kubernetes, running locally, ready to develop.
- 40:36The winner did it in 26 seconds from running Scaf to Django, actually ready to respond to HTTP requests.
- 40:45Wow.
- 40:45That backend that tracked it was all done in Dynamo, Lambda, and API Gateway using the SAM framework.
- 40:53And so on Amazon, there's the serverless application framework that they've got called SAM, which is really nice because you can run it all locally.
- 41:01You just do SAM serve or whatever, SAM start, and it spins up containers locally, you spin up your Dynamo container locally.
- 41:09So I had the whole thing running on my own machine, much in a way that's why I like about Scaf because it all runs locally, it all is contained and I can play with it, I can destroy it, I can make mistakes, and then when I'm ready, I make a pull request.
- 41:22>> Yeah. One of the things that I'm always apprehensive about is building apps that have to have lots of Cloud services constantly active, and not just because I want to be able to say, work in a coffee shop with poor internet connectivity or on an airplane or something like that. But also I feel like there's probably some leakage. I mean I just heard an ad on some podcast about it for a company that whose job is to go and look at all the AWS or Azure stuff you're doing that you might have left running and is costing you $10,000 a month. People just forgot about it.
- 41:52You know they'd be like, "Oh, let's try this." >> I think you should say that. We've had that.
- 41:56>> Oh really? Tell us a story.
- 41:57>> Yeah, that's
- 41:59another reason for parts we're adding into SCAF around compliance and cost controls.
- 42:04I'm a big fan of an open source tool called Cloud Custodian, which is a event-driven Cloud compliance tool.
- 42:11If you haven't checked it out, Cloud Custodian is a really great tool for compliance, but also fin ops.
- 42:19Making sure your Dev instances aren't running 24/7 when they really only need to run probably eight hours a day, they don't need to run on weekends.
- 42:25Cloud Custodian can shut those things down.
- 42:26That's something we're adding into SCAF right now, is some minimum set of things.
- 42:31like make sure any cloud resources you get deployed are properly tagged.
- 42:35You know, are they tagged with an environment like production or development?
- 42:38Are they tagged with a cost center or whatever your policies may be, but that will help you avoid those kinds of instances where we had, for example, someone spun up a spot instance.
- 42:48Well, if you're not familiar with Amazon, you can request spot instances, which are kind of excess EC2 VMs that are hanging out.
- 42:55And if someone releases one, you can pick it up and use it cheaper.
- 42:58And they're typically meant to be used temporarily.
- 43:00but you request them and they come asynchronously to you.
- 43:03So you could go into your console and request one, and if it doesn't come right away, you're like, "Shoot, that didn't work." And you could take off, you know, go get a coffee and get lunch, and then totally forget you requested the spot instance for a giant GPU, whatever.
- 43:14- And then it's ready.
- 43:15- Yeah, and then it'll show up later in the day.
- 43:18And if you don't go and turn it off, you'll pay for it for the month, which was $10,000 for one of them, once that happened to us.
- 43:24So putting in place the fact that if someone did spin up an instance like that, Cloud Custodian would be watching for it, and we'd shut it down within a day if it didn't follow whatever your policy is for starting up new kinds of instances.
- 43:35- That's really cool.
- 43:36We're learning about a lot of cool open source tools here.
- 43:39This is great.
- 43:39- And that's why they're all packaged into SCAP because not everyone knows about all these things.
- 43:43So we're trying to take our kind of cumulative six feet up journey of 25 years of being on the internet and deploying software and developing software and packaging those opinions into like one spot where it's kind of like someone took our brains, collective brains, and put them into a code repository and now we can deploy and develop like we've been doing
- 43:59it for 25 years.
- 44:01- Yeah, it's like, well, that was a really sharp edge.
- 44:02Let's see if we can come up with that.
- 44:03- Oh my gosh,
- 44:04yes.
- 44:04(both laughing)
- 44:06- Somebody's like, guys, sorry, but there's a big bill.
- 44:11- There was a big bill.
- 44:13Look, I'll give a shout out to Amazon.
- 44:15I contacted them and they did refund us for that accidental big bill.
- 44:19They're generally pretty good about it if you make that mistake once.
- 44:22Now, you gotta make sure you show them, you can demonstrate to them, you've put in place things to not have it happen again.
- 44:26- Okay, 'cause you might
- 44:27pay for it again.
- 44:28- Yeah, I honestly work in the cloud, it's super scary in that regard, you know, when it's overly automated.
- 44:34So, one of the things, speaking of deployments and all this that I do when I'm working with my Docker stuff is I'll set up a Docker compose file, that's kind of my zen right now.
- 44:42- Yeah.
- 44:43- And in there you can set deployment limits, like this container can only use so much CPU, more significantly for me usually is like, this container can only use one gig of RAM, even though the server's got 16, tell it it has one.
- 44:55And the reason that I think that's super useful is, something goes crazy or starts using too much memory or something like that, you could say, "Oh, there's something going on here without it taking down everything else." And there's other things, especially databases. They're like, "Oh, I've got 16 gigs. I was just going to load everything into memory because that'll be more efficient." Like, no, no, no, you're sharing this with everyone. Could you just load the indexes into your two gigs? That would be good, right? Is there stuff like that here?
- 45:19Yeah, exactly. And our opinions on that are in the Kubernetes world. You can be able to put in resource limits and priorities.
- 45:26This actually also literally happened to us.
- 45:29Again, all of our experience you get to benefit from.
- 45:32If you aren't careful with Kubernetes.
- 45:34>>
- 45:34I think every one of these that have a little double dagger thing, you click on it.
- 45:38>> That's totally right.
- 45:39>> Here's the
- 45:40story why this is here.
- 45:41Here's the story why this is here, because that's the truth.
- 45:44If you don't use resource limits on Kubernetes, they will absolutely stomp on each other.
- 45:49Kubernetes is an amazing orchestrator and it will do exactly what it's told.
- 45:52And if you've told it that this doesn't have limits, it will give it all the things all the time.
- 45:57And you can run into a situation, for example, if you're using cloud native PG, your database is in the cluster, which means it's orchestrated by the cluster.
- 46:04If you don't give it any limits and you're running multiples and you do a backup, the resources when you do a backup go up.
- 46:11Yes,
- 46:11100%. Yeah.
- 46:12If you do, it basically like scans through all of the data.
- 46:16And all the things.
- 46:17Why is it using three gigs? It was using just one.
- 46:19Oh, because I asked for a full backup.
- 46:21>>
- 46:21Well, and I tell you what it'll do is it'll consume all the resources on one node and then it'll fail over, orchestrated, it'll fail over to the second node and then use all the resources on the second node and then it'll corrupt your database and crash the whole thing.
- 46:33Now, if you put in the resource limits and the priorities, because what it should do is it should go off and be like, there's a lot of Django instances running that I don't need to be, I can kill those first.
- 46:42I can orchestrate smartly for you only if you smartly configure it.
- 46:47>> Right. Here's my goal is to not let this get out of control.
- 46:50help me with that. Don't just feed it everything.
- 46:53- Yeah.
- 46:53- Yeah, it's interesting. A lot of these servers are like, "We could do better if we could just take it, "we could load up more and pre-cache more." But they don't work well together like
- 47:00that.
- 47:01- Right, yeah. I mean, they're greedy.
- 47:04They're gonna try and take the resources they need to do the job they need to do, but they can be told to be less greedy.
- 47:10And Kubernetes is how we do that.
- 47:12- Yeah, more
- 47:12importantly, they can be forced to be less greedy.
- 47:14- You
- 47:14need to stay in line.
- 47:16(laughing)
- 47:17- So what you got? You're not getting more.
- 47:18All right, let's talk through the building blocks here.
- 47:20You mentioned a couple of them, but there's a big long list of things that I think is gonna be pretty interesting to people.
- 47:27Started with Django.
- 47:28- Yeah.
- 47:28- And then let's go down the building block.
- 47:30When I make an app like this, it has an opinion, it looks like as well.
- 47:33It's not just a vanilla Django app.
- 47:35- Correct.
- 47:36Yeah, you could be doing asynchronous tasks, so that's why there's a Celery opinion in there.
- 47:40Like we, you know, if you've got a project, you know you're gonna have jobs in the background.
- 47:43Sure, let's get Celery installed.
- 47:46If you're doing something with a fancy front end React, where our opinion is really to use Next.js. And if you install Next.js, you'll get like the strawberry GraphQL stuff out of the box, which is kind of nice and Apollo on the front end, if the Next.js is also chosen. So some GraphQL opinions have been made and the plumbing laid to make it just work, which is kind of hard sometimes. If you're diving into a new technology like React and GraphQL, it's nice to have some opinions and to have them pre-wired up for you. So you can just just kind of follow the pattern that's already been laid for you.
- 48:20Okay. I'm told that
- 48:21Next.js is really, really popular.
- 48:23Yeah.
- 48:24Tell us about what is Next.js.
- 48:26Yeah, I mean, Next.js is a set of opinions around React.
- 48:30Much in the way that, for example, like Zope and Plone were opinions around how to do a Python web framework.
- 48:37Next.js is kind of a packaging of some opinions about how I would deploy and write React applications and keep them up to date.
- 48:45For anyone who's done a React application, you can start with the standard React demo application.
- 48:51But from there, you start adding on it.
- 48:53Again, I'm definitely not the TypeScript, JavaScript front-end person, but dependency spaghetti mess will happen very quickly in this world, or can happen very quickly in this world, which will lead you into a spot where it's really difficult to upgrade your React application to get all the dependencies upgraded.
- 49:13and there's security vulnerabilities and issues you need to be aware of and performance things.
- 49:17So you want to make sure you can stay on top of those versions.
- 49:19And Next.js is basically a set of guidelines and opinions that should help guide you down a more happy path.
- 49:25And that's why we chose it.
- 49:26I think even the React folks tend to suggest using Next.js instead of just React on its own because you get those opinions and should have an easier time keeping things up to date.
- 49:36Yeah,
- 49:36I know the JS stuff feels like it's so complicated, but it's again because we're
- 49:40asking more and more.
- 49:41People have high expectations of the web applications that they interact with on a daily basis.
- 49:48It's just a fact of life that people expect, have expectations about how things are going to behave and the experience they're going to get.
- 49:54Yeah. They're like, Gmail's cool.
- 49:56Google Maps is cool. Can ours do that?
- 49:58Like, you realize this is a static website.
- 50:04You're the developer behind that?
- 50:06Yeah.
- 50:06And then if we
- 50:07keep going down this list, I mean, we've standardized on Postgres.
- 50:10and that's historic.
- 50:12We probably 15 years ago used MySQL.
- 50:16And that was back in the days of MySQL silently dropping data, on you.
- 50:21but I don't think those You got enough.
- 50:23I mean, you got enough of your data kept. There's a lot.
- 50:25That's exactly what it was. So we, we switched to Postgres and haven't looked back. and there's just a lot of exciting things happening there. So if you're not on Postgres, I highly
- 50:33recommend it. Good, good, good bet there, because if you look at the surveys and stuff, like The majority of people are doing that, especially if they're doing relational databases.
- 50:42It's Postgres and then you better justify why you're not using Postgres.
- 50:47>> Then if you're going to run Postgres and you're running Kubernetes, you're going to want to have some kind of an operator to manage it for you.
- 50:53If you want to have high availability, you want to have data backups, and that's what Cloud Native PG gives you.
- 50:58You can back up into S3 buckets, or you can back up into, you name it.
- 51:02There's multiple kinds of targets that are supported, but it manages all that hard complexity for you.
- 51:06If you've ever set up Postgres replication and high availability on your own and had to deal with all the wall files and moving them around and backing them up, it's a sophisticated beast, a complicated, sophisticated beast and no one wants to deal with that.
- 51:21And that's what Cloud Native PG does for you.
- 51:22It gives you UI and a way to configure it and away you go.
- 51:26- And then after that,
- 51:26we have Valkey.
- 51:27- Yeah, Valkey.
- 51:29Which is our Redis drop-in replacement.
- 51:32If you're not using Redis in your Django apps, you should be.
- 51:34even if nothing more than just the Django template cache, I would turn that on.
- 51:39We've been using Mailhog for our email locally.
- 51:41So this is a local developer tool.
- 51:44Allows you to simulate email being sent off of your development instance without actually sending email anywhere.
- 51:50- So it's a little
- 51:50bit like mocking email.
- 51:52- Yeah, yeah, it's super nice.
- 51:53It runs an SMTP server, it gives you a web UI.
- 51:56It looks like real email, it gives you an inbox so you can basically see what your end users are gonna see.
- 52:03Argo is the CI/CD product, but the open source GitOps.
- 52:07So it watches your repositories, kind of tracks the status of the deployments.
- 52:12- Okay, so you basically pick
- 52:12a prod branch or something like that and you push the prod then magic happens.
- 52:17- Yeah, Argo does the magic behind that.
- 52:19And you can see that it also gives you a bit of a insight into your cluster, you know, what's running, what's being deployed, what state they're in, you know, it handles all the like blue green, you know, rollout of new code, new pods and new containers into your clusters.
- 52:35It's, yeah, I can set up a
- 52:36QA cluster as well.
- 52:38Yep. Right. Just pick a different branch and have it watch that. Right.
- 52:41But that's what we do. So inside the SCAF built skeleton you get on your file system, you're going to have a Kubernetes manifest directory that has a base set of manifests, which are, this is what's needed to define the deployment and the services and all the bits.
- 52:57And then each environment, for example, like the sandbox environment, has an Argo running that'll be watching for sandbox changes, and the production environment will be watching for production changes. Another thing we standardize on here that's not listed is things like sealed secrets. So you can check in your secrets to your Git repository for sandbox, for example, but the only machine on the planet that can decrypt them is the sandbox instance, because you actually use the sealed secrets operator to do the encryption. And the only The only way it can be decrypted is if those things are sitting in that cluster, in the sandbox cluster or in the production cluster.
- 53:30So what's nice is the sandbox cluster cannot decrypt the production secrets.
- 53:34So you can have, obviously you want to have different secrets for production than you do for sandbox.
- 53:39So you can have least privilege.
- 53:40You know, developers have access, maybe more unfettered access to sandbox, but they may have more limited access on production.
- 53:46And tools like sealed secrets and customize and Kubernetes manifests and sealed secrets actually make all that work.
- 53:52Okay.
- 53:53Yeah.
- 53:53And that's, that's news to me as well.
- 53:55This one, I love it.
- 53:56I do something similar with my things as well.
- 53:58Like I know a lot of people have huge environment variable definitions of all their, I'm like, yeah, you just, you just need one value that unlocks the other, you know, highly encrypted stuff.
- 54:10Now for, for someone actually asked a question I'm getting ready to answer, which is about external secrets and services for those things, local development, we've have an opinion around using one password for all of our secrets management, whether it's like passwords for websites or API keys, or in this case, development environment, database passwords, development environment, you know, secrets, like Django has a secret, Django secret in there, things like that. Those are actually, in our case, environment variables. And we use the one password command line tool to only decrypt them ever in memory. So when you run like the Django start, or like the anytime you run the Kubernetes cluster locally and kind, it will feed those environment variables via the config map into your cluster so that it can access the database in the cluster locally. So even locally, you have a long, random, unknown password to you that is actually stored in one password. So if you want to go use your, I use Postico as a GUI for accessing my local Postgres, I can use that. I can actually feed the data from one password and actually access my services. So locally using one password and environment variables and config maps. But when going to sandbox, we just use sealed secrets on sandbox and production for mostly cross-platform consistency. You could be using, you know, SSM parameter store on Amazon or secrets manager on Amazon, but then that won't work on Google or won't work on Azure. And so we just standardize around the sealed secrets for ease of deployment to any cluster in any platform anywhere.
- 55:43Yeah, the one password new CLI stuff and SSH.
- 55:46So nice.
- 55:48Secret provider, whatever you call that thing.
- 55:50Yeah, it's super nice.
- 55:51Yeah, if you've not turned on the SSH keys for your 1Password CLI, I have no secret keys, no SSH keys, no API credentials.
- 56:01I have no secrets on my file system unencrypted.
- 56:04They're living in 1Password and 1Password proxies that access when needed.
- 56:08Yeah, that's pretty neat.
- 56:09I feel like I should maybe embrace that more.
- 56:11I embrace 1Password a lot, but there's more.
- 56:13Especially when
- 56:14you're working on multiple projects and multiple environments and you want to, again, have that least privileged access.
- 56:21You don't want to have one key to rule them all.
- 56:23You want to have keys to get you access to Sandbox, keys that can get you access to production, and you want to be able to give only certain people access to those production keys and only certain people access to Sandbox keys.
- 56:32And we actually do that with, so we're a Microsoft 365 shop.
- 56:36We use Microsoft's Entra Directory service, which is their Azure Active Directory product, and we use security groups.
- 56:43And so based on what security groups or what project you're working on, gives you access to only certain vaults inside of one password, gives you access to only certain accounts inside of Amazon and those kinds of things are all wired up to our, our single sign on platform.
- 56:57Yeah. Very nice.
- 56:57Traffic.
- 56:58Traffic's just an ingress controller. it's like a load balancer
- 57:02type thing.
- 57:02Yeah. It's a load balancer kind of cloud.
- 57:04If you rethought about a web server and it was cloud native and containers and understood clusters like Kubernetes clusters, this is what traffic is.
- 57:13Um,
- 57:14I see.
- 57:14So maybe a better analogy would be like NGINX or yeah.
- 57:19Yeah.
- 57:19I mean, I think we all grew up,
- 57:20we all grew up on NGINX and made it do all the crazy reverse proxy things like traffic is the one born in the cloud native world version of that.
- 57:29Now NGINX has their own ingress controller as well that they've re rewritten to be more cloud native.
- 57:35That's just what traffic is for us.
- 57:36cert manager again, handling things like TLS certificates and renewals and you name it, cert manager, make sure.
- 57:43How's that different than Let's Encrypt and Certbot and things like that?
- 57:48I mean, it's really similar in those cases.
- 57:50I think actually Certmanager, I think, is using Let's Encrypt under the covers.
- 57:54I could be wrong on that one.
- 57:55Maybe more
- 57:56cluster focused because that could be a real challenge.
- 57:58Well,
- 57:58because a lot of the, again, another beauty of Kubernetes that I don't think a lot of people talk about is the operators.
- 58:04These are like, you know, extensions or plugins to the Kubernetes cluster that give you superpowers to do things like make sure the certs are always, you know, renewed, make sure the latest code is always deployed.
- 58:14Make sure the database is highly available and backed up.
- 58:17Make sure, you know, that's what these operators do in the Kubernetes world.
- 58:21Is there like just plugins to your cluster that give you these extended capabilities?
- 58:25And that's what CertManager is, it's another one of those.
- 58:27So, and that handles the certificates and grass routes.
- 58:30That's all like kind of traffic CertManager certificates.
- 58:32It's all,
- 58:33yeah, it's all together.
- 58:34All together.
- 58:35Won't give you the certificate unless it can prove that certificate, that domain routes back to that thing.
- 58:41And yeah, it's great, but it does get a little complicated in Docker already.
- 58:45And then I can imagine auto scaling blusters that gets thrown away.
- 58:49You want it all just to work.
- 58:50Yeah, you don't want the certificate expired.
- 58:52Warning, danger, do not proceed to this website.
- 58:54Oh, no.
- 58:55All right, we got Prometheus in the house.
- 58:57Well, and Prometheus and Grafana are
- 58:59kind of together here.
- 59:00It's nice to have a observability, be able to see stats and trending data, to be able to make decisions on how you're scaling or handling load.
- 59:08It's hard to predict sometimes what a service is going to do when you go deploy it to real users.
- 59:14Real users have an uncanny knack of pushing buttons and making things happen that produce lots of crazy edge cases.
- 59:22- Right, this part was slow, so I just kept pushing the button.
- 59:25Like, you know, it's how
- 59:25much more load you're putting.
- 59:26It was really slow, 'cause I couldn't handle it.
- 59:28- And you'd prefer
- 59:30that you know about these problems before your users report them to you.
- 59:34So tools like Prometheus and Grafana and Loki.
- 59:38So Loki specifically is log aggregation.
- 59:42Prometheus is going to be a lot of metrics.
- 59:44And we combine those all into like Grafana dashboards.
- 59:46The trick here is, you know, you want to be able to get all the data, but then you got to make something meaningful of the data.
- 59:51And so we try to put in some, you know, default dashboards that give you that.
- 59:57If I was stuck on an island, what was the one screen of information I might need to make a business decision about what's happening here type view of things and not overload you with too much information.
- 1:00:07But you want to be able to dive deeper and see, oh, you know, when the database backup kicks in, the IO all of a sudden goes crazy. And that's why we're seeing a dip in here.
- 1:00:15And that's why there was a failover. Like, be able to trace back those things without data is impossible. And you only again, because we're in a clustered world and there's lots of interdependencies and these things can scale out, you could have many, many nodes running these tools, you got to have some way of getting a, I hate to say it, a single pane of glass. I'll put that out there.
- 1:00:36I
- 1:00:36can see my entire business in a single pane of glass. It is humming smoothly.
- 1:00:42Yeah, I'm sure
- 1:00:43all the IT folks, they all just cringe to like, "Oh my God, he just said it." Some
- 1:00:48people cringe and say, "Yes, they're speaking my language." Out there, my goal in the audience, the Media Cube from EPS is all of the pre-configured dashboards for Yeah, it's out of the box.
- 1:00:58Yeah,
- 1:00:58yeah, yeah, yeah, definitely.
- 1:01:00I mean, there's there's so many good example dashboards under Fanta that it is no reason not to be using this for durability.
- 1:01:07And this is like the table stakes, like you better start here and you better just do it.
- 1:01:10But a lot of people deploy an app and then they they I mean, how many times have you worked within a developer and you're like, well, if something's wrong, I can't figure out why.
- 1:01:18And the first thing you tell them, I guarantee you, Michael, the first thing you tell them to do is did you look in the logs?
- 1:01:22And they're like, no, I didn't look in the logs.
- 1:01:24I'm like, well, that's the first thing I do is go look at the logs.
- 1:01:26Yeah, that's the second thing you tell them.
- 1:01:29What's the first?
- 1:01:29First thing is, do you have logging?
- 1:01:32[laughing]
- 1:01:33True, okay.
- 1:01:34Yes, I have it.
- 1:01:34Okay, did you look at them?
- 1:01:36Fair enough.
- 1:01:36I was about to ask you though, like, do you have, do you have logging set up in this?
- 1:01:40And do you have like Log Guru or do you have Logbook or do you just do Python logging or what's the
- 1:01:44story?
- 1:01:44Yeah, I mean, we're using containers, so things should be set up to log as we would expect them in Kubernetes.
- 1:01:51So it's kind of like the if you've ever looked at the 12 factor app, you know, there's opinions about how logging should happen.
- 1:01:58That's what we adhere to is that logging should end up in a natural spot where it's easy for us to aggregate with tools like Prometheus and Grafana and actually then action and do something with them.
- 1:02:07So we typically have another SSH
- 1:02:09into other machines to see, well, what's this thing doing? What's that doing?
- 1:02:13And that's one thing I want to have no SSH into these clusters.
- 1:02:17Actually, one of our deployment opinions here is using things like Talos Linux for our Kubernetes deployments.
- 1:02:23Talos does not have a SSH shell enabled.
- 1:02:27Talos Linux has the ability to launch Kubernetes clusters.
- 1:02:30So you can use kubectl to manage your Kubernetes, but then you have the Talos CTL to manage Talos.
- 1:02:36There's no reason to shell into a box.
- 1:02:38It's just another security surface that you can now get rid of.
- 1:02:42>> Yeah. Very interesting. There's a couple of
- 1:02:44these single-purpose Linux distributions out there that are really, really cool.
- 1:02:48>>
- 1:02:48We've evaluated quite a few, And this is the one we picked.
- 1:02:51I liked its opinions.
- 1:02:52I liked its approach.
- 1:02:53I like the community that's behind it.
- 1:02:55One thing when you're picking a lot of these software tools is you need to look at the communities.
- 1:02:58You need to see how active they are.
- 1:02:59You need to understand, is this going to be a viable project, you know, five years from now?
- 1:03:03'Cause these are opinions you'll pick now and you'll have to live with potentially a long time.
- 1:03:07- That's a great point.
- 1:03:08Is this going to be your hobby project that you're going to have to keep it running for
- 1:03:11everyone else?
- 1:03:12Or is this thing got a life of its own?
- 1:03:14'Cause I don't need another hobby.
- 1:03:15- Yeah, exactly.
- 1:03:16We want this to be for real.
- 1:03:18Yeah.
- 1:03:18Let's do one more shout out of all the building blocks here.
- 1:03:21Sentry, you know, long time sponsor, friend of the show.
- 1:03:24Yeah. So again, observability tools like this, especially when it comes to like tools like Sentry or even DataDog and New Relic, we just happen to pick Sentry because I like, again, like the community.
- 1:03:36I like the people who are behind that tool.
- 1:03:38I can't tell you how much time a tool like Sentry has saved us when trying to diagnose and debug performance issues.
- 1:03:45I know it has lots and lots of features it can do, But when you're looking at a stack and you've got a n plus one performance issue going on with your database queries and its integrations with Django, its integrations with Redis and Postgres, just make tracking down that kind of stuff so much easier.
- 1:04:02We again, I'll go back to that 2020, 2021, when we launched Loud Swarm as a virtual event platform space.
- 1:04:08being able to deliver the schedule to a React application quickly as it's changing throughout the day was actually a big performance challenge.
- 1:04:17And Sentry highlighted exactly where the problems were.
- 1:04:20And then we just implemented a simple Redis cache that took us from 90 second generation of the schedule down to like milliseconds.
- 1:04:27And that was because we were able to pinpoint the issue really, really carefully and really, really close to a Sentry.
- 1:04:32It just, it bubbles up your problems and now you just go pick off the low hanging fruit.
- 1:04:36Yeah, that's awesome. I've also used it for error monitoring stuff and it's, I'm more than one, I know I say this on the show for some of the ads, but more than once, and this is not an ad, but I've certainly gotten an error and it's got all the variables of not just the stack trace, but actually the variables of what user ran into problems and all sorts of stuff.
- 1:04:53And I reached out to multiple people, said, I see you ran into this problem. I'm really sorry. I fixed it. Give it another try. And I'm sure that's a creepy experience in one way, but also you're like, geez, that doesn't happen very often.
- 1:05:04But you know, like, well, I fix it and I know who it is.
- 1:05:06I might as well tell them like, hey, sorry, you hit this.
- 1:05:08Yeah.
- 1:05:09One tool we've not mentioned here that is not in this list that I think is super important to our staff stack is Tilt.
- 1:05:16That is the local Kubernetes management tool of choice that we have picked.
- 1:05:21And if you've not played with Tilt, we've gone through different tools along the way.
- 1:05:26There was one called Scaffold and I can't remember the other ones we tried.
- 1:05:30There's numerous ones out there who basically sit in this space and try and solve this problem.
- 1:05:35But the killer feature for Tilt was two-way sync between your cluster and your local machine.
- 1:05:41So again, if you're running locally and using Kine, you probably don't notice anything because Tilt is watching your file system, synchronizing your files into the Kubernetes cluster for you to work, but it also does the reverse.
- 1:05:51One of the key bits I wanted was when you do a compilation of your requirements for your project, you're running Django and you've got a whole set of requirements, if you get into some trickier things, like around the data science world, there may be things that compile differently on macOS than on Linux, than on Windows, because they use some slightly different dependencies.
- 1:06:11That can be tricky when you're working in a container world.
- 1:06:14So you want to make sure you're doing your pip-tools compile, well, via uv, but your pip-tools compile in the container, in the target environment of where this is going to be deployed and built, because you'll get different results if you ran that pip-tools compile on your Mac, as opposed to into the Linux VM or Linux container.
- 1:06:29- Yeah,
- 1:06:29that's true.
- 1:06:30>> A platform specific wheels.
- 1:06:33>> Yeah. So tools like Tilt makes sure that I can run my thing in the container, and the result of it synchronizes back to my file system, and then I check that into the repository.
- 1:06:42That was a key bit there.
- 1:06:44Again, it has a lot of other cool things, nice UI.
- 1:06:47If you fire up Scaf, at the very end of it, it'll tell you, "Congratulations, you got a new project on your file system.
- 1:06:53CD in your project and just type Tilt up." You type Tilt up and you hit space bar, I think it is, and it launches a web browser with all the status of all the containers that are running locally.
- 1:07:03You can see all the logging, you can tilt watches for changes to your local file system for the code, tilt watches for changes to the Docker files.
- 1:07:11If you change the Docker file out from underneath tilt, like while you're developing, say you're adding a new layer, a new dependency or something that's needed in Docker and not in your Python, tilt will rebuild the container immediately for you.
- 1:07:22Like without you having to do anything, like you just kind of, you just code along and tilt keeps up.
- 1:07:27- Wow, that's awesome.
- 1:07:28- Yeah.
- 1:07:29setting your unit has
- 1:07:29to run on every save.
- 1:07:31>> Exactly.
- 1:07:32It is. It's fast.
- 1:07:34Sometimes you barely even notice.
- 1:07:35Like if you're working in a very late layer in the build, those builds can happen really, really quickly because most of the stuff is cached.
- 1:07:42Just notice of opinions.
- 1:07:44We've really tried to finally tune all the caching in the Docker files and all the layers so that these images build fast, they build slim, they use caches.
- 1:07:54So if you're running locally, it's going to cache things locally in your file system.
- 1:07:58you blow things away and start over again, it doesn't take forever to download all the stuff.
- 1:08:01It should be pulling from your local cache.
- 1:08:03- Yeah, that's a big shift when you're doing container type stuff.
- 1:08:07- Oh, man, 'cause some folks may have a not great experience with containers because of the size of some of these things and because they're not effectively using caching.
- 1:08:15This is a game changer.
- 1:08:16- Right, it 100% is.
- 1:08:17And just maybe potentially just
- 1:08:19reordering or splitting up commands could make - Oh, yeah.
- 1:08:22- 10x difference in speed.
- 1:08:25- Well, and you were the one who convinced me to switch over to uv inside their container builds as well.
- 1:08:30And that absolutely sped things up.
- 1:08:33Speed is a feature.
- 1:08:33I know you had that interview with Charlie, and that was one of the things that came out of that, but it's stuck in my head is speed is a feature, and I take that everywhere with me.
- 1:08:41- Yeah, that's awesome.
- 1:08:42It's a cheat code for sure.
- 1:08:43It's like, oh, we've hit it three, 10 times.
- 1:08:45Let's try that, that's awesome.
- 1:08:46And then, yeah, you can layer on more caching on top of that and make it even more ridiculous.
- 1:08:52All right, I think that's probably it for the time to talk through this.
- 1:08:54What a cool project you got here.
- 1:08:56Let's close it out with a roadmap.
- 1:09:00- So we've got a lot of things coming.
- 1:09:02One of the big ones is a big shift from using Cookie Cutter, which I've mentioned already, to using Copier as our underlying templating product.
- 1:09:11The big benefit-- - Tell people what Copier
- 1:09:12is, yeah.
- 1:09:12- Yeah, so Copiers, like Cookie Cutter, actually is a drop-in replacement for Cookie Cutter.
- 1:09:16You can use your Cookie Cutter templates you've already built with Copier, but now you can actually modularize them and upgrade them.
- 1:09:23So one of the problems with Cookie Cutter, was it was kind of one and done.
- 1:09:27Like you blew out your template onto the file system, you've got your code. That's the last time you would touch cookie cutter.
- 1:09:33But if new opinions come around, which we're constantly adding new opinions to SCAF about how we do dev and how we do deployment, you would want those to roll back into old projects that had been built with that same tool.
- 1:09:43Copier enables this.
- 1:09:44Copier now allows us to rerun against an existing project and adopt new opinions that have been made from the source template. And that's another change we're making is we're actually allowing Scaf to have multiple template types.
- 1:09:58So right now, the Scaf kind of runs in a full stack Django app mode.
- 1:10:03We're going to have the Scaf Lite version, which may be serverless.
- 1:10:06We're going to have the appliance mode, which would enable not using Argo CD, for example, but different ways of updating.
- 1:10:12We'll have opinions that are not Django necessarily.
- 1:10:15They may be more data pipeline versions of your apps.
- 1:10:19And so those will be templates that can be updated and and redeployed and kept up to date with Copier.
- 1:10:24That's cool. Yeah, I can see a whole idea, a whole concept of this for ML workloads and science
- 1:10:29workloads. And we don't actually need a web app. Exactly.
- 1:10:32What we need is data ingestion and intel and we want results, either a notebook or just something in a database on the other end of them.
- 1:10:39Yeah. Yeah, that's a big, that's a big deal. And that's another thing that is included in Skap Opinions is the CI pipeline, the GitHub actions, Bitbucket Act, you know, workflows or whatever their CI thing is called. Because those Those are important, those need to be there day one, 'cause they're so hard to tack on later, or you just get busy and you don't tack them on when you should have.
- 1:10:58- Yeah, it's good to have all this experience and all these rounded off rough edges put together in one box for you, very cool.
- 1:11:06All right, well we're certainly out of time, Calvin, so how about, we've got two things to close this out, unlike normal.
- 1:11:13So let's close it out with a final call to action.
- 1:11:15People are interested in SCAF.
- 1:11:17- Yeah, they
- 1:11:18should definitely go to-- - Should I go to Starrett?
- 1:11:20- Yep, go to Starrett.
- 1:11:20log in apparently. Yeah, go hang out, go to the 6github/scaph GitHub repository. It's a one-liner to install. I would love to hear your feedback, you know, any feature requests, you know, any bugs you find. We've worked really hard on ironing out a lot of those issues over the last year as we kind of pushed toward DjangoCon last year. It's amazing and mind-blowing to see how fast you can get a Django project up and running on your own machine with Kubernetes in the mix. Maybe people a little background information, like they're like, I heard of Kubernetes.
- 1:11:54What do I do with it?
- 1:11:55Like you got good resources for them to Oh, on YouTube, there's
- 1:11:59an excellent YouTuber. Her name's Nana. So if you just search Nana and Kubernetes, she does an incredible job of explaining Kubernetes to everybody.
- 1:12:12Yeah. I believe it's Nana Codes. Yeah. Technical Nana.
- 1:12:16Yeah.
- 1:12:16Yeah. She's awesome.
- 1:12:17She's really good. Yeah.
- 1:12:18She's really good.
- 1:12:18She's really good.
- 1:12:19a great way of explaining these kind of deeper technology things.
- 1:12:23That's literally where I went.
- 1:12:24I was like, I need to know more about Kubernetes.
- 1:12:26I went and watched her videos.
- 1:12:28I met her in person.
- 1:12:28She's actually an AWS hero.
- 1:12:30And she was at reInvent a couple of years ago.
- 1:12:32And just again, superhuman being doing this for the love of technology.
- 1:12:36Actually, I can give a shout out also to one of the people in the chat.
- 1:12:39Michael Levin is also a prolific YouTuber on Kubernetes.
- 1:12:44Oh, no kidding.
- 1:12:45Okay, I'll put a link to his channel as well.
- 1:12:47Awesome.
- 1:12:47All right, well, Calvin, thank you for being here.
- 1:12:49It's been awesome.
- 1:12:51I can't tell you how excited I was about the opportunity.
- 1:12:54Yeah, it's been super
- 1:12:55fun and I
- 1:12:56was excited as well.
- 1:12:57So much so, so much so that I've made a theme song for this episode.
- 1:13:02I'm not going to play it on the YouTube live stream version.
- 1:13:04It's just the logistics of that are a little bit challenging.
- 1:13:07But I'll put a link
- 1:13:08in
- 1:13:08the YouTube description in a day or two.
- 1:13:11And when this show comes out, it's going to be at the end.
- 1:13:14And so if you're listening through the MP3 version of your podcast player, be sure to listen to the end.
- 1:13:18There's gonna be a-- - Get ready to crank
- 1:13:19it up.
- 1:13:20- Yeah, so here's the thing.
- 1:13:21If you like Linkin Park and that style of music, you're gonna love it.
- 1:13:24If you hate Linkin Park, maybe call it a show.
- 1:13:27Anyway, it's gonna be super fun.
- 1:13:29We'll put, let's deploy, or deploy the dream at the end.
- 1:13:31It'll be a great theme song to round things out.
- 1:13:34And with that, Calvin, thanks for being on the show.
- 1:13:35- Awesome, thanks, Michael.
- 1:13:36- Yeah, bye.
- 1:13:41(gentle music)
- 1:13:41(dramatic music)
- 1:14:11Every line in the repo, a key to set us free And now we break through on Talk Python To Me!
- 1:14:18Deploy the dream Shake the ground under your feet Surge forward in the stream Python code is moving heat With Talk Python To Me We ignite the synergy Let's tear down walls, let's own the scene Deploy the dream ♪ Deploy the dream Shake the ground under your feet Search forward in the street ♪ Python code is moving heat ♪ With talk Python to me We ignite the synergy ♪ ♪ Let's tear down walls ♪ ♪ Let's own the scene ♪ ♪ Deploy the dream Shards of GML swirling in the night ♪ ♪ Argo CDs overhead guiding by its light ♪ ♪ We watch the pipeline triggers ♪ ♪ Silent countdown clock ♪ ♪ From dev to prod, we're unstoppable stock ♪ ♪ The logs are rolling in, Prometheus can see ♪ ♪ Our metrics rise like signals, a living symphony ♪ ♪ Mailog sends illusions to the test in the sky ♪ ♪ While Sentry's capturing errors with an all-seeing eye ♪ ♪ We commit, we build, we test once more ♪ ♪ Containers racing onward to the cloud's front door ♪ ♪ Resilience in the code, watch the pods come free ♪ ♪ The stage is set now on top, Python to May Deploy the dream Shatter limits that confine A brand new scheme Pushing progress down the line We're unstoppable now Calvin's leading strategy Let's break the mold, let's rewrite souls Deploy the dream Deploy the cap Offtense beat and build dealing intensity ♪ I see the server lights blinking in the distance ♪ ♪ Code commits illusion smashing with persistence ♪ ♪ Dive deep into the backlog we're forging the path ♪ ♪ Docker image at the ready time to feel the wrath ♪ ♪ Python in my veins blueprint on the screen ♪ ♪ Dev to stage to prod no in between ♪ ♪ We scale up, scale out then break the routine ♪ ♪ This is talk Python to me ♪ ♪ A new reality ♪ Toss the girls belt, belt them ♪ ♪ No code left behind ♪ ♪ We share the knowledge so all devs can find ♪ ♪ A way to unify the spark ♪ ♪ A chance to break free ♪ ♪ Join Calvin, Hendrix, Parker ♪ ♪ Let's make history ♪ Deploy the dream ♪ ♪ High voltage in our core Evolve the theme We're unstoppable once more ♪ Untalk Python to me ♪ ♪ Our voices ring in synergy ♪ Now let's ascend ♪ ♪ Let's set this free ♪ I dream
- 1:17:01the
- 1:17:01dream
- 1:17:28This has been another episode of Talk Python To Me.
- 1:17:31Thank you to our sponsors.
- 1:17:32Be sure to check out what they're offering.
- 1:17:34It really helps support the show.
- 1:17:36This episode is sponsored by Posit Connect from the makers of Shiny.
- 1:17:40Publish, share, and deploy all of your data projects that you're creating using Python.
- 1:17:45Streamlit, Dash, Shiny, Bokeh, FastAPI, Flask, Quarto, Reports, Dashboards, and APIs.
- 1:17:52Posit Connect supports all of them.
- 1:17:54Try Posit Connect for free by going to talkpython.fm/posit, P-O-S-I-T.
- 1:18:00This episode is brought to you by my new book, "Talk Python in Production." I've long felt that most guidance and marketing about how we need to run Python apps in production has been overly complex and expensive.
- 1:18:12This book is both a look at the history of Talk Python To Me and an antidote to this overly complex cloud world.
- 1:18:19Read it online and get the full book at talkpython.fm/devopsbook.
- 1:18:24And to level up your Python, we have one of the largest catalogs of Python video courses over at Talk Python. Our content ranges from true beginners to deeply advanced topics like memory and async. And best of all, there's not a subscription in sight. Check it out for yourself at training.talkpython.fm.
- 1:18:40Be sure to subscribe to the show, open your favorite podcast app, and search for Python.
- 1:18:45We should be right at the top. You can also find the iTunes feed at /itunes, the Google play feed at /play and the direct RSS feed at /rss on talkpython.fm. We're live streaming most of our recordings these days. If you want to be part of the show and have your comments featured on the air, be sure to subscribe to our YouTube channel at talkpython.fm/youtube.
- 1:19:07This
- 1:19:07is your host Michael Kennedy. Thanks so much for listening. I really appreciate it. Now get out there and write some Python code.