Retry Strategies in Ruby: Exceptions vs. Conditional Checks
Comparing Ruby retry patterns, exception-based retry, conditional checks, and exponential backoff, and when each keeps performance acceptable.
254 posts. Browse by category or tag, or use search.
Comparing Ruby retry patterns, exception-based retry, conditional checks, and exponential backoff, and when each keeps performance acceptable.
How to design a booking API that replaces regular time slots with alternatives, using server-side merging, cache versioning, and idempotency keys.
Five parameter-related code smells, from boolean flags to long argument lists, and the refactor that turns each function into one that does one thing.
A cordon-drain-upgrade runbook for Kubernetes nodes, plus the PodDisruptionBudgets, priority classes, and lifecycle hooks that prevent outages.
A decision framework for when AWS Lambda fits a single API endpoint, and when a container or dedicated server is the better call instead.
Why ordering ActiveRecord results by an associated table's column breaks with includes, and how references, Arel, and left_joins fix it for good.
How ActiveRecord's includes prevents N+1 queries in Rails, and the common mistakes with order, filtering, and pluck that silently break it.
A framework for deciding how much to test: the testing pyramid, layered test responsibility by architecture tier, and what makes test data good.
When Laravel's save() silently returns false versus when saveOrFail() throws, and how to pair both with validation and database transactions.
How optimistic concurrency, unique job locks, and throttling stop out-of-order background job updates in both Rails/Sidekiq and Laravel queues.