Podcast Search

Developing Perspective

#45: Failing in Success

Select a time to play from there. The line being spoken is highlighted as the audio plays.

0:00:00Hello and welcome to Developing Perspective. Developing Perspective is a podcast discussing

0:00:05news of note in iOS, Apple, and the like. I'm your host, David Smith. I'm an independent

0:00:10iOS developer based in Herne, Virginia. Today is Friday, May 11th, and this is show number

0:00:1445. Developing Perspective is never longer than 15 minutes, so let's get started.

0:00:20So if you can hear this, then the topic of this show was successful. And by that I mean

0:00:25A few hours ago I had a link on marku.org, by Marku Arment, to the podcast, to what you're

0:00:34listening to right now.

0:00:35He was linking to an article I wrote about iOS 5.1.1 upgrade stats, which is a good read

0:00:42if you're interested in that kind of thing, just sort of showing how quickly users are

0:00:47upgrading to iOS 5.1.1 over updates.

0:00:51That's all well and good and interesting, but the thing that I wanted to talk about

0:00:55for today's show, which I wasn't expecting to do a show. It's currently about 7, 7 p.m.

0:01:00Eastern time, and usually about this time I'd be at home, but instead I've just spent

0:01:05the last couple of hours trying to resurrect and put back together my server configuration

0:01:10that I had been hosting Developing Perspective on, and that process and kind of the, some

0:01:16of the topics around that I thought were kind of interesting and might be worth a sort of

0:01:19broader discussion here.

0:01:22And so let's just sort of dive into that.

0:01:25So I guess you could kind of start off by talking about it as

0:01:29being sure that you're kind of planning for success.

0:01:32So Developing Perspective started almost a year ago. I've dug it up and I think the

0:01:36first episode was in July of last year.

0:01:40So not quite a year, but you know, about ten

0:01:43and a bit months.

0:01:44And

0:01:46You know, originally it started off as a project that

0:01:50I just kind of wanted to do, almost to prove to myself that I could do it.

0:01:55And

0:01:57you know, that sort of was worthwhile. It all got started actually from an episode of

0:02:01Back to Work with Merlyn Mann

0:02:03where he

0:02:04was talking about advice he'd give people who asked him about blogging and, you know, he did say,

0:02:08"Oh, Merlyn, I want to be a successful blogger like you.

0:02:12You know, what do I have to do? What should I do?" And he said,

0:02:15if you want to be successful at something or

0:02:18moreover if you kind of want to see if you want to be successful

0:02:21what you need to do

0:02:22is

0:02:23write every day for a blog

0:02:26whether that gets published or not doesn't really matter

0:02:29what you need to do is every single day you need to show up

0:02:32and you need to write

0:02:33and you need to write an article and you need to kind of get into that

0:02:36process

0:02:37because it'll very quickly show if that's what you think you'd like

0:02:40what do you think you'll actually enjoy is in reality what you'd want.

0:02:45And you can kind of judge from there.

0:02:47And so, you know, I was like, that sounds interesting. I really like listening to podcasts.

0:02:51I really like

0:02:52sort of the topics that get discussed. I'm a big 5x5 fan.

0:02:56And so I was like,

0:02:59you know, maybe

0:02:59this is something I'd like to do.

0:03:01And so I started developing perspective.

0:03:05At the time it was just kind of, it started off as just a daily

0:03:09news show, essentially. I would talk for a few minutes about links and things, and if

0:03:12you go back to episode one, it is horrible. I would honestly rather you didn't, but if

0:03:17you want a little bit of fun at my expense, that's certainly a place to go. You know,

0:03:21I'm recording it on the CUSB Logitech headset, and it's kind of horrible. I sound like I'm

0:03:28stoned, and I mean, it's just horrible. But the thing that was important about that is,

0:03:34I've been doing-- I sort of-- I kept doing it.

0:03:37And over time, you just kind of get better at it.

0:03:39And I hope I don't sound stoned anymore.

0:03:41I hope I sound good and clear, and the quality of the audio is great.

0:03:45And that's just kind of the process I've been going through for a long time.

0:03:49And it's not like the most people who listen to the show

0:03:52either know me personally, or honestly, even like friends and family.

0:03:55My dad's probably the biggest listener of the show.

0:03:59And so that's kind of the way it had always been.

0:04:01and I had Developing Perspective hosted just on a VPS that I managed

0:04:06just over on Linode, which

0:04:08if you don't know about Linode, they just sort of essentially rent a virtual Linux box

0:04:12for not very much money and it's great. I host my main blog there and all kinds of things.

0:04:17And the interesting thing about this link that Marco did, and this is kind of

0:04:21getting to the technical part of this

0:04:23discussion, was

0:04:25I host both the

