May 26, 2026Host

Do The Hardest Thing with Jesse Hanley

Show notes

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.

Transcript

Everything we said

00:00

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.

00:00

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?

00:17

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.

00:26

Aaron Francis

Not only in your hotel, in your bed under the covers.

00:30

Jesse Hanley

In my bed.

00:30

Aaron Francis

So you, you've had a, you've had a rough go-

00:32

Jesse Hanley

In my Japanese pajamas.

00:35

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.

00:48

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.

01:12

Aaron, I, I, I successfully moved from Heroku to PlanetScale.

01:16

Aaron Francis

All right.

01:17

Jesse Hanley

So that's now done, but that was like, that was like, feels like years in the making to-

01:21

Aaron Francis

Mm-hmm

01:21

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-

01:26

Aaron Francis

Yeah

01:26

Jesse Hanley

... if you wanna talk about all my trauma in the last week, but yeah.

01:29

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-

01:46

Jesse Hanley

Mm-hmm

01:46

Aaron Francis

... uh, primary person running Bento. You do have a support-

01:50

Jesse Hanley

Yeah

01:50

Aaron Francis

... uh, human being, but you also have-

01:52

Jesse Hanley

Mm-hmm

01:52

Aaron Francis

... you bring in, uh, lots of consultants to help you do stuff.

01:55

Jesse Hanley

Friends of Bento. I, I, I call-

01:57

Aaron Francis

Yes

01:57

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.

02:25

Like, I was on their largest database there, and it was costing me 12K for a single node a month. Um, if I wanted-

02:32

Aaron Francis

$12,000 a month?

02:33

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-

02:43

Aaron Francis

And those are good dollars. Holy moly.

02:47

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.

03:15

Aaron Francis

Yeah, no kidding. Um-

03:17

Jesse Hanley

Yeah

03:17

Aaron Francis

... okay, so to give the people some context, if you wanna dive-

03:20

Jesse Hanley

Mm

03:21

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-

03:33

Jesse Hanley

Fun

03:34

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-

03:40

Jesse Hanley

I think I talk about migrating. I think I talk about migrating in that one.

03:42

Aaron Francis

I think you do. Yeah.

03:43

Jesse Hanley

Yeah.

03:44

Aaron Francis

And that was over a year ago-

03:45

Jesse Hanley

I think I talk about it on the horizon

03:46

Aaron Francis

... I think. Yeah.

03:47

Jesse Hanley

Yeah.

03:47

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.

03:59

Jesse Hanley

Oh.

03:59

Aaron Francis

So what are we talking about on this migration?

04:01

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.

04:23

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.

04:51

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.

05:14

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.

05:25

Aaron Francis

Uh, is Tatami on the table for migration? Did we practice with Bento first, or are you just gonna keep Tatami-

05:31

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.

05:46

Aaron Francis

Okay.

05:46

Jesse Hanley

No migration for that.

05:47

Aaron Francis

So we don't, we don't have to suffer again for that one.

05:49

Jesse Hanley

No, no, no. Everything's moved off. Everything- Everything is done.

05:54

Aaron Francis

Yeah.

05:54

Jesse Hanley

But yeah.

05:55

Aaron Francis

So how do you feel now? Do you feel relief?

05:58

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.

06:12

Aaron Francis

Mm-hmm.

06:13

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?

06:29

Aaron Francis

Mm-hmm.

06:29

Jesse Hanley

And they've also got, like, a pg_dump feature.

06:32

Aaron Francis

Mm-hmm.

06:32

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-

06:41

Aaron Francis

It's brutal

06:41

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.

06:56

Aaron Francis

It's just an unbelievable amount of money. 12K a month. That's crazy.

07:03

Jesse Hanley

It's rude. It's rude.

07:04

Aaron Francis

It, it is.

07:05

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.

07:28

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.

07:48

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.

08:14

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?

08:21

Aaron Francis

No, I haven't.

08:22

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."

08:37

Aaron Francis

Mm-hmm.

08:37

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.

09:01

Aaron Francis

Hmm

09:01

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.

09:13

Aaron Francis

Wow.

09:13

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.

09:35

And then I did everything else. And I used a tool called RedisShake to do a zero downtime migration for that one.

09:43

Aaron Francis

Jeez, man.

09:44

Jesse Hanley

