<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Forem: Mahendra Kumar</title>
    <description>The latest articles on Forem by Mahendra Kumar (@mahendra_kumar_6b3dceb27e).</description>
    <link>https://forem.com/mahendra_kumar_6b3dceb27e</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3641794%2F0c8528d3-b1c5-483f-9128-eda871658c1a.jpg</url>
      <title>Forem: Mahendra Kumar</title>
      <link>https://forem.com/mahendra_kumar_6b3dceb27e</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/mahendra_kumar_6b3dceb27e"/>
    <language>en</language>
    <item>
      <title>How Do You Architect Audit Logging in a Microservices Platform?</title>
      <dc:creator>Mahendra Kumar</dc:creator>
      <pubDate>Tue, 02 Dec 2025 16:43:06 +0000</pubDate>
      <link>https://forem.com/mahendra_kumar_6b3dceb27e/how-do-you-architect-audit-logging-in-a-microservices-platform-2f4p</link>
      <guid>https://forem.com/mahendra_kumar_6b3dceb27e/how-do-you-architect-audit-logging-in-a-microservices-platform-2f4p</guid>
      <description>&lt;p&gt;I’m designing audit logging for a microservices platform running on Kubernetes with Go services communicating via REST and gRPC. I’m researching how teams typically implement audit logging across distributed systems.&lt;/p&gt;

&lt;p&gt;The requirements are simple:&lt;br&gt;
capture who triggered an action, what changed, and the before/after state, along with timestamps and results.&lt;/p&gt;

&lt;p&gt;Areas I’m exploring:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Capture point&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;At the API Gateway?&lt;/p&gt;

&lt;p&gt;Inside each microservice?&lt;/p&gt;

&lt;p&gt;A hybrid?&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Delivery model&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Synchronous writes?&lt;/p&gt;

&lt;p&gt;Asynchronous pipelines (Kafka, NATS, SQS, etc.)?&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Aggregation&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Central audit logging service&lt;/p&gt;

&lt;p&gt;Shared database&lt;/p&gt;

&lt;p&gt;Event log / stream&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Failure strategies&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Fail the business operation?&lt;/p&gt;

&lt;p&gt;Buffer and retry?&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Performance&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Avoiding bottlenecks&lt;/p&gt;

&lt;p&gt;Batching, buffering, and backpressure patterns&lt;/p&gt;

&lt;p&gt;If you’ve built audit logging across multiple services, I’d appreciate insights on what worked well.&lt;/p&gt;

</description>
      <category>microservices</category>
      <category>audit</category>
      <category>logging</category>
      <category>go</category>
    </item>
  </channel>
</rss>
