|
Hello Reader, EDA (Event Driven Architecture) has become increasingly popular in recent times. In this newsletter edition, we will explore what EDA is, what the benefits of EDA are, and then some advanced patterns of EDA, including with Kubernetes! Let's get started: An event-driven architecture decouples the producer and processor. In this example producer (human) invokes an API, and send information in JSON payload. API Gateway puts it into an event store (SQS), and the processor (Lambda) picks it up and processes it. Note that, the API gateway and Lambda can scale (and managed/deployed) independently Benefits of an event-driven architecture:
Now that we understand the EDA basics, let's take a look at a couple of advanced EDA patterns: API Gateway + EventBridge Pattern
SNS + SQS Pattern This pattern is similar to the previous one but has some differences:
Finally, let's look at an advanced pattern which is popular with enterprises, combining the superpower of Serverless and Kubernetes Is EDA (Event Driven Architecture) possible only with Serverless? No, EDA is quite popular with Kubernetes as well. Many customers want to keep their business logic in containers. In todayβs edition, we will look at EDA on Kubernetes with SNS and SQS. Use SNS payload-based filtering to send messages to different queues. Note that we are NOT sending the same message to these two queues like the traditional fanout one-to-many patterns, but each different message (signified by different colored JSON icons) is going to the separate SQS queue. SQS1 messages are processed by Kubernetes. Use Kubernetes Event Driven Autoscaling (KEDA) with Karpenter to implement event-driven workloads. With KEDA, you can drive the scaling of any container in Kubernetes based on the number of events needing to be processed. One popular implementation is to scale up worker nodes to accommodate pods that process messages coming into a queue: KEDA monitors queue depth, and scales HPA for the application for processing the messages HPA increases number of pods. Assuming, no capacity available to schedule those pods, Karpenter provisions new nodes. Kube-scheduler places those pods on the VMs. The pods process the messages from queue. Once processing is done, number of pods go to zero. Karpenter can scale down VMs to zero for maximum cost efficiency SQS 2 messages are processed by Lambda and DynamoDB Now, you are equipped to handle even tough interview questions on EDA! Make sure to practice, and crush your cloud interview π If you have found this newsletter helpful, and want to support me π: Checkout my bestselling courses on AWS, System Design, Kubernetes, DevOps, and more: Max discounted linksβ
Keep learning and keep rocking π, Raj |
Free Cloud Interview Guide to crush your next interview. Plus, real-world answers for cloud interviews, and system design from a top AWS Solutions Architect.
Hello Reader, That world is changing fast, and not because of anything a big proprietary vendor announced. The rise of high-performing open-source models is making self-hosted AI a serious architectural decision, not just a hobbyist experiment. Let me break down what is happening, and why it matters for you as a Solutions Architect or cloud practitioner. The Model That Changed the Calculation Z.ai (formerly Zhipu AI) released GLM-5.2 on June 16th, 2026. It is the first open-source model to...
Hello Reader, Six and a half years at AWS taught me a lot. But one pattern stood out above everything else. Everyone is talking about which model scored higher on the latest benchmark. Very few people are talking about the thing that determines whether any of those technologies actually create business value. That thing is AI Evals. And it is the most important AI skill, even though fanicer names like MCP, Agents, Skills get all the attention. Why AI Failures Are Different Traditional...
Hello Reader, Something shifted last week that most people in tech are not paying attention to. Anthropic CEO Dario Amodei, the same person who said AI would eliminate all coding jobs and potentially all white-collar and blue-collar work, came out and said we should slow down on AI. His stated reason is that Anthropic's models are getting so good they can improve themselves without human intervention. Do not confuse marketing with virtue. Anthropic has an IPO coming. What he is actually...