And so RedisShake is this great tool by... I can see you Googling, so you'll be able to tell.

09:48

Aaron Francis

I am.

09:49

Jesse Hanley

It, it's a Chinese company, right? It's, uh, Al- Is it Alibaba, or is it, uh-

09:53

Aaron Francis

Um, it says T-A-I-R dash open source is the GitHub org.

09:58

Jesse Hanley

Yeah, but who's the-

09:59

Aaron Francis

Trying to find-

09:59

Jesse Hanley

I think, I think it was extracted from some Chinese company. Um, and RedisShake basically allows you to, uh-

10:07

Aaron Francis

Alibaba Cloud.

10:08

Jesse Hanley

Cool. All right. It allows you to, um, effectively follow, uh, and move all the keys from one Redis instance to another.

10:17

Aaron Francis

Mm.

10:17

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.

10:25

Aaron Francis

Jeez.

10:25

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.

10:50

Aaron Francis

Okay.

10:51

Jesse Hanley

Switch, scale things up.

10:52

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.

11:00

Jesse Hanley

Yeah.

11:00

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.

11:17

Jesse Hanley

It's a fun life.

11:17

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-

11:25

Jesse Hanley

Uh-huh

11:25

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.

11:51

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-

12:02

Jesse Hanley

Shane

12:02

Aaron Francis

... so you should meet him. Yeah.

12:04

Jesse Hanley

I, um-

12:04

Aaron Francis

This episode is Also brought to you-

12:08

Jesse Hanley

Sorry, and Simon-

12:09

Aaron Francis

Simon

12:09

Jesse Hanley

... Simon's also here.

12:09

Aaron Francis

They're both there?

12:10

Jesse Hanley

Simon and, Simon and Shane are both on stage today or tomorrow, I think.

12:15

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.

12:40

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.

12:53

Jesse Hanley

That's cool.

12:53

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?

13:06

Jesse Hanley

Uh, I'm still sleep deprived. I don't know who I've met.

13:08

Aaron Francis

A little bit fuzzy.

13:09

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.

13:20

Aaron Francis

Mm-hmm.

13:20

Jesse Hanley

Maybe. Maybe.

13:21

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?

13:29

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-

13:43

Aaron Francis

Mm-hmm

13:43

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-

14:02

Aaron Francis

No way

14:03

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.

14:23

Aaron Francis

Mm-hmm.

14:24

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-

14:44

Aaron Francis

Mm-hmm

14:44

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-

14:55

Aaron Francis

Mm-hmm

14:55

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.

15:10

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-

15:21

Jesse Hanley

What you have to learn next

15:21

Aaron Francis

... you had to learn what Laravel was just before you showed up, which I found hysterical. Um-

15:26

Jesse Hanley

Yeah

15:26

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-

15:41

Jesse Hanley

Mm-hmm

15:41

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.

15:56

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.

16:25

Aaron Francis

Mm-hmm.

16:25

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-

16:51

Aaron Francis

Mm-hmm

16:51

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...

17:13

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.

17:25

Aaron Francis

Mm.

17:25

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.

17:49

You know-

17:49

Aaron Francis

Mm

17:49

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.

18:14

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.

18:37

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-

18:56

Aaron Francis

Hmm

18:56

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-

19:08

Aaron Francis

Mm-hmm

19:08

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.

19:29

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?

19:51

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.

20:17

Does that make sense? Does that kind of rant-

20:19

Aaron Francis

No, it totally, yeah

20:20

Jesse Hanley

... a little story make sense?

20:20

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-

20:30

Jesse Hanley

Yeah

20:30

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.

20:50

Jesse Hanley

Yeah.

20:50

Aaron Francis

And you said like, "Do the hardest thing." 'Cause I was like-

20:53

Jesse Hanley

Yeah

20:53

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."

21:13

Jesse Hanley

Mm.

21:13

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?

21:22

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.

21:45

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.

22:09

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.

22:31

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-

22:52

Aaron Francis

Mm-hmm

22:52

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.

23:15

You know, look in the Shopify marketplace-

23:18

Aaron Francis

Mm-hmm

23:18

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.

23:42

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.

24:04

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.

24:12

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-

24:27

Jesse Hanley

Mm-hmm.

24:27

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?

24:48

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-

24:57

Aaron Francis

Mm-hmm

24:57

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.

25:21

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.

25:36

