Better HN
topnewbestaskshowjobs
Log inSign up

christoomey

40 karma · joined Jun 15, 2013 (13y ago) · 14 submissions

Submissions

1.

Wvim: Quickly edit shell scripts, aliases, and functions(ctoomey.com ↗)

2 points · by christoomey · 5y ago · discuss

comment 6y ago · link · parent

Destroy All Software is absolutely fantastic and without question worth $29/month. Probably more than any other single resource, DAS provided some of the most foundational ideas that still drive how I think about software.

You can also view a handful of the screencasts for free (no sign in needed). Some of my personal favorites.

* https://www.destroyallsoftware.com/screencasts/catalog/funct... * https://www.destroyallsoftware.com/screencasts/catalog/a-com... * https://www.destroyallsoftware.com/talks/boundaries

Also, if podcasts are more your thing, we just had Gary as a guest on the Bike Shed podcast this week: https://www.bikeshed.fm/269.

comment 6y ago · link · parent

I've added a note at the bottom of the post as your gem seems like a great option for this sort of functionality. Thanks again for sharing!

comment 6y ago · link · parent

Oh that's interesting, thanks for the additional detail! I'm intrigued by what you mean when you say: "tell the app to stay in read only mode until told otherwise". Does that mean use the read-only replica connection during that time? If so, did you have to configure some error handling for that timeframe?

comment 6y ago · link · parent

This looks interesting, thanks for sharing! Most of the apps I work with run on Heroku, so I'd likely end up reaching for their [High Availability Postgres] feature, but nice to know of an alternative if I'm not on heroku.

That said, I don't think this would serve the intended purpose here. My specific use case was upgrading the postgres version I was using. To do that we introduced a follower, prevented writes to the primary (with the approach summarized in the post), upgraded the follower, and finally promoted the follower to be the new primary. Automatic failover to the follower during this process would likely confuse things.

[High Availability Postgres]: https://devcenter.heroku.com/articles/heroku-postgres-ha

comment 6y ago · link · parent

The approach I shared worked really well for the use case I had (API, read-heavy traffic load, and a solid experience in the mobile apps with retry logic for failed writes), but I certainly wouldn't treat it as a silver bullet.

I would want to test the end-user experience before using it in another app, especially one with very different usage patterns, but for this case it ended up being a great optimization between simplicity and robustness.

comment 6y ago · link · parent

Glad I didn't let you down :) In my defense, I did call the segment "Good Idea, Terrible Idea". This solution did end up being much better than what I was initially considering, but sometimes it takes a few bad ideas to get to the good one.

We also discussed the eventual solution I ended up with (which is summarized in this post) in this week's Bike Shed if you want to hear a bit more about it: https://www.bikeshed.fm/264.

8.

Read-Only Mode for Better Rails Downtime(ctoomey.com ↗)

86 points · by christoomey · 6y ago · 12 comments

comment 6y ago · link · parent

'Maybe Haskell' is a fantastic intro to using types and why you might care about them. It's focused in scope and really meant to give you a taste of some functional ideas and a bit of Haskell, and in that effort it does a great job.

Also, you can't beat the price ($0). If nothing else, probably worth browsing through to see if something resonates with you.

10.

Downsampling Data with Postgres Window Functions(ctoomey.com ↗)

5 points · by christoomey · 6y ago · discuss

comment 8y ago · link · parent

Hey there, I'm Chris, one of the thoughtbotters who helped build Upcase over the years. We're all super excited to take this step and share Upcase with the world, and I'm more than happy to answer any questions you all might have.

12.

Data-Driven Charity(johndcook.com ↗)

3 points · by christoomey · 9y ago · discuss

13.

Announcing Bourbon Smash, a Course from Thoughtbot on Sass, Bourbon, and Neat(thoughtbot.com ↗)

3 points · by christoomey · 10y ago · discuss