<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>James Carr</title><link>https://james-carr.org/</link><description>Recent content on James Carr</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Sat, 24 Oct 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://james-carr.org/index.xml" rel="self" type="application/rss+xml"/><item><title>My Plan Loop: Spinning Up Agents to Run a Checklist</title><link>https://james-carr.org/posts/2026-10-24-my-plan-loop-spinning-up-agents-to-run-a-checklist/</link><pubDate>Sat, 24 Oct 2026 00:00:00 +0000</pubDate><guid>https://james-carr.org/posts/2026-10-24-my-plan-loop-spinning-up-agents-to-run-a-checklist/</guid><description>&lt;p&gt;&lt;img src="https://james-carr.org/images/plan-loop-assembly-line.jpg" alt="Robotic arms blurred in motion around a bare car body on an assembly line"&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Photo by &lt;a href="https://unsplash.com/@nailil"&gt;Lilian Do Khac&lt;/a&gt; on &lt;a href="https://unsplash.com/photos/robotic-arms-assembling-a-car-chassis-on-a-factory-line-EyqUxJuOb1Q"&gt;Unsplash&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Last Saturday evening I typed this into &lt;a href="https://omp.sh/"&gt;Oh My Pi&lt;/a&gt;: &amp;ldquo;Is there a way to hand omp or Hermes a plan and have it run in a loop: plan in fable, execute in sonnet, repeat&amp;rdquo;. I had a 69-task hardening checklist for &lt;a href="https://github.com/jamescarr/ankusa"&gt;Ankusa&lt;/a&gt;, my Elixir webhook receiver, with &lt;em&gt;Done when&lt;/em&gt; and &lt;em&gt;Proof&lt;/em&gt; lines on every task.&lt;/p&gt;</description></item><item><title>What I Actually Use Jev For</title><link>https://james-carr.org/posts/2026-10-13-what-i-actually-use-jev-for/</link><pubDate>Tue, 13 Oct 2026 00:00:00 +0000</pubDate><guid>https://james-carr.org/posts/2026-10-13-what-i-actually-use-jev-for/</guid><description>&lt;p&gt;&lt;img src="https://james-carr.org/images/jev-state-diagram.jpg" alt="A textbook diagram of lettered states joined by arrows into two loops"&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Photo by &lt;a href="https://unsplash.com/@alpridephoto"&gt;Андрей Сизов&lt;/a&gt; on &lt;a href="https://unsplash.com/photos/a-book-with-a-diagram-on-it-nuz3rK5iiKg"&gt;Unsplash&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Someone asked me &amp;ldquo;what is Jev?&amp;rdquo; after &lt;a href="https://james-carr.org/posts/2026-09-30-current-agentic-development-setup-orca-oh-my-pi/"&gt;my setup post&lt;/a&gt;, where it got one line as my &lt;code&gt;judge&lt;/code&gt; model. I gave the short answer, but I realized it might be neat to write up my actual agent usage of Jev over time.&lt;/p&gt;
&lt;p&gt;Every Jev call &lt;a href="https://omp.sh/"&gt;Oh My Pi&lt;/a&gt; makes writes a &lt;code&gt;model_usage&lt;/code&gt; entry with a &lt;code&gt;purpose&lt;/code&gt; field into &lt;code&gt;~/.omp/agent/sessions&lt;/code&gt;. I pulled all of them, from the night I set it up on September 30 through October 11.&lt;/p&gt;</description></item><item><title>Building Your Own Advisors in Oh My Pi</title><link>https://james-carr.org/posts/2026-10-02-building-your-own-advisors-in-oh-my-pi/</link><pubDate>Fri, 02 Oct 2026 00:00:00 +0000</pubDate><guid>https://james-carr.org/posts/2026-10-02-building-your-own-advisors-in-oh-my-pi/</guid><description>&lt;p&gt;&lt;img src="https://james-carr.org/images/advisors-cockpit.jpg" alt="Two pilots silhouetted in a dark cockpit, the overhead panel glowing green above a blue sky"&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Photo by &lt;a href="https://unsplash.com/@jan_huber"&gt;Jan Huber&lt;/a&gt; on &lt;a href="https://unsplash.com/photos/two-men-sitting-on-aircraft-control-panel-0xNbk7D_s6U"&gt;Unsplash&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Most of my agentic coding follows a simple &lt;a href="https://www.langchain.com/blog/planning-agents"&gt;plan and execute&lt;/a&gt; loop, where a stronger model and I work out the plan together and then a cheap model like deepseek-flash carries it out. It works better than I expected, because the plan spells out the things cheap models tend to skip, like writing the tests. Even so, no plan covers everything, and an executor deep in a task still lets things slip.&lt;/p&gt;</description></item><item><title>Current Agentic Development Environment: Orca + Oh My Pi</title><link>https://james-carr.org/posts/2026-09-30-current-agentic-development-setup-orca-oh-my-pi/</link><pubDate>Wed, 30 Sep 2026 00:00:00 +0000</pubDate><guid>https://james-carr.org/posts/2026-09-30-current-agentic-development-setup-orca-oh-my-pi/</guid><description>&lt;p&gt;&lt;img src="https://james-carr.org/images/orca-everything.png" alt="Orca Window View"&gt;&lt;/p&gt;
&lt;p&gt;This past week I retooled my development environment after close to two years on Cursor. I wanted something that could coordinate agents and let me switch models per task, so I could maximize my tokens while minimizing my spend.&lt;/p&gt;
&lt;p&gt;After a little research, I landed on a setup with two layers. Oh My Pi is the harness that runs my agents. Orca is where I run and interact with many of them at once.&lt;/p&gt;</description></item><item><title>Through the Gates of Angkor Thom, to Bayon</title><link>https://james-carr.org/posts/2026-08-17-through-the-gates-of-angkor-thom-to-bayon/</link><pubDate>Mon, 17 Aug 2026 00:00:00 +0000</pubDate><guid>https://james-carr.org/posts/2026-08-17-through-the-gates-of-angkor-thom-to-bayon/</guid><description>&lt;p&gt;Angkor Thom announces itself before you even get inside. You pass through one of its massive gates, a stone face gazing down from the tower above while two rows of figures line the causeway, devas on one side and asuras on the other, each gripping the body of a serpent. Together they are churning the &lt;a href="https://en.wikipedia.org/wiki/Samudra_manthan"&gt;Ocean of Milk&lt;/a&gt;, the Hindu creation myth in which gods and demons set aside their rivalry and pull in opposite directions to churn out the elixir of immortality. Enemies cooperating toward something greater, frozen mid-effort for eight centuries.&lt;/p&gt;</description></item><item><title>The Route Table Is the Contract: Claim Checks Behind a Gateway</title><link>https://james-carr.org/posts/2026-07-29-stop-treating-your-object-store-like-a-shared-database/</link><pubDate>Wed, 29 Jul 2026 00:00:00 +0000</pubDate><guid>https://james-carr.org/posts/2026-07-29-stop-treating-your-object-store-like-a-shared-database/</guid><description>&lt;p&gt;Recently I helped a team where several services all needed to read documents that another service wrote to an S3 bucket. We wanted to keep the object store, the bucket layout, and the IAM permissions independent from the consumers, so the owning team could change any of them without asking anyone else&amp;rsquo;s permission. The first pass was the obvious one: a shared library that wrapped the details of fetching a document, encapsulating the bucket layout and replicating the IAM read permissions out to every consuming service.&lt;/p&gt;</description></item><item><title>Oban for Python: PostgreSQL-Backed Job Processing Without the Baggage</title><link>https://james-carr.org/posts/2026-04-06-oban-python-job-processing/</link><pubDate>Mon, 06 Apr 2026 00:00:00 +0000</pubDate><guid>https://james-carr.org/posts/2026-04-06-oban-python-job-processing/</guid><description>&lt;p&gt;I have been a fan of &lt;a href="https://oban.pro/"&gt;Oban&lt;/a&gt; in the Elixir ecosystem for a while now. It is one of those libraries that does exactly what it says and gets out of your way. So when the team &lt;a href="https://oban.pro/articles/introducing-oban-python"&gt;announced an official Python port&lt;/a&gt; earlier this year, I wanted to take it for a spin and see how the experience translates.&lt;/p&gt;
&lt;p&gt;The pitch is simple: PostgreSQL-backed job processing with no message broker. No Redis, no RabbitMQ, no separate infrastructure to manage. Jobs live in the same database as your application data, which means you can enqueue a job inside the same transaction that creates a user record and know they either both commit or neither does. Coming from a Python ecosystem where Celery + Redis has been the default for over a decade, that is a meaningful simplification.&lt;/p&gt;</description></item><item><title>Seven Hosting Patterns for AI Agents</title><link>https://james-carr.org/posts/2026-03-01-agent-hosting-patterns/</link><pubDate>Sun, 01 Mar 2026 00:00:00 +0000</pubDate><guid>https://james-carr.org/posts/2026-03-01-agent-hosting-patterns/</guid><description>&lt;p&gt;I&amp;rsquo;ve been thinking a lot about how to actually run AI agents in production lately. Not the model selection part or the prompt engineering&amp;hellip; the simple infrastructure question of &lt;em&gt;how does this thing get hosted and triggered?&lt;/em&gt; Recently I have been neck deep into exploring this, as well as some of the emerging frameworks for hosting and deploying agents.&lt;/p&gt;
&lt;p&gt;When you strip away the hype, an agent is just a program that calls an LLM and takes actions. But the deployment model you choose shapes everything: how it handles failures, how it scales, what it costs, and how debuggable it is when things go sideways. After reading through a bunch of what others are writing (&lt;a href="https://www.anthropic.com/engineering/building-effective-agents"&gt;Anthropic&amp;rsquo;s guide on building effective agents&lt;/a&gt;, &lt;a href="https://temporal.io/blog/the-journey-to-shippable-ai-systems-patterns-that-work"&gt;Temporal&amp;rsquo;s take on shippable AI systems&lt;/a&gt;, &lt;a href="https://huyenchip.com/2025/01/07/agents.html"&gt;Chip Huyen&amp;rsquo;s deep dive on agents&lt;/a&gt;) and building a few things myself, I&amp;rsquo;ve landed on seven hosting patterns that keep showing up.&lt;/p&gt;</description></item><item><title>Your Next Power User Is an Agent: Identifying Non-Human API Consumers</title><link>https://james-carr.org/posts/2026-03-01-identifying-agents-using-your-api/</link><pubDate>Sun, 01 Mar 2026 00:00:00 +0000</pubDate><guid>https://james-carr.org/posts/2026-03-01-identifying-agents-using-your-api/</guid><description>&lt;p&gt;Something has been bugging me about how we think about API traffic. We spend a lot of time building dashboards around DAU, WAU, MAU, all built on the assumption that a human is on the other end of each session. But increasingly, the thing calling your API is an agent. Not a person clicking buttons, but a program running an LLM that decided it needed data from your service.&lt;/p&gt;
&lt;p&gt;This isn&amp;rsquo;t hypothetical. If you run a public API today, you probably already have agent traffic. Claude, GPT, Perplexity, and dozens of smaller tools are calling APIs on behalf of users through tool use, MCP servers, and function calling. The question isn&amp;rsquo;t whether agents are hitting your API. The question is whether you can tell them apart from human consumers, whether you can tell &lt;em&gt;which&lt;/em&gt; agent is acting on behalf of &lt;em&gt;which&lt;/em&gt; user, and whether you&amp;rsquo;re counting them correctly.&lt;/p&gt;</description></item><item><title>Temporal Patterns: Durable AI Agents with Multi-Model Scatter/Gather</title><link>https://james-carr.org/posts/2026-02-05-temporal-durable-ai-agents/</link><pubDate>Thu, 05 Feb 2026 00:00:00 +0000</pubDate><guid>https://james-carr.org/posts/2026-02-05-temporal-durable-ai-agents/</guid><description>&lt;p&gt;When AI agents fail mid-execution, they often lose their entire context and any work completed up to that point. API rate limits, network timeouts, and infrastructure failures can turn a sophisticated multi-step agent into an expensive waste of tokens. What if your agent could survive these failures and resume exactly where it left off?&lt;/p&gt;
&lt;p&gt;This post walks through how I built a multi-model AI intelligence system using Temporal&amp;rsquo;s AI SDK integration for TypeScript. We&amp;rsquo;ll examine the architecture, explore how tools become Temporal Activities, and show how the &lt;a href="https://james-carr.org/posts/2026-02-03-temporal-scatter-gather/"&gt;scatter/gather pattern&lt;/a&gt; enables parallel queries across Claude&amp;rsquo;s model family.&lt;/p&gt;</description></item><item><title>Temporal Patterns: Process Manager with Signals</title><link>https://james-carr.org/posts/2026-02-03-temporal-process-manager/</link><pubDate>Tue, 03 Feb 2026 00:00:00 +0000</pubDate><guid>https://james-carr.org/posts/2026-02-03-temporal-process-manager/</guid><description>&lt;p&gt;In my &lt;a href="https://james-carr.org/posts/2026-01-29-temporal-workflow-orchestration/"&gt;previous posts&lt;/a&gt;, we covered the Saga pattern for distributed transactions and &lt;a href="https://james-carr.org/posts/2026-02-03-temporal-scatter-gather/"&gt;Scatter-Gather&lt;/a&gt; for parallel queries. Now let&amp;rsquo;s tackle the &lt;a href="https://james-carr.org/posts/2026-01-05-advent-of-eip-day-10-process-manager/"&gt;&lt;strong&gt;Process Manager&lt;/strong&gt;&lt;/a&gt; pattern, a state machine that can respond to external events in real-time.&lt;/p&gt;
&lt;h2 id="the-pattern"&gt;The Pattern&lt;/h2&gt;
&lt;p&gt;A Process Manager maintains state across a long-running process and can react to external signals. Unlike a simple workflow that runs start-to-finish, a process manager can:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Wait&lt;/strong&gt; for external confirmation before proceeding&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;React&lt;/strong&gt; to signals that change the workflow&amp;rsquo;s behavior&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Expose&lt;/strong&gt; its current state via queries&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Perfect for coordinating a shadowrun against Arasaka Tower.&lt;/p&gt;</description></item><item><title>Temporal Patterns: Scatter-Gather for Parallel Queries</title><link>https://james-carr.org/posts/2026-02-03-temporal-scatter-gather/</link><pubDate>Tue, 03 Feb 2026 00:00:00 +0000</pubDate><guid>https://james-carr.org/posts/2026-02-03-temporal-scatter-gather/</guid><description>&lt;p&gt;In my &lt;a href="https://james-carr.org/posts/2026-01-29-temporal-workflow-orchestration/"&gt;previous post on Temporal&lt;/a&gt;, we explored the Saga pattern for distributed transactions with compensating actions. Now let&amp;rsquo;s look at another classic from &lt;em&gt;Enterprise Integration Patterns&lt;/em&gt;: &lt;strong&gt;Scatter-Gather&lt;/strong&gt;.&lt;/p&gt;
&lt;h2 id="the-pattern"&gt;The Pattern&lt;/h2&gt;
&lt;p&gt;When you need to query multiple sources and aggregate results, the &lt;a href="https://james-carr.org/posts/2025-12-21-advent-of-eip-day-4-message-routing/"&gt;Scatter-Gather pattern&lt;/a&gt; is your friend. Send requests to multiple services in parallel (scatter), wait for responses, then combine them (gather).&lt;/p&gt;
&lt;p&gt;In Night City, we query data brokers to find the best deal for moving sensitive information.&lt;/p&gt;</description></item><item><title>Temporal: Durable Execution That Survives the Apocalypse</title><link>https://james-carr.org/posts/2026-01-29-temporal-workflow-orchestration/</link><pubDate>Thu, 29 Jan 2026 00:00:00 +0000</pubDate><guid>https://james-carr.org/posts/2026-01-29-temporal-workflow-orchestration/</guid><description>&lt;p&gt;After spending time with enterprise integration patterns, one thing keeps coming up: distributed transactions are hard. When your process spans multiple services, each with its own database, you can&amp;rsquo;t just wrap everything in a &lt;code&gt;BEGIN&lt;/code&gt;/&lt;code&gt;COMMIT&lt;/code&gt;. What happens when step 3 of 5 fails? The first two services already committed their changes. You&amp;rsquo;re stuck in an inconsistent state.&lt;/p&gt;
&lt;p&gt;The &lt;a href="https://microservices.io/patterns/data/saga.html"&gt;Saga pattern&lt;/a&gt; addresses this with &lt;a href="https://medium.com/@dmosyan/compensating-transaction-design-pattern-c7bf921580fe"&gt;compensating transactions&lt;/a&gt;: every step has an &amp;ldquo;undo&amp;rdquo; action. If something fails, you run compensations in reverse order to restore consistency. Elegant in theory, but implementing it reliably gets tricky fast. As we saw with webhook delivery, even retrying an API request has hidden complexity. This is where &lt;a href="https://temporal.io/how-it-works"&gt;durable execution&lt;/a&gt; becomes so critical. I&amp;rsquo;ve been exploring &lt;a href="https://temporal.io/"&gt;Temporal&lt;/a&gt;, and it really appeals and how it handles these kind of problems while allowing one to focus on their core domain.&lt;/p&gt;</description></item><item><title>Event-Driven Systems with NATS and Jetstream</title><link>https://james-carr.org/posts/2026-01-21-nats-jetstream-building-reliable-messaging/</link><pubDate>Tue, 20 Jan 2026 00:00:00 +0000</pubDate><guid>https://james-carr.org/posts/2026-01-21-nats-jetstream-building-reliable-messaging/</guid><description>&lt;p&gt;I first encountered NATS a couple years back while experimenting with &lt;a href="https://www.openfaas.com/"&gt;OpenFaaS&lt;/a&gt;. If you&amp;rsquo;re not familiar, OpenFaaS is a serverless functions framework that uses NATS as its default message queue for async function invocations. At the time, I noted NATS as &amp;ldquo;that fast pub/sub thing&amp;rdquo; and moved on. It seemed like a lightweight messaging broker, but not something I needed to dig into.&lt;/p&gt;
&lt;p&gt;What brought NATS back onto my radar was the &lt;a href="https://jepsen.io/analyses/nats-2.12.1"&gt;Jepsen analysis published late last year&lt;/a&gt;. If you&amp;rsquo;re not familiar with Jepsen, it&amp;rsquo;s the gold standard for distributed systems testing&amp;hellip; they put databases and message brokers through absolute hell to see how they behave under failure conditions. When Jepsen publishes an analysis, I pay attention.&lt;/p&gt;</description></item><item><title>From AsyncAPI to Service Catalog: Tracing Event Flows with Backstage</title><link>https://james-carr.org/posts/2026-01-20-asyncapi-backstage-service-catalog/</link><pubDate>Tue, 20 Jan 2026 00:00:00 +0000</pubDate><guid>https://james-carr.org/posts/2026-01-20-asyncapi-backstage-service-catalog/</guid><description>&lt;p&gt;In my &lt;a href="https://james-carr.org/posts/2026-01-16-asyncapi-event-driven-documentation/"&gt;previous post&lt;/a&gt;, I explored AsyncAPI as a way to document event-driven services. But documentation sitting in YAML files only gets you so far. The real power comes when you can answer questions like:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;em&gt;&amp;ldquo;Which services consume the &lt;code&gt;OrderCreated&lt;/code&gt; event?&amp;rdquo;&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;&lt;em&gt;&amp;ldquo;What happens if I change this Avro schema?&amp;rdquo;&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;&lt;em&gt;&amp;ldquo;Who owns the service that publishes to this Kafka topic?&amp;rdquo;&lt;/em&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;This is where &lt;a href="https://backstage.io"&gt;Backstage&lt;/a&gt; enters the picture—Spotify&amp;rsquo;s open-source developer portal that lets you catalog &lt;em&gt;everything&lt;/em&gt;: services, APIs, resources, teams, and the relationships between them.&lt;/p&gt;
&lt;p&gt;In this post, I&amp;rsquo;ll show how to combine AsyncAPI specs with Backstage to create a living service catalog for event-driven architectures.&lt;/p&gt;</description></item><item><title>AsyncAPI: Bringing OpenAPI to Event-Driven Systems</title><link>https://james-carr.org/posts/2026-01-16-asyncapi-event-driven-documentation/</link><pubDate>Fri, 16 Jan 2026 00:00:00 +0000</pubDate><guid>https://james-carr.org/posts/2026-01-16-asyncapi-event-driven-documentation/</guid><description>&lt;p&gt;Something that has been on my mind lately is the lack of visibility around messaging architectures. For example, if you&amp;rsquo;ve built REST APIs, you likely have OpenAPI specs that define your endpoints, schemas, and operations in YAML, and you get documentation, client generation, and contract testing for free. It&amp;rsquo;s become table stakes for HTTP APIs.&lt;/p&gt;
&lt;p&gt;But what about event-driven systems? When services communicate through Kafka topics and SQS queues, how do you answer:&lt;/p&gt;</description></item><item><title>The Transactional Outbox Pattern: Reliable Event Publishing</title><link>https://james-carr.org/posts/2026-01-15-transactional-outbox-pattern/</link><pubDate>Thu, 15 Jan 2026 00:00:00 +0000</pubDate><guid>https://james-carr.org/posts/2026-01-15-transactional-outbox-pattern/</guid><description>&lt;p&gt;You&amp;rsquo;ve built a microservice that saves orders to a database and publishes events to Kafka. Everything works great—until Kafka goes down for five minutes. Now you have orders in your database but no events published. Your downstream services never learn about these orders. You have &lt;strong&gt;inconsistent state&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;This is the dual-write problem, and the &lt;strong&gt;Transactional Outbox pattern&lt;/strong&gt; solves it elegantly. Chris Richardson documented this pattern in his &lt;a href="https://microservices.io/patterns/data/transactional-outbox.html"&gt;Microservices.io pattern catalog&lt;/a&gt;, and it&amp;rsquo;s become a foundational technique for reliable event-driven systems.&lt;/p&gt;</description></item><item><title>🎄 Advent of EIP Day 11: Wire Tap &amp; Control Bus</title><link>https://james-carr.org/posts/2026-01-13-advent-of-eip-day-11-wire-tap-control-bus/</link><pubDate>Tue, 13 Jan 2026 00:00:00 +0000</pubDate><guid>https://james-carr.org/posts/2026-01-13-advent-of-eip-day-11-wire-tap-control-bus/</guid><description>&lt;p&gt;In &lt;a href="https://james-carr.org/posts/2026-01-05-advent-of-eip-day-10-process-manager/"&gt;Day 10&lt;/a&gt;, we built a Process Manager with a live visualization that subscribed to events and updated the UI in real time. That visualization was a &lt;strong&gt;Wire Tap&lt;/strong&gt;: passively observing messages without affecting the primary flow.&lt;/p&gt;
&lt;p&gt;Today we explore Wire Tap in depth and pair it with &lt;strong&gt;Control Bus&lt;/strong&gt; for active management of distributed services. We&amp;rsquo;ll see how both patterns work in Kafka using Elixir.&lt;/p&gt;
&lt;h2 id="wire-tap-passive-observation"&gt;Wire Tap: Passive Observation&lt;/h2&gt;
&lt;p&gt;The &lt;a href="https://www.enterpriseintegrationpatterns.com/patterns/messaging/WireTap.html"&gt;Wire Tap&lt;/a&gt; pattern inserts a listener into a message channel that receives a copy of each message without affecting the primary flow. The name says it all: like tapping a phone line, you listen in without either party knowing you&amp;rsquo;re there.&lt;/p&gt;</description></item><item><title>🎄 Advent of EIP Day 12: Frameworks</title><link>https://james-carr.org/posts/2026-01-13-advent-of-eip-day-12-frameworks/</link><pubDate>Tue, 13 Jan 2026 00:00:00 +0000</pubDate><guid>https://james-carr.org/posts/2026-01-13-advent-of-eip-day-12-frameworks/</guid><description>&lt;p&gt;Over the past eleven posts, we&amp;rsquo;ve explored Enterprise Integration Patterns from the ground up: building message channels, routing messages with Content-Based Routers and Recipient Lists, transforming data, managing workflows with Process Managers, and observing systems with Wire Taps. We wrote a lot of code. While I lost track of my original intent to build an open source audit logging system as part of this series, I feel pretty happy about what did get built.&lt;/p&gt;</description></item><item><title>🎄 Advent of EIP Day 11: Saga</title><link>https://james-carr.org/posts/2026-01-07-advent-of-eip-day-11-saga/</link><pubDate>Sun, 04 Jan 2026 00:00:00 +0000</pubDate><guid>https://james-carr.org/posts/2026-01-07-advent-of-eip-day-11-saga/</guid><description>&lt;p&gt;In &lt;a href="https://james-carr.org/posts/2025-01-03-advent-of-eip-day-10-process-manager/"&gt;Day 10&lt;/a&gt;, we explored the Process Manager pattern for tracking workflow state over time. But what happens when things go wrong? How do you &lt;em&gt;undo&lt;/em&gt; distributed work that&amp;rsquo;s already been committed?&lt;/p&gt;
&lt;p&gt;Today we dive into the &lt;strong&gt;Saga&lt;/strong&gt; pattern: distributed transactions with compensation.&lt;/p&gt;
&lt;h2 id="saga-when-undo-actually-works"&gt;Saga: When &amp;ldquo;Undo&amp;rdquo; Actually Works&lt;/h2&gt;
&lt;p&gt;This pattern kept coming up in my research, and I&amp;rsquo;ll admit: I initially thought &amp;ldquo;Saga&amp;rdquo; was just a fancy name for &amp;ldquo;try/catch with cleanup.&amp;rdquo; I was wrong. It&amp;rsquo;s more elegant than that.&lt;/p&gt;</description></item><item><title>🎄Advent of EIP Day 10: Process Manager</title><link>https://james-carr.org/posts/2026-01-05-advent-of-eip-day-10-process-manager/</link><pubDate>Sun, 04 Jan 2026 00:00:00 +0000</pubDate><guid>https://james-carr.org/posts/2026-01-05-advent-of-eip-day-10-process-manager/</guid><description>&lt;p&gt;Apologies for the long delay between posts, the new year kicked off extremely busy! Previously in &lt;a href="https://james-carr.org/posts/2026-01-02-advent-of-eip-day-9-routing-slip/"&gt;Day 9&lt;/a&gt;, we explored the &lt;a href="https://www.enterpriseintegrationpatterns.com/patterns/messaging/RoutingTable.html"&gt;Routing Slip&lt;/a&gt; pattern, where messages carry their own itinerary. Each node was designed to route the message to the next destination based on the content of the routing slip and we had a small discussion about whether or not this was a form of &lt;strong&gt;choreography&lt;/strong&gt; or &lt;strong&gt;orchestration&lt;/strong&gt; since the route was computed up front.&lt;/p&gt;</description></item><item><title>🎄 Advent of EIP Day 9: Routing Slip</title><link>https://james-carr.org/posts/2026-01-02-advent-of-eip-day-9-routing-slip/</link><pubDate>Thu, 01 Jan 2026 00:00:00 +0000</pubDate><guid>https://james-carr.org/posts/2026-01-02-advent-of-eip-day-9-routing-slip/</guid><description>&lt;p&gt;After building a webhook delivery platform in &lt;a href="https://james-carr.org/posts/2025-12-31-advent-of-eip-day-8-webhook-delivery-platform/"&gt;Day 8&lt;/a&gt;, I found myself asking questions that led me down a rabbit hole. After looking at Recipient List, I realized I overlooked &amp;ldquo;Routing Slip&amp;rdquo; and, really, what the heck is a &amp;ldquo;routing slip&amp;rdquo; anyway? While I had planned to cover Process Manager and Saga, digging into Routing Slip gave me a really interesting insight into how one can structure their messaging topology differently and in a way that naturally introduces a kind of Process Manager on its own, so lets save the in-depth exploration of it and Saga for another day and dig in to Routing Slip!&lt;/p&gt;</description></item><item><title>🎄 Advent of EIP Day 8: Building a Production Webhook Delivery Platform</title><link>https://james-carr.org/posts/2025-12-31-advent-of-eip-day-8-webhook-delivery-platform/</link><pubDate>Wed, 31 Dec 2025 00:00:00 +0000</pubDate><guid>https://james-carr.org/posts/2025-12-31-advent-of-eip-day-8-webhook-delivery-platform/</guid><description>&lt;p&gt;Happy New Years for my APAC friends! In my previous post we traced the evolution from synchronous request-reply to enterprise event delivery platforms. We built recipient lists, webhook registrations, and bundled integrations. But we glossed over a critical question: &lt;strong&gt;what happens when delivery fails?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;In production, failure isn&amp;rsquo;t exceptional. It&amp;rsquo;s constant. Endpoints go down. Networks partition. Rate limits trigger. Servers restart. A webhook platform that doesn&amp;rsquo;t handle failure gracefully isn&amp;rsquo;t a platform at all.&lt;/p&gt;</description></item><item><title>🎄 Advent of EIP Day 7: Switchboards, Webhooks, and Everything In Between</title><link>https://james-carr.org/posts/2025-12-30-advent-of-eip-day-7-request-reply-correlation/</link><pubDate>Tue, 30 Dec 2025 00:00:00 +0000</pubDate><guid>https://james-carr.org/posts/2025-12-30-advent-of-eip-day-7-request-reply-correlation/</guid><description>&lt;p&gt;&lt;img src="https://upload.wikimedia.org/wikipedia/commons/8/8e/Photograph_of_Women_Working_at_a_Bell_System_Telephone_Switchboard_%283660047829%29.jpg" alt="Telephone operators at a Bell System switchboard, 1952"&gt;&lt;/p&gt;
&lt;p&gt;Before computers, we had switchboards. An operator would receive your call, ask who you wanted to reach, physically connect your line to theirs with a patch cable, and you&amp;rsquo;d talk. When you hung up, the connection was torn down. &lt;a href="https://www.enterpriseintegrationpatterns.com/patterns/messaging/RequestReply.html"&gt;Request-reply&lt;/a&gt; in its purest form: synchronous, blocking, one conversation at a time.&lt;/p&gt;
&lt;p&gt;The telephone system evolved. Direct dialing replaced operators. Trunk lines multiplexed thousands of calls. Voicemail let you leave a message with a &lt;a href="https://www.enterpriseintegrationpatterns.com/patterns/messaging/ReturnAddress.html"&gt;&lt;em&gt;return address&lt;/em&gt;&lt;/a&gt; (your number) so someone could call you back later. Conference calls implemented &lt;a href="https://www.enterpriseintegrationpatterns.com/patterns/messaging/RecipientList.html"&gt;&lt;em&gt;recipient lists&lt;/em&gt;&lt;/a&gt;. Call waiting was an early form of &lt;a href="https://www.geeksforgeeks.org/system-design/bulkhead-pattern/"&gt;&lt;em&gt;bulkheading&lt;/em&gt;&lt;/a&gt;, preventing one call from completely blocking your line.&lt;/p&gt;</description></item><item><title>🎄 Advent of EIP Day 9: Bulkhead Pattern for Multi-Tenancy</title><link>https://james-carr.org/posts/2025-12-26-advent-of-eip-day-9-bulkhead-pattern/</link><pubDate>Fri, 26 Dec 2025 00:00:00 +0000</pubDate><guid>https://james-carr.org/posts/2025-12-26-advent-of-eip-day-9-bulkhead-pattern/</guid><description>&lt;p&gt;In &lt;a href="https://james-carr.org/posts/2025-12-24-advent-of-eip-day-7-request-reply-correlation/"&gt;Day 7&lt;/a&gt; we built a webhook delivery platform with retry logic, dead letter queues, and circuit breakers. But we glossed over a critical question: what happens when one customer&amp;rsquo;s misbehaving endpoint starts affecting everyone else?&lt;/p&gt;
&lt;p&gt;Today we&amp;rsquo;re diving into the &lt;strong&gt;Bulkhead&lt;/strong&gt; pattern: isolating workloads so failures in one area don&amp;rsquo;t cascade into others. We&amp;rsquo;ll apply it to webhook delivery, then extend it to audit log storage and full multi-tenant architecture.&lt;/p&gt;</description></item><item><title>🎄 Advent of EIP Day 6: Canonical Data Model &amp; Message Transformation</title><link>https://james-carr.org/posts/2025-12-23-advent-of-eip-day-6-canonical-data-model/</link><pubDate>Tue, 23 Dec 2025 00:00:00 +0000</pubDate><guid>https://james-carr.org/posts/2025-12-23-advent-of-eip-day-6-canonical-data-model/</guid><description>&lt;p&gt;Message Translation, Content Enricher, Content Filter, Canonical Data Model - these patterns don&amp;rsquo;t get as much attention as the flashier routing patterns, but they&amp;rsquo;re where the real work happens. Every integration I&amp;rsquo;ve built has needed at least one of them.&lt;/p&gt;
&lt;p&gt;When systems talk to each other, they rarely agree on data formats. Your e-commerce platform calls it a &amp;ldquo;customer,&amp;rdquo; your CRM calls it a &amp;ldquo;contact,&amp;rdquo; and your billing system calls it an &amp;ldquo;account holder.&amp;rdquo; They all mean the same thing, but their schemas don&amp;rsquo;t match. Multiply this across dozens of integrations and you&amp;rsquo;ve got a translation nightmare.&lt;/p&gt;</description></item><item><title>🎄 Advent of EIP Day 5: Message Types &amp; Event Payload Strategies</title><link>https://james-carr.org/posts/2025-12-22-advent-of-eip-day-5-message-types-and-event-strategies/</link><pubDate>Mon, 22 Dec 2025 00:00:00 +0000</pubDate><guid>https://james-carr.org/posts/2025-12-22-advent-of-eip-day-5-message-types-and-event-strategies/</guid><description>&lt;p&gt;Today we&amp;rsquo;re answering the question, &amp;ldquo;Should I name my event &lt;code&gt;OrderPlaced&lt;/code&gt; or &lt;code&gt;PlaceOrder&lt;/code&gt;?&amp;rdquo; We&amp;rsquo;re going to be getting more precise about something we&amp;rsquo;ve been pretty casual about: &lt;strong&gt;what exactly is a message?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;We&amp;rsquo;ve been tossing events around without much ceremony. But not all messages are alike. Some carry data. Some request actions. Some announce facts. Understanding these distinctions (and how much data events should carry) shapes how your systems communicate.&lt;/p&gt;</description></item><item><title>🎄 Advent of EIP Day 4: Message Routing Patterns</title><link>https://james-carr.org/posts/2025-12-21-advent-of-eip-day-4-message-routing/</link><pubDate>Sun, 21 Dec 2025 00:00:00 +0000</pubDate><guid>https://james-carr.org/posts/2025-12-21-advent-of-eip-day-4-message-routing/</guid><description>&lt;p&gt;Previously on Advent of Enterprise Integration Patterns: in &lt;a href="https://james-carr.org/posts/2025-12-20-advent-of-eip-day-3-message-channels/"&gt;Day 3&lt;/a&gt;, we explored message channels: Point-to-Point, Publish-Subscribe, Datatype, and Invalid Message channels. We built them first in pure code, then mapped them to RabbitMQ and Kafka as examples.&lt;/p&gt;
&lt;p&gt;Today we&amp;rsquo;re stepping away from Chronicle to focus purely on patterns. Chronicle needs some housekeeping (the boring-but-essential work of making it a proper audit logging system), and frankly, that&amp;rsquo;s a good thing. &lt;strong&gt;Don&amp;rsquo;t set out to implement every pattern in a system.&lt;/strong&gt; Patterns are tools for specific problems. Nothing is worse than a pattern that feels forced.&lt;/p&gt;</description></item><item><title>🎄 Advent of EIP Day 3: Message Channels</title><link>https://james-carr.org/posts/2025-12-20-advent-of-eip-day-3-message-channels/</link><pubDate>Sat, 20 Dec 2025 00:00:00 +0000</pubDate><guid>https://james-carr.org/posts/2025-12-20-advent-of-eip-day-3-message-channels/</guid><description>&lt;p&gt;Welcome back to the Advent of Enterprise Integration Patterns! In &lt;a href="https://james-carr.org/posts/2025-12-17-advent-of-eip-day-2-message-abstractions/"&gt;Day 2&lt;/a&gt;, we introduced Message Endpoints and the Messaging Gateway pattern to decouple our application from the transport layer, plus Pipes and Filters for composable event processing. We ended with a bit of a cliffhanger: running producers and consumers as separate processes worked great for distribution, but left us with fragmented data across isolated ETS stores.&lt;/p&gt;
&lt;p&gt;Today we&amp;rsquo;re going to tackle that problem head-on—and then explore the different &lt;em&gt;types&lt;/em&gt; of message channels available to us.&lt;/p&gt;</description></item><item><title>🎄 Advent of EIP Day 2: Message Endpoints &amp; Pipes and Filters</title><link>https://james-carr.org/posts/2025-12-17-advent-of-eip-day-2-message-abstractions/</link><pubDate>Wed, 17 Dec 2025 00:00:00 +0000</pubDate><guid>https://james-carr.org/posts/2025-12-17-advent-of-eip-day-2-message-abstractions/</guid><description>&lt;p&gt;Welcome back to the Advent of Enterprise Integration Patterns! Yesterday we got our hands dirty with &lt;a href="https://www.enterpriseintegrationpatterns.com/patterns/messaging/PointToPointChannel.html"&gt;Point-to-Point Channels&lt;/a&gt; and &lt;a href="https://www.enterpriseintegrationpatterns.com/patterns/messaging/CompetingConsumers.html"&gt;Competing Consumers&lt;/a&gt;, building the bones of Chronicle using OTP actors. We can send audit events and have them processed reliably by multiple consumers racing to grab work. Pretty cool!&lt;/p&gt;
&lt;p&gt;But here&amp;rsquo;s the thing: that implementation is &lt;em&gt;tightly coupled&lt;/em&gt; to OTP. What happens when we want to deploy Chronicle across multiple machines? Or swap in &lt;a href="https://www.rabbitmq.com/"&gt;RabbitMQ&lt;/a&gt; for a proper message broker? Right now, that would mean rewriting half our codebase.&lt;/p&gt;</description></item><item><title>🎄 Advent of EIP Day 1: Integration Styles &amp; Point-to-Point Channels</title><link>https://james-carr.org/posts/2025-12-16-advent-of-eip-day-1-integration-styles/</link><pubDate>Tue, 16 Dec 2025 00:00:00 +0000</pubDate><guid>https://james-carr.org/posts/2025-12-16-advent-of-eip-day-1-integration-styles/</guid><description>&lt;p&gt;Welcome to Day 1 of the Advent of Enterprise Integration Patterns! Today we tackle the foundational question every distributed system must answer: &lt;em&gt;how do systems share information? Can someone just call me!?&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://www.enterpriseintegrationpatterns.com/patterns/messaging/IntegrationStylesIntro.html"&gt;Chapter 2 of Enterprise Integration Patterns&lt;/a&gt; lays out four fundamental integration styles. Understanding these options and their trade-offs is essential before diving into the patterns themselves. Let&amp;rsquo;s examine each one, drawing from real-world experience, and then bootstrap Chronicle with our first pattern implementation.&lt;/p&gt;</description></item><item><title>🎄 Advent of Enterprise Integration Patterns</title><link>https://james-carr.org/posts/2025-12-15-advent-of-enterprise-integration-patterns/</link><pubDate>Mon, 15 Dec 2025 00:00:00 +0000</pubDate><guid>https://james-carr.org/posts/2025-12-15-advent-of-enterprise-integration-patterns/</guid><description>&lt;p&gt;Since returning to &lt;a href="https://zapier.com"&gt;Zapier&lt;/a&gt;, I&amp;rsquo;ve been building the features enterprise customers crave for managing automation at scale. Event-driven architectures, message routing, guaranteed delivery, audit trails. The stuff that enterprise buyers expect as table stakes. It&amp;rsquo;s reminded me how much this foundational knowledge matters.&lt;/p&gt;
&lt;p&gt;One thing keeps coming up: audit logging. Every enterprise customer wants to know what happened, when, and by whom. It sounds simple until you&amp;rsquo;re building it for the fifth time, wiring up the same patterns to yet another data store. There has to be a better way.&lt;/p&gt;</description></item><item><title>🎬 90s Movies Were Always About Reality Control—Now We Really Get It</title><link>https://james-carr.org/posts/90s-movies-algorithmic-reality/</link><pubDate>Sun, 23 Nov 2025 00:00:00 +0000</pubDate><guid>https://james-carr.org/posts/90s-movies-algorithmic-reality/</guid><description>&lt;p&gt;&lt;img src="https://james-carr.org/images/90s-movies-algorithmic-reality/header-collage.jpg" alt="Digital glitch effect over contemplative scene"&gt;&lt;/p&gt;
&lt;p&gt;My kids have been deep into a 90s-movie phase lately — which is surreal because these were my high-school movies and now apparently they’re “vintage.”&lt;/p&gt;
&lt;p&gt;So we&amp;rsquo;ve been watching &lt;strong&gt;The Truman Show&lt;/strong&gt;, &lt;strong&gt;Dark City&lt;/strong&gt;, and &lt;strong&gt;The Matrix&lt;/strong&gt; together. The themes in these movies always felt familiar — identity, perception, reality, control. None of that is new.&lt;/p&gt;
&lt;p&gt;But watching them again today, after decades of living inside social media algorithms, and with a head full of Jung from a college philosophy class I once took (plus a recent binge of &lt;a href="https://thisjungianlife.com/"&gt;Jungian podcasts&lt;/a&gt;), those same themes land differently now. Not as some big revelation, more like:&lt;/p&gt;</description></item><item><title>🐰 Elixir Basics: Working with AMQP</title><link>https://james-carr.org/posts/2024-10-15-elixir-basics-working-with-amqp/</link><pubDate>Tue, 15 Oct 2024 00:00:00 +0000</pubDate><guid>https://james-carr.org/posts/2024-10-15-elixir-basics-working-with-amqp/</guid><description>&lt;p&gt;Previously on &lt;a href="https://james-carr.org/tags/elixir-basics/"&gt;Elixir Basics&lt;/a&gt;, we explored using &lt;a href="https://hexdocs.pm/elixir/GenServer.html"&gt;GenServer&lt;/a&gt; to set up multiple workers that would print a message out at a random interval. Today, I&amp;rsquo;m going to expand on it by adding &lt;a href="https://en.wikipedia.org/wiki/Advanced_Message_Queuing_Protocol"&gt;AMQP&lt;/a&gt; to the mix, having our workers publish messages on an interval and add a solitary consumer process to consume the messages.&lt;/p&gt;
&lt;h2 id="overview"&gt;Overview&lt;/h2&gt;
&lt;p&gt;If you recall from last time, we had a simple setup of an application, a supervisor, and N workers. Now we expand on this by associating a publisher with each worker that will publish messages to a &lt;a href="https://www.rabbitmq.com/"&gt;RabbitMQ&lt;/a&gt; exchange and a single consumer that reads the messages off the queue and prints the contents out. Here is a simple diagram of our approach.&lt;/p&gt;</description></item><item><title>⏱️ Elixir Basics: Multi-Process Interval Timer</title><link>https://james-carr.org/posts/2024-10-09-elixir-basics-multiprocess-interval-timer/</link><pubDate>Wed, 09 Oct 2024 00:00:00 +0000</pubDate><guid>https://james-carr.org/posts/2024-10-09-elixir-basics-multiprocess-interval-timer/</guid><description>&lt;p&gt;A common code sample I like to write when learning a new language is to have multiple threads or processes &amp;ldquo;do something&amp;rdquo; on an interval. For example, publishing to Kafka or RabbitMQ, invoking a REST API, etc., as a way of simulating a multi-process worker system. As a starting point, I like to build these to simply output a string to the console and then build my way up from there. I figured I would share how to do this in Elixir for those who may be interested.&lt;/p&gt;</description></item><item><title>💻 Building Beautiful Admin Dashboards in Phoenix with Backpex</title><link>https://james-carr.org/posts/2024-08-27-phoenix-admin-with-backpex/</link><pubDate>Tue, 27 Aug 2024 00:00:00 +0000</pubDate><guid>https://james-carr.org/posts/2024-08-27-phoenix-admin-with-backpex/</guid><description>&lt;p&gt;Something that I noticed as I have begun building out applications in Phoenix is the complete lack of any kind of
&amp;ldquo;Admin View.&amp;rdquo; Most frameworks like this don&amp;rsquo;t come with one included, but I guess I have just been spoiled by Django&amp;rsquo;s inclusion of these by
default. I searched around and found several do exist and will maybe spend some time looking at them in the future, but today
I&amp;rsquo;ll share my experience integrating &lt;a href="https://backpex.live/"&gt;Backpex&lt;/a&gt;.&lt;/p&gt;</description></item><item><title>🧠 Dynamic Key/Value Pair Inputs in Phoenix LiveView Forms</title><link>https://james-carr.org/posts/2024-08-19-dynamic-keyvalue-pair-inputs-in-phoenix-liveview-forms/</link><pubDate>Mon, 19 Aug 2024 00:00:00 +0000</pubDate><guid>https://james-carr.org/posts/2024-08-19-dynamic-keyvalue-pair-inputs-in-phoenix-liveview-forms/</guid><description>&lt;p&gt;While working on a new project recently, I needed to allow application users to enter a dynamic list of key-value pairs. Not knowing better, I reached for what I knew and built out a React component to dynamically add and remove inputs while also inserting into the websocket to sync the changeset with the server. Then on the server-side, I had to write some additional handlers to process those values. It worked, but it didn&amp;rsquo;t feel great. I knew there had to be a better way to approach this.&lt;/p&gt;</description></item><item><title>🛠️ Managing Development Environments with Mise</title><link>https://james-carr.org/posts/2024-08-14-managing-development-environments-with-mise/</link><pubDate>Wed, 14 Aug 2024 00:00:00 +0000</pubDate><guid>https://james-carr.org/posts/2024-08-14-managing-development-environments-with-mise/</guid><description>&lt;p&gt;As I&amp;rsquo;ve started down the Indie Hacker road, one thing that has come up as I work on various
projects is I need something to manage multiple versions of different binaries. I had used
&lt;a href="https://github.com/nvm-sh/nvm"&gt;nvm&lt;/a&gt; and &lt;a href="https://github.com/pyenv/pyenv"&gt;pyenv&lt;/a&gt; in the past
(and &lt;a href="https://rvm.io/rvm/install"&gt;rvm&lt;/a&gt; before that) so I started down the path of looking
for the same type of tool in the elixir world. Thankfully, this led me down the path of more
generic solutions to versioning these tools. First I looked at &lt;a href="https://asdf-vm.com/"&gt;asdf&lt;/a&gt;
but ultimately wound up using &lt;a href="https://mise.jdx.dev/about.html"&gt;mise&lt;/a&gt;. I like mise for 3 main
rasons:&lt;/p&gt;</description></item><item><title>💡 The Pivot</title><link>https://james-carr.org/posts/2024-07-29-the-pivot/</link><pubDate>Mon, 05 Aug 2024 00:00:00 +0000</pubDate><guid>https://james-carr.org/posts/2024-07-29-the-pivot/</guid><description>&lt;p&gt;&lt;img src="https://james-carr.org/images/family-cambodia.jpg" alt="Exploring the ruins of Angkor Wat while grappling with a healthy mid-life crisis. I&amp;rsquo;m pivoting from engineering leadership to indie hacking!"&gt;&lt;/p&gt;
&lt;p&gt;I just got back from a month-long break in Cambodia, traveling with my family. I took advantage of the wide-open space with zero work expectations to give me some time to truly reflect on my career so far and what comes next. I&amp;rsquo;ve had a pretty successful career in tech spanning twenty years that, for the most part, paid off quite well. It&amp;rsquo;s afforded me a life that I never would have imagined when I was running around barefoot in a trailer park in Warrenton, Missouri, and for that, I&amp;rsquo;ll always be immensely thankful. But for the past few years, I knew something was off, and I couldn&amp;rsquo;t quite put my finger on it.&lt;/p&gt;</description></item><item><title>🏰 A Day Exploring Berlin</title><link>https://james-carr.org/posts/a-day-in-berlin/</link><pubDate>Mon, 27 Nov 2023 00:00:00 +0000</pubDate><guid>https://james-carr.org/posts/a-day-in-berlin/</guid><description>&lt;p&gt;Previously I wrote about setting out on my solo journey across Germany and how I prepared. Today I’m going to break down everything about my time in Berlin: places to visit and tons of photos to share. Along the way, I hope to share a few tips and tricks to make your visit enjoyable.&lt;/p&gt;
&lt;h2 id="arrival-in-berlin"&gt;Arrival In Berlin&lt;/h2&gt;
&lt;p&gt;After a 12 hour flight I landed in Berlin at 8:20am. Thanks to the sleeping gummies I took, I was wide awake and my legs weren’t sore or stiff thanks to the compression socks I wore. As I exited the plane and made my way through customs, I took the escalator down to the bottom floor to the train station and awaited an RE train heading to Alexanderplatz. Once I reached Alexanderplatz station, I transferred to the U8 train for two stops to Rosenthaler Platz. I was arriving to Circus Hostel early and was familiar with their luggage policy so I proceeded to the front desk to get access to the locker room below. With my luggage and backpack tucked away and locked, I headed back to the subway and took a train back to Alexanderplatz and then to Berlin Hbf for some sight seeing.&lt;/p&gt;</description></item><item><title>📷 A Photo That Means the World to Me</title><link>https://james-carr.org/posts/a-photo-that-means-the-world-to-me/</link><pubDate>Wed, 15 Nov 2023 00:00:00 +0000</pubDate><guid>https://james-carr.org/posts/a-photo-that-means-the-world-to-me/</guid><description>&lt;p&gt;&lt;img src="https://james-carr.org/images/kids.jpg" alt="Two children in car seats in the back of a vehicle, smiling and making playful gestures. The older child on the left is laughing after making silly faces with her hands to her face, while the younger child on the right is laughing and looking at the older child."&gt;&lt;/p&gt;
&lt;p&gt;10 years ago, as I was getting ready to take kids somewhere I heard them both laughing wildly in the backseat. I snapped this photo as quick as I could and to me, it just completely captures the companionship these two siblings have shared since the very beginning. The big grins on both of their faces is something I always hope to see every single day.&lt;/p&gt;</description></item><item><title>🇩🇪 My Solo Journey Through Germany</title><link>https://james-carr.org/posts/2023-solo-trip-germany/</link><pubDate>Wed, 08 Nov 2023 00:00:00 +0000</pubDate><guid>https://james-carr.org/posts/2023-solo-trip-germany/</guid><description>&lt;p&gt;&lt;img src="https://james-carr.org/images/2023-solo-trip-germany/james-in-rothenberg.jpg" alt="Me standing in front of the The Plönlein, a famous landmark in Rothenburg ob der Tauber"&gt;&lt;/p&gt;
&lt;p&gt;I recently returned from a week-long solo adventure in Germany, a trip that came about quite unexpectedly. Earlier in 2023, in my eagerness to reengage with speaking at conferences, I submitted a series of talk proposals to various events and one of my submissions was accepted at RabbitMQ Summit. However, it was only after this exciting acceptance that I realized the conference was in Berlin, not in the United States. At first, I contemplated declining due to the location mix-up, but my wife encouraged me to embrace the chance to speak internationally and turn it into a solo expedition.&lt;/p&gt;</description></item><item><title>📈💰☁️ The Rise of FinOps: How Cloud Financial Operations Are Transforming Business</title><link>https://james-carr.org/posts/the-rise-of-finops/</link><pubDate>Sun, 02 Apr 2023 00:00:00 +0000</pubDate><guid>https://james-carr.org/posts/the-rise-of-finops/</guid><description>&lt;p&gt;&lt;img src="https://james-carr.org/images/finops.jpg" alt="Budget Time"&gt;&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;“Hey really quick, can you put together some cost forecasts for the coming year for our AWS and GCP costs?”&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;At some point in your career, you may receive this kind of request from your manager, VP of Engineering, CTO, CFO, or CEO. You might explore Cost Explorer, put together some fancy graphs and breakdowns, and send them over, thinking you&amp;rsquo;re done. Not even close. This request will predictably be followed up with requests to find ways to reduce costs. Next thing you know, you’re on a call with your AWS account manager talking about savings plans, reserved instances, and getting upsold to upgrade your support account so you have a dedicated TAM. Congratulations, you just unlocked a whole new world, and it isn’t going to get easier.&lt;/p&gt;</description></item><item><title>📘 The Ideal Team Player: A Book Review and Practical Application</title><link>https://james-carr.org/posts/ideal-team-player-review/</link><pubDate>Wed, 29 Mar 2023 00:00:00 +0000</pubDate><guid>https://james-carr.org/posts/ideal-team-player-review/</guid><description>&lt;p&gt;&lt;img src="https://james-carr.org/images/ideal-team-player.jpg#floatleft" alt="Ideal Team Player Cover"&gt;&lt;/p&gt;
&lt;p&gt;Reflecting on my professional journey and the various teams I&amp;rsquo;ve been a part of, I recently picked up a book that resonated with my experiences and offered some invaluable insights into building a truly cohesive and high-performing team. The book, &amp;ldquo;The Ideal Team Player&amp;rdquo; by Patrick Lencioni, delves into the characteristics that make someone an ideal team player and provides practical guidance on how to cultivate these traits in the workplace.&lt;/p&gt;</description></item><item><title>💪 The Value of Hard Work: Lessons Learned from Working-Class Jobs</title><link>https://james-carr.org/posts/the-value-of-hard-work/</link><pubDate>Thu, 16 Mar 2023 00:00:00 +0000</pubDate><guid>https://james-carr.org/posts/the-value-of-hard-work/</guid><description>&lt;p&gt;&lt;img src="https://james-carr.org/images/corn-field.jpg" alt="A Corn Field"&gt;&lt;/p&gt;
&lt;p&gt;Looking back on the years of my life this morning, I was thinking it would be an interesting exercise to review my work experience from earlier in my life, before college graduation and before the true start of my professional career, and examine one thing I am grateful for from each experience. I think it is important to look back to humble beginnings and the lessons learned through hard work and sweat.&lt;/p&gt;</description></item><item><title>🏋️ Syncing Hevy Workouts to Notion Using Zapier</title><link>https://james-carr.org/posts/sync-hevy-to-notion-using-zapier/</link><pubDate>Sat, 11 Mar 2023 00:00:00 +0000</pubDate><guid>https://james-carr.org/posts/sync-hevy-to-notion-using-zapier/</guid><description>&lt;p&gt;Recently, I&amp;rsquo;ve been using &lt;a href="https://www.notion.so/"&gt;Notion&lt;/a&gt; for a variety of purposes, including tracking my workouts. While there are many fitness tracking templates available, some of which are quite complex, I chose to rely on existing popular apps like &lt;a href="https://www.hevyapp.com/"&gt;Hevy&lt;/a&gt;, &lt;a href="https://www.strava.com/"&gt;Strava&lt;/a&gt;, and &lt;a href="https://log.concept2.com/"&gt;Concept2 Logbook&lt;/a&gt; for detailed tracking, and use Notion as a central place for logging my activities.&lt;/p&gt;
&lt;p&gt;Initially, I was tracking my workouts manually, which wasn&amp;rsquo;t very enjoyable. In this post, I&amp;rsquo;ll provide a brief overview of my fitness tracker and explain how I used &lt;a href="https://zapier.com/"&gt;Zapier&lt;/a&gt; to automatically sync my workouts from Hevy. If you’re less interested in how I did it and more interested in just using Hevy with Zapier, scroll to the end of this post. Now, let’s dig in!&lt;/p&gt;</description></item><item><title>🎧 Revolutionize Your Podcast Consumption with Snipd, Notion, and AI</title><link>https://james-carr.org/posts/revolutionize-your-podcast-consumption-with-snipd-notion-and-ai/</link><pubDate>Fri, 03 Mar 2023 00:00:00 +0000</pubDate><guid>https://james-carr.org/posts/revolutionize-your-podcast-consumption-with-snipd-notion-and-ai/</guid><description>&lt;p&gt;&lt;img src="https://james-carr.org/images/snipd-banner.jpg" alt="notebook, a pen, and headphones"&gt;&lt;/p&gt;
&lt;p&gt;For over a decade, I have enjoyed listening to podcasts. I subscribe to many and listen to them during long drives, while working out at the gym, or doing yard work. However, one downside is that I often hear many great ideas that I don&amp;rsquo;t capture in the moment. Taking my phone out and fiddling with a notes app normally detracts from my current engagement. Nine times out of ten, I won&amp;rsquo;t remember to go back and look up show notes after the activity is finished.&lt;/p&gt;</description></item><item><title>Contact Me</title><link>https://james-carr.org/schedule/</link><pubDate>Fri, 24 Feb 2023 14:53:04 -0600</pubDate><guid>https://james-carr.org/schedule/</guid><description>&lt;p&gt;&lt;img src="https://james-carr.org/images/calendar.jpg" alt=""&gt;&lt;/p&gt;
&lt;h2 id="lets-chat-tell-me-about-your-project"&gt;Let&amp;rsquo;s chat. Tell me about your project.&lt;/h2&gt;
&lt;p&gt;Let&amp;rsquo;s create something incredible together.💡&lt;/p&gt;
&lt;p&gt;Feel free to &lt;a href="mailto:james.r.carr+blog@gmail.com"&gt;✉️ email&lt;/a&gt; me or



 
 
 
 
 

 
 
 &lt;link href="https://assets.calendly.com/assets/external/widget.css" rel="stylesheet"&gt;
 

 
 &lt;script type="text/javascript" src="https://assets.calendly.com/assets/external/widget.js" async&gt;&lt;/script&gt;

 
 
 
 
 
 &lt;a href="" onclick=Calendly.initPopupWidget({url:&amp;#32;&amp;#39;https://calendly.com/james-r-carr&amp;#39;});return&amp;#32;false;&gt;
📆 book a time for us to chat!
&lt;/a&gt;
 

&lt;/p&gt;
&lt;h2 id="upcoming-speaking-engagements"&gt;Upcoming Speaking Engagements&lt;/h2&gt;
&lt;p&gt;I&amp;rsquo;ve been on sabatical for 2024, new talks for 2025 coming soon!&lt;/p&gt;
&lt;h2 id="past-speaking-engagements"&gt;Past Speaking Engagements&lt;/h2&gt;
&lt;h3 id="rabbitmq-summit"&gt;RabbitMQ Summit&lt;/h3&gt;
&lt;div style="position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden;"&gt;
			&lt;iframe allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share; fullscreen" loading="eager" referrerpolicy="strict-origin-when-cross-origin" src="https://www.youtube.com/embed/ldgJYbGpKSk?autoplay=0&amp;amp;controls=1&amp;amp;end=0&amp;amp;loop=0&amp;amp;mute=0&amp;amp;start=0" style="position: absolute; top: 0; left: 0; width: 100%; height: 100%; border:0;" title="YouTube video"&gt;&lt;/iframe&gt;
		&lt;/div&gt;

&lt;h3 id="supermanagers-episode"&gt;Supermanagers Episode&lt;/h3&gt;
&lt;div style="position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden;"&gt;
			&lt;iframe allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share; fullscreen" loading="eager" referrerpolicy="strict-origin-when-cross-origin" src="https://www.youtube.com/embed/4Ma3KbBZDn0?autoplay=0&amp;amp;controls=1&amp;amp;end=0&amp;amp;loop=0&amp;amp;mute=0&amp;amp;start=0" style="position: absolute; top: 0; left: 0; width: 100%; height: 100%; border:0;" title="YouTube video"&gt;&lt;/iframe&gt;
		&lt;/div&gt;

&lt;h3 id="datadog-dash"&gt;Datadog Dash&lt;/h3&gt;
&lt;div style="position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden;"&gt;
			&lt;iframe allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share; fullscreen" loading="eager" referrerpolicy="strict-origin-when-cross-origin" src="https://www.youtube.com/embed/nsHKsxt_87U?autoplay=0&amp;amp;controls=1&amp;amp;end=0&amp;amp;loop=0&amp;amp;mute=0&amp;amp;start=0" style="position: absolute; top: 0; left: 0; width: 100%; height: 100%; border:0;" title="YouTube video"&gt;&lt;/iframe&gt;
		&lt;/div&gt;</description></item><item><title>James Carr</title><link>https://james-carr.org/readme/personal/</link><pubDate>Fri, 24 Feb 2023 14:53:04 -0600</pubDate><guid>https://james-carr.org/readme/personal/</guid><description>&lt;p&gt;I build systems that make other systems talk to each other. Twenty years in, that&amp;rsquo;s still the part I find most interesting: not the services themselves, but the seams between them, and everything that has to go right for a message to survive the trip.&lt;/p&gt;
&lt;p&gt;Two things drive the work. The first is efficiency. Distributed systems burn a startling share of their budget on coordination alone: latency, dollars, and the attention of whoever is on call for it. &lt;strong&gt;Event-driven architecture&lt;/strong&gt; is where I keep finding leverage, because the genuinely hard parts here aren&amp;rsquo;t even new. Telephony engineers were solving fault tolerance for massively concurrent, always-on systems with Erlang and the switches it grew out of long before anyone wrote the first pattern catalog, and the people who later wrote about integration patterns gave the rest of us a vocabulary for it.&lt;/p&gt;</description></item><item><title>James Carr: An Operator's Guide [WIP]</title><link>https://james-carr.org/readme/manager/</link><pubDate>Fri, 24 Feb 2023 14:53:04 -0600</pubDate><guid>https://james-carr.org/readme/manager/</guid><description>&lt;p&gt;👋 I am so glad you are here at &lt;strong&gt;$COMPANY&lt;/strong&gt; and I am looking forward to us working together. I like to provide this manager readme ahead of time as kind of an operating manual so you can understand how I operate and what to expect. This isn&amp;rsquo;t exhaustive, but hopefully we&amp;rsquo;ll fill in the gaps as we work together.&lt;/p&gt;
&lt;h2 id="my-values"&gt;My Values&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Be Transparent&lt;/strong&gt; - Unless there is a need for confidentiality I am completely open and transparent. I always strive to make data, information, and other items that impact my decision making out in the open and visiible.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Have a System&lt;/strong&gt; - Everything has a system through which it operates. It is important to discover those systems and make them explicit as much as possible.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Be Empathetic&lt;/strong&gt; - I strive to stay highly attuned to what motivates people and be understanding of their perspective.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Act with Intent&lt;/strong&gt; - Be intentional to achieve desired results when it sometimes feels there&amp;rsquo;s too much to do.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Think Critically&lt;/strong&gt; - Don&amp;rsquo;t be content with doing things because &amp;ldquo;that is how it has always been done.&amp;rdquo; Always question the status quo, break down cargo cults and silos.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Kaizen&lt;/strong&gt; - I am a big fan of continuous improvement through constant learning and adapting.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id="1-1s"&gt;1-1s&lt;/h2&gt;
&lt;p&gt;For me our 1-1s will be the most critical meeting we have. This will be a time for us to connect and build our relationship. I have some ground rules for how these typically run.&lt;/p&gt;</description></item><item><title>💡 The Power of Intentionality</title><link>https://james-carr.org/posts/the-power-of-intentionality/</link><pubDate>Thu, 23 Feb 2023 00:00:00 +0000</pubDate><guid>https://james-carr.org/posts/the-power-of-intentionality/</guid><description>&lt;p&gt;&lt;img src="https://james-carr.org/images/set-intention.jpg" alt="The Power of Intention"&gt;&lt;/p&gt;
&lt;p&gt;Life is a journey with endless possibilities, each one presenting an opportunity to grow and evolve. However, without intentionality, these opportunities can easily slip away, leaving us feeling unfulfilled and stuck. In today’s fast-paced world, it’s easy to get caught up in the hustle and bustle of everyday life, leaving little time for reflection and intentionality. Being intentional with everything you do is the key to unlocking your full potential and living a fulfilling life.&lt;/p&gt;</description></item><item><title>📘 Book Review: Dynamic Reteaming</title><link>https://james-carr.org/posts/dynamic-reteaming/</link><pubDate>Sun, 01 Jan 2023 00:00:00 +0000</pubDate><guid>https://james-carr.org/posts/dynamic-reteaming/</guid><description>&lt;p&gt;&lt;img src="https://james-carr.org/images/dynamic-reteaming.jpg#floatleft" alt="Book Cover"&gt;&lt;/p&gt;
&lt;p&gt;While taking my career break I have been doing some reading around organization structures and
building high performing teams. One of the books that came up in my list was &lt;a href="https://www.oreilly.com/library/view/dynamic-reteaming-2nd/9781492061281/"&gt;Dynamic Reteaming&lt;/a&gt; by &lt;a href="https://www.heidihelfand.com/"&gt;Heidi Helfand&lt;/a&gt;. I picked this book up because in my career I had seen a several examples of how team structures evolve and change over time and figured it would be great to really dig into some of the patterns that have been identified across many organizations.&lt;/p&gt;</description></item><item><title>Strange Loop 2022 Recap</title><link>https://james-carr.org/posts/strange-loop-2022/</link><pubDate>Sat, 01 Oct 2022 00:00:00 +0000</pubDate><guid>https://james-carr.org/posts/strange-loop-2022/</guid><description>&lt;p&gt;&lt;img src="https://james-carr.org/images/me-kids-romero.png" alt="Me and the kiddos meeting with the Legendary John Romero"&gt;
Yep, that&amp;rsquo;s me over in the top right, with my kiddos meeting the legendary John Romero at Strange Loop 2022.&lt;/p&gt;</description></item><item><title> Effective Communication Best Practices</title><link>https://james-carr.org/posts/effective-communication/</link><pubDate>Sat, 18 Jun 2022 00:00:00 +0000</pubDate><guid>https://james-carr.org/posts/effective-communication/</guid><description>&lt;p&gt;Recently a member of the Rands Leadership slack went through and took some very detailed notes of the #engineering-effectiveness channel dating all the way back to 2017 to the present day and shared their notes with the rest of the group. I was floored by how much good information was in the document and plan to go over it in detail, but here are some of the key points I highlighted when it came to effective communication.&lt;/p&gt;</description></item><item><title>Thoughts on Managing Managers</title><link>https://james-carr.org/posts/manager-of-managers/</link><pubDate>Wed, 08 Dec 2021 00:00:00 +0000</pubDate><guid>https://james-carr.org/posts/manager-of-managers/</guid><description>&lt;p&gt;In any organization, the role of a manager is crucial to ensure that the team performs to its full potential. As teams grow larger and more complex, managing them effectively becomes increasingly challenging. At a certain point, you need to subdivide the team into several teams and make the decision to either promote or hire additional managers. This is where a director takes on the role of a “manager of managers.” In this post, I’ll talk about some of my thoughts on the topic as I admit it is also new to me.&lt;/p&gt;</description></item><item><title>Book Review: Turn the Ship Around</title><link>https://james-carr.org/posts/turn-the-ship-around/</link><pubDate>Sun, 01 Aug 2021 00:00:00 +0000</pubDate><guid>https://james-carr.org/posts/turn-the-ship-around/</guid><description>&lt;p&gt;&lt;img src="https://james-carr.org/images/turn-the-ship-around.jpg#floatleft" alt="Turn the Ship Around!"&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://www.amazon.com/Turn-Ship-Around-Turning-Followers-ebook/dp/B00AFPVP0Y#:~:text=Turn%20the%20Ship%20Around!%20is%20the%20true%20story%20of%20how,powerful%20model%20of%20giving%20control."&gt;Turn the Ship Around!: A True Story of Turning Followers into Leaders&lt;/a&gt; is a book written by David Marquet, a retired submarine commander in the United States Navy. The book details Marquet&amp;rsquo;s experience of turning a failing submarine crew into a highly effective team by implementing a leader-leader model instead of the traditional leader-follower model. My spouse, Than, picked this book up a few years back as part of a large collection of management books to help the shift from engineer to engineering management and I finally got around to ready it. So brace yourself for my summarization!&lt;/p&gt;</description></item><item><title>Measuring the Impact of Unplanned Work</title><link>https://james-carr.org/posts/unplanned-work/</link><pubDate>Thu, 18 Feb 2021 00:00:00 +0000</pubDate><guid>https://james-carr.org/posts/unplanned-work/</guid><description>&lt;p&gt;One of the immense difficulties I have faced while running production engineering-type teams is how much-unplanned work can drop into their daily workload. I am still trying to solve the root problem of why we get so much unplanned work but the first item on my list is to find a way to measure it first. Measure, then tackle is my go-to operating mode.&lt;/p&gt;
&lt;p&gt;Many engineering teams face the challenge of balancing planned development work with unplanned operational tasks. Without proper measurement, the impact of unplanned work on the team&amp;rsquo;s overall capacity can be difficult to gauge. In this blog post, we&amp;rsquo;ll discuss some strategies for measuring and managing unplanned work in engineering teams, drawing from the book &amp;ldquo;&lt;a href="https://www.google.com/search?q=Making+Work+Visible+good+reads%27&amp;amp;rlz=1C5MACD_enUS1034US1034&amp;amp;oq=Making+Work+Visible+good+reads%27&amp;amp;aqs=chrome..69i57j0i22i30i625.5556j0j4&amp;amp;sourceid=chrome&amp;amp;ie=UTF-8"&gt;Making Work Visible&lt;/a&gt;&amp;rdquo; by Dominica DeGrandis.&lt;/p&gt;</description></item><item><title>Book Review: The First 90 Days</title><link>https://james-carr.org/posts/first-90-days-review/</link><pubDate>Tue, 12 Jan 2021 00:00:00 +0000</pubDate><guid>https://james-carr.org/posts/first-90-days-review/</guid><description>&lt;p&gt;&lt;img src="https://james-carr.org/images/first-90-days.jpg#floatleft" alt="The First 90 Days Book Cover"&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://www.goodreads.com/book/show/15824358-the-first-90-days?from_search=true&amp;amp;from_srp=true&amp;amp;qid=gYAJgbKveW&amp;amp;rank=1"&gt;&amp;ldquo;The First 90 Days&amp;rdquo;&lt;/a&gt; by Michael D. Watkins is a book on leadership transition that I had delivered to me from my new manager at the role I just took on at a new company. I read the book ahead of starting last month but finally got around to sitting down and writing out my summary. The book provides a comprehensive framework for making a successful transition, with practical advice and tips that are applicable to any industry or organization.&lt;/p&gt;</description></item><item><title>My Five Favorite Management Books</title><link>https://james-carr.org/posts/five-favorite-management-books/</link><pubDate>Sun, 22 Dec 2019 00:00:00 +0000</pubDate><guid>https://james-carr.org/posts/five-favorite-management-books/</guid><description>&lt;p&gt;I was chatting with a team member of mine about their career growth plans a few weeks ago and while we were on the topic he mentioned he&amp;rsquo;d always appreciate book recommendations for growing into engineering management. I thought over it a bit and decided this would be a great topic to share with everyone else. So without further delay, here are my favorite books I&amp;rsquo;ve read to grow in my engineering management career in no particular order.&lt;/p&gt;</description></item><item><title>152 Days of the Majjhima Nikāya</title><link>https://james-carr.org/posts/152-days-of-majjhima-nikaya/</link><pubDate>Mon, 22 Apr 2019 00:00:00 +0000</pubDate><guid>https://james-carr.org/posts/152-days-of-majjhima-nikaya/</guid><description>&lt;p&gt;&lt;img src="https://james-carr.org/images/MN.png" alt="The Majjhima Nikaya, open and humming with promises of wisdom"&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;“What should be done for his disciples out of compassion by a Teacher who seeks their welfare and has compassion for them, that I have done for you, Ānanda. There are these roots of trees, these empty huts. Meditate, Ānanda, do not delay, or else you regret it later. This is our instruction to you.”&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Thus ends the &lt;a href="http://www.yellowrobe.com/home/120-majjhima-nikaya/294-indriyabhvan-sutta-the-development-of-the-faculties.html"&gt;Indriyabhāvanā Sutta&lt;/a&gt; (The Development of the Faculties), number 152 in the &lt;a href="https://www.accesstoinsight.org/tipitaka/mn/index.html"&gt;Majjhima Nikāya&lt;/a&gt; collection and in my opinion there really couldn’t be any better way to conclude the Middle Length Discourses with a very blunt call to action. It is almost as the Buddha is speaking to us through Ānanda to not hesitate to put the practice outlined in the discourses into practice: “Meditate, do not delay! Or else you will regret it later!”&lt;/p&gt;</description></item><item><title>Engineering Team Metrics to Drive Performance</title><link>https://james-carr.org/posts/engineering-team-metrics-to-drive-performance/</link><pubDate>Fri, 03 Mar 2017 00:00:00 +0000</pubDate><guid>https://james-carr.org/posts/engineering-team-metrics-to-drive-performance/</guid><description>&lt;p&gt;As a newly promoted engineering manager, I am still learning about the various ways to improve my team&amp;rsquo;s performance. One of the most important aspects of this task is understanding and measuring the metrics that will drive success. Here are some of the books and articles that I have found to be valuable resources in understanding and implementing engineering team metrics.&lt;/p&gt;
&lt;h2 id="key-metrics"&gt;Key Metrics&lt;/h2&gt;
&lt;p&gt;The first book that I found to be extremely helpful is &lt;a href="https://www.amazon.com/Managing-Unmanageable-Insights-Software-People/dp/032182203X"&gt;&amp;ldquo;Managing the Unmanageable: Rules, Tools, and Insights for Managing Software People and Teams&amp;rdquo;&lt;/a&gt; by Mickey W. Mantle and Ron Lichty. The authors provide a detailed overview of various metrics that engineering managers can use to measure and improve their team&amp;rsquo;s performance. Some of the key metrics that they discuss include:&lt;/p&gt;</description></item><item><title>How We Run Infrastructure at Zapier</title><link>https://james-carr.org/posts/how-we-run-infrastructure-at-zapier/</link><pubDate>Sat, 12 Nov 2016 00:00:00 +0000</pubDate><guid>https://james-carr.org/posts/how-we-run-infrastructure-at-zapier/</guid><description>&lt;p&gt;I think I am long overdue for writing a post about how we run infrastructure at &lt;a href="https://zapier.com"&gt;Zapier&lt;/a&gt;. While I admit our setup might be far from perfect, I feel it works well and has served us as we scale the business out. I am also proud of how much we have been able to do with such a small team!&lt;/p&gt;
&lt;h2 id="philosophy"&gt;Philosophy&lt;/h2&gt;
&lt;p&gt;Since the beginning, we’ve been big on maintaining a philosophy of “Immutable Infrastructure” and treating our instances as &lt;a href="https://cloudscaling.com/blog/cloud-computing/the-history-of-pets-vs-cattle/"&gt;cattle, not pets&lt;/a&gt;. Switching from stand-alone EC2 instances to nothing but auto-scaling groups that can scale up and down based on load is a major win. We never modify servers directly, instead, we rebuild server images and rotate our autoscaling groups. This approach limits blast radius provides safety and allows us to run multiple versions of our stack side-by-side in case we need to rollback.&lt;/p&gt;</description></item><item><title>Installing Elasticsearch Plugins on Graylog2</title><link>https://james-carr.org/posts/graylog-plugins/</link><pubDate>Tue, 17 Jun 2014 00:00:00 +0000</pubDate><guid>https://james-carr.org/posts/graylog-plugins/</guid><description>&lt;p&gt;I thought I’d share this since it was something I unfortunately, spent a good portion of my afternoon wrestling with. So you want to use an elasticsearch plugin within graylog2-server? I don’t care about your reasons, but this will help you do it. I’m going to go out on a limb and assume you’re wanting to use the kopf plugin to view cluster state, but this will work for any plugin.&lt;/p&gt;</description></item><item><title>On BDD From Acceptance Tests to Story Level Specifications</title><link>https://james-carr.org/posts/on-bdd-from-acceptance-tests-to-story-level-specs/</link><pubDate>Mon, 17 Mar 2014 00:00:00 +0000</pubDate><guid>https://james-carr.org/posts/on-bdd-from-acceptance-tests-to-story-level-specs/</guid><description>&lt;p&gt;Behavior Driven Development is best described as taking an “Outside-In” approach, meaning you define your feature from the outset and describe business value, and work your way in a small piece at a time. That being the case, I thought it’d be best to cover one stage of evolution that I’ve had over the years… from Developer Facing Acceptance Tests to Customer Facing Story Level Specifications.&lt;/p&gt;
&lt;h4 id="the-start-developer-facing-acceptance-tests"&gt;&lt;strong&gt;The Start: Developer Facing Acceptance Tests&lt;/strong&gt;&lt;/h4&gt;
&lt;p&gt;These were the starting point… where I started 5 years ago. I would write rather long-winded integration-style tests in a xUnit framework that would exercise the end-to-end functionality of a feature. It worked because it provided an automated test that would verify that the feature actually worked, and provided a nice safety net when doing wide-ranging system re-structuring.&lt;/p&gt;</description></item><item><title>Dynamic Vagrant Nodes</title><link>https://james-carr.org/posts/dynamic-vagrant-nodes/</link><pubDate>Sun, 17 Mar 2013 00:00:00 +0000</pubDate><guid>https://james-carr.org/posts/dynamic-vagrant-nodes/</guid><description>&lt;p&gt;I use vagrant a lot and at &lt;a href="https://zapier.com"&gt;Zapier&lt;/a&gt; I use a setup where one Vagrantfile can be used to launch any instance in our infrastructure locally for testing. This is really quite useful as I can boot up a two node rabbitmq cluster with haproxy by simply typing &lt;code&gt;vagrant up rabbitproxy01 rabbit01 rabbit02&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;In the beginning this was a little messy as I just kept adding new node definitions and incrementing the ip address. But today I’ll share my refactored vagrant file for your own dynamic virtualizing goodness.&lt;/p&gt;</description></item><item><title>HackComo Inaugural Meetup 2/28/2012</title><link>https://james-carr.org/posts/hack-como/</link><pubDate>Tue, 28 Feb 2012 00:00:00 +0000</pubDate><guid>https://james-carr.org/posts/hack-como/</guid><description>&lt;p&gt;&lt;img src="https://james-carr.org/images/hack-como.jpg" alt="Hackers hacking at Bambinos"&gt;
Last night I had the pleasure of attending the very first &lt;a href="https://web.archive.org/web/20120402021949/http://hackcomo.com/"&gt;HackCoMo&lt;/a&gt; meetup at Bambinos and thought I’d share the experience. For those of you who don’t know, HackCoMo is a weekly meetup to get together and just hack at various projects or ideas. All in the company of really cool geeks local to Columbia, MO while enjoying some beer and appetizers.&lt;/p&gt;
&lt;p&gt;First, it was pretty awesome to be exposed to what others were working on. Ted was working on some DropBox integration for DocumentCloud, Bryan was hacking at some imap webhook type integration, and various other people I could see some ruby code + &lt;a href="https://web.archive.org/web/20120402021949/http://beginrescueend.com/"&gt;rvm&lt;/a&gt; type magic in their terminals.&lt;/p&gt;</description></item><item><title>An Epiphany About Coaching</title><link>https://james-carr.org/posts/an-epiphany-about-coaching/</link><pubDate>Mon, 01 Nov 2010 00:00:00 +0000</pubDate><guid>https://james-carr.org/posts/an-epiphany-about-coaching/</guid><description>&lt;p&gt;&lt;em&gt;True knowledge exists in knowing that you know nothing.&lt;/em&gt; - Socrates&lt;/p&gt;
&lt;p&gt;As those of you who read my blog often know, I recently made a career jump to a contracting firm to consult at different large-scale organizations. To my dismay, my first assignment has been more as a developer than as a coach/scrum master, but I felt this would also be a good opportunity to observe and understand how to coach effectively. I might even experiment with seeing how well I could help improve practices from the trenches.&lt;/p&gt;</description></item><item><title>Lessons Learned With My Recent Node.js Application</title><link>https://james-carr.org/posts/lessons-learned-nodejs-strangeloop-2010/</link><pubDate>Fri, 24 Sep 2010 00:00:00 +0000</pubDate><guid>https://james-carr.org/posts/lessons-learned-nodejs-strangeloop-2010/</guid><description>&lt;p&gt;Recently, I developed a web application for my friend Alex Miller&amp;rsquo;s conference, &lt;a href="https://www.thestrangeloop.com/"&gt;Strange Loop&lt;/a&gt;. The app accepted talk submissions and gathered votes on those submissions to rank the top ones. I hosted the application on Heroku&amp;rsquo;s node.js beta preview and used a free &lt;a href="https://web.archive.org/web/20110707021920/http://couchone.com/"&gt;CouchOne&lt;/a&gt; instance for the data store. Although I encountered some difficulties, I learned some important lessons that I thought I&amp;rsquo;d share.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Tag your last successful Heroku deployment.&lt;/strong&gt; While adding one additional feature to the site, the app worked fine on my laptop but failed on Heroku for reasons I couldn&amp;rsquo;t figure out for quite some time. I had to manually check out the date of the last successful deployment, branch, and push to reset it back. Tagging would have made this easier. This also leads to my next lesson learned.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Create a staging Heroku instance.&lt;/strong&gt; This helps catch errors arising from differences that might exist between your local machine and Heroku. After the mishap mentioned previously, all my deployments included deploying to staging first just to make sure there were no odd inconsistencies before pushing live.&lt;/li&gt;
&lt;li&gt;Specifying different environments, such as staging and production, is an important part of developing and deploying a web application. By using the &lt;code&gt;NODE_ENV&lt;/code&gt; environment variable, you can easily configure your app to use different resources in different environments, catch errors and inconsistencies before deploying to production, and develop, test, and deploy your app more effectively and with greater confidence.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Replicate your CouchOne instance.&lt;/strong&gt; In the 11th hour, my main CouchOne instance crashed. To make matters worse, the person who could fix the instance was on an international flight and wouldn&amp;rsquo;t be able to help until morning. Although it was a rare case, simply replicating my databases would have made it easy and painless to recover and work around the instance being down. Plus, it only takes one minute.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;As an avid user of node.js, I have had the opportunity to try out various hosting platforms. While Heroku is a decent option for hosting node.js applications, I must admit that my experience with Joyent during the Node Knockout was much more enjoyable. That being said, I am willing to give Heroku another chance and see how its support for node.js develops over time. As of right now, I have no major complaints and it continues to be a viable option for hosting my node.js projects.&lt;/p&gt;</description></item><item><title>Life in the Fast Lane</title><link>https://james-carr.org/posts/life-in-the-fastlane/</link><pubDate>Mon, 12 Jul 2010 00:00:00 +0000</pubDate><guid>https://james-carr.org/posts/life-in-the-fastlane/</guid><description>&lt;p&gt;&lt;img src="https://james-carr.org/images/meandcaitlynn.jpg" alt=""&gt;&lt;/p&gt;
&lt;p&gt;When I was growing up I always thought that my life would hit some kind of point where everything will start moving very quickly and that I’d have to keep up with the current before I get swept away.&lt;/p&gt;
&lt;p&gt;And today I finally feel like I’ve dipped my toe into that point in my life.&lt;/p&gt;
&lt;p&gt;Our baby girl was born yesterday (a month ahead of schedule) and I’ve been kind of in a rush to get everything put into place. Further, the future is looking quite busy for the rest of the year. I’ll be speaking on RabbitMQ at the Gateway Java User Group in September, BDD with EasyB at the Groovy Usergroup, and BDD with Scala at Strange Loop in October, plus unspecified speaking arrangements yet to be made at the Rich Web Experience in Florida in the end of November. I’ll also be participating in a Code Retreat on September 18th and possibly the Node Knockout at the end of August. I’m sure I’ll be learning a lot more and engaging in more activities before the year is out as well!&lt;/p&gt;</description></item><item><title>⭐️ Retrospective Rules</title><link>https://james-carr.org/posts/retrospective-rules/</link><pubDate>Sun, 28 Feb 2010 00:00:00 +0000</pubDate><guid>https://james-carr.org/posts/retrospective-rules/</guid><description>&lt;p&gt;I am preparing to conduct a retrospective for my team at my current client site. To guide me, I have been reviewing notes from previous retrospectives I have either attended or led. In doing so, I have noticed an emerging pattern of behavior that can significantly impact the success of a retrospective. Here are a few key factors that I believe are most important:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Retrospective Belongs to the Team&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Possibly the most important observation I&amp;rsquo;ve made is that retrospectives are only effective if they truly belong to the team. This means that only the team should attend them, and that only the team can set goals and decide how to follow up on them. In my humble opinion, management shouldn&amp;rsquo;t attend the retrospective, as they can cause interference, step in, or require metrics to be collected. At my previous client, several retrospectives I participated in were rendered useless because the manager kept cutting people off and dismissing their proposed goals without consideration. As a result, we never accomplished anything during those retrospectives.&lt;/p&gt;</description></item><item><title>RabbitMQ, Node.js and Java Goodness</title><link>https://james-carr.org/posts/rabbitmq-nodejs-and-java-goodness/</link><pubDate>Sun, 28 Feb 2010 00:00:00 +0000</pubDate><guid>https://james-carr.org/posts/rabbitmq-nodejs-and-java-goodness/</guid><description>&lt;p&gt;Tuesday night I gave a talk at a local Java User Group (that’s four JUG appearances this year, hoorah!) on RabbitMQ and demonstrated not just using it communicate between two java processes, but also as a way of communicating asynchronously between a node.js application and a java application… I have to say it was pretty awesome and I really think it opens the doors for integrating node.js applications seemlessly into an existing java infrastructure.&lt;/p&gt;</description></item><item><title>The Importance of Maintaining a Sustainable Pace</title><link>https://james-carr.org/posts/the-importance-of-maintaining-a-sustainable-pace/</link><pubDate>Thu, 18 Feb 2010 00:00:00 +0000</pubDate><guid>https://james-carr.org/posts/the-importance-of-maintaining-a-sustainable-pace/</guid><description>&lt;p&gt;&lt;img src="https://james-carr.org/images/ground.jpg" alt="Ground"&gt;&lt;/p&gt;
&lt;p&gt;When it comes to working in the software industry, I believe I can best summarize what the majority of developers and teams do by quoting Pink Floyd&amp;rsquo;s song &amp;ldquo;Breathe&amp;rdquo;:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Run, rabbit run
Dig that hole, forget the sun
And when at last the work is done
Don’t sit downIt’s time to dig another one&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;I think that the verse goes quite well with the default behavior of developers when faced with an overwhelming amount of work on a project. It&amp;rsquo;s easy to &amp;ldquo;hit the ground running&amp;rdquo; and work as hard and quickly as possible, brute-forcing their way through it. However, this approach often means forgetting the bigger picture and leaving holes in the codebase. It can also lead to a constant feeling of &amp;ldquo;the sky is falling&amp;rdquo; while working on multiple tasks at once.&lt;/p&gt;</description></item><item><title>CoMO Twestival</title><link>https://james-carr.org/posts/twestival/</link><pubDate>Sun, 15 Feb 2009 00:00:00 +0000</pubDate><guid>https://james-carr.org/posts/twestival/</guid><description>&lt;p&gt;&lt;img src="https://james-carr.org/images/twestival.png" alt="Tweeters at Twestival"&gt;
This Thursday I attended a &lt;a href="https://web.archive.org/web/20090324082809/http://twestival.com/"&gt;Twestival &lt;/a&gt;organized by &lt;a href="https://web.archive.org/web/20090324082809/http://www.jenleereeves.com/"&gt;jenleereeves&lt;/a&gt; and finally got to meet up with a ton of local “tweeters” I’ve followed for quite a while as well as meet several for the first time. In addition to finally meeting face to face, we also bid on auction items for &lt;a href="https://web.archive.org/web/20090324082809/http://www.charitywater.org/"&gt;charity:water&lt;/a&gt;. Good times plus helping support a good cause.&lt;/p&gt;
&lt;p&gt;I have to say it was a really awesome experience… an interesting mix of local tech heads, photographers, journalists, and new media enthusiasts. The only drawback was that by the end of the night, my jaw was kinda sore from all the talking… it’s a little to easy to chat non-stop when you throw me in a room with like-minded people.&lt;/p&gt;</description></item><item><title>OSCommerce: A Lesson in Unmaintainable Code?</title><link>https://james-carr.org/posts/oscommerce/</link><pubDate>Sun, 30 Nov 2008 00:00:00 +0000</pubDate><guid>https://james-carr.org/posts/oscommerce/</guid><description>&lt;p&gt;I’ll let you in on a dirty secret: my first paid programming task was to make custom modifications to an &lt;a href="https://web.archive.org/web/20090401042829/http://www.oscommerce.com/"&gt;oscommerce&lt;/a&gt; shopping cart. I cut my teeth on &lt;a href="https://web.archive.org/web/20090401042829/http://www.php.net/"&gt;PHP &lt;/a&gt;that weekend and learned through trial by fire how much good, clean code (with no global variables!) matters, and how much it really SUCKS when everything is in the global scope. I always died a little inside each time I had to make a modification… I once started refactoring the code on the side but gave up after a month. It was just so… intense!&lt;/p&gt;</description></item><item><title/><link>https://james-carr.org/posts/diagrams/adaptive-throughput-learning/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://james-carr.org/posts/diagrams/adaptive-throughput-learning/</guid><description>&lt;h1 id="adaptive-throughput-learning---mermaid-diagram"&gt;Adaptive Throughput Learning - Mermaid Diagram&lt;/h1&gt;
&lt;p&gt;Preview this diagram to see how the throughput tracking and baseline adaptation system works.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#282a36;-moz-tab-size:2;-o-tab-size:2;tab-size:2;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-fallback" data-lang="fallback"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;flowchart TB
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; subgraph Delivery[&amp;#34;📤 Delivery Pipeline&amp;#34;]
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; D1[Webhook Delivery] --&amp;gt; D2[Record Result]
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; D2 --&amp;gt; D3{Success?}
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; D3 --&amp;gt;|Yes| D4[Log: timestamp, latency]
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; D3 --&amp;gt;|No| D5[Log: error, status code]
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; end
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; subgraph Metrics[&amp;#34;📊 Rolling Metrics Engine&amp;#34;]
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; M1[(Time-Series Store)]
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; M2[1-min Counter]
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; M3[1-hour Rolling Avg]
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; M4[24-hour Rolling Avg]
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; M5[P95 Response Time]
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; M6[Error Rate %]
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; 
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; D4 --&amp;gt; M1
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; D5 --&amp;gt; M1
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; M1 --&amp;gt; M2 --&amp;gt; M3 --&amp;gt; M4
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; M1 --&amp;gt; M5
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; M1 --&amp;gt; M6
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; end
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; subgraph Detection[&amp;#34;🔍 Capacity Change Detection&amp;#34;]
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; C1{Current vs Historical&amp;lt;br/&amp;gt;Deviation &amp;gt; 10%?}
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; C2{Sustained for&amp;lt;br/&amp;gt;&amp;gt; 24 hours?}
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; C3[Flag Capacity Change]
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; 
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; M3 --&amp;gt; C1
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; M4 --&amp;gt; C1
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; C1 --&amp;gt;|Yes| C2
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; C2 --&amp;gt;|Yes| C3
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; end
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; subgraph Adaptation[&amp;#34;🎯 Baseline Adaptation&amp;#34;]
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; A1{Change Direction?}
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; A2[Lower Baseline&amp;lt;br/&amp;gt;-8% adjustment]
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; A3[Raise Baseline&amp;lt;br/&amp;gt;+12% adjustment]
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; A4[Update Recovery&amp;lt;br/&amp;gt;Ramp Target]
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; 
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; C3 --&amp;gt; A1
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; A1 --&amp;gt;|Decreased| A2
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; A1 --&amp;gt;|Increased| A3
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; A2 --&amp;gt; A4
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; A3 --&amp;gt; A4
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; end
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; A4 -.-&amp;gt;|New baseline feeds&amp;lt;br/&amp;gt;recovery rate formula| Delivery
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; style Delivery fill:#1e3a5f,stroke:#60a5fa,color:#fff
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; style Metrics fill:#1e3a3a,stroke:#34d399,color:#fff
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; style Detection fill:#3b2e1e,stroke:#fbbf24,color:#fff
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; style Adaptation fill:#2e1e3b,stroke:#a78bfa,color:#fff
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h2 id="how-it-works"&gt;How It Works&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;Delivery Pipeline&lt;/strong&gt; - Every webhook delivery records success/failure with timing data&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Rolling Metrics Engine&lt;/strong&gt; - Time-series data aggregated into multiple windows:
&lt;ul&gt;
&lt;li&gt;1-minute counters for real-time visibility&lt;/li&gt;
&lt;li&gt;1-hour rolling average for trend detection&lt;/li&gt;
&lt;li&gt;24-hour rolling average for baseline comparison&lt;/li&gt;
&lt;li&gt;P95 response times and error rates&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Capacity Change Detection&lt;/strong&gt; - Compares current throughput vs historical baseline
&lt;ul&gt;
&lt;li&gt;Requires &amp;gt;10% deviation&lt;/li&gt;
&lt;li&gt;Must be sustained for &amp;gt;24 hours to avoid false positives&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Baseline Adaptation&lt;/strong&gt; - Adjusts the target capacity
&lt;ul&gt;
&lt;li&gt;Lowers baseline if endpoint capacity decreased&lt;/li&gt;
&lt;li&gt;Raises baseline if endpoint upgraded capacity&lt;/li&gt;
&lt;li&gt;Updates recovery ramp target for future outage recovery&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;The dashed feedback loop shows how the updated baseline directly influences recovery rate calculations during future outages.&lt;/p&gt;</description></item><item><title/><link>https://james-carr.org/posts/diagrams/circuit-breaker/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://james-carr.org/posts/diagrams/circuit-breaker/</guid><description>&lt;h1 id="circuit-breaker-pattern---mermaid-diagrams"&gt;Circuit Breaker Pattern - Mermaid Diagrams&lt;/h1&gt;
&lt;h2 id="state-machine"&gt;State Machine&lt;/h2&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#282a36;-moz-tab-size:2;-o-tab-size:2;tab-size:2;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-fallback" data-lang="fallback"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;stateDiagram-v2
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; [*] --&amp;gt; CLOSED: Initialize
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; 
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; CLOSED --&amp;gt; CLOSED: Success\n(reset failure count)
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; CLOSED --&amp;gt; OPEN: Failure threshold\nexceeded (5 failures)
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; 
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; OPEN --&amp;gt; OPEN: Reject requests\n(fail fast)
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; OPEN --&amp;gt; HALF_OPEN: Timeout expires\n(30s)
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; 
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; HALF_OPEN --&amp;gt; CLOSED: Health check\npasses (3 successes)
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; HALF_OPEN --&amp;gt; OPEN: Health check\nfails
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; note right of CLOSED
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; Normal operation
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; Track failure count
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; Reset on success
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; end note
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; note right of OPEN
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; Circuit tripped
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; Reject all requests
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; Start recovery timer
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; end note
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; note right of HALF_OPEN
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; Testing recovery
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; Allow limited traffic
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; Probe endpoint health
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; end note
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h2 id="sequence-diagram---normal-flow-to-trip-to-recovery"&gt;Sequence Diagram - Normal Flow to Trip to Recovery&lt;/h2&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#282a36;-moz-tab-size:2;-o-tab-size:2;tab-size:2;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-fallback" data-lang="fallback"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;sequenceDiagram
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; participant Client
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; participant CB as Circuit Breaker
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; participant Endpoint
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; 
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; Note over CB: State: CLOSED
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; 
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; rect rgb(30, 60, 30)
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; Note right of Client: Normal Operation
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; Client-&amp;gt;&amp;gt;CB: Request 1
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; CB-&amp;gt;&amp;gt;Endpoint: Forward
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; Endpoint--&amp;gt;&amp;gt;CB: 200 OK
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; CB--&amp;gt;&amp;gt;Client: Success
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; Note over CB: failures = 0
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; end
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; rect rgb(60, 30, 30)
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; Note right of Client: Failures Accumulate
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; Client-&amp;gt;&amp;gt;CB: Request 2
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; CB-&amp;gt;&amp;gt;Endpoint: Forward
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; Endpoint--&amp;gt;&amp;gt;CB: 500 Error
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; CB--&amp;gt;&amp;gt;Client: Error
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; Note over CB: failures = 1
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; 
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; Client-&amp;gt;&amp;gt;CB: Request 3
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; CB-&amp;gt;&amp;gt;Endpoint: Forward
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; Endpoint--&amp;gt;&amp;gt;CB: Timeout
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; CB--&amp;gt;&amp;gt;Client: Error
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; Note over CB: failures = 2
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; 
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; Client-&amp;gt;&amp;gt;CB: Request 4-6
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; CB-&amp;gt;&amp;gt;Endpoint: Forward (x3)
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; Endpoint--&amp;gt;&amp;gt;CB: 503 (x3)
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; CB--&amp;gt;&amp;gt;Client: Error (x3)
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; Note over CB: failures = 5 → TRIP!
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; end
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; Note over CB: State: OPEN
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; rect rgb(60, 50, 20)
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; Note right of Client: Fast Fail (No Network)
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; Client-&amp;gt;&amp;gt;CB: Request 7
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; CB--xClient: REJECTED (circuit open)
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; Note over CB: No call to endpoint
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; 
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; Client-&amp;gt;&amp;gt;CB: Request 8
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; CB--xClient: REJECTED (circuit open)
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; end
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; Note over CB: 30s timeout expires...
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; Note over CB: State: HALF_OPEN
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; rect rgb(50, 50, 30)
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; Note right of Client: Probe Recovery
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; Client-&amp;gt;&amp;gt;CB: Request 9
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; CB-&amp;gt;&amp;gt;Endpoint: Health probe
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; Endpoint--&amp;gt;&amp;gt;CB: 200 OK
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; CB--&amp;gt;&amp;gt;Client: Success
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; Note over CB: probe_success = 1
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; 
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; Client-&amp;gt;&amp;gt;CB: Request 10-11
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; CB-&amp;gt;&amp;gt;Endpoint: Forward (x2)
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; Endpoint--&amp;gt;&amp;gt;CB: 200 OK (x2)
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; CB--&amp;gt;&amp;gt;Client: Success (x2)
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; Note over CB: probe_success = 3 → CLOSE!
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; end
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; Note over CB: State: CLOSED
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; 
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; rect rgb(30, 60, 30)
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; Note right of Client: Back to Normal
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; Client-&amp;gt;&amp;gt;CB: Request 12+
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; CB-&amp;gt;&amp;gt;Endpoint: Forward
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; Endpoint--&amp;gt;&amp;gt;CB: 200 OK
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; CB--&amp;gt;&amp;gt;Client: Success
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; end
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h2 id="interaction-with-retry--dlq"&gt;Interaction with Retry + DLQ&lt;/h2&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#282a36;-moz-tab-size:2;-o-tab-size:2;tab-size:2;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-fallback" data-lang="fallback"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;flowchart LR
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; subgraph Delivery[&amp;#34;Delivery System&amp;#34;]
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; W[Worker] --&amp;gt; CB{Circuit&amp;lt;br/&amp;gt;Breaker}
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; end
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; subgraph States[&amp;#34;Circuit States&amp;#34;]
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; CB --&amp;gt;|CLOSED| E[Endpoint]
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; CB --&amp;gt;|OPEN| R[Reject]
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; CB --&amp;gt;|HALF_OPEN| P[Probe]
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; end
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; subgraph Outcomes[&amp;#34;Outcomes&amp;#34;]
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; E --&amp;gt;|Success| S[✅ Delivered]
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; E --&amp;gt;|Failure| F[Retry Queue]
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; R --&amp;gt;|Snooze 30s| F
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; P --&amp;gt;|Success| S
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; P --&amp;gt;|Failure| F
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; end
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; subgraph Exhausted[&amp;#34;Max Retries Exhausted&amp;#34;]
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; F --&amp;gt;|Attempt 5| DLQ[💀 Dead Letter Queue]
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; end
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; style CB fill:#fbbf24,stroke:#92400e,color:#000
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; style DLQ fill:#dc2626,stroke:#7f1d1d,color:#fff
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; style S fill:#22c55e,stroke:#14532d,color:#fff
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h2 id="metrics-dashboard-view"&gt;Metrics Dashboard View&lt;/h2&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#282a36;-moz-tab-size:2;-o-tab-size:2;tab-size:2;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-fallback" data-lang="fallback"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;flowchart TB
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; subgraph Dashboard[&amp;#34;📊 Circuit Breaker Dashboard&amp;#34;]
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; direction TB
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; 
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; subgraph Endpoint1[&amp;#34;wh_acme_orders&amp;#34;]
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; S1[🟢 CLOSED]
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; M1[&amp;#34;failures: 0/5&amp;lt;br/&amp;gt;last_success: 2s ago&amp;#34;]
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; end
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; 
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; subgraph Endpoint2[&amp;#34;wh_beta_payments&amp;#34;]
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; S2[🔴 OPEN]
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; M2[&amp;#34;opened: 45s ago&amp;lt;br/&amp;gt;recovery_in: 15s&amp;lt;br/&amp;gt;held_messages: 234&amp;#34;]
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; end
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; 
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; subgraph Endpoint3[&amp;#34;wh_gamma_inventory&amp;#34;]
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; S3[🟡 HALF_OPEN]
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; M3[&amp;#34;probes: 2/3 passed&amp;lt;br/&amp;gt;last_probe: 5s ago&amp;#34;]
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; end
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; end
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; style S1 fill:#22c55e,color:#fff
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; style S2 fill:#dc2626,color:#fff
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; style S3 fill:#eab308,color:#000
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;</description></item><item><title/><link>https://james-carr.org/posts/diagrams/day-10-process-manager-diagrams/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://james-carr.org/posts/diagrams/day-10-process-manager-diagrams/</guid><description>&lt;h1 id="day-10-process-manager-diagrams"&gt;Day 10: Process Manager Diagrams&lt;/h1&gt;
&lt;h2 id="1-choreography---emergent-coordination"&gt;1. Choreography - Emergent Coordination&lt;/h2&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#282a36;-moz-tab-size:2;-o-tab-size:2;tab-size:2;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-fallback" data-lang="fallback"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;sequenceDiagram
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; participant Customer
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; participant Order as Order Service
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; participant Inventory as Inventory Service
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; participant Shipping as Shipping Service
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; 
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; Customer-&amp;gt;&amp;gt;Order: Place order
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; activate Order
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; 
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; Order--&amp;gt;&amp;gt;Inventory: OrderCreated (event)
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; Order--&amp;gt;&amp;gt;Shipping: OrderCreated (event)
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; deactivate Order
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; 
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; activate Inventory
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; Inventory--&amp;gt;&amp;gt;Order: ItemsReserved (event)
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; Inventory--&amp;gt;&amp;gt;Shipping: ItemsReserved (event)
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; deactivate Inventory
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; 
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; activate Shipping
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; Shipping--&amp;gt;&amp;gt;Order: ShipmentScheduled (event)
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; Shipping--&amp;gt;&amp;gt;Customer: Order shipped!
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; deactivate Shipping
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;&lt;strong&gt;Each service reacts to events independently. No one &amp;ldquo;owns&amp;rdquo; the workflow.&lt;/strong&gt;&lt;/p&gt;</description></item></channel></rss>