Aaron Francis

Mm-hmm.

25:37

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.

25:57

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.

26:10

Aaron Francis

Mm.

26:10

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?

26:36

Um, you know, if I'm in the kitchen and I'm, I've got my little cursor mobile out and I'm-

26:40

Aaron Francis

Sure

26:40

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.

27:09

Aaron Francis

Mm. Mm-hmm.

27:09

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?

27:34

Aaron Francis

Oh my gosh.

27:35

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.

27:56

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?

28:22

Aaron Francis

Mm-hmm.

28:22

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?

28:36

Aaron Francis

Yeah, it totally does. It sounds like, uh, pick better problems is step zero. Um-

28:41

Jesse Hanley

Yeah

28:42

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.

28:54

Jesse Hanley

Yeah.

28:54

Aaron Francis

With Bento, what did you do to get like your first-

28:57

Jesse Hanley

How did I end the game, huh?

28:58

Aaron Francis

I don't know. Yeah. How did you get your first 10K in the door there?

29:01

Jesse Hanley

So I was already doing marketing consulting and I had the marketing agency.

29:06

Aaron Francis

Mm.

29:06

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.

29:19

Aaron Francis

Mm-hmm.

29:19

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-

29:41

Aaron Francis

But Andrew could.

29:43

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-

29:57

Aaron Francis

And hiring good people 'cause he's-

29:58

Jesse Hanley

And-

29:58

Aaron Francis

... he's a very smart boy.

30:00

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.

30:23

But without An- without Andrew, I wouldn't be here. At all today.

30:28

Aaron Francis

Mm-hmm.

30:28

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.

30:49

Aaron Francis

Yeah.

30:50

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?

31:19

Um, like Bento's average revenue per user is about 175, right?

31:24

Aaron Francis

Wow.

31:24

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.

31:44

Aaron Francis

Yeah.

31:45

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.

32:10

But that, but if I had a product that was $30 or $90, Mostly Technical ads won't work.

32:18

Aaron Francis

Mm-hmm.

32:19

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.

32:29

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-

32:46

Jesse Hanley

Cool

32:46

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-

32:53

Jesse Hanley

Uh-huh

32:53

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-

33:02

Jesse Hanley

Mm

33:02

Aaron Francis

... don't do, is, is hire expensive people. So who else is kinda in your stable of friends of Bento?

33:08

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.

33:16

Aaron Francis

Yeah. Yeah, yeah, yeah, yeah, yeah.

33:18

Jesse Hanley

You know him.

33:18

Aaron Francis

Atkinson. Yeah.

33:20

Jesse Hanley

Awesome. Good, good.

33:20

Aaron Francis

Got it. Nailed it.

33:21

Jesse Hanley

Memory- memory-

33:21

Aaron Francis

Got it in one.

33:22

Jesse Hanley

Nailed it. Nailed it. Um, Andy Atkinson, uh, very helpful talking a while ago around when we did our podcast.

33:30

Aaron Francis

Mm-hmm.

33:30

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.

33:40

Aaron Francis

Mm-hmm.

33:40

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.

33:51

Aaron Francis

Mm.

33:52

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.

34:15

Aaron Francis

Cool

34:15

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.

34:37

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.

35:00

Uh, they helped me kinda like build the V1 of Bento's workflow automation platform.

35:03

Aaron Francis

Mm-hmm.

35:03

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?

35:17

Aaron Francis

Cool.

35:17

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.

35:33

Aaron Francis

Mm-hmm.

35:34

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-

35:53

Aaron Francis

Yeah. Yeah. So why not, why not hire, I guess is the obvious question there.

35:58

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.

36:20

He broke up with his girlfriend, went MIA for two months. He was fantastic at the start. Never heard from him again, you know?

36:25

Aaron Francis

Wow.

36:26

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.

36:46

Um, and, uh, core to that is keeping expenses low.

36:52

Aaron Francis

Mm.

36:53

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-

37:07

Aaron Francis

Mm-hmm

37:07

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.

37:29

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.

37:52

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.

38:18

Aaron Francis

Mm.

38:18

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-

38:33

Aaron Francis

Mm-hmm

38:33

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.

38:54

Even support, like our support volume at seven figures is less than it was at 10 to 15K. Um-

39:01

Aaron Francis

Wow

39:01

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?

39:23

Agent auto does that now and then-

