<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Distributed Systems on Nalar</title>
    <link>https://nalar.dev/tags/distributed-systems/</link>
    <description>Recent content in Distributed Systems on Nalar</description>
    <generator>Hugo</generator>
    <language>en-us</language>
    <lastBuildDate>Tue, 01 Sep 2026 00:00:00 +0700</lastBuildDate>
    <atom:link href="https://nalar.dev/tags/distributed-systems/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Contract Tests for Reliable Service Boundaries</title>
      <link>https://nalar.dev/contract-tests-for-service-boundaries/</link>
      <pubDate>Tue, 01 Sep 2026 00:00:00 +0700</pubDate>
      <guid>https://nalar.dev/contract-tests-for-service-boundaries/</guid>
      <description>&lt;p&gt;Distributed systems fail in an awkward place: each service can pass its own tests while the interaction between two services is incompatible.&lt;/p&gt;&#xA;&lt;p&gt;A provider may rename a JSON field, tighten validation, change an enum, or stop returning a value that a consumer quietly depends on. Contract tests make those cross-service assumptions executable.&lt;/p&gt;&#xA;&lt;h2 id=&#34;what-a-contract-is&#34;&gt;What a contract is&lt;/h2&gt;&#xA;&lt;p&gt;A contract describes an observable interaction between a consumer and a provider.&lt;/p&gt;&#xA;&lt;p&gt;For an HTTP API, it might specify:&lt;/p&gt;</description>
    </item>
    <item>
      <title>Design Circuit Breakers for Cloud Service Dependencies</title>
      <link>https://nalar.dev/circuit-breakers-cloud-service-dependencies/</link>
      <pubDate>Tue, 01 Sep 2026 00:00:00 +0700</pubDate>
      <guid>https://nalar.dev/circuit-breakers-cloud-service-dependencies/</guid>
      <description>&lt;p&gt;When a downstream service is failing, continuing to send every request can waste threads, sockets, and latency budget while increasing load on the unhealthy dependency. A circuit breaker temporarily fails calls fast after failures cross a threshold.&lt;/p&gt;&#xA;&lt;h2 id=&#34;understand-the-three-states&#34;&gt;Understand the three states&lt;/h2&gt;&#xA;&lt;p&gt;A typical breaker is &lt;strong&gt;closed&lt;/strong&gt; while calls flow normally. It moves &lt;strong&gt;open&lt;/strong&gt; after a configured failure policy is exceeded. After a recovery interval, it becomes &lt;strong&gt;half-open&lt;/strong&gt; and allows a limited number of probes. Successful probes close the circuit; failures open it again.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Idempotent Event Consumers for At-Least-Once Delivery</title>
      <link>https://nalar.dev/idempotent-event-consumers-at-least-once-delivery/</link>
      <pubDate>Tue, 01 Sep 2026 00:00:00 +0700</pubDate>
      <guid>https://nalar.dev/idempotent-event-consumers-at-least-once-delivery/</guid>
      <description>&lt;p&gt;Many queues and event brokers provide at-least-once delivery: a message that has been accepted can be delivered again when acknowledgements are lost, consumers crash, visibility timeouts expire, or the broker retries after uncertain outcomes.&lt;/p&gt;&#xA;&lt;p&gt;Duplicates are therefore not exceptional. A robust consumer should assume that the same logical event can arrive more than once.&lt;/p&gt;&#xA;&lt;h2 id=&#34;why-duplicates-happen&#34;&gt;Why duplicates happen&lt;/h2&gt;&#xA;&lt;p&gt;Consider this sequence:&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;a consumer receives an event;&lt;/li&gt;&#xA;&lt;li&gt;it updates the database successfully;&lt;/li&gt;&#xA;&lt;li&gt;the process crashes before acknowledging the message;&lt;/li&gt;&#xA;&lt;li&gt;the broker makes the message visible again;&lt;/li&gt;&#xA;&lt;li&gt;another consumer receives it.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;The broker cannot know that the database update happened. Redelivery is the safer choice.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Propagate Timeout Budgets Across Cloud Services</title>
      <link>https://nalar.dev/propagate-timeout-budgets-across-cloud-services/</link>
      <pubDate>Tue, 01 Sep 2026 00:00:00 +0700</pubDate>
      <guid>https://nalar.dev/propagate-timeout-budgets-across-cloud-services/</guid>
      <description>&lt;p&gt;A request that crosses several cloud services does not have one timeout. It has a chain of deadlines: client, edge proxy, application, database, and downstream APIs.&lt;/p&gt;&#xA;&lt;p&gt;When those limits are configured independently, an upstream service can give up while downstream work continues consuming connections and CPU for a response nobody will use.&lt;/p&gt;&#xA;&lt;p&gt;An end-to-end timeout budget gives the request one bounded lifetime and lets each hop consume part of it.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
