Do The Hardest Thing with Jesse Hanley
Aaron is joined this week by Jesse Hanley, founder of Bento, to talk about building a seven figure business, why he feels less stress now than he did when he started, migrating from Heroku to Planetscale, and more.
Going to Laracon? Sign up for the Mostly Technical Pre-Party - https://luma.com/3ma69cwe!
Sponsored by InterNACHI, Honeybadger, Bento, Vask, and NativePHP Ultra.
Everything we said
Announcer
You're listening to Mostly Technical, which is brought to you by Larajobs, the official Laravel job board, and databaseschool.com. And now, Ian and Aaron.
Aaron Francis
Hello, my friends. We are back. Ian is off being a degenerate somewhere. I think he's gambling again. Uh, and so we have a sweet hang coming up for you with friend of mine, friend of Ian's, friend of the show, Mr. Jesse Hanley. Jesse, you wanna introduce yourself?
Jesse Hanley
Yeah, hey, I'm Jesse. Uh, I run Bento, and I'm currently recording this in my hotel in Tokyo at, uh, Laravel Live Japan, which is kind of super cool.
Aaron Francis
Not only in your hotel, in your bed under the covers.
Jesse Hanley
In my bed.
Aaron Francis
So you, you've had a, you've had a rough go-
Jesse Hanley
In my Japanese pajamas.
Aaron Francis
You, you've had a rough, uh, or at least a taxing couple of, I think, weeks, maybe months, maybe years. Um, so why don't- ... why don't you give us, give us a rundown of some of the things we could and will talk about, and then we'll decide where to start.
Jesse Hanley
Yeah, I mean, this might be, like, a bit of an unhinged, uh, episode, especially for, like, my first appearance on this podcast. But, um, what is it? Saturday I slept, I think, two and a bit hours. Sunday I slept maybe four, and then last night I slept six. So my brain's, my brain's a tiny bit fuzzy, but basically I've been doing Postgres migrations.
Aaron, I, I, I successfully moved from Heroku to PlanetScale.
Aaron Francis
All right.
Jesse Hanley
So that's now done, but that was like, that was like, feels like years in the making to-
Aaron Francis
Mm-hmm
Jesse Hanley
... to even make that happen. So I, I don't know. I don't know where you wanna kick things off. You wanna talk about Laravel-
Aaron Francis
Yeah
Jesse Hanley
... if you wanna talk about all my trauma in the last week, but yeah.
Aaron Francis
Yeah. I wanna, I wanna talk about your hell weeks. Normally, normally we talk about my hell weeks, and Ian's like, "Oh, you gotta work more," or, "You gotta work less," or, "You gotta work differently." So I'm, I'm glad to be out of the spotlight on this one. Um, but you are currently, uh, you are currently the solo founder and-
Jesse Hanley
Mm-hmm
Aaron Francis
... uh, primary person running Bento. You do have a support-
Jesse Hanley
Yeah
Aaron Francis
... uh, human being, but you also have-
Jesse Hanley
Mm-hmm
Aaron Francis
... you bring in, uh, lots of consultants to help you do stuff.
Jesse Hanley
Friends of Bento. I, I, I call-
Aaron Francis
Yes
Jesse Hanley
... them friends of Bento. So, like, I got Nate, who's helping me on performance, and specifically this task was one that Nate delegated to me. Um, so Nate Berkopec, who run Speed Shop, he's like a Rails performance dev. Um, he basically, I contracted with him being like, "Hey man, we need to, one, move off Heroku and, like, re- remove our dependency on them as a platform just because of all the stuff that they've recently put out." And also just cost, it was just pure cost.
Like, I was on their largest database there, and it was costing me 12K for a single node a month. Um, if I wanted-
Aaron Francis
$12,000 a month?
Jesse Hanley
If, if I wanted high availability, which I did, uh, in the past month, it cost me 24,000- ... United States dollar, dollaroos. Um-
Aaron Francis
And those are good dollars. Holy moly.
Jesse Hanley
Yeah. And then, and, and there was a whole bunch of other items that Nate assigned to me. And so on kind of like the walk up to this, I, I had been doing, like, a lot of work with Nate. Like, I, I moved Redis to a new platform, which is also actually a really interesting thing to talk about. I optimized Elastic. I got my, uh, my Rails app performance all kind of in line, and Postgres was kind of like the last big, scary, expensive one.
Um-
Aaron Francis
Yeah, no kidding. Um-
Jesse Hanley
Yeah
Aaron Francis
... okay, so to give the people some context, if you wanna dive-
Jesse Hanley
Mm
Aaron Francis
... deep on some of, uh, the way that Jesse runs an email service provider as a single individual, which is still insane, uh, Jesse and I actually did a Database School podcast a while back, which you-
Jesse Hanley
Fun
Aaron Francis
... can find, uh, on the internet somewhere. Just search Database School Jesse Hanley, and that will come up. Um, so I know you-
Jesse Hanley
I think I talk about migrating. I think I talk about migrating in that one.
Aaron Francis
I think you do. Yeah.
Jesse Hanley
Yeah.
Aaron Francis
And that was over a year ago-
Jesse Hanley
I think I talk about it on the horizon
Aaron Francis
... I think. Yeah.
Jesse Hanley
Yeah.
Aaron Francis
Yeah. Um, so I know you don't share, uh, like, internal business metrics, but give us a sense of, like, the size of the database. I think that'll put things in context for people.
Jesse Hanley
Oh.
Aaron Francis
So what are we talking about on this migration?
Jesse Hanley
Yeah. I, I've actually shared rough, rough numbers to give people, like, a, a little bit of a gauge. So Bento is over the seven figures a year in revenue. It is just me and friends of Bento. Um, and then the data-wise, it's about, I'm just gonna round up a little bit, about five terabytes on the main Postgres. Then there's about four Postgres databases in total.
So there's the monolith, there's Bento Chat, so we have kind of like a secondary application, which is like a, a Help Scout kind of add-on tool. That's very tiny. Uh, and then I have Tatami, which is my side product, um, my, my, like, side project, and that's like a deliverability tool to help me run Bento, to monitor and all that. Um, and there's, there's actually a lot of my compet- not a lot, there's a few of my competitors also use that as well, and that's got a pretty big database.
It's about, like, three terabytes, but it gets truncated regularly, so it doesn't really kind of grow. Um, and then I've got, uh, I run my own email servers, and the queue for that is managed on a self-hosted Postgres instance on Hetzner. Um, so yeah. So got the four, four databases. So yeah, that's roughly, like, the sizes that we're kind of talking about.
And the migration from Heroku to PlanetScale was Bento and then Bento Chat, so those two ones. So the small one and then, and then the big one, and I did different migration strategies for both of them. Yeah.
Aaron Francis
Uh, is Tatami on the table for migration? Did we practice with Bento first, or are you just gonna keep Tatami-
Jesse Hanley
Tatami start- Tatami started on PlanetScale. So, um, when I spun that up, I, I made the decision, yeah, to start it with PlanetScale. And so I already knew PlanetScale was, was kind of good. Um, so it, it began its journey there, which is good. Yeah.
Aaron Francis
Okay.
Jesse Hanley
No migration for that.
Aaron Francis
So we don't, we don't have to suffer again for that one.
Jesse Hanley
No, no, no. Everything's moved off. Everything- Everything is done.
Aaron Francis
Yeah.
Jesse Hanley
But yeah.
Aaron Francis
So how do you feel now? Do you feel relief?
Jesse Hanley
I feel, still feel anxious. Um, and I'll probably feel, still feel anxious until I... I'll just probably always feel anxious, but I'll probably feel less anxious when I finally delete that last, um, Heroku instance. Like, it's still there.
Aaron Francis
Mm-hmm.
Jesse Hanley
I'm gonna keep it for a little bit. I, I'm, I'm gonna back it up and store it offsite, um, just in S3. But then, like, Heroku's just so fried. It's just, like, such a fried platform. Like, they've got, you know, normal WAL backups, right?
Aaron Francis
Mm-hmm.
Jesse Hanley
And they've also got, like, a pg_dump feature.
Aaron Francis
Mm-hmm.
Jesse Hanley
But the pg_dump doesn't work on large ter- like, large databases on their platform. Like, you hit manual backup, the whole thing completes, but then the upload fails because maybe, like-
Aaron Francis
It's brutal
Jesse Hanley
... the size of the upload or whatever. So then now I've gotta, like, build a microservice that pg_dumps, pushes it into S3, and it's just all that kind of stuff, so. Um, so I guess I'll be paying, what is it? Like, $500 to $1,000 a day until that's kinda done, so.
Aaron Francis
It's just an unbelievable amount of money. 12K a month. That's crazy.
Jesse Hanley
It's rude. It's rude.
Aaron Francis
It, it is.
Jesse Hanley
And, like, all... And, and all the data products on there are rude, frankly. Like, I'm, and I'm sorry, this is gonna probably be, like, a negative podcast and we're just moaning constantly. But, like, with, with Heroku, it's like with the Redis stuff, um, I had, I had, I had four or five Redis instances, which, which is a, a decent amount of instances. And the reason I have so many of these things is be- just because it spreads things out.
All those instances have high availability followers, and I'm just kind of, like, dividing the risk of a lot of these things, so if one thing goes out, things can kinda, like, still operate. And so with Heroku, I, like, had all these Redis instances across all these services. It was just, like, so expensive to run, and I had things over-provisioned in the case that, you know, 'cause I'm using Redis for queues, and I'm using Redis for cache, and rate limiters.
And if something happens, I get a massive surge of traffic or whatever happens as a backlog or a queue, you need that memory headroom to survive because you don't wanna be out shopping and your phone starts pinging because the Redis instance has OOMed. And so, um, it wasn't just cost. It was also, like, these kind of operational things, 'cause I'm trying to design Bento so I can run it as one person and sleep well at night.
Um, and so on the, on the Redis side, I moved all my instances to, um, a service called Dragonfly. Have you, have you heard of it?
Aaron Francis
No, I haven't.
Jesse Hanley
Bento's a, a Ruby on Rails app, and I was reading the Sidekiq docs, like, when I was talking to Nate about, "All right, where do we put these, uh, Redis instances?" I read on Sidekiq, I was like, "I wonder who Mike, who maintains Sidekiq, I wonder who he recommends."
Aaron Francis
Mm-hmm.
Jesse Hanley
And he, and he mentioned Dragonfly in there. And I was like, "Oh, what's Dragonfly?" Basically, Dragonfly is like a drop-in replacement for, uh, Redis or Valkey, and it's not necessarily... It's, it's like I don't... I'm not smart enough to understand the technology behind it. But it's not, it's not single-threaded, and it doesn't block s- the same as, uh, Redis and Valkey.
Um-
Aaron Francis
Hmm
Jesse Hanley
... all that aside, it basically operates exactly the same as, uh, Redis/Valkey, but I get more performance, more throughput, and, like, 7X the memory, uh, headroom.
Aaron Francis
Wow.
Jesse Hanley
And so that effectively meant that, like, Bento can scale, at the moment, Bento can scale probably, like, it can 5 to 10X, and I've got headroom support for that, um, which is phenomenal. And I, I did Tatami first for that one, and I just saw the metrics, and I was like, "This is ripping." Like, I'm just ripping through queues, and it's just, this is, this is awesome.
And then I did everything else. And I used a tool called RedisShake to do a zero downtime migration for that one.
Aaron Francis
Jeez, man.
Jesse Hanley
And so RedisShake is this great tool by... I can see you Googling, so you'll be able to tell.
Aaron Francis
I am.
Jesse Hanley
It, it's a Chinese company, right? It's, uh, Al- Is it Alibaba, or is it, uh-
Aaron Francis
Um, it says T-A-I-R dash open source is the GitHub org.
Jesse Hanley
Yeah, but who's the-
Aaron Francis
Trying to find-
Jesse Hanley
I think, I think it was extracted from some Chinese company. Um, and RedisShake basically allows you to, uh-
Aaron Francis
Alibaba Cloud.
Jesse Hanley
Cool. All right. It allows you to, um, effectively follow, uh, and move all the keys from one Redis instance to another.
Aaron Francis
Mm.
Jesse Hanley
And so I was able to basically, yeah, do zero downtime migrations of all of our, our queues, which was, yeah, really good.
Aaron Francis
Jeez.
Jesse Hanley
That's a fantastic tool. That's, like, works really, really, really well. Um, so yeah, I recommend. And, and I was just at home doing that. Just at home, moving one by one. I did it all in a day whilst my daughter was at daycare. Um, and s-some, some of our instances are really big, and it has to, like, kinda copy all the keys over, and then it uses keyspace notifications to kinda keep, keep tossing them over, and you just scale things down.
Aaron Francis
Okay.
Jesse Hanley
Switch, scale things up.
Aaron Francis
So you're running... So first of all, historically, you're not a developer. You can't say that with a straight face anymore 'cause you're 100% a developer.
Jesse Hanley
Yeah.
Aaron Francis
But historically, you're not a developer. You are running a single-person, uh, ESP north of seven figures. Or, uh, you live in Japan with, with your partner and daughter, and have this wonderful life. I'm always seeing pictures of you out exploring with the kiddo.
Jesse Hanley
It's a fun life.
Aaron Francis
I wanna, I, I wanna hear, I think a lot of people are like, "Whoa, whoa, back up. You said seven figures," and then we started talking about Postgres. So we gotta talk-
Jesse Hanley
Uh-huh
Aaron Francis
... just, just a little bit about how you've managed to create this lifestyle. But as a listener of the show, you're familiar with this part. Before we do, this episode is brought to you by NativePHP Ultra. Now that NativePHP for mobile is free, get access to all the first party premium plugins, AI skills, and priority support for you and your team with the NativePHP Ultra plan from $35 a month.
Or use code MOSTLY TECHNICAL for $100 off the yearly plan. And Jesse, one of the NativePHP boys, is at Laravel Live Japan. Shane is there-
Jesse Hanley
Shane
Aaron Francis
... so you should meet him. Yeah.
Jesse Hanley
I, um-
Aaron Francis
This episode is Also brought to you-
Jesse Hanley
Sorry, and Simon-
Aaron Francis
Simon
Jesse Hanley
... Simon's also here.
Aaron Francis
They're both there?
Jesse Hanley
Simon and, Simon and Shane are both on stage today or tomorrow, I think.
Aaron Francis
Oh, there you go. So both the NativePHP boys are there, so go up and say hello to them. This episode is also brought to you by Vasc. Vasc is Pusher compatible WebSockets build sanely. There are no fan-out fees. It's powered by Cloudflare. Get the first three months free on any tier using coupon code Mostly or Technical, and you can find them at vasc.dev.
And finally, Bossman Chris is hiring. So if you want, uh, to go work with Bossman Chris at Internachi, you can go to, uh, actuallytechnical.com. Fantastic piece of work there.
Jesse Hanley
That's cool.
Aaron Francis
And you can work with Bossman Chris on their small team of exceptional developers. So thanks to Internachi, Vasc, and NativePHP for sponsoring this episode. Did you meet them last night, or have you not met them yet?
Jesse Hanley
Uh, I'm still sleep deprived. I don't know who I've met.
Aaron Francis
A little bit fuzzy.
Jesse Hanley
I'm, I'm pretty sure I'm, I've, I've shaken people's hands. Um, yeah, so I went to the speakers' dinner last night. Uh, I shook some people's hands. People's names are fuzzy.
Aaron Francis
Mm-hmm.
Jesse Hanley
Maybe. Maybe.
Aaron Francis
Okay. Uh, so before we dive into how you've created this life for yourself, how nice are the Laravel people? Are you having fun?
Jesse Hanley
Yeah. So I, I came, um, I came yesterday. I mean, we were just talking a little bit before, um, it's... I don't know. It's, it, it is, uh... What is it? It is the vibe of the community is really nice. Like, I, uh, met Ryuta, who's the organizer-
Aaron Francis
Mm-hmm
Jesse Hanley
... in Fukuoka. And so by some crazy circumstances, like, the one Laravel Japan guy lived in Fukuoka in Kyushu, so south of the island, um, like two streets over from me. And I bumped into him, and then I kept bumping into him at, like, the sup- our, our local supermarket. And then, um-
Aaron Francis
No way
Jesse Hanley
... he's like: "Hey man, do you wanna, like, come to..." And then he moved to Tokyo, which I think was not the right decision, and I think he also wants to move back. Um, but, uh, yeah, he, he messaged me. He's like: "Hey, do you wanna come to Laravel Live Japan?" And I h- and I, I don't go to dev conferences, like, historically. I- I've always just gone to, like, business-y ones.
Aaron Francis
Mm-hmm.
Jesse Hanley
So I go to the, uh, DCBKK one in Bangkok, and I usually do tho- those kind of ones. And so I was like, "All right. I really wanna, like, see what, what this is all about." And it's, it's different. Like, here people, they don't really necessarily talk about their, their work. They kind of talk about PHP and-
Aaron Francis
Mm-hmm
Jesse Hanley
... like the things that people have built in and all that. It's just, it's just different, and it, it's very cool. And everyone's very, like, kind. People, you know, when you walk up to a group, they, you know, welcome you in and stuff. So it's-
Aaron Francis
Mm-hmm
Jesse Hanley
... it's very, it's like inclusive. That's the word I'm looking for. It's an inclusive, pretty positive, uh, community. So yeah, I don't know. I like it. I, and I'll see more of that today, I think. Um, but everyone's just really, like, kind and, and sweet, so yeah. I like it. It's cool.
Aaron Francis
Good. I'm so, I'm so glad that's been your first, your first Laravel experience. I know you've been, uh, an admirer from the outside. I also saw you tweet yesterday or today that-
Jesse Hanley
What you have to learn next
Aaron Francis
... you had to learn what Laravel was just before you showed up, which I found hysterical. Um-
Jesse Hanley
Yeah
Aaron Francis
... so how long-- H- how, how did you do this? How long have you been running it, and how did you get to the point where you're running this seven-figure business basically by yourself? I'm gonna keep saying basically 'cause you have a, a support person, but you are-
Jesse Hanley
Mm-hmm
Aaron Francis
... the person who runs development, product, uh, second tier customer support, all of that stuff. Like, how is that even possible? Because I think a lot of our listeners, myself included, would love to be in that spot. Uh, it just feels so unattainable.
Jesse Hanley
Um, I, I don't know. It's a real- it's like a hard, it's a hard question because you kinda wanna give, like, an answer that is replicatable, but I don't, I don't know how I would, like, replicate it to the extent that I would, like, land in some of these circumstances. Like, if I kind of, like, look back, um, I ran like a... In 2015, I, like, went out to work for myself. Um, and at the time, I was doing, like, marketing and, uh, consulting and, you know, gr- you know, you'd call it growth hacking in, in 2015.
Aaron Francis
Mm-hmm.
Jesse Hanley
You know? Where you'd, you're just trying to grow companies. And I built, like, an agency, and I think when I was doing the agency stuff, that taught me sales, and it taught me, yeah, also, like, how to run some of these businesses. I, I was doing a lot of stuff for SaaS businesses, but I, I always wanted my own SaaS company. Um, and I always wanted to be, you know, to learn how to code. And then I, with the profits from the agency, I hired Andrew Culver, who's like-
Aaron Francis
Mm-hmm
Jesse Hanley
... a very well-known, uh, Ruby on Rails developer, and basically paid him to build what I wanted and mentor me. And then over time, I just took more and more of that, um, and then till I was just doing it all myself. And then I sold my agency in COVID, and then I went full...
Yeah. I sold my agency in COVID, and at the time, I also had, uh, my first kid, uh, which I, which I sadly lost during COVID.
Aaron Francis
Mm.
Jesse Hanley
And during that first year of kind of like grief, I kind of just worked on Bento. Like I, I didn't, I didn't do anything else. I just kind of grinded. And i- if you have a look at, like, the MRR charts, it's kind of like static. Lose my child, also sold my business kind of like within the exact same window, which is like a very, like, bizarre feeling.
You know-
Aaron Francis
Mm
Jesse Hanley
... you get all this money, but then you're going through, like, the saddest part of your life. And then the chart starts just growing 'cause that's kind of all that I had. Um, and for about a year, yeah, for about a year it became, Bento then became, like, quite viable. Uh, and then we tried again, and we had our daughter, Evie, who's beautiful, and she's now three and healthy and thriving.
And yeah, it's just kind of been, been working on it kind of since. And, and I, and I, and I've had to, and especially in the last couple of years, it's taken me a bit to like pull myself out of my work. Um, but a lot of like the bricks that were laid down were kind of in that hard year period, I think, of just grinding, selling, building, focusing.
Um, 'cause at, at the time Bento did like everything, and then I really just focused on the email stuff only, which I think really helped as well. So yeah, that's kind of the journey. Like like to, to get to, to the, the, like where I am now is mostly just, I don't know, almost like a necessity for me-
Aaron Francis
Hmm
Jesse Hanley
... to keep me distracted and, uh, I don't know. Yeah, mostly distracted. Uh, and then yeah, the last couple of years have mostly been like trying to, uh, pull back a little bit from that and-
Aaron Francis
Mm-hmm
Jesse Hanley
... uh, yeah, just focus on like family and all that. And then, and then especially in like the last year, the, the goal now is, is again, to reduce more stress. So reduce costs, uh, make things more available, make things more resilient, maybe even at PlanetScale, have three nodes instead of my one node. So if one goes down, things stay up.
Because, yeah, I don't know. I j- I just, I, I want a much calmer, uh, stress-free life with, with my kid. Um, and, and what's kind of interesting is like as the business has grown, it hasn't necessarily gotten like you'd think, oh, like what's... Like is there a difference between a seven-figure business and a 15K a month business?
And interestingly, like the 15K business felt more stressful at the time than it does now, I think. Um, and I think it's just 'cause I've just learnt so much over that grind, and I've faced so many things. I've had outages. I've had just, you know, everything that goes wrong in running a day-to-day business. But yeah, I'm, I'm more at peace now than I, I was in the grind.
Does that make sense? Does that kind of rant-
Aaron Francis
No, it totally, yeah
Jesse Hanley
... a little story make sense?
Aaron Francis
It totally makes sense. Um, and I, I dare not go into it, but, um, you and I share some similar history there. Uh-
Jesse Hanley
Yeah
Aaron Francis
... and that's as much as I can say because this is a non-crying show today. Um- ... one thing when I, when I got let go from the last full-time job I had, you and I, you know, were talking a little bit and one thing that you said that stuck with me, 'cause I was talking about some like ancillary services I could do and stuff like that.
Jesse Hanley
Yeah.
Aaron Francis
And you said like, "Do the hardest thing." 'Cause I was like-
Jesse Hanley
Yeah
Aaron Francis
... "Ah, I don't wanna, you know, I don't wanna host people's databases, but I have all these great database ideas." And you're like, "No, no, no. Do the hardest thing, which is host people's databases." Which seemed insane to me, like, but you were, you said, "I'm, you know, I'm a... in not as many words, "I'm, I'm a solo founder and I run my own email servers, and that's the hardest thing."
Jesse Hanley
Mm.
Aaron Francis
"And it's worked out great for me." So wh- where does, like where does that philosophy come from, and why did you decide to do the hardest thing as a, as a solo founder?
Jesse Hanley
Yeah, let me just like recenter myself a bit. Um, I just, I, I actually think it's more... What's the word? I think now it is more important to do the hardest thing because we now have so many w- even thinking about like all the Postgres stuff, right? We had, um, we'll talk about this later, but like we had during our migration a, a weird thing go wrong with Bacado.
Anyway, uh, something went wrong. You got minutes to fix it. Run a prompt. Instant answer from Five Five. It's correct. Spit it into the thing. It's resolved. The issue's resolved. So like things that used to be very stressful, very hard can now, it, it's just a lot easier to figure those things out, and there's just not too much competition in the hard things because people don't wanna do the hard things.
And like Bento, um, it's over been over seven years or whatever. Not many people are willing to grind on something for that amount of time, and it's required to f- kind of find product market fit in doing the hard things. And so y- you are better off choosing the hardest thing possible where not many other people are willing to do it and, and, and just stick at it until it kind of pays off.
You know, my advice to you, which was like you should basically start a competitor to, um, you know, PlanetScale, Superbase, et cetera. I don't know. I think it would've been really interesting if that was what you did. I think it's really cool all the stuff you're doing now, but what if it was Aaron running, you know, the database orchestrator business where you've got-
Aaron Francis
Mm-hmm
Jesse Hanley
... all these Kubernetes clusters doing it. It'd probably be very stressful. You'd hate it. Um, but what could have come of that? I don't know. Um, and so yeah, I, I do think the, the hard thing does pay off. And a lot of niche businesses I think, um, 'cause the advice used to be in like 2015 to 2019 to kind of pick niche things. Um, and you're finding that get challenged quite a lot.
You know, look in the Shopify marketplace-
Aaron Francis
Mm-hmm
Jesse Hanley
... uh, to find a niche SaaS business. But it's like, all right, well, one, Shopify releasing their own do it yourself app builder. Two, it's now flooded. You can't even get your app approved. Like there's just so many reasons why that niche marketplace thing is just being challenged right now. Um, and so yeah, there, there are still riches in the niches, but the, it's just becoming a lot rarer now.
And so yeah, I think especially with all the tooling and all these AI things, if you're already striving for like excellence and like, you know, I wanna be the best developer that I can. I want to offer the best product that I can. Um, if you come with like that attitude and philosophy and then have these effectively AI to help assist you on those things, you, you can actually kind of do anything that you want with enough time.
Um, it just does take time, and it does take effort, and so I kind of feel like that's better pushed towards the big thing than the small thing.
Aaron Francis
So I see you, uh- Onix.com, the everything app, constantly having like, uh, good and reasonable takes on both like AI usage and indie hackers, uh-
Jesse Hanley
Mm-hmm.
Aaron Francis
And usually the good and reasonable takes on indie hackers are like, "You shouldn't do this," or like, "You should do something different," or stuff like that. So where do you think the current, uh, you know, indie hackers are, are falling down or failing, besides not taking on the big, you know, the big, hairy problems? Like, what are, what are the people missing out there right now?
Jesse Hanley
The thing with indie hackers is like, to give indie hackers cre-cre-- and like I, I don't, I don't nece- I don't hang out on indiehackers.com or any of that kind of stuff, right? Like for me-
Aaron Francis
Mm-hmm
Jesse Hanley
... I'm just trying to build a business, and so I mostly hang out with just people just trying to run normal businesses. So with the indie hacki cr- indie, indie hacker crowd, the thing that I do admire about them is they're trying to be financially independent. They're trying to earn, they're trying to turn the internet into an ATM for themselves and pay for their food and their life and their family. So that's super admirable. Now, what you build to solve that problem does matter quite a lot.
And so, like when I see another guy, a guy built like a budget tracker. I, I, I saw the other day and I, and I replied, "Don't build that. That's stupid." Like, like- ... don't build a budget. Don't build a budget tracker. One, no one's gonna use it. Two, the budget trackers, if you have a look online, they don't even make that much money.
Aaron Francis
Mm-hmm.
Jesse Hanley
Um, it's a dumb problem to solve. So like, and you're not gonna make any money. Like selling budget tracking to consumers who are price conscious, like what are you doing here? Like just stop. Like do something else. Build some enterprise value somewhere. Charge someone $1,000 a month. Like try, do the hard thing. Sell. Talk to people.
Don't just like, you know. So a-a and the thing is, you know, with indie hackers that are vibe coding and stuff, I've seen, I have friends that have vibe coded, in my opinion, awful software. It works.
Aaron Francis
Mm.
Jesse Hanley
It's not, it's not that great. But they're really good at sales. They've sold it to some enterprise people. They're earning 5 to 10K a month from their new thing that they built six months ago. Um, and that's the way you gotta do it. And I think about like Tatami. I built Tatami. So I, I went to Canada to go see, uh, the in-laws, right? Um, and I told my wife, I was like, "Oh, I'm not gonna work, I'm not gonna work." And I'm like, "All right, but I can, I can try this, I can try this agent stuff," right?
Um, you know, if I'm in the kitchen and I'm, I've got my little cursor mobile out and I'm-
Aaron Francis
Sure
Jesse Hanley
... running a cloud agent, she's not gonna notice. I go to the toilet for 20 minutes. She won't, she won't, she won't notice. And then, um, I, I built Tatami because I, I was using a, a tool which I won't name. I was using a European tool that was costing me about $1,000 a month, about $1,500 a month, you know, an expensive tool to monitor my email traffic. And they weren't, they were doing that, not to insult some of the audience, but they were doing that European thing where they were kind of like pushing back on everything quite rudely anytime I asked for a feature.
Aaron Francis
Mm. Mm-hmm.
Jesse Hanley
And I was like, "Okay, well, don't do that. You've got agents now. Like I got agents now, so I'm just gonna like rebuild your product from scratch." So I rebuilt the product from scratch on holiday, then immediately sold it to two other ESPs. Like the minute it went live on Bento, I was like, "This is valuable for me." Sold it to a couple of other ESPs. The MRR paid for my PlanetScale database, paid for my Elastic clusters, paid for my Redis, plus rent, plus food, right?
Aaron Francis
Oh my gosh.
Jesse Hanley
All within, all within a couple of months. Um, and then now it kind of just cruises, right? Because Bento's my main thing, and then Tatami, I just really want it to like kind of cover costs. Um, but with that business, you know, to kind of round back to the, the, the way I would approach it is like I had a goal. It needed to like deliver business value to myself. It did that. Immediately when I saw that, I sent it to my friends.
I sold it to my friends in the industry. It was profitable, paid for rent, paid for food, and then I went on to do my other stuff and grow the, the, the main core business. But that's kind of like how you gotta do it. You gotta take these things seriously. They've gotta deliver business value. You've gotta sell 'em, and you gotta have a goal. Like Tatami, you know, the average person paying for it is paying like 250 to $1,000 a month. I actually don't, 'cause Stripe kind of messes up all the re- it's like around, that's the price range for like the average customer there, right?
Aaron Francis
Mm-hmm.
Jesse Hanley
And so for me, I just wanted to sell some licenses and then get that off the ground and, and now it's all good. But that's kind of like the approach. Find business value, aggressively sell it, um, and try and, yeah, build a living for yourself. Um, yeah, does that, does that answer the question?
Aaron Francis
Yeah, it totally does. It sounds like, uh, pick better problems is step zero. Um-
Jesse Hanley
Yeah
Aaron Francis
... pick problems that people are willing to pay for. Um, I think one of, I guess one of the questions I would have is, so like Tatami, you're in the game and you know all the players.
Jesse Hanley
Yeah.
Aaron Francis
With Bento, what did you do to get like your first-
Jesse Hanley
How did I end the game, huh?
Aaron Francis
I don't know. Yeah. How did you get your first 10K in the door there?
Jesse Hanley
So I was already doing marketing consulting and I had the marketing agency.
Aaron Francis
Mm.
Jesse Hanley
And so I already knew that the highest cost marketing-wise in all these businesses was the ESP. So I, I knew that, um... And, and we were writing, I was in Drip, I was in ConvertKit.
Aaron Francis
Mm-hmm.
Jesse Hanley
I was writing emails for clients. Our, our team was writing emails for clients. I didn't like Drip. I didn't like their redesign. Um, there were some features that I didn't really like. So delusionally, I thought I could do that myself. I don't know why. Like, but at the time I was like, "I c- I can do this." Um, and I couldn't for the first, let's say four years. Like I, I was building everything and a lot of stuff-
Aaron Francis
But Andrew could.
Jesse Hanley
But Andrew could. Um, and, and interestingly enough, all the decision, all the architectural decisions he made, like a lot of them have held over time, like so, so beautifully and so well. So th- there's something there about like the craft of, of good engineering. Um-
Aaron Francis
And hiring good people 'cause he's-
Jesse Hanley
And-
Aaron Francis
... he's a very smart boy.
Jesse Hanley
Yeah. And at the time, you know, that was expensive for me. You know, I, I could have, you know, maybe done cheaper courses and tried, but like, that's like another thing. I think like if you wanna go out on your own, I, I do think it's like, you know, keep the day job, pay pe- like mentorship is, is, is good. If you can find good mentors and you can find people that can actually like teach you how to do good code, you can learn the rest and you can kind of like pick it up pretty fast from there.
But without An- without Andrew, I wouldn't be here. At all today.
Aaron Francis
Mm-hmm.
Jesse Hanley
So I, I do owe, like, the whole of Bento and, like, all of that to Andrew because if I didn't have Bento, like, I would've sold the marketing agency and then would've had to start, like, a new consulting firm or a new agency or something. Um, but especially for, like, agency owners, like, I'm sure there are a lot of, like, dev agency owners that, like, listen to this podcast. A lot of them want to make the sidestep from agency to product.
Aaron Francis
Yeah.
Jesse Hanley
And yeah, it's just, you just gotta not really... You, you gotta build the product on the side. It always ha- it has to be a side thing 'cause you need your main income, and then you have to design that product in a way that you can sta-step up revenue enough to, to eventually escape. Um, and, and when you think of product selection in that regard of, "All right, well, I have to quickly step up revenue," it actually does narrow down the amount of products that you can pick and build, you know?
Um, like Bento's average revenue per user is about 175, right?
Aaron Francis
Wow.
Jesse Hanley
Um, which is quite high. I think ConvertKit's is like 90. They took off their public metrics, but I remember those being like 90. MailChimp's is probably $5 or $10 or zero. Um, you know, self-serve. Klaviyo is probably up there. Pro- Klaviyo is probably like 100 or something. Um, Bento's average revenue per user is, is, is decent, is a decent clip. And which is why I run Mostly Technical ads.
Aaron Francis
Yeah.
Jesse Hanley
Because on average, on average, a sign-up is, uh... You know, all this stuff ties together. On average, an average sign-up is 175, which means that if I'm paying however many thousand, I don't actually need that many people to listen to Mostly Technical and convert, and after a certain amount of time, the amount of people that have converted MRR is equal to my subscription. And then that just continues to compound over time, um, which is why you hear my ad every week.
But that, but if I had a product that was $30 or $90, Mostly Technical ads won't work.
Aaron Francis
Mm-hmm.
Jesse Hanley
Um, and so again, it's all this product selection and picking the hard thing and picking a product that, yeah, all these things are kinda tied together, which result in the success and result into getting to a certain amount of revenue.
Aaron Francis
Um, okay, so two things before we get to Hell Week. One is you should talk to, uh, Daniel Colbourne, the MC at Laravel Live Japan, 'cause he runs an agency and he and his, uh, co-founder are trying to get into product, so that-
Jesse Hanley
Cool
Aaron Francis
... uh, you guys could have a lot to talk about there. The other thing is I wanna hear more about the friends of Bento. So we've covered Nate, who does-
Jesse Hanley
Uh-huh
Aaron Francis
... Speedshop. He's a Rails guru. Uh, we covered Andrew, who got you started off on the right foot. I think this is something solopreneurs, indie hackers, bootstrappers-
Jesse Hanley
Mm
Aaron Francis
... don't do, is, is hire expensive people. So who else is kinda in your stable of friends of Bento?
Jesse Hanley
I forgot his last name. Um, a while ago, Andy... It's gonna kill me. There was a Postgres guy called Andy. Andy, Andy, Andy. That's gonna kill me.
Aaron Francis
Yeah. Yeah, yeah, yeah, yeah, yeah.
Jesse Hanley
You know him.
Aaron Francis
Atkinson. Yeah.
Jesse Hanley
Awesome. Good, good.
Aaron Francis
Got it. Nailed it.
Jesse Hanley
Memory- memory-
Aaron Francis
Got it in one.
Jesse Hanley
Nailed it. Nailed it. Um, Andy Atkinson, uh, very helpful talking a while ago around when we did our podcast.
Aaron Francis
Mm-hmm.
Jesse Hanley
I was anxious about a lot of Postgres stuff. Talking to him, I was, I was cool. I was cool after talking to Andy. And that's the thing. Whenever you get anxious, sometimes you just need to talk to someone.
Aaron Francis
Mm-hmm.
Jesse Hanley
And so I was anxious about Postgres. Talked to Andy, no longer anxious. Anxious about other things? Not that. And so th- that's, that's kinda j- I was, I was anxious about my costs. Talked to Nate, now I know how to bring them down.
Aaron Francis
Mm.
Jesse Hanley
Um, a lot of the AI stuff, so we were really early on, um, releasing an MCP, a CLI, all that stuff. Uh, I got a guy called Zach who lives in Kyushu. He's awesome. He's, he's a Laravel developer. He's at Laravel, uh, Live Japan. Um, great guy, super sweet, family man, love him. Um, he, uh, he builds, like, a lot of our AI stuff and, like, our integration.
So-
Aaron Francis
Cool
Jesse Hanley
... he's, you know, the reason we have so many dev integrations, including the Laravel one, uh, Node, all that, that's basically Zach hacking. And, and he, he's a true friend of Bento. He basically just... I just let it, I just let him do whatever he wants. So he's like, "I wanna go work on the MCP." All right. He comes back and goes, "Oh, the MCP is ready." "I'm gonna go work on the skills." Comes back, that's done.
Um, so he's definitely a friend of Bento, and then that's just like a c- contract basis, so he works kinda when he wants and then just bills me for it, and that's super, you know, chill. Um, when I was building the workflows thing, like, you know, this is five years ago, there was a guy called Staz. Um, there was another guy called Khaled.
Uh, they helped me kinda like build the V1 of Bento's workflow automation platform.
Aaron Francis
Mm-hmm.
Jesse Hanley
'Cause I di- I didn't know React. I was a b- I, I was an awful React. I didn't know any JavaScript, and so Khaled did, and so he taught me the front end. And then Staz taught me how to do, um, how to, like, design the back end workflow engine, right?
Aaron Francis
Cool.
Jesse Hanley
And so Staz helped me build the backflow work- flow engine. Khaled does the front end engine. Learn what I can from them, end those engagements, keep building, keep building, keep iterating, and then now I think we've got the best workflow product out of all the ESPs. Um, maybe a bit egotistical to say, but I, I really like our automation platform.
Aaron Francis
Mm-hmm.
Jesse Hanley
Um, but the core is from those two guys. Um, so yeah. So they're, they're the friends. I'm sure there's more that I've, I've forgotten, but they're... Yeah. My general approach is if there is a problem, find a friend, pay the friend, learn, and then you generally resolve the problem. Like-
Aaron Francis
Yeah. Yeah. So why not, why not hire, I guess is the obvious question there.
Jesse Hanley
Um, with my agency, I had, like, quite a lot of people working for me. Um, and peop- people are great, but people, people are hard. A- I think agency owners listening to this will resonate with that quite a lot. People are hard. People get sick. I had, uh, one developer working for me, 'cause I was like, "I'm gonna hire." All my friends tell me I should hire, so I hired help.
He broke up with his girlfriend, went MIA for two months. He was fantastic at the start. Never heard from him again, you know?
Aaron Francis
Wow.
Jesse Hanley
Um, he was like a 10X, he was like a 10X, like, Ruby developer. He was just young. Um, and, you know, came out the, the gates swinging and then he's had girlfriend problems. So that stuff's really hard. Um, and a, a big philosophy that I have is to be a cockroach.
Um, and, uh, core to that is keeping expenses low.
Aaron Francis
Mm.
Jesse Hanley
And so if Bento had a situation where we lost 50% of our revenue, we're not going anywhere. If we lost 70%, we're not going anywhere. Um, and that brings on so much peace, um-
Aaron Francis
Mm-hmm
Jesse Hanley
... and allows you to just deal with things so much easier. When a client churns, it's not the end of the world. When an enterprise client churns, it's not the end of the world. Um, things just kinda like keep trucking and, you know, Facebook just did layoffs, Cloudflare just did layoffs. Everyone's doing layoffs. Bento's not doing layoffs 'cause we don't have anyone to lay off. Um, so, so there, the-the-there's that.
And, and I think a lot of companies are kind of, you know, trying to, yeah, figure some of this stuff out, especially small teams, right? Um, so yeah, if, if, if I, if I wasn't writing software, like, 'cause I, I write software and do sales as well, so I, I kinda do those things, um, together and arguably for the last six months I've mostly been coding and doing dev.
Um, and then sponsoring things, like that's kind of loosely the marketing. And so soon I'll probably go into like a marketing and sales phase after I've done all this migration work. Um, but yeah, yeah, you can ju- you can just do quite a lot yourself now. And on the dev side, just with, with agents, like when 5.4 came out, I mean, you know, you had all the Opus stuff last year, but for me 5.4 and 5.5 really felt like I had an engineer next to me.
Aaron Francis
Mm.
Jesse Hanley
Like the code's just so good. And then when you layer on things like I got Greptar for code reviews, Cursor BugBot, I got Detail for vulnerabilities, and basically regular pen testing through them, and the code that is coming out is just phenomenal. You know this-
Aaron Francis
Mm-hmm
Jesse Hanley
... better than anyone else. So, you know, do I need engineering help? I don't know. Like I, I, I would be hiring for different reasons if, if, if I, if I wanted help. It, it wouldn't be because I'm blocked on code. I'm not blocked on code. I'm not blocked on shipping. I got a product that is good and sellable. Um, so yeah, finding reasons to hire is a lot harder.
Even support, like our support volume at seven figures is less than it was at 10 to 15K. Um-
Aaron Francis
Wow
Jesse Hanley
... the product's, the product's better. Um, we use agents for tier one support, so basically someone will reply in, agent will scan docs, respond. We keep improving the docs. It knows our whole website, all that kind of stuff, and just stuff is getting resolved. A lot of our tickets were like approval based, so someone emails in, "Here's my business, approve us." Agent basic- that would always be like four or five emails, right?
Agent auto does that now and then-
Aaron Francis
Mm-hmm
Jesse Hanley
... we're just hitting buttons. We're just like, "Yeah, that's good, that's good, that's bad, that's good." Um, and so even Anya, like who does the support stuff and Discord when I'm sleeping and calls me when the app goes down- ... um, her, her plate's emptying up. Her plate's emptying up. Like there's just way less work for her to do.
Aaron Francis
That's awesome.
Jesse Hanley
You know? Someone says, "How do I..." You know, European, "How do I change this invoice thing?" Whatever. "I need to change all backdated invoices." And you're like, "Okay, I could PDF this or I could get an agent to build a feature so they can self-serve do it again, and I never get that ticket again."
Aaron Francis
Yes.
Jesse Hanley
So that's kinda like the feedback loop that's now occurring, whereas before you'd be like, "I need to put a, a man here, a, a, well, like a human here to do that task."
Aaron Francis
Mm-hmm.
Jesse Hanley
You know, do that mon- but then now it's 30 cents on Cursor credits. So, um, and then I never have to hear about a European, um, invoice amendment ever again.
Aaron Francis
A Ger- a German invoice. We can be specific. That's okay.
Jesse Hanley
Yes, yes, yes, yes.
Aaron Francis
Yeah. Okay. So it sounds like you need engineering help, and when you need it, you hire someone who's a world-class expert at that, and they get you all sorted, and then you kinda move on, and you take their learnings and bake 'em in and then keep going.
Jesse Hanley
Perfect. Yeah. And, and Nate, Nate has a per- like if anyone's listening going, "I should probably offer that as a service," Nate's retainer service is really well scoped. He basically, you engage with him for six months. He's a personal trainer for you. Do like Speedshop retainer.
Aaron Francis
Yeah, that's what I-
Jesse Hanley
Speedshop Rails container
Aaron Francis
... that's what I was looking for, Speedshop-
Jesse Hanley
Yeah
Aaron Francis
... Rails retainer.
Jesse Hanley
Yeah.
Aaron Francis
Thought it was speedshop.io, but that's not right. It is-
Jesse Hanley
.co I think
Aaron Francis
... speedshop.co. There you go.
Jesse Hanley
Yeah. And so then-
Aaron Francis
Y'all check that out
Jesse Hanley
... and so, and then you pay like, you pay basically monthly for a six-month minimum, and you're in his Slack. He gives you a report, and then he just says, "Do this." And then I say, "I'm doing other stuff. Leave me alone." And then it's just like that-
Aaron Francis
Mm
Jesse Hanley
... for, um, for a few months, but it's very good. And then at the end, in theory, I've done all the stuff that he's told me to do. I've saved a whole bunch of money. And like even just with him telling me to do the PlanetScale stuff and being like, "I can't pull this off any longer," like that'll pay for his whole retainer. Um-
Aaron Francis
Yeah
Jesse Hanley
... you know? So they're just like highly valuable services, and it's ju- it's just a good way to do it because otherwise you hire someone, you go, "All right. I need to hire someone to do the scary stuff." So you hire them, they do all the scary stuff. It's done in six months, but then now you've gotta find more work for them to do. Um, and then now it's an ongoing cost, and it's, it's quite a high cost. So I'm not anti-hiring. There are businesses that do it.
Like if you're not a technical founder and you're not coding day-to-day, you need to hire a developer and, and, and then you need to hire people under them in case the first one leaves and, you know, th-there's this stuff. But if you are a solo developer running your own business, very different problem set and, uh, reasons to hire.
Aaron Francis
I wanna hear about, uh, why Nate told you to move and then the, the hell, the ensuing hell weeks, hell months. But first we need to thank friend of Jesse's, actually, Honeybadger.io. Big-
Jesse Hanley
Use them
Aaron Francis
... big Rails company. Use them, love them. If you've outgrown your error tracker but don't need a six-figure monitoring platform, it's time to move fast and fix things with Honeybadger. They've been a good, a member of good standing in the Rails community for a long time, but you can find out more at honeybadger.io/for/laravel.
So if you want error tracking for Laravel, you can check out honeybadger.io. This episode is also brought to you by Bento.
Jesse Hanley
Bento is the easiest way to send email using an AI. We can send all your marketing email, transactional email, email newsletters, broadcasts, products emails, anything email we can do. Um, and then we've got a whole lot of other things that you'll magically discover over time, um, that will just be nice things. You go, "Oh my God, is that included in the subscription?" And you, and then you'd be like, "Oh my God, this is amazing." We'll chat.
And then, uh, I guess a mostly technical offer. If you sign up in the next seven days and tell me listening to this is why you signed up, I'll give you a special discount.
Aaron Francis
Okay. Well, you gotta do the advertisers right. You gotta give the URL as where, as well.
Jesse Hanley
Oh.
Aaron Francis
So where can-
Jesse Hanley
Bento
Aaron Francis
... users find?
Jesse Hanley
bentonow.com. And then it, you, you... If you ever come across other Bentos, make sure it's bentonow.com. There are other ones that I am currently proceeding trademark things with. Don't go to those ones. Go to bentonow.com.
Aaron Francis
Okay. So thank you to honeybadger.io and Bento- ... at bentonow.com. Well done. First-
Jesse Hanley
Yay
Aaron Francis
... first, uh, guest ad read. That was perfect.
Jesse Hanley
Yay.
Aaron Francis
Oh, that was great. Um, all right, so let's talk about it. What was your hell months, many, many hell weeks? How did that go? Um, you've successfully made it, which is why you're here, otherwise you'd be off-
Jesse Hanley
Hmm
Aaron Francis
... stressing, um, and not hanging out with me. So we can start with the end worked out great, but talk, talk through the bumps along the way and why, why Nate initially said, "Dude, you gotta get out of here," beyond, you know, 12K a month, I suppose.
Jesse Hanley
Yeah, no. I mean, look, the, the money's a big one. So when I brought on Nate, the general vibes were my costs are too high. I'm aware of this. I need to bring them down. I am a cockroach. I must defend. I, I must be in defense mode. So, um, he audited all my stuff. We worked out loads of cost optimizations, and by part of the value of working with someone like Nate is it's like a personal trainer, right?
Like, you know, a personal trainer's effective. Eh, depends. But- ... they get you to show, they get you to show up at the gym, right? If you're paying, you show up at the gym.
Aaron Francis
Mm-hmm.
Jesse Hanley
And that's what working with Nate is like. It's like showing up at the gym. When you're paying him, you know, a few thousand dollars every month, you show up and you do what Nate says. And so I started looking at all my stack, and I started with easy stuff, so I started with, like, Elasticsearch. I got a whole bunch of Elasticsearch clusters for segmentation, email reports, all that. Um, learnt loads about Elastic.
You know, probably put my data in different tier systems, cut costs down. Basically got my Elastic cost down to half-
Aaron Francis
Wow
Jesse Hanley
... which was, um, fantastic. And you know, when you think about that, that's like, that's, you know, thousands of dollars a month every month over years, right, that I have just wasted from not just doing the work. And so now I'm gonna have that money, which is nice. Um, then, so that was pretty easy. That was kinda like warm- warming myself up, and then I did some code stuff.
You know, there wasn't too many performance in-app stuff because, um, I... It's just something that, like, it's work that I enjoy. It was really, like, the data that we stored that was, like, the largest issue. So then next we looked at Redis, um, and I mentioned earlier in the episode, like, I use Redis for limiters, queues, and cache. Um, and looked at loads of options, looked at self-hosting Valkey, uh, looked at, you know, AWS managed solutions, all that kind of stuff.
Came to the conclusion that Dragonfly was a good option for us and the best option. The price to performance ratio was off, off its head. You know, that was kind of the main one. So it was just- ... the price to performance was great. I get more headroom. I can grow a lot more and, uh, sleep well at night. So that, that was good. Um, used Redis Shake for those. Um, I had one kinda like, uh, big instance that was hard.
The smaller ones are, like, really, really easy. The big one, um, was kind of a little bit tricky, but I, I got that done, um, with more or less zero downtime. The, the downtime was just, like, scaling down workers, uh, background job workers, and then, um, switching out the variable and then scaling back up. So, you know, that, that was kinda chill. Uh, and then I started working on Postgres, so Postgres was the hardest one.
And so with Heroku, the reason it's hard is because Heroku have made these product decisions that make it hard deliberately because they hate you. And so- ... one of those decisions that they've made is they've decided that logical replication is not something consumers paying 12 grand a month should have.
Aaron Francis
Hmm.
Jesse Hanley
Um, and so the main, the main way that you migrate a Postgres database, I guess, with anything that's, like, what? Version 10 or 11 or more or whatever, is logical replication. Um, which is basically just plug another database in and it follows. Uh, you can probably explain it. I haven't used it because I don't have access to it. Um, and so I was like, "Oh, I wonder if, like, maybe they've, like, snuck it in on the expensive instances." So I, like, check the replication slots and, you know, it's like, "Oh, your user doesn't have permission to it." So they've, they've, they cut you out of that.
So what can you do? All right, what can you do? What can you do? So you can do a PG dump, which is fine if you have no customers.
Aaron Francis
Right.
Jesse Hanley
So if you have no, if you have no customers, you can do a PG dump and then a PG restore. Um, and if you want that to be really fast, you do that on an EC2 instance in AWS. Um, and you basically use the Heroku CLI to build, pull the URL, push, right? And because it's all basically in the same, um, uh, what is it?
Uh, data center, you can, you can, you can actually get that, like, relatively fast. So I think up to, like, 10, up to, like, 50 to 100 gigabytes, maybe that's feasible. Backups are pretty fast around that size, I, I think. Um, once you start getting beyond that, uh, it's not so fun, and then you kinda gotta, like, face downtime, right?
Um, so what are your options for that? All right. Well, one option is you can ask Heroku to open up, uh, the WAL logs. So if you open a support ticket, they'll open an S3 bucket which has a snapshot and your WAL logs, and you can effectively start a Postgres instance in recovery mode.
That's correct, right? Point it to the WAL logs and it will follow them. Yeah? That's correct, yeah.
Aaron Francis
Mm-hmm.
Jesse Hanley
'Cause I haven't done this either. Um, and then once it does that, you then basically fail over onto the new one, and hakuna matata, it's good to go. Now, the reason you can't do that- ... is because Heroku, actually in, like, 20-something, there was big drama in the Postgres world when Postgres, um, for some reason handle, handled collations with-
Aaron Francis
Hmm
Jesse Hanley
... a library called, uh, Glib. Is that it? G-C-L-I-B. Is that it?
Aaron Francis
G-C... Yeah, yeah, yeah, yeah.
Jesse Hanley
So they-- A- and from version, version, what is it? Version 19 or 20, I don't know, some version. From one version to another version, many things changed. Now, why is that bad? Well, Postgres, for some reason, locks Glib versions per index, right? So it means that if you have an old Heroku database, you're pinned to certain Glib versions.
Now, if you fail over from your database to another database in recovery, now all your B-tree indexes are corrupt.
Aaron Francis
Hmm.
Jesse Hanley
Which means that if you query all those B-tree indexes, you get bad data. And if you get bad data, now you get duplicate records. And if you get duplicate records, you're, you're... I can't swear on this, it's a PG podcast.
Aaron Francis
No, you're hosed. Yeah.
Jesse Hanley
You're hosed. Um, and even, you know. So, so, so then what do you do? Okay, well, you cut over, and then you have to rebuild all your indexes concurrently. And but then, but then you've probably gotta be down for that. So if you've got a lot of indexes, you now got, like, a... Even if you do it really intelligently, which, which I'll talk about later, we, we, we did with our migration.
Even if you do that intelligently, you got, like, two hours of cutting stuff, I think, of, of, of-
Aaron Francis
Hmm
Jesse Hanley
... of turning things down. So that's not good. So that doesn't really, that doesn't, that doesn't really work, and you can't build indexes concurrently when in recovery mode, which is why, you know, you'd be like, "Oh, maybe I could rebuild," like, you know, follow and all that. Follow the snapshot, rebuild it all. No, no, no, no, no. No, no, no, no, no. Can't do that. Um, so okay, cool.
Can't logically replicate, can't, um, can't WAL follow. So then there's a great tool called pgbackre- pgbackrest. Yes. That's it, right? pgBackrest. And p-
Aaron Francis
Brother, I have no idea.
Jesse Hanley
So pgBackrest is kind of like a PG dump and restore, but it's like let it rip. And so it- it's not single-threaded, and so it'll just like, like Kirby, you know, the Nintendo character, it'll just suck all the data in and go blah, and just spit it into the new instance. And you can get two terabytes an hour very fast. So for some people, that amount of downtime is viable.
And the cool thing with that is you can probably put your, your database in, uh, you know, you can go to Heroku, uh, revoke write permissions, pgBackrest-
Aaron Francis
Mm-hmm
Jesse Hanley
... smash it, and then bring it up when it's, when it's good to go. And, and that, that's, that is a very viable strategy. And I, I, I would recommend something like that. But then the downside is you now got some downtime. So, uh, what if you don't want downtime? Are there no options? Well, there, there are some options. And
Aaron Francis
I can see why this took so long.
Jesse Hanley
Yeah. There are some options. Um, I'm not going too long, am I? Is this interesting-
Aaron Francis
No
Jesse Hanley
... this topic?
Aaron Francis
This is perfect.
Jesse Hanley
Okay.
Aaron Francis
And I just love-
Jesse Hanley
Okay
Aaron Francis
... that you keep running into roadblocks.
Jesse Hanley
Yeah. So there are some options, but they're kind of like, it's like ancient technology. It's like ancient, ancient technology that you have to, like, dig up like a archeologist, right? And so there's things like, uh, Symmetrics, Slony. You go to the Slony repo, it's like there's no- nothing in there. And people are like, "Yeah, I use Slony to do this." And you're like, "Brother, there is not a single word on this README."
Aaron Francis
You could-
Jesse Hanley
There are no docs
Aaron Francis
... you could be making all this stuff up. I have never heard of Slony or Selectrics or whatever-
Jesse Hanley
But-
Aaron Francis
... you just said
Jesse Hanley
... but, but you go to these, you go to these, like, old email threads, you know, like the, um, uh-
Aaron Francis
The mailing list?
Jesse Hanley
The mailing list, and they're like, "Oh, why are you using Slony? Why can't you just use Slony?" And you're like, "Dude, there's not a single doc on this." Like, what is this? Do I have to read Perl now? And so you're like, um, you're like, "All right, well, I'm not touching that." So then there's this one tool, and it's kinda like Voldemort. I don't, like, almost don't wanna mutter the word. It's, um, Bacado. Bacado. Bacado.
Aaron Francis
Ugh.
Jesse Hanley
Ugh. Um, and so Bacado, it gives me shivers. Bacado is this trigger-based replication system. So what does this do?
Aaron Francis
Ooh.
Jesse Hanley
Ba- Bacado basically, you start a Bacado instance in EC2 or on a VPS. You can do it on DigitalOcean or whatever. It then adds triggers to your main database. It adds a delta and a track table. It adds, like, loads of tables. Um, and it will also track things like sequences. So it'll track all your tables, all your sequences, everything. Um, any insert, update, delete goes into those tables.
Uh, then the Bacado dedicated instance basically queries tho- those tables, fetches the data, and pushes them to, um, another database. Now, this is kinda cool for a few reasons. One, if you pull this off, you can do things like a, a zero time downgrade of Postgres.
Aaron Francis
Hmm.
Jesse Hanley
So if you wanna upgrade Postgres from 14 to 18, you can now do that. And because, um, the, uh- I'm not supposed to use the, the slave or the, the follow-up, the, the one-- the instance you got set up, um, is kind of, what is it? Uh, running basically. It's just getting copy commands in, right? You can, you can run migrations on that.
You can build things. You can really, like, tweak the instance, um, run test queries on it, like, do whatever you want. It's like, it's, it's quite, it's very, very flexible. People have used it to do multi-master, so-
Aaron Francis
Oof
Jesse Hanley
... you could, you can, you could... Horrible. But they, they've got strategies for conflicts and all that.
Aaron Francis
Mm-hmm.
Jesse Hanley
So it's a very flexible tool. I think you can also go from like Postgres to other things as well. So it's an incredible tool.
Aaron Francis
And presumably 'cause it's a, a brand-new database it's pushing into, you don't have any of the GClib problems 'cause it's just-
Jesse Hanley
Nope. Nope
Aaron Francis
... it sounds like it's just putting new data in.
Jesse Hanley
Yeah. Which we'll talk about. So yeah, um, exactly. So, so then now everything's being pinned to the new GClib version so, you know, that is all pretty sweet, right? Um, and so you're also not getting any, this is another big one, you're not getting any bloat because, um-
Aaron Francis
Oh, yes
Jesse Hanley
... you don't have dead tuples.
Aaron Francis
Yeah.
Jesse Hanley
You don't have dead tuples. So you can actually do a full zero downtime vacuum of the full system if you wanted to with Picado.
Aaron Francis
Oh, that's clever.
Jesse Hanley
Uh, okay. So it's clever, but why is it hard?
Aaron Francis
Yeah.
Jesse Hanley
So-
Aaron Francis
It sounds nice and easy, so what happened?
Jesse Hanley
Yeah. So, so the thing is, is, um, Picado, it, there are, like, unknowns with it, right? So PlanetScale offers this, like, basically managed instance. Like, you can basically, um, on Heroku create a Picado instance, add your environment variables, and, um, it'll basically set up all the triggers, configure Picado, and, like, let it rip.
You can do that on small databases, but you can't do it on large ones. And, um, I think, uh, my brain's not working 'cause I'm so shot, but a friend of the pod who runs, the founder's Daniel, um, you're gonna remember.
Aaron Francis
What, what's the service like?
Jesse Hanley
They run a HubSpot app. They run a HubSpot app.
Aaron Francis
Daniel Zarek. Zarek.
Jesse Hanley
Oh, you're so good today. Awesome.
Aaron Francis
Two for two. Two for two.
Jesse Hanley
Ne- thank you, my second brain. Um-
Aaron Francis
Yes
Jesse Hanley
... so yeah. So they tried it, and it failed. So, so I was w- and their database is smaller than mine. That's not a flex, but their database is smaller than mine. Um, and-
Aaron Francis
Suck it, Daniel
Jesse Hanley
... suck it, Daniel. And their database failed. Like, it didn't work, and they, they got woken up overnight, and I was like, "That's a no-go for me." I don't-
Aaron Francis
Mm-hmm
Jesse Hanley
... no, no. I'm, I'm not gonna wake up in the middle of the night for this shit. So, um, I then spoke to Sam, um, from PlanetScale and said, you know, get me in touch with the team, and then I, they assigned me someone, a, a great guy called Dimitri in Germany, and me and Dimitri, buds, best bros now.
Um-
Aaron Francis
Yeah, seriously. You, you owe him-
Jesse Hanley
Yeah
Aaron Francis
... a couple of beers and a, and a properly annotated invoice 'cause he's German.
Jesse Hanley
Trauma, trauma bonded over this. So, um, yeah. So, so we, we started, you know, basically working on it. So, um, the reason we can't use the migrator is because the migrator, Heroku refreshes dynos every 24 hours, right?
Aaron Francis
Ah.
Jesse Hanley
And so if a migration takes, which is, which is a great practice because it means if you have any memory stuff, you always... So d- it's a great architectural decision, but not for a migrator. So it means that the Picado will just die effectively, and its ephemeral stuff will all just die. Everything will die. Bad. Bad, bad, bad. So you can't do, you can't do that. So what we did was we got that app, their Picado app, and it's got like a little dashboard and stuff, on an EC2 instance to start.
We, uh, then connect... I, I made a follower, 12 grand a month, by the way. Made a follower- ... on, um, on Heroku, detached it, um, and then we did like a test run on it. Four days.
Aaron Francis
Four days-
Jesse Hanley
Me-
Aaron Francis
... of Picado ripping.
Jesse Hanley
Me don't likey. Four days too long. Um, and the thing is, is-
Aaron Francis
That's way too long
Jesse Hanley
... and Picado's basically doing the copies, but then meanwhile it's building a delta. So it's basically building a delta of all the changes, and so four days of logs is actually quite a lot, right? Um, and I didn't want anything to kinda go weird, so I was like, "It's kind of like a no-go for me." So what was the bottleneck with that? Well, we realized that when you're doing the copies from one instance to another instance, um, it's kind of re- it's building the indexes on the fly, right?
So when you're, when you're sending over four to five terabytes, all those indexes need to be built. And so the first learning was, all right, let's drop all the indexes on PlanetScale and then build them concurrently at the end of it, right? So drop all the in... And, and then it was like, oh, okay, we just went from four days to 10 hours, right?
Aaron Francis
Nice.
Jesse Hanley
So, so, so, so we went from... And that was like the first, that was the, that was the first thing we learned. We're like, "All right, cool." So we've gone from four, four, four days to 10 to 12 hours.
Aaron Francis
So for the audience, instead of continually paying index maintenance fees, uh, you know, CPU fees, not actual dollar fees-
Jesse Hanley
Too many rights. Yeah
Aaron Francis
... instead of continually paying those fees on insert every single time, you just said, "No indexes until we're done. Get all the data in," 'cause that is way cheaper, and then we'll just build it at the end. Fair?
Jesse Hanley
Yeah, exactly. And then, um, at the end, we, uh, we, Dimitri wrote a script, um, and that script was basically build all the indexes concurrently, and then he'd... You can't build, um, indexes concurrently on the same table at the same time, so he actually wrote a cool script that, uh, just kept building indexes on different tables, um, and did it really, really fast.
So props to Dimitri for, um, scripting that out. Um, so yeah. And then so with that, it was like, let's say 12 to 14 hours, right? Um, so we did, we did about two runs of that, and we're like, "Okay, kinda cool." But what we didn't test was, uh- What we didn't test was, 'cause we're doing it on a follower, and the follower has no rights, right?
We didn't test what happens after the copy, which is when it starts kicking data in, right? So I talked to Dimitri, and I go, "All right, when are we gonna do this? Let's do this in-" A low traffic period, let's do it on the weekend. And Dmitri goes, "Yeah, let's do it on the weekend." You know how cool that is? Like, like to do this on the weekend. He's an employee at PlanetScale.
Aaron Francis
Mm-hmm.
Jesse Hanley
Like, like, I don't know, I just think that's really cool. Like he, he was up for that.
Aaron Francis
I saw you-
Jesse Hanley
So-
Aaron Francis
... tag Sam and say Dmitri needs a raise, so sounds like you guys are, you guys are tight.
Jesse Hanley
A, a raise and therapy. So, um, so, so we, uh, kick it off on Saturday evening and, you know, he had family things, so, so I think it kicked off around like 11:00 PM. And the thing with this stuff is because it was on like the main primary, it's very like hard to sleep when some of this stuff is going on, you know?
Aaron Francis
Of course.
Jesse Hanley
Um, 'cause you're like, "All right, well, we haven't done this on like real writes yet," so, and 'cause you can't do it on a follower. So let's, um, let's just see how this goes. So have a rough sleep on Saturday night, you know, maybe two hours of good sleep and then up and on, up and on, rai- brain's racing, you're checking stuff, things aren't dying. That's cool. Um, then around lunchtime the next day, um, I'm looking and it's done.
I'm like, "Ooh, that's kind of cool." The dashboard says it's done. But I'm looking at the delta and it's going. The first delta syncs, so like, you know, I don't know, however many million, tens of millions of records went from Bacado, like the delta difference for the last 10 hours went over. Cool. But then I start seeing it climbing and I'm like-
Aaron Francis
Mm
Jesse Hanley
... "When's it gonna kick? When's it gonna kick the next batch?" 100,000, a million.
Aaron Francis
Mm.
Jesse Hanley
2 million. It's not kicking. It's not, it's not kicking. Bacado says it's all good, and then I'm, I'm, I'm-- And then, and so then you're like, "I gotta do SQL," and Dmitri's asleep, as he should be, thinking about German stuff. Um, and so, uh, so I'm in SQL and I'm seeing like there's these idle, there's these idle transactions.
So like the main Heroku source has, um, some Bacado queries, so it's obviously querying the, um, the database for the changes, but it's like those queries are running for like five hours-ish. And I'm like, "Oh, there's something, like something's wrong." And no copies are going to PlanetScale. And so I'm like, "Ah, this sucks." And so on Sunday, Dmitri wakes up and it's probably about 3:00, 4:00 PM in my afternoon, and we're trying to debug it and we, we can't figure out why
it's not kicking in. We're restarting Bacado.
Aaron Francis
Is the app still alive? You're still pointed at Heroku-
Jesse Hanley
Yes
Aaron Francis
... so you're okay?
Jesse Hanley
Yeah. Yeah, and I'm on, I'm on the $12,000 a month instance, so I got headroom. I got headroom for storage.
Aaron Francis
Okay.
Jesse Hanley
I've got almost a terabyte of RAM. I don't need that much RAM, you know?
Aaron Francis
Okay.
Jesse Hanley
Um, so, so I'm good.
Aaron Francis
So as long as you're alive, you're okay.
Jesse Hanley
Yeah, I'm good, I'm good. I, I, I, I'm, I got time. So, um, we're talking and we just can't, we can't figure, we can't figure it out. I spent a, I spent a lot of time trying to debug. Dmi- Dmitri, which was really interesting, um, I'm pretty like, I don't know, maybe like ADD with some of this stuff, so I'm, I'm pinging ideas and he's just like, "I'm gonna go read the Bacado source code."
Aaron Francis
Nah. Yeah.
Jesse Hanley
I'm like, "Ask an agent, damn it." And he's like-
Aaron Francis
Steady, steady hand on the wheel, that's what you want actually.
Jesse Hanley
It is. So this is why you hire professionals or you work with professionals.
Aaron Francis
Uh-huh.
Jesse Hanley
So I'm like, "Ask an agent," like, like, "Let's just get the agent to rip," and the agent's telling me to check these things, it's wrong. Turns out it's wrong. Um, he's like, "I'm gonna go read the Bacado source code." And, and so it gets to about like 9:00 PM or whatever and I'm like, "All right, I'm gonna, I need to get some sleep. So I'm gonna go to sleep and it's all in your court. You can, um, do whatever you want to get this working." Right?
Wake up maybe like 4:00 AM, go, "Hey, hey man." He's like, "Why are you awake?" And he goes, he goes, "I figured it out." So it turns out the EC2 connection to Heroku was failing because of a, some T- TCP keep alive thing.
Aaron Francis
Oh my gosh.
Jesse Hanley
And so it would initially kick and then the connection, the connection would die, and so further kicks wouldn't kick. And so it meant we, like, and so we, we had to start Bacado in like some slot, like basically undocumented TCP keep things alive config. And once that was done, we had real time, um, uh, copies coming in.
So every, every 30 seconds or every minute, um, we would get the batch of updates, and then at that time everything was then real time. So then we moved to, okay, let's verify everything. And so this is, where am I? Monday. So Monday morning at 4:00 AM, I g-I then have to fly to LA- I gotta go to Tokyo. I gotta go fly.
Aaron Francis
I didn't realize that we were cutting it this close.
Jesse Hanley
Yeah, dude. So then I, I go to Dmitri, I go, "Do you wanna do it now at 4:00 AM?" I'm, I'm dumb. "Do you wanna do it now?" And I go, "Actually, you know what? Let's not do it now. Um, let's do it 8:00 AM Germany time, that's 3:00 PM, um, Tokyo time." And he goes, "All right, let's do it." So basically I pack up, give my daughter a kiss, um, get on the, the train, go to the airport a little bit early, start writing, uh, checking scripts.
This is what AI is really good at, right? So whole bunch of scripts, like, uh, PlanetScale have their scripts. I wanted my own ones. Um, and so I did stuff like, uh, Ruby scripts that would query a whole bunch of users basically by like recently updated and stuff, then hit both databases to make sure everything was in sync. I tested query performance about, about a whole bunch of stuff.
Got on the plane, plane had Wi-Fi, write more scripts. Land, get on the train. It's about an hour and a half to the hotel, writing more scripts on the train, um, doing PostgreSQL queries on hotspot Wi-Fi. I'm like, okay-
Aaron Francis
Mm
Jesse Hanley
... cool, this stuff's kinda working. Get to a point where I'm like, "This is cooked. This is good. Um, I, I think, I think we're good for cut over." Come, um... We're not done. Come, come to the hotel, get in my pajamas like I am now, and then, um, uh, lie on the bed. Dmitri wakes up, he goes, "I'm ready to go, dude." So then, and then we basically coordinate the cut over. The cut over is basically, uh, kill writes, wait for Bacado to hit zero, hit maintenance, downscale everything so all the connections drop, switch, scale up.
Aaron Francis
Cool.
Jesse Hanley
Um, do that. All works. Like, all works. Smooth, things are fast. Takes a little bit, but we're not done, Aaron.
Aaron Francis
Oh, no.
Jesse Hanley
So-
Aaron Francis
How-- There's no more time. You're here talking to me. There's no more time for anything to go wrong.
Jesse Hanley
I've gotta go to the, the speakers' dinner in two hours. So, um, I'm, I'm talking to Dmitri, and he's like, "Dude, can I, like, go eat some r- like, can I, like, go? I got errands to do." And I was like, "Yeah, okay. I think we're good."
Aaron Francis
Can I go eat some schnitzel or something?
Jesse Hanley
We're at the la- Yeah. But then Honeybadger, sponsor of the show, uh, flares up. Well, me no likey that. Honeybadger then starts saying, "You're over your overages this month." Ooh, don't like that. What are these, what are these errors? And then I, I go into my Sidekiq jobs, and there's a whole bunch of sequence, um-
Aaron Francis
Uh-oh
Jesse Hanley
... like, basically p-peaky, peak, peak, peaky-
Aaron Francis
Primary keys, yeah
Jesse Hanley
... primary key, um, things. And inserts are failing on a whole bunch of tables. Aaron, get this. So we ran Picado stop. One would think Picado would s-s-stop. At that point-
Aaron Francis
No
Jesse Hanley
... you would think Pica- Picado would stop. So Picado, um, is configured to sync sequences over, right? For some reason, an hour after Picado's death, it decided to, puh, re- like, basically spit a sequence update.
Aaron Francis
Oh, no.
Jesse Hanley
Um, and that reset sequence is back, like, mm, an hour basically, I think-
Aaron Francis
Hmm
Jesse Hanley
... since, like, the last, the last kick. Um, and so-
Aaron Francis
So for the dear listener, you've got- ... actual records in the database of IDs one through 100, for example. So the next one should be 101, except Picado woke up and decided to, to-
Jesse Hanley
Bring it back to 50
Aaron Francis
... crap the bed, and wrote it back to 50. So now Postgres is like, "Great, 51 is next." And then because of how databases work-
Jesse Hanley
But not error
Aaron Francis
... it says, "My friend, there's already a 51 there."
Jesse Hanley
Yeah. And so immediate thought is, "All right, well, what's the risk there?" That's always, like, how you should think about these problems. You know, all right, cool. It just means, like, no, no creates. There's no data corruption because-
Aaron Francis
Right
Jesse Hanley
... like, it's just no cr- no creates. So it's not, like, the end of the world. But I mean, you're like, w- I'm hitting Dmitri, I'm like, "What just happened?" And he's like, you know, 'cause g- creating PlanetScale, you can actually see, like, the error logs flare up as well.
Aaron Francis
Yeah.
Jesse Hanley
We're like, we're like, "What just, what just happened?" And, um, you gotta resolve it. So then open post, um, open, uh, psql, and then, um, basically do a, what is it, a correlate on the max ID.
Aaron Francis
Yeah.
Jesse Hanley
And then, um, we, we reset, um, and I-- a-and then kind of all good from there. But that was one of those, like... It was like Picado. It was just that, that last, like, ugh, like it just punched you in the face-
Aaron Francis
Yeah, seriously
Jesse Hanley
... on that last one. It's like, it's like, "Oh, you wanna turn me down? Take this. Ugh. All right, now go." So, um... And then from there, we're, we're good. But I don't know. Hopefully, hopefully that was interesting to... It's a mostly technical podcast, so I don't know if that was-
Aaron Francis
Yeah, this was great. Well, I, I, you know, people that do five terabyte live Postgres migrations, I don't, you know, I don't think they talk about it very often, so this is fantastic.
Jesse Hanley
Yeah.
Aaron Francis
So you're live on Postgres. What-- I'm sorry, you're live on PlanetScale.
Jesse Hanley
On PlanetScale.
Aaron Francis
What are your, what's your setup over there? You already mentioned just based on how PlanetScale runs, they've got, you know, a couple nodes over there. So, like, what's your setup and how are you liking insights? Like, what's... I mean, I guess it's been eight minutes since you've, you know, you've been over there, so you might not have a lot yet.
Jesse Hanley
No, I, well, I've got a lot because, um, a, a lot of it was really useful. So, uh, what, what has been useful? All right. So, like, um, the first, the reason we went over is, uh, both costs and, uh, just to be more resilient. And so frankly, I just trust my data in PlanetScale's hands more than Heroku. Um, in addition, the, I guess, three nodes instead of one.
Um, for this migration, I am on an 11 grand a month instance, uh, because I just wanna let it rip, right? I, I, I, I want unlimited IOPS. I, I, yeah, I just want it to rip. Um, and it, it, it did rip. And then so now we're kind of monitoring, and later this week when I'm back from, uh, the conference, I'll resize.
And I think we can resize very aggressively, probably get costs down to 5K. I actually think if I'm willing to sacrifice metal, uh, and those N- NVMe drives, I could probably go EBS and go down to, like, even 2.8K, right?
Aaron Francis
Oh my goodness.
Jesse Hanley
So, so there, there's potential for me to go to be at 10% of my costs, and that's mostly about how I, how comfortable I feel on some of these things and just knowing-
Aaron Francis
Mm-hmm
Jesse Hanley
... you know. But then with Insights, I can also optimize some of these costs as well, which is great. I was a little bit concerned about bandwidth, um, issues 'cause I've now gotta pay for egress. Uh, back of the nap, uh, back of the napkin maths is about $100 a day on egress. But Insights gives me information about what is contributing to that.
Aaron Francis
Yeah.
Jesse Hanley
And so I can potentially improve my selects to just return less data, and actually probably cut that down to a third starting next week when I can be bothered. Um, so yeah. I like it as a platform. Yeah, it's, it's good. It's good. It's good. It's good. It's good. But, you know-
Aaron Francis
So you, you got in the front door, and then you're gonna rightsize it later. But this is, this is the safety size for now.
Jesse Hanley
Yeah. Oh, I'm at the conference, so I want the biggest instance I can to-
Aaron Francis
Mm-hmm
Jesse Hanley
... to, uh, to, to just get me through. So yeah. Um, and then, you know, and some people have asked, like, why this over Supabase? Why this over others? And it's, it's, you know, it just, it just kinda depends. Um, everyone's got different priorities and requirements. My number one requirement is if stuff goes, if stuff goes wrong, uh, I need a human there very fast.
And, uh, PlanetScale's proven to be that. And even Dmitri working on a weekend to make sure I'm okay, I don't know, that's pretty cool. I, I don't actually really know too many other providers that would do that. Um-
Aaron Francis
No
Jesse Hanley
... I think. Yeah, so, so I ch- I chose them for that reason. Um, and then everything else is a bonus.
Aaron Francis
Yeah, getting, getting your own dedicated German database engineer, that's pretty hard to come by. That's pretty awesome.
Jesse Hanley
It's pretty cool. It's pretty cool. So- Yeah. And, you know, he was dedicated to seeing it work, you know? It wasn't that fun for him. He's just gotta deal with-
Aaron Francis
Yeah
Jesse Hanley
... with, with me, and he's gotta deal with my data and, and all that. So it's, um... He doesn't want downtime for me, he doesn't wanna see error stuff, uh, blowing up. So yeah, it's, uh, yeah, it was very, very, very cool. And, you know, like, I'm not gonna be paying the 11K a month moving forward. I'm probably gonna be paying, you know, 5K and all that. It's, it's, it's, it's a lot of money. It is a lot of money, but I'm not their largest customer, and I felt like they treated me like I was.
Aaron Francis
Yeah.
Jesse Hanley
Which is worth a lot. So yeah. Anyway. Um, and so I guess to r- to summarize all that, I think with all the things that I've learned, I could probably do it again very quickly with no errors. So- ... like, if I, if I, if I was to do it again, um, I, I, I could probably do it with more of my learnings, and we're gonna move those learnings into the main migrator repo, uh, which will be good, and I think they've now got a good playbook for large databases on Heroku.
I think I, I think I was the largest they've moved now.
Aaron Francis
Yeah.
Jesse Hanley
Um, and so yeah, I think that's good. And in the future, what's kinda cool is with Picado, you can also just sync single tables as well. You could just sync, do a couple of tables. So if I ever wanted to split the database into, you know-
Aaron Francis
Oh
Jesse Hanley
... dedicated ones, I, I actually would choose Picado, I think, for that because I could just, you know, replicate the sequences and triggers for, um, you know, the events table or the automation related tables and put that into its own dedicated one, and then just switch when I'm comfortable and stuff and make sure that that kinda works. So there's a lot of very interesting use cases for that technology, and just because it's old, just because it hasn't been updated in a while doesn't mean it's, it's rubbish.
It's, uh, it just means that it's actually probably good, good software. Um-
Aaron Francis
Yeah, it's baked. Yeah
Jesse Hanley
... yeah, it's baked. The only thing, the guy's commit- he does commit, like, once a year or whatever now, but it's just like test coverage or-
Aaron Francis
Yeah
Jesse Hanley
... all that kind of stuff, right? So, um, yeah. It's good.
Aaron Francis
So now, now we'll, we'll start wrapping up here. Now you have this behind you.
Jesse Hanley
Yeah.
Aaron Francis
You, you've, you've done the big scary stuff. Uh, besides, you know, right sizing and whatever, which is just, uh, that's straightforward. What's, what's next for Bento or Tatami or Jesse?
Jesse Hanley
Same, same. Just normal stuff.
Aaron Francis
Oh, like just-
Jesse Hanley
Just same, same
Aaron Francis
... just live, just living your nice life?
Jesse Hanley
Yeah. I'm not, I'm not, like, ambitions-wise, I'm not... I, I don't, I don't really have, yeah, too, too many, too many large ones. I mean, I think I, I've mentioned this on, like, a, a, a different podcast, but, like, I got a, an interesting, like, acquisition offer, um, a while back, and yeah, even, even that wasn't, like, that ex- exciting. Like, like, for me, with, with Bento, I just kind of...
I, I like my day-to-day.
Aaron Francis
Mm-hmm.
Jesse Hanley
I get to work on challenging problems. They're stressful, and they're hard, but, you know, it keeps my brain going, and it provides cash and, uh, income that allows me to do really amazing things with my family and provide for them. And so, yeah, I don't know. I think this is, like, what I always wanted. Like, when I went out by myself, this is like, I'm at the destination, and so I just wanna be mindful now of appreciating being at the destination than just trying to build a new route or, like,
a new destination because, like-
Aaron Francis
Mm-hmm
Jesse Hanley
... I don't know. My kid's only three. She's almost four, so I, I, I, I don't wanna get distracted on that-
Aaron Francis
Sure
Jesse Hanley
... you know?
Aaron Francis
Yeah.
Jesse Hanley
I wanna spend my mornings feeding her and taking her to, to, to school. I don't wanna, you know, be locked in my office grinding for some valuation or, or something else. So yeah, yeah. So same, same.
Aaron Francis
Same, same. God, that's what I love about you. People are always like- ... "Well, you know, when you get there, you'll want, you'll want more." And maybe you do want more, but you are consciously deciding, "You know what? This is what I wanted, and I'm gonna take my kid to school instead."
Jesse Hanley
Yeah. Can I, uh, can I just give, like, one last caveat with that?
Aaron Francis
Please.
Jesse Hanley
Um, it's a lot easier to say that because I sold my last business.
Aaron Francis
Mm-hmm.
Jesse Hanley
So if I didn't have that cash balance, I, I think my first goal would just be to have just cash in the bank, and then after there's a decent amount of cash in the bank, um, it was a lot easier for me to have this, uh, this mindset. But even saying that, like, when I, when I got paid out for that business, um, even, like, the sum of money that I got, I-- with everything else going on in my life, I felt good for, like, 10 minutes or an hour.
Aaron Francis
Yeah.
Jesse Hanley
Right? So, yeah, I don't know. I don't know. I, I think, I think the, the, the goal, at least for me, is just to work day to day, enjoy the work that I'm doing. Um, eh, but then my goal before that was just to have enough cash in the bank that I could, you know, felt safe and calm. So I don't know. If, if you're trying to build stuff and you're trying to build a business, try and build to get that cash reserve first, and then, and then, and then...
'Cause it's really hard to do that. So build, get the cash reserve, and then you can kind of chill and do the database stuff. That make sense?
Aaron Francis
Um, because, because he's not here, I wanna hear just very quickly, 'cause I gotta go home and put my kids to bed. I wanna hear-
Jesse Hanley
I'm sorry
Aaron Francis
... how frustrated you were with Ian for the past eight months not shipping out your... I've seen, you know, you've tweeted at him many times. I just wanna hear it from your mouth how fr-
Jesse Hanley
Dude, I'm psyched. It's, like, the most-
Aaron Francis
Maybe how happy are you now?
Jesse Hanley
It's... Well, I'm, I'm very happy now, but, like, it's like a hate listen. It's like a hate listen because my, my routine is basically I wake up in the morning, I go to the gym, and I listen to a podcast, and Mostly Technical comes out on whatever day in Japan.
Aaron Francis
Mm-hmm.
Jesse Hanley
And I listen to this podcast, and I'm just psycho. It's like, "Laravel new, Laravel new." And, and I'm, like, listening to it as, like, motivation. And, um, but, but you're, you're, like, physically using... Like, he, he's, he's actually typed something, and you're now using what he's typed, right?
Aaron Francis
Uh-huh.
Jesse Hanley
So, so we're, we're there, which is good. Yeah, I- Ian and I would love to, I'd love... He's a funny character, isn't he? He was posting toilets on Twitter yesterday. He's a very funny character.
Aaron Francis
He was. He was posting pictures of urinals. It made no sense to me.
Jesse Hanley
Of urinals. That's amazing content.
Aaron Francis
I was trying to come up with something, something to say, and you said, you know, you said the perfect reply, so thank you for that. But yeah, he's-
Jesse Hanley
Yeah
Aaron Francis
... you, you know, we couldn't do this show without him. We're the perfect foils for each other, in fact.
Jesse Hanley
You're the perfect couple. You're the perfect-
Aaron Francis
Yes
Jesse Hanley
... you're the perfect couple. And, and I'll tell you what, you know, during COVID, there was, like, a good handful of podcasts of couples-
Aaron Francis
Mm-hmm
Jesse Hanley
... basically married couples.
Aaron Francis
Mm-hmm.
Jesse Hanley
And I feel like it's just very rare now. I think you guys, you guys are, like, the leading Married-
Aaron Francis
Mm-hmm
Jesse Hanley
... business software couple at the moment. So-
Aaron Francis
Mm
Jesse Hanley
... kudos to-
Aaron Francis
Yeah, that's the goal
Jesse Hanley
... the podcast.
Aaron Francis
We set out to do the best married couples show, and here we are.
Jesse Hanley
That's so funny.
Aaron Francis
Um, well, it's nice, it's nice to have you on. Of course, we say your name every week, and you and I chat all the time, but it's nice to talk in person again. Um, so tell-
Jesse Hanley
This is fun
Aaron Francis
... tell the people, tell the people where they can find you besides Bento at bentonow.com. Where else can they find you?
Jesse Hanley
I'm on X, so Jesse, J-E-S-S-E, THanley.com. Uh, but yeah, but if anyone's got, like, a question or, like, anything, I'm pretty open, so just, like, send me a DM or send me an email. Just, uh, yeah, always open to chat about this stuff. And Mostly Technical customers are really nice. So anyone that signs up, I love hearing from you, and I love, you know, talking about your businesses and all that.
So yeah.
Aaron Francis
And I, I will, I will vouch for Jesse. I've seen him help many people on Twitter who are not even his customers. Uh, anytime someone's like, "Oh, where are my emails going?" I just tag Jesse, and Jesse comes in, and he's like, "Oh, what, what ESP are you on? Show me this report. Show me that." And he's extremely helpful.
Jesse Hanley
They eventually become customers. They eventually become customers.
Aaron Francis
Eventually. Play long-term games, so.
Jesse Hanley
Everyone be a customer, you know?
Aaron Francis
Exactly.
Jesse Hanley
Take the long enough horizon.
Aaron Francis
Exactly. Well, thanks again for doing this. This was a blast. Um-
Jesse Hanley
Pleasure
Aaron Francis
... and thank you to all the sponsors for sponsoring the show. You can find us at mostlytechnical.com and on Thursdays at 2:00 PM Central, 1:00... No, 2:00 PM Eastern, 1:00 PM Central, we live stream Token Town. So if you're not, uh, listening to Token Town yet, you should. And Ian will be back next week. Uh, I think he...
I really do think he's on a poker trip. So we'll see him next week. But thank you all for listening, and thanks again, Jesse, for being here.
Jesse Hanley
Bye.
Aaron Francis
See ya.