39:25

Aaron Francis

Mm-hmm

39:25

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.

39:43

Aaron Francis

That's awesome.

39:43

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."

39:58

Aaron Francis

Yes.

39:58

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."

40:09

Aaron Francis

Mm-hmm.

40:09

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.

40:19

Aaron Francis

A Ger- a German invoice. We can be specific. That's okay.

40:23

Jesse Hanley

Yes, yes, yes, yes.

40:25

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.

40:38

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.

40:53

Aaron Francis

Yeah, that's what I-

40:53

Jesse Hanley

Speedshop Rails container

40:54

Aaron Francis

... that's what I was looking for, Speedshop-

40:56

Jesse Hanley

Yeah

40:57

Aaron Francis

... Rails retainer.

40:59

Jesse Hanley

Yeah.

40:59

Aaron Francis

Thought it was speedshop.io, but that's not right. It is-

41:01

Jesse Hanley

.co I think

41:02

Aaron Francis

... speedshop.co. There you go.

41:05

Jesse Hanley

Yeah. And so then-

41:05

Aaron Francis

Y'all check that out

41:05

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-

41:20

Aaron Francis

Mm

41:20

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-

41:34

Aaron Francis

Yeah

41:34

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.

41:55

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.

42:13

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-

42:26

Jesse Hanley

Use them

42:26

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.

42:47

So if you want error tracking for Laravel, you can check out honeybadger.io. This episode is also brought to you by Bento.

42:54

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.

43:19

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.

43:28

Aaron Francis

Okay. Well, you gotta do the advertisers right. You gotta give the URL as where, as well.

43:33

Jesse Hanley

Oh.

43:33

Aaron Francis

So where can-

43:34

Jesse Hanley

Bento

43:34

Aaron Francis

... users find?

43:36

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.

43:50

Aaron Francis

Okay. So thank you to honeybadger.io and Bento- ... at bentonow.com. Well done. First-

43:57

Jesse Hanley

Yay

43:57

Aaron Francis

... first, uh, guest ad read. That was perfect.

44:00

Jesse Hanley

Yay.

44:00

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-

44:14

Jesse Hanley

Hmm

44:14

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.

44:28

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?

44:51

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.

45:00

Aaron Francis

Mm-hmm.

45:00

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.

45:22

You know, probably put my data in different tier systems, cut costs down. Basically got my Elastic cost down to half-

45:28

Aaron Francis

Wow

45:28

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.

45:50

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.

46:18

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.

46:43

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.

47:05

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.

47:21

Aaron Francis

Hmm.

47:21

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.

47:51

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.

48:00

Aaron Francis

Right.

48:00

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?

48:22

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?

48:44

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.

49:06

That's correct, right? Point it to the WAL logs and it will follow them. Yeah? That's correct, yeah.

49:12

Aaron Francis

Mm-hmm.

49:12

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-

49:39

Aaron Francis

Hmm

49:39

Jesse Hanley

... a library called, uh, Glib. Is that it? G-C-L-I-B. Is that it?

49:43

Aaron Francis

G-C... Yeah, yeah, yeah, yeah.

49:44

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.

50:08

Now, if you fail over from your database to another database in recovery, now all your B-tree indexes are corrupt.

50:16

Aaron Francis

Hmm.

50:16

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.

50:26

Aaron Francis

No, you're hosed. Yeah.

50:28

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.

50:48

Even if you do that intelligently, you got, like, two hours of cutting stuff, I think, of, of, of-

50:53

Aaron Francis

Hmm

50:53

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.

51:14

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-

51:27

Aaron Francis

Brother, I have no idea.

51:30

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.

51:53

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-

52:03

Aaron Francis

Mm-hmm

52:03

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

52:23

Aaron Francis

I can see why this took so long.

52:25

Jesse Hanley

Yeah. There are some options. Um, I'm not going too long, am I? Is this interesting-

52:29

Aaron Francis

No

52:30

Jesse Hanley

... this topic?

52:30

Aaron Francis

This is perfect.

52:31

Jesse Hanley

Okay.

52:31

Aaron Francis

And I just love-

52:32

Jesse Hanley

Okay

52:32

Aaron Francis

... that you keep running into roadblocks.

52:34

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."

52:58

Aaron Francis

You could-

52:58

Jesse Hanley

There are no docs