0:04:27Developing Perspective WordPress installation, which is just I use WordPress

0:04:31because it's a really easy way to set up a podcast, my static Octopress-based website,

0:04:38DavidSmith.org, and then I was also hosting the MP3 files, just served raw from Apache,

0:04:44all on the same server. And it turns out that is not a good idea. And at this point I'm

0:04:50not entirely sure what it was, but some combination of those three things meant that when all

0:04:56of a sudden a few thousand people showed up and said, "Hey, that sounds interesting. Let

0:05:00let me check that out, the server just died. And it's kind of fascinating because the server

0:05:06has been, just before I restarted it for the first time, I pulled the stat and its previous

0:05:12uptime had been 573 days. So it had been up since, you know, for getting on towards two

0:05:20years. But then this particular thing just brought it to its knees. And so it was kind

0:05:26I think mostly it was the fact that all of a sudden I'm serving MP3 files in mass,

0:05:31that it had just never been doing with that.

0:05:34And Apache is dealing with this interesting problem of dealing all the small files from the blog post

0:05:39in addition to serving some HTML files for the podcast,

0:05:46and then all of a sudden serving these 9, 10 meg MP3 files, and it just died.

0:05:52died. The server was just toast. I ran out of memory. It seems to be the actual, like,

0:05:56if I had a cause of death, ran out of memory.

0:06:01And so now I'm going to walk through quickly the process that I went through to then get

0:06:04it back on its feet, because hopefully, if you're listening to this, I'm sure you do

0:06:09some things online, you have services, you have all kinds of things that you someday

0:06:13would like to have this problem. You know, kind of be slashdotted, be fireballed, whatever

0:06:17you kind of want to call it, where you just kind of get crushed by unexpected load.

0:06:23And so this is the process I went through.

0:06:25So initially, really all I could do was restart the server a lot.

0:06:29It would run out of memory, I'd restart it, it would come, you know, so it would be go

0:06:33down for a minute, come back up, run for about five minutes, go back down.

0:06:38That's not great, but at least sort of one out of, or five out of six of people coming

0:06:44to my website during that period were getting the site.

0:06:46So that's not... I'd like 100%, but at least a good percentage of people were.

0:06:53So then while I'm doing that, while I'm kind of sitting there just restarting the server

0:06:57whenever it starts dying, I'm in the background, okay, I'm trying to analyze what's going on,

0:07:03and I start to see, okay, it seems like if I pull the MP3 files off, then things will

0:07:08be okay.

0:07:09So I start taking all the MP3 files for the show and move them over to S3.

0:07:14Now I'm not sure if I want to ultimately host them on S3 because if it's successful it could

0:07:19actually turn out to be fairly expensive, but in the short term what's more expensive

0:07:24is losing the opportunity to gain a listener, to gain you if you're listening to this right

0:07:29now.

0:07:30And so I'm just putting them there and I'll deal with that next week sometime I'll work

0:07:35out a good home for them.

0:07:37So I start uploading those to there.

0:07:41need to go through my WordPress, uh, PodPress plugin and redirect all of the files from

0:07:48my old, sort of their old home on my VPS to S3. Okay, so go through and do that for all

0:07:5454 episodes. Uh, it kind of makes me wish I didn't have quite so many episodes, but

0:07:58I guess that's, you know, a mixed blessing. And then I also realized that I had kind of

0:08:03an interesting thing where very recently, as in, uh, this morning or one or two days

0:08:09ago, I'd recently migrated the

0:08:13podpress, wordpress hosting for the blog from a

0:08:18dream host account that I had to my VPS and set it up there.

0:08:22Originally I was like, "Oh, that'll probably be more performant. I have a bit more control over VPS

0:08:26than my shared dream host account

0:08:28where it had just kind of been set up on a whim."

0:08:31And so I was like, "Oh, well that's interesting because I actually have

0:08:34a completely working parallel installation of my site

0:08:39with all the same data in it.

0:08:42And so what I can actually do then, which this was kind of fun

0:08:45to play with, but I then went into the DNS records

0:08:50for the domain, so for developingperspective.com, and I just

0:08:54redirected them back to the old site.

0:08:56And so I almost had this built-in load balancer

0:09:00way up at the DNS level, because as those changes start moving around and

0:09:05propagating,

0:09:06I'm starting to split my traffic between people who have the old record and people who have

0:09:09the new record, which in the short term really helps bring down my traffic, which worked

0:09:14out really well.

0:09:15Now, that almost solved the problem, but I still had a bunch of pointers pointing back

0:09:21to the old location of the MP3 files, which were, you know, essentially if someone's downloaded

0:09:27the feed RSS in an app or something like that, they're still going to be pointing to that.

0:09:33And so for those people what I did is you went and did a .htaccess file to tell Apache,

