Benchmarking Postgres vs. Redis Reads

John Bachir's Code Blog
March 21, 2015

I was curious what would be the difference in performance between Postgres and Redis for basic read operations. Redis is highly optimized for writing and reading specific types of data structures, where Postgres, with its ACID guarantees and general-purpose features, can't compete. But for the most basic read operations, where Postgres . . .

Read More

Setting Priorities For Sidekiq Workers

John Bachir's Code Blog
March 07, 2015

I love Sidekiq, and Medstro is a Sidekiq Pro customer. We started out with pretty basic usage, using no custom workers, only using the ActiveRecord extension which enables .delay that you might be familiar with in other queueing systems. We also use devise-async to automatically catch all our outgoing devise email.

We've . . .

Read More

MetaInspector

John Bachir's Code Blog
October 09, 2014

MetaInspector is a handy gem which makes it easy to get information about a webpage such as…

So let's say that you have a field in your app's user profiles for "personal . . .

Read More

Monitoring connection quality of Amtrak wifi vs. phone tethering

John Bachir's Code Blog
July 17, 2014

Kudos to Amtrak for having free Wi-Fi. But the network quality is dependent on a mobile data connection, which varies throughout the trip. Meanwhile, I also have tethering on my phone.

One might guess that the connection quality would be pretty much identical between the two, since they both rely on similar or the same networks over . . .

Read More

DHH Sounds Out of Touch

John Bachir's Code Blog
May 01, 2014

I just read Uncle Bob's Test Induced Design Damage?.

I keep fearing the day when Rails messes up and becomes too complicated or poorly maintained or something else, but that hasn't happened. It’s really an impressive solid project that solves common problems and steadily integrates popular solutions to new problems with each . . .

Read More

Never use ActiveRecord persistence methods in Rails controllers

And never, ever use ActiveRecord filters.

John Bachir's Code Blog
April 19, 2014

Rails controllers are a mess.

An ongoing discussion in the Rails community is how, when, and if to test controllers (and how impossible is is to write tests for controllers that are both thorough and not completely isomorphic with implementation).

There are many dimensions to this problem, and it touches a lot of the . . .

Read More

What I would like in Ruby 3

John Bachir's Code Blog
January 01, 2014

Ruby development is hurtling along these days. In 2012 1.9 finally became the norm, and in 2013 we got both 2.0 and 2.1. All of these versions brought small but steady feature improvements.

Here are some thoughts on how I would like the language to change, possibly appropriate for Ruby 3 or Ruby 4.

Methods consistently as . . .

Read More

Archive
   Subscribe by email and never miss a post.

This update link alerts you to new Silvrback admin blog posts. A green bubble beside the link indicates a new post. Click the link to the admin blog and the bubble disappears.

Got It!