52:58

Aaron Francis

... you could be making all this stuff up. I have never heard of Slony or Selectrics or whatever-

53:04

Jesse Hanley

But-

53:04

Aaron Francis

... you just said

53:04

Jesse Hanley

... but, but you go to these, you go to these, like, old email threads, you know, like the, um, uh-

53:10

Aaron Francis

The mailing list?

53:11

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.

53:31

Aaron Francis

Ugh.

53:32

Jesse Hanley

Ugh. Um, and so Bacado, it gives me shivers. Bacado is this trigger-based replication system. So what does this do?

53:40

Aaron Francis

Ooh.

53:40

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.

54:03

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.

54:24

Aaron Francis

Hmm.

54:24

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.

54:46

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-

55:00

Aaron Francis

Oof

55:01

Jesse Hanley

... you could, you can, you could... Horrible. But they, they've got strategies for conflicts and all that.

55:05

Aaron Francis

Mm-hmm.

55:06

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.

55:12

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-

55:20

Jesse Hanley

Nope. Nope

55:20

Aaron Francis

... it sounds like it's just putting new data in.

55:22

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-

55:38

Aaron Francis

Oh, yes

55:38

Jesse Hanley

... you don't have dead tuples.

55:40

Aaron Francis

Yeah.

55:40

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.

55:46

Aaron Francis

Oh, that's clever.

55:47

Jesse Hanley

Uh, okay. So it's clever, but why is it hard?

55:52

Aaron Francis

Yeah.

55:52

Jesse Hanley

So-

55:52

Aaron Francis

It sounds nice and easy, so what happened?

55:55

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.

56:17

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.

56:33

Aaron Francis

What, what's the service like?

56:34

Jesse Hanley

They run a HubSpot app. They run a HubSpot app.

56:36

Aaron Francis

Daniel Zarek. Zarek.

56:38

Jesse Hanley

Oh, you're so good today. Awesome.

56:39

Aaron Francis

Two for two. Two for two.

56:40

Jesse Hanley

Ne- thank you, my second brain. Um-

56:43

Aaron Francis

Yes

56:43

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-

56:53

Aaron Francis

Suck it, Daniel

56:54

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-

57:01

Aaron Francis

Mm-hmm

57:01

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.

57:22

Aaron Francis

Yeah, seriously. You, you owe him-

57:23

Jesse Hanley

Yeah

57:23

Aaron Francis

... a couple of beers and a, and a properly annotated invoice 'cause he's German.

57:27

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?

57:44

Aaron Francis

Ah.

57:45

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.

58:11

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.

58:24

Aaron Francis

Four days-

58:24

Jesse Hanley

Me-

58:24

Aaron Francis

... of Picado ripping.

58:26

Jesse Hanley

Me don't likey. Four days too long. Um, and the thing is, is-

58:29

Aaron Francis

That's way too long

58:29

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?

58:55

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?

59:12

Aaron Francis

Nice.

59:13

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.

59:21

Aaron Francis

So for the audience, instead of continually paying index maintenance fees, uh, you know, CPU fees, not actual dollar fees-

59:27

Jesse Hanley

Too many rights. Yeah

59:28

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?

59:40

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.

1:00:02

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?

1:00:27

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.

1:00:47

Aaron Francis

Mm-hmm.

1:00:47

Jesse Hanley

Like, like, I don't know, I just think that's really cool. Like he, he was up for that.

1:00:52

Aaron Francis

I saw you-

1:00:53

Jesse Hanley

So-

1:00:53

Aaron Francis

... tag Sam and say Dmitri needs a raise, so sounds like you guys are, you guys are tight.

1:00:58

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?

1:01:17

Aaron Francis

Of course.

1:01:18

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.

1:01:45

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-

1:02:02

Aaron Francis

Mm

1:02:02

Jesse Hanley

... "When's it gonna kick? When's it gonna kick the next batch?" 100,000, a million.

1:02:06

Aaron Francis

Mm.

1:02:07

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.

1:02:27

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

1:02:57

it's not kicking in. We're restarting Bacado.

1:02:59

Aaron Francis

Is the app still alive? You're still pointed at Heroku-

1:03:01

Jesse Hanley

Yes

1:03:01

Aaron Francis

... so you're okay?

1:03:02

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.

1:03:08

Aaron Francis

Okay.

1:03:08