0:09:40"Hey, if you get a request for this file, actually redirect them with a 301 to S3."

0:09:46And that really worked.

0:09:49At this point the site seems to have been up for about an hour, so crossing my fingers,

0:09:53things seem to be doing great.

0:09:55And it's kind of exciting to me.

0:09:58And then the last little thing I needed to do to just tie it off was I wanted to make

0:10:01sure that anybody who was accessing the old site, sort of from an old DNS record, I changed

0:10:08the landing page of that to just direct them to iTunes.

0:10:11So if they are listening to it and think it's interesting, well, just go to iTunes for now.

0:10:17Until everything's sorted out, I'm pretty sure Apple can scale.

0:10:19At least they can scale something like this.

0:10:22So that's kind of the story, and it worked.

0:10:25And I've got to say, it's kind of been an emotional thing, too.

0:10:29after all that settled down and everything set up

0:10:32and it seems to be running is the realization that right now

0:10:36developing perspectives, something that just sort of started

0:10:39on a whim

0:10:40almost a year ago and something that I've spent hours and hours just kind of

0:10:44working away on kind of an obscurity

0:10:47is suddenly kind of successful. It's currently the number eight

0:10:51tech news podcast in iTunes and

0:10:54that's insane. That's just

0:10:57that's immense to me. It's something that I've been doing just as a labor of love

0:11:01for

0:11:02you know for so long and then just to see all of a sudden people actually like it and get

0:11:06some great feedback and people be like, "Hey, this is great." You know, it's a very

0:11:09different format I think and hopefully that appeals to people. I'm being very

0:11:13careful about saying, "Hey, it's fifteen minutes, it's fifteen minutes, it's fifteen minutes."

0:11:17You know, you can

0:11:19kind of commit to listening to my show

0:11:21without a huge investment of your time. If you skip an episode, that's great. They're

0:11:25all very self-contained, I'm not running threads through all of them.

0:11:28You know, it's just designed to be something that's--if you're interested in Apple, if

0:11:31you're interested in iOS development, Mac development, those types of topics, that I

0:11:34can give you a quick hit and be like, "Hey, you know, here's some things that are interesting

0:11:37to me, here's some things you should check out."

0:11:40And, you know, so I couldn't really--sort of couldn't be happier about that.

0:11:45And I'm just--so I want to say thank you.

0:11:46Thank you to all the--all the listeners out there who are checking it out for the first

0:11:51time.

0:11:52Welcome, I hope you enjoy it.

0:11:53and you know thanks to Marco for

0:11:55linking to me. I mean it's one of those things of

0:11:58that you kind of have in this

0:11:59sort of in the online world where someone's currency is the

0:12:04sort of the current is the

0:12:07the links they choose to bestow on other people.

0:12:09You know it's kind of the concept of page rank with Google is that

0:12:12the best way to judge the value or the worthiness of a site

0:12:16is by sort of aggregating the value of the sites that point to them.

0:12:20And so you know it means a lot to me for

0:12:22you know, someone who I respect to point to the work that I've been doing.

0:12:27So anyway,

0:12:29that's kind of today's show.

0:12:31Hopefully that was interesting. It's kind of a bit more off topic than a lot of what I do.

0:12:35I promise on Monday I'll be back to kind of my normal iOS and, you know, stuff like that.

0:12:41I should actually be launching audiobooks. It finally got approved late last night.

0:12:46Tuesday I'll be launching audiobooks and be kind of walking you through the process of

0:12:50launching an app or in this case relaunching it with a major update

0:12:53which will hopefully be interesting to you.

0:12:56Couple of topics, just things I wanted to mention. The 5x5 app just launched

0:13:00which if you're a 5x5 listener, I recommend

0:13:04at least checking it out, seeing if it's what you like. I'm a long time live listener

0:13:08I actually wrote a Mac app 5 Live which I'll also have links to in the show notes

0:13:12just for listening on your Mac, but this is for listening on your iOS

0:13:16and even if you don't think the app is useful, I definitely recommend just checking it

0:13:20out as a way to sort of give back to 5x5, a way to make a sort of a concrete contribution

0:13:26to them that'll support the shows, but then also we sort of benefit yourself and get some

0:13:31cool functionality.

0:13:32So anyway, that's today's show.

0:13:34As always, if you have questions, comments, concerns, thoughts, hit me up on Twitter.

0:13:39I'm @_davidsmith, underscore D-A-V-I-D S-M-I-T-H.

0:13:45And if you want to follow this podcast on Twitter and see when there's new shows, new

0:13:49There's a feed for that and that's @devperspective.

0:13:55And otherwise, I hope you have a great weekend.

0:13:58Happy coding and I will talk to you on Monday.

0:14:01Thanks.

0:14:02[