Thoughts, Advice & Other Writing

Strategies For Selective Cache Expiration

Selectively expiring cached records is essential to maintaining the health of large production caches.

August 01, 2016 rails and caching

Essentials Of Cache Expiration In Rails

Learn the essentials of cache expiration in Rails, and see how fundamental cache key composition is to a performant cache.

July 11, 2016 rails and caching

Effectively Scaling Sidekiq Workers

A case study on organizing Sidekiq queues, workers, and throttles for stability and higher concurrent throughput.

June 28, 2016 sidekiq and concurrency

Knuckles, The Next Level of API Caching

An introduction into the motiviation and methods behind Knuckles, an extremely fast API caching library.

May 10, 2016 rails, caching, and knuckles

A Fistful Of Pubsub

The PubSub pattern is core to many distributed systems. Learn about the pattern, best practices, and a distinct use case.

March 03, 2016 redis, pubsub, websockets, ruby, and elixir

Folding Window Functions Into Ecto

Understand the power of Postgres window functions to manipulate data efficiently with Ecto

February 08, 2016 elixir, ecto, and postgres

Caching, What is it Good For?

Achieve application simplicity with zero caching and blazing speed. It isn't the framework or the content that is holding you back, it's the language.

February 02, 2016 ruby and elixir

Know Your Sidekiq Testing Rights

Sidekiq as a background worker is a critical part of any application infrastructure, mastering the various ways to test it is paramount.

January 28, 2016 ruby and sidekiq

Layering Api Defenses With Caching

Learn how to effectively layer caching around an API endpoint to yield massive performance gains.

October 19, 2015 rails and caching

Enhancing Logs With Cache Timing

Enhancing logs with custom timings illuminates where request time is really being spent.

October 07, 2015 rails, caching, and logging

Instrumenting Your Cache With Notifications

Instrumentation with ActiveSupport::Notifications is a powerful tool, useful for much more than raw performance benchmarking.

September 30, 2015 rails, caching, and instrumentation

Migrating Redis Data

Sometimes migrating data from between Redis instances is necessary and not all of the tools are available.

September 15, 2015 redis

Transactional Services Through Background Jobs

Mitigate the lack of transactional safety by leaning on discrete background jobs when interfacing with external systems.

September 01, 2015 ruby and sidekiq

Managing Redis Reconnections From Ruby

Learn lessons of stability and reliability through an exploration of how the Ruby Redis client manages reconnection.

August 25, 2015 ruby and redis

Reconstructing Payloads With Lua

Reconstructing cached data into API responses quickly directly from Redis using Lua scripting.

August 17, 2015 redis and lua

Efficient Redis Caching Through Hashing

Boost cache performance and memory consumption in Redis through cache sharding, an intelligent way to utilize the Hash type.

August 10, 2015 redis

Optimizing Redis Usage For Caching

Strategies and configuration tips for making the most value out of Redis as a cache.

July 27, 2015 redis and devops

High Performance Caching With Readthis

Strategies behind building the fastest ActiveSupport compliant cache with Redis and Ruby.

July 20, 2015 readthis, redis, and ruby

Universal Postgres Exports

Export queries as CSV straight from PostgreSQL.

June 22, 2015 postgresql and rails

Realtime For Everyone

Sometimes you do need to build a new wheel, just don't reinvent it.

February 10, 2015 websockets

Self Healing Deployment

Applications are services, they need monitoring too.

December 08, 2014 devops, rails, and inspeqtor

Environment Reloading

A zero-downtime technique for reloading the environment within long running processes.

August 27, 2014 devops and rails

Let Postgres Do The Work

Efficient social ranking within PostgreSQL, or immutable functions are your friend.

December 30, 2013 postgresql

Presenting By Proxy

Leveraging ES6 Harmony's Proxy object for data presentation.

December 06, 2013 javascript and es6

Integration Off Rails

Lightweight testing with Rack for libraries that integrate with Rails.

July 31, 2013 ruby and rack

Subsecond Resolution In Rails

Fixing inconsistent timestamp serialization in Rails 4.

July 23, 2013 rails

Journey Into Perforated Caching

Maximizing cache performance when serializing large collections for API endpoints.

July 13, 2013 ruby and perforated