Jesse Hanley

I've got almost a terabyte of RAM. I don't need that much RAM, you know?

1:03:12

Aaron Francis

Okay.

1:03:12

Jesse Hanley

Um, so, so I'm good.

1:03:13

Aaron Francis

So as long as you're alive, you're okay.

1:03:15

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."

1:03:37

Aaron Francis

Nah. Yeah.

1:03:38

Jesse Hanley

I'm like, "Ask an agent, damn it." And he's like-

1:03:40

Aaron Francis

Steady, steady hand on the wheel, that's what you want actually.

1:03:43

Jesse Hanley

It is. So this is why you hire professionals or you work with professionals.

1:03:47

Aaron Francis

Uh-huh.

1:03:47

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?

1:04:09

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.

1:04:25

Aaron Francis

Oh my gosh.

1:04:25

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.

1:04:49

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.

1:05:06

Aaron Francis

I didn't realize that we were cutting it this close.

1:05:09

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.

1:05:34

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.

1:05:56

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-

1:06:11

Aaron Francis

Mm

1:06:11

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.

1:06:38

Aaron Francis

Cool.

1:06:39

Jesse Hanley

Um, do that. All works. Like, all works. Smooth, things are fast. Takes a little bit, but we're not done, Aaron.

1:06:47

Aaron Francis

Oh, no.

1:06:48

Jesse Hanley

So-

1:06:48

Aaron Francis

How-- There's no more time. You're here talking to me. There's no more time for anything to go wrong.

1:06:53

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."

1:07:06

Aaron Francis

Can I go eat some schnitzel or something?

1:07:07

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-

1:07:24

Aaron Francis

Uh-oh

1:07:24

Jesse Hanley

... like, basically p-peaky, peak, peak, peaky-

1:07:26

Aaron Francis

Primary keys, yeah

1:07:27

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-

1:07:38

Aaron Francis

No

1:07:38

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.

1:07:53

Aaron Francis

Oh, no.

1:07:54

Jesse Hanley

Um, and that reset sequence is back, like, mm, an hour basically, I think-

1:08:00

Aaron Francis

Hmm

1:08:00

Jesse Hanley

... since, like, the last, the last kick. Um, and so-

1:08:03

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-

1:08:16

Jesse Hanley

Bring it back to 50

1:08:17

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-

1:08:24

Jesse Hanley

But not error

1:08:25

Aaron Francis

... it says, "My friend, there's already a 51 there."

1:08:28

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-

1:08:36

Aaron Francis

Right

1:08:37

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.

1:08:47

Aaron Francis

Yeah.

1:08:48

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.

1:08:59

Aaron Francis

Yeah.

1:08:59

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-

1:09:10

Aaron Francis

Yeah, seriously

1:09:10

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-

1:09:23

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.

1:09:34

Jesse Hanley

Yeah.

1:09:34

Aaron Francis

So you're live on Postgres. What-- I'm sorry, you're live on PlanetScale.

1:09:37

Jesse Hanley

On PlanetScale.

1:09:38

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.

1:09:54

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.

1:10:17

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.

1:10:39

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?

1:10:54

Aaron Francis

Oh my goodness.

1:10:55

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-

1:11:03

Aaron Francis

Mm-hmm

1:11:03

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.

1:11:27

Aaron Francis

Yeah.

1:11:27

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-

1:11:44

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.

1:11:49

Jesse Hanley

Yeah. Oh, I'm at the conference, so I want the biggest instance I can to-

1:11:53

Aaron Francis

Mm-hmm

1:11:53

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.

1:12:17

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-

1:12:30

Aaron Francis

No

1:12:31

Jesse Hanley

... I think. Yeah, so, so I ch- I chose them for that reason. Um, and then everything else is a bonus.

1:12:36

Aaron Francis

Yeah, getting, getting your own dedicated German database engineer, that's pretty hard to come by. That's pretty awesome.

1:12:44

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-

1:12:52

Aaron Francis

Yeah

1:12:52

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.

1:13:16

Aaron Francis

Yeah.

1:13:17

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.

1:13:43

I think I, I think I was the largest they've moved now.

1:13:47

Aaron Francis

Yeah.

1:13:47

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-

1:14:00

Aaron Francis

Oh

1:14:00

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.

1:14:27

It's, uh, it just means that it's actually probably good, good software. Um-

