<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Niket Sahai on Medium]]></title>
        <description><![CDATA[Stories by Niket Sahai on Medium]]></description>
        <link>https://medium.com/@developerproject8?source=rss-106ba1739fc2------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*dmbNkD5D-u45r44go_cf0g.png</url>
            <title>Stories by Niket Sahai on Medium</title>
            <link>https://medium.com/@developerproject8?source=rss-106ba1739fc2------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 09:05:25 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@developerproject8/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Event-Driven Architecture Explained: From Basics to Advanced Concepts]]></title>
            <link>https://medium.com/@developerproject8/event-driven-architecture-explained-from-basics-to-advanced-concepts-11f83f800142?source=rss-106ba1739fc2------2</link>
            <guid isPermaLink="false">https://medium.com/p/11f83f800142</guid>
            <category><![CDATA[kafka]]></category>
            <category><![CDATA[asynchronous-architecture]]></category>
            <category><![CDATA[distributed-systems]]></category>
            <category><![CDATA[event-driven-architecture]]></category>
            <category><![CDATA[aws]]></category>
            <dc:creator><![CDATA[Niket Sahai]]></dc:creator>
            <pubDate>Sun, 13 Sep 2026 10:44:12 GMT</pubDate>
            <atom:updated>2026-09-13T10:44:12.928Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*o8ojWgSREUraEQz_" /></figure><h3>Why Event-Driven Architecture Matters ?</h3><p>Modern software is expected to do more than just respond to requests. It must react quickly, scale under pressure, handle distributed workflows, and remain resilient when things go wrong.</p><p>That is exactly where event-driven architecture (EDA) shines.</p><p>Instead of making services call each other directly for every action, event-driven systems let services communicate through events — meaningful records of something that happened. A user signs up. An order is placed. A payment is confirmed. A sensor detects motion.</p><p>Each event can trigger one or many reactions across the system, without creating tight dependencies between services.</p><p>This makes event-driven architecture a great fit for:</p><ul><li>microservices</li><li>real-time applications</li><li>cloud-native systems</li><li>analytics pipelines</li><li>IoT platforms</li><li>large-scale distributed applications</li></ul><p>In this guide, we’ll start with the basics, move into real-world examples, and finish with advanced concepts like event sourcing and CQRS.</p><h3>Table of Contents</h3><ol><li>What Is Event-Driven Architecture?</li><li>Core Building Blocks</li><li>How Event-Driven Systems Work</li><li>Request-Response vs Event-Driven Architecture</li><li>Real-World Company Examples</li><li>AWS Services for Event-Driven Architecture</li><li>Open-Source Services and Tools</li><li>Advanced Patterns: Event Sourcing and CQRS</li><li>Common Challenges and Best Practices</li><li>When to Use EDA</li><li>FAQ</li><li>Conclusion</li></ol><h3>What Is Event-Driven Architecture ?</h3><p>Event-driven architecture is a software design style where systems react to events.</p><p>An event is a record that something important happened.</p><p>Examples include:</p><ul><li>UserRegistered</li><li>OrderPlaced</li><li>PaymentCompleted</li><li>ItemShipped</li><li>InventoryUpdated</li></ul><p>In this model, one service produces an event, and other services consume it and react.</p><h4>Example</h4><p>In an e-commerce system:</p><ul><li>The Order Service emits OrderPlaced</li><li>The Payment Service charges the customer</li><li>The Inventory Service reserves stock</li><li>The Notification Service sends an email or SMS</li></ul><p>The services do not need to know who else is listening. They only care about the event itself.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*G88ZCwOoHuvOx0MFkMAx9g.png" /></figure><h3>Core Building Blocks of Event-Driven Architecture</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iD7xdAJpEgrOZ4CcZVw3Vg.png" /></figure><h3>How Event-Driven Systems Work ?</h3><p>The lifecycle is simple:</p><ol><li>A user performs an action.</li><li>A producer creates an event.</li><li>The event goes to a broker.</li><li>Consumers receive the event.</li><li>Each consumer handles its own task.</li></ol><h4>Example</h4><p>When a customer places an order:</p><ul><li>the order is stored</li><li>payment is processed</li><li>inventory is updated</li><li>a notification is sent</li><li>analytics is recorded</li></ul><p>Because these operations are asynchronous, the system can stay responsive even when traffic grows.</p><h3>Request-Response vs Event-Driven Architecture</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*p2tg5085vSaac1zc_tzhMA.png" /></figure><h3>Real-World Company Examples</h3><h4>Amazon</h4><p>Amazon is one of the best-known examples of event-driven thinking at scale. When an order is placed, that event can trigger payment validation, stock updates, shipping workflows, recommendation updates, and notifications.</p><p>This works well because Amazon deals with:</p><ul><li>massive transaction volume</li><li>many independently owned services</li><li>multiple systems needing the same event</li><li>high availability requirements</li></ul><h4>Netflix</h4><p>Netflix uses event-driven and streaming systems for viewing behavior, telemetry, recommendations, and experimentation. Events like play, pause, and finish can feed analytics, personalization, and A/B testing systems.</p><h4>Uber</h4><p>Uber relies on event-driven processing for trip status changes, driver location updates, ETA calculation, and fraud detection. These are all live events that need quick, independent reactions.</p><h4>E-commerce platforms example</h4><p>A typical online retail flow may include:</p><ul><li>order creation</li><li>payment confirmation</li><li>shipping updates</li><li>email notifications</li><li>warehouse coordination</li></ul><h3>AWS Services for Event-Driven Architecture</h3><p>AWS offers a strong set of managed services for building event-driven systems.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/822/1*AhAqmYCmRoqLxp18C7BcyQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GdLIUphq2DAaZLWr75DJ7g.png" /></figure><h3>Open-Source Services and Tools</h3><p>Many teams use open-source tools for event-driven systems, sometimes alongside cloud services.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1WWW5i5fwRpht_jhSHF3xA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MDf_tuNyOE73Lo7O28aYjg.png" /></figure><h3>Advanced Patterns: Event Sourcing and CQRS</h3><p>Once you are comfortable with the basics, two advanced patterns become especially useful.</p><h4>Event Sourcing</h4><p>Event sourcing means storing every state change as an event rather than saving only the final state.</p><p>Instead of storing:</p><ul><li>Balance = 500</li></ul><p>you store:</p><ul><li>AccountCreated</li><li>DepositMade</li><li>WithdrawalMade</li></ul><p>The current state is reconstructed by replaying the event history.</p><h4>Benefits</h4><ul><li>complete audit trail</li><li>easier debugging</li><li>replayable state</li><li>better traceability</li></ul><h4>Challenges</h4><ul><li>more design complexity</li><li>schema/version management</li><li>need for projections</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/374/1*jEj7KEthG30AzNuUcx8kwA.png" /></figure><h4>CQRS</h4><p>CQRS stands for Command Query Responsibility Segregation.</p><p>It separates:</p><ul><li>Commands: write operations</li><li>Queries: read operations</li></ul><p>This is useful because write and read workloads often have different requirements.</p><h4>Why it helps</h4><ul><li>write model can focus on correctness</li><li>read model can be optimized for fast lookups</li><li>both sides can evolve independently</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YDE4LOnayZh8n7Xwc_KZCQ.png" /></figure><h3>Common Challenges in Event-Driven Architecture</h3><p>EDA is powerful, but it also introduces some tricky problems.</p><h4>1. Event Ordering</h4><p>Events may arrive out of order.</p><h4>2. Duplicate Delivery</h4><p>The same event may be processed more than once.</p><h4>3. Eventual Consistency</h4><p>Different services may not reflect the same state immediately.</p><h4>4. Debugging Complexity</h4><p>Tracing a request across many asynchronous services is harder.</p><h4>5. Schema Evolution</h4><p>Event structures will change over time, and consumers must remain compatible.</p><h3>Best Practices</h3><h4>Do</h4><ul><li>keep events focused and business-oriented</li><li>use clear names like OrderPlaced</li><li>make consumers idempotent</li><li>version your events</li><li>use correlation IDs</li><li>monitor retries, lag, and dead-letter queues</li><li>keep payloads small and meaningful</li></ul><h4>Don’t</h4><ul><li>overload events with unnecessary data</li><li>assume one consumer will always be enough</li><li>ignore observability</li><li>rely on exactly-once delivery unless guaranteed</li><li>use EDA for problems that do not need it</li></ul><h4>When to Use Event-Driven Architecture</h4><p>EDA is a strong fit when you need:</p><ul><li>real-time reactions</li><li>multiple downstream consumers</li><li>scalable background processing</li><li>loosely coupled services</li><li>auditability or event replay</li></ul><h4>Great use cases</h4><ul><li>e-commerce</li><li>financial systems</li><li>notifications</li><li>IoT</li><li>analytics</li><li>microservices</li></ul><h4>When Not to Use It</h4><p>EDA may not be the best choice when:</p><ul><li>the application is small and simple</li><li>you need strict synchronous consistency</li><li>the team is new to distributed systems</li><li>the extra complexity is not justified</li></ul><p>A hybrid design often works best: synchronous APIs for user actions and events for everything else.</p><h3>FAQ</h3><h4>What is event-driven architecture in simple words?</h4><p>It is a way of building software where services react to events instead of calling each other directly.</p><h4>What is the main advantage of event-driven architecture?</h4><p>Loose coupling. Services become easier to scale, change, and reuse.</p><h4>Is Kafka the same as event-driven architecture?</h4><p>No. Kafka is a tool that can support event-driven systems, but event-driven architecture is the design approach.</p><h4>Which AWS service is best for event-driven architecture?</h4><p>It depends:</p><ul><li>EventBridge for routing</li><li>SNS for fan-out</li><li>SQS for queueing</li><li>Lambda for event handlers</li><li>Kinesis for streaming</li></ul><h4>Is event sourcing required for EDA?</h4><p>No. Event sourcing is an advanced pattern that can be used with EDA, but it is not required.</p><h3>Conclusion</h3><p>Event-driven architecture is one of the most useful patterns in modern software engineering. It helps teams build systems that are scalable, resilient, and easier to evolve by letting services react to events instead of relying on tightly coupled direct calls.</p><p>At a basic level, the idea is simple: something happens, an event is emitted, and other services respond.</p><p>At an advanced level, EDA becomes the foundation for:</p><ul><li>event sourcing</li><li>CQRS</li><li>streaming platforms</li><li>real-time analytics</li><li>cloud-native microservices</li></ul><p>If you are working with AWS, Kafka, or modern distributed systems, learning event-driven architecture is well worth your time.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=11f83f800142" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AWS Step Functions Explained: Automate Complex Workflows Without Heavy Code]]></title>
            <link>https://medium.com/@developerproject8/aws-step-functions-explained-automate-complex-workflows-without-heavy-code-186229fde422?source=rss-106ba1739fc2------2</link>
            <guid isPermaLink="false">https://medium.com/p/186229fde422</guid>
            <category><![CDATA[aws-step-functions]]></category>
            <category><![CDATA[serverless]]></category>
            <category><![CDATA[cloud-architecture]]></category>
            <category><![CDATA[workflow-automation]]></category>
            <category><![CDATA[aws]]></category>
            <dc:creator><![CDATA[Niket Sahai]]></dc:creator>
            <pubDate>Sun, 06 Sep 2026 05:07:13 GMT</pubDate>
            <atom:updated>2026-09-06T06:55:07.210Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iJ3qJJs0p1HrAcP0eXi5lg.png" /></figure><p>If you’ve ever built a multi-step backend process, you know how quickly it gets messy.<br>Retries, error handling, parallel execution, and service-to-service coordination can turn simple logic into hard-to-maintain code.</p><p>This is exactly where AWS Step Functions helps.</p><p>Instead of writing orchestration logic manually, you define a state machine (a workflow of states and transitions), and AWS runs it reliably at scale. For companies handling complex and compute-heavy workflows, this removes a huge engineering burden and improves reliability.</p><p>In this beginner-friendly guide, we’ll start from basics, compare cost models, and walk through a practical IoT data ingestion demo workflow.</p><h3>What Is AWS Step Functions?</h3><p>AWS Step Functions is a serverless orchestration service used to coordinate multiple AWS services in a workflow.</p><p>Think of it like a flowchart:</p><ul><li>Each state is one step in your process</li><li>Transitions decide what runs next</li><li>The whole sequence is your state machine</li></ul><p>You can orchestrate services like AWS Lambda, DynamoDB, ECS, AWS Batch, SQS, SNS, SageMaker, and more — without writing custom workflow engines.</p><h4>Workflow types</h4><ul><li><strong>Standard Workflows:</strong> best for long-running, durable, auditable business processes.</li><li><strong>Express Workflows:</strong> best for high-throughput, short-duration, event-driven workloads.</li></ul><h3>Why Traditional Workflow Coding Becomes Complex</h3><p>When teams orchestrate workflows using only code, they usually end up building custom logic for:</p><ul><li>retries and backoff</li><li>timeout handling</li><li>branching and parallel processing</li><li>state tracking across services</li><li>observability and failure recovery</li></ul><p>This “glue code” is expensive to maintain and easy to break under scale.<br>Step Functions solves this by making orchestration explicit, visual, and operationally reliable.</p><h3>Core Features That Make Step Functions Powerful</h3><p>Step Functions gives you built-in orchestration features out of the box:</p><ul><li>visual workflow builder</li><li>built-in Retry/Catch and timeout controls</li><li>Map and Parallel states for fan-out processing</li><li>native integrations with AWS services</li><li>execution history and monitoring (CloudWatch/X-Ray)</li><li>IAM-based security controls</li></ul><p>So your team can focus on business logic, not orchestration plumbing.</p><h3>Cost Comparison: Standard vs Express vs Custom Orchestration Code</h3><p>When designing AWS workflows, cost should be part of the architecture decision.</p><h4>1) Standard Workflows</h4><ul><li>Charged mainly by state transitions</li><li>Better for long-running and compliance/audit-heavy processes</li><li>Predictable for moderate-volume, complex business flows</li></ul><h4>2) Express Workflows</h4><ul><li>Charged by requests + execution duration + memory</li><li>Better for high-volume, short-duration event processing</li><li>Often cost-effective at very high throughput</li></ul><h4>3) Workflow Orchestration Through Custom Code</h4><ul><li>Direct costs: compute runtime, queue polling, retries, logging, monitoring</li><li>Hidden costs: engineering time, operations overhead, incident recovery, debugging delays</li><li>In many cases, total ownership cost is higher than expected — even if raw compute appears cheap</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jzEg48embOC3vhR1dYuiaQ.png" /></figure><h3>Real-World Use Cases: How Companies Leveraged AWS Step Functions</h3><p>Here’s how companies have used AWS orchestration in practice (as documented in AWS customer/case-study ecosystems):</p><ul><li><strong>Intuit</strong> has used AWS serverless approaches for complex financial and platform workflows, where dependable step-by-step orchestration is critical. Step Functions helps coordinate dependent services and reduce custom control-plane code.</li><li><strong>Coca-Cola</strong> has shared cloud modernization patterns on AWS involving distributed event-driven components. Step Functions supports clear orchestration paths, helping teams manage branching automation flows more reliably.</li><li><strong>Salesforce</strong> has highlighted scalable AWS-based architectures where asynchronous processes must be coordinated safely. Step Functions provides structured execution, retries, and visibility across service chains.</li><li><strong>Lyft</strong> has discussed operating at large scale on AWS with many interconnected services and data flows. Step Functions-style orchestration helps manage dependencies and improves recoverability in multi-step operations.</li></ul><p>A common thread: teams externalize orchestration into state machines, which improves maintainability, resilience, and observability.</p><h3>Demo: IoT Data Ingestion State Machine</h3><p>Let’s break down the workflow in this image. This is a clean example of how Step Functions can handle high-volume IoT ingestion with batching and downstream dispatch.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/740/1*LiM7ULMCEr5fVXpvmLQOOw.png" /></figure><h4>State-by-state walkthrough</h4><ol><li><strong>Start</strong><br>The workflow begins when an IoT payload is received.</li><li><strong>CreateBatches (Map: JSON Payload)</strong><br>This Map state iterates over incoming records and groups them into manageable batches.<br>Why it matters: prevents oversized writes and prepares data for efficient processing.</li><li><strong>Lambda Invoke (AWS Lambda: Invoke)</strong><br>Lambda transforms/validates each batch (e.g., schema checks, enrichment, normalization).<br>Why it matters: keeps ingestion quality high before persisting data.</li><li><strong>BatchWriteItem (DynamoDB: BatchWriteItem)</strong><br>Validated batch data is written to DynamoDB in bulk.<br>Why it matters: efficient, scalable writes for large IoT streams.</li><li><strong>BatchAndDispatchToSQS (Map: JSON Payload)</strong><br>Another Map state prepares message batches for downstream systems (for alarms, analytics, rule engines, etc.).<br>Why it matters: decouples ingestion from downstream processing.</li><li><strong>PublishToAlarmPipeline (Amazon SQS: SendMessageBatch)</strong><br>Batched messages are sent to SQS for asynchronous alarm/event processing.<br>Why it matters: durable buffering and independent scaling for consumers.</li><li><strong>End</strong><br>Execution completes after ingestion, persistence, and dispatch are done.</li></ol><h3>How Teams can leverage Step Functions</h3><ul><li>Start with one narrow workflow first</li><li>Choose Standard for long-running business processes</li><li>Choose Express for very high-throughput event workflows</li><li>Keep tasks idempotent</li><li>Add retries with backoff at state level</li><li>Monitor execution failures and latency from day one</li></ul><h3>Final Takeaway</h3><p>If your workflow has many steps, dependencies, and failure paths, AWS Step Functions is one of the simplest ways to make it production-ready.<br>You keep compute in the right AWS services and let state machines handle orchestration reliably.</p><p>For growing teams and enterprise systems alike, this often means faster delivery, less fragile code, and better scalability.</p><h3>References</h3><ol><li>AWS Step Functions — Developer Guide<br><a href="https://docs.aws.amazon.com/step-functions/">https://docs.aws.amazon.com/step-functions/</a></li><li>AWS Step Functions — Product Page<br><a href="https://aws.amazon.com/step-functions/">https://aws.amazon.com/step-functions/</a></li><li>AWS Step Functions — Use Cases<br><a href="https://aws.amazon.com/step-functions/use-cases/">https://aws.amazon.com/step-functions/use-cases/</a></li><li>AWS Step Functions — Pricing<br><a href="https://aws.amazon.com/step-functions/pricing/">https://aws.amazon.com/step-functions/pricing/</a></li><li>AWS Pricing Calculator<br><a href="https://calculator.aws/">https://calculator.aws/</a></li><li>AWS Step Functions Workshops<br><a href="https://catalog.workshops.aws/stepfunctions/en-US">https://catalog.workshops.aws/stepfunctions/en-US</a></li><li>AWS Well-Architected Framework<br><a href="https://docs.aws.amazon.com/wellarchitected/latest/framework/welcome.html">https://docs.aws.amazon.com/wellarchitected/latest/framework/welcome.html</a></li><li>AWS Event-Driven Architecture<br><a href="https://aws.amazon.com/event-driven-architecture/">https://aws.amazon.com/event-driven-architecture/</a></li><li>Serverless Land — Workflow Patterns<br><a href="https://serverlessland.com/workflows">https://serverlessland.com/workflows</a></li><li>AWS Case Studies / Customer Stories<br><a href="https://aws.amazon.com/solutions/case-studies/">https://aws.amazon.com/solutions/case-studies/</a></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=186229fde422" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>