1:14:30

Aaron Francis

Yeah, it's baked. Yeah

1:14:31

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-

1:14:38

Aaron Francis

Yeah

1:14:38

Jesse Hanley

... all that kind of stuff, right? So, um, yeah. It's good.

1:14:42

Aaron Francis

So now, now we'll, we'll start wrapping up here. Now you have this behind you.

1:14:47

Jesse Hanley

Yeah.

1:14:47

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?

1:15:00

Jesse Hanley

Same, same. Just normal stuff.

1:15:02

Aaron Francis

Oh, like just-

1:15:02

Jesse Hanley

Just same, same

1:15:02

Aaron Francis

... just live, just living your nice life?

1:15:04

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...

1:15:27

I, I like my day-to-day.

1:15:29

Aaron Francis

Mm-hmm.

1:15:29

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,

1:15:59

a new destination because, like-

1:16:01

Aaron Francis

Mm-hmm

1:16:01

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-

1:16:08

Aaron Francis

Sure

1:16:08

Jesse Hanley

... you know?

1:16:09

Aaron Francis

Yeah.

1:16:09

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.

1:16:19

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."

1:16:32

Jesse Hanley

Yeah. Can I, uh, can I just give, like, one last caveat with that?

1:16:35

Aaron Francis

Please.

1:16:35

Jesse Hanley

Um, it's a lot easier to say that because I sold my last business.

1:16:39

Aaron Francis

Mm-hmm.

1:16:39

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.

1:17:06

Aaron Francis

Yeah.

1:17:06

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...

1:17:29

'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?

1:17:35

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-

1:17:43

Jesse Hanley

I'm sorry

1:17:43

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-

1:17:53

Jesse Hanley

Dude, I'm psyched. It's, like, the most-

1:17:55

Aaron Francis

Maybe how happy are you now?

1:17:57

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.

1:18:09

Aaron Francis

Mm-hmm.

1:18:09

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?

1:18:23

Aaron Francis

Uh-huh.

1:18:23

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.

1:18:32

Aaron Francis

He was. He was posting pictures of urinals. It made no sense to me.

1:18:36

Jesse Hanley

Of urinals. That's amazing content.

1:18:36

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-

1:18:44

Jesse Hanley

Yeah

1:18:44

Aaron Francis

... you, you know, we couldn't do this show without him. We're the perfect foils for each other, in fact.

1:18:49

Jesse Hanley

You're the perfect couple. You're the perfect-

1:18:50

Aaron Francis

Yes

1:18:50

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-

1:18:56

Aaron Francis

Mm-hmm

1:18:56

Jesse Hanley

... basically married couples.

1:18:57

Aaron Francis

Mm-hmm.

1:18:58

Jesse Hanley

And I feel like it's just very rare now. I think you guys, you guys are, like, the leading Married-

1:19:03

Aaron Francis

Mm-hmm

1:19:03

Jesse Hanley

... business software couple at the moment. So-

1:19:06

Aaron Francis

Mm

1:19:06

Jesse Hanley

... kudos to-

1:19:07

Aaron Francis

Yeah, that's the goal

1:19:08

Jesse Hanley

... the podcast.

1:19:08

Aaron Francis

We set out to do the best married couples show, and here we are.

1:19:11

Jesse Hanley

That's so funny.

1:19:12

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-

1:19:22

Jesse Hanley

This is fun

1:19:22

Aaron Francis

... tell the people, tell the people where they can find you besides Bento at bentonow.com. Where else can they find you?

1:19:30

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.

1:19:53

So yeah.

1:19:54

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.

1:20:12

Jesse Hanley

They eventually become customers. They eventually become customers.

1:20:13

Aaron Francis

Eventually. Play long-term games, so.

1:20:15

Jesse Hanley

Everyone be a customer, you know?

1:20:17

Aaron Francis

Exactly.

1:20:17

Jesse Hanley

Take the long enough horizon.

1:20:19

Aaron Francis

Exactly. Well, thanks again for doing this. This was a blast. Um-

1:20:23

Jesse Hanley

Pleasure

1:20:23

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...

1:20:45

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.

1:20:51

Jesse Hanley

Bye.

1:20:52

Aaron Francis

See ya.

Get the next one by email

I’ll send you some more. Not too many.

Join 7,500+ other readers.

Read past issues