Microservices Vs. Event Driven Plus SA Interview Mistakes


Hello Reader,

The two most prominent architecture patterns are microservices and Event-Driven Architecture (EDA). Let’s examine their differences and implementations, with the architecture diagram below:

Request Response Flow

Traditional microservice is synchronous i.e. the request and response happens on the same invocation. For example, if you are inserting data into the backend database using a microservice as shown in the left diagram, the invocation from the user will stay active till the Lambda inserts the info into the database, replies success back to the API Gateway, and API Gateway sends the response back to the user.

Whereas with Event Driven, User gets a confirmation that the message is inserted into an event storage/processing service (SQS in this case) using the API Gateway. But he doesn’t get the response from the Lambda, which is inserting the message into the database, on the same invocation. Instead, the backend Lambda needs to send the response out after the message has been inserted into the database if the user needs to be notified. In this case the Lambda is invoking a websocket API, to notify the user. Alternatively, the user can query the status of the message independently using a separate microservice.

Scaling (Important!)

In a microservice, all the components (API Gateway, Lambda, Dynamo) need to scale up and down at the same rate. When traffic increases, all these three components will scale up together. However, if concurrent traffic exceeds a threshold beyond a service, let’s say Dynamo or Lambda max concurrency limit, transaction will fail.

With EDA, the producer and consumer are decoupled. API Gateway, and Lambda/Database can scale independently. When traffic increases, API Gateway can scale up and insert messages into the SQS. However the backend Lambda and Dynamo are protected from this burst. Lambda can consume messages at a rate not to overwhelm the database. This also leads to EDA being more cost effective.

Retry Mechanism

If a microservice transaction fails, the user needs to send the request again. There is no default retry mechanism. With EDA, once the message is in SQS, even if Lambda fails, SQS will automatically retry to reprocess the messages.

Conclusion

So which one is better? Well, as always, the answer is “it depends”! EDA can handle higher scale, and is generally more cost effective than synchronous microservice. However, in some cases you need a traditional synchronous microservice. In most applications, microservice and EDA can work together. There are parts of applications that can be broken down to be EDA. As we architects like to say, it’s NOT all or nothing, instead it’s the right tool for the right job.

AWS Solutions Architect Interview Mistakes

As a veteran interviewer, I see these mistakes costing candidates the offer. I explained these common (yet secret!) errors with actual questions and answers in this video:

video preview

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

AWS SA Bootcamp with Live Classes, Mock Interviews, Hands-On, Resume Improvement and more: https://www.sabootcamp.com/

Keep learning and keep rocking 🚀,

Raj

Fast Track To Cloud

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.

Read more from Fast Track To Cloud

Hello Reader, This question is getting more popular fast, driven largely by companies worried about sending proprietary data to a model provider. In this edition, we will go over how to self-host it on Kubernetes. Good answer: The agent code itself is straightforward. Containerize it, push it to Amazon ECR, and run it as a pod. The model is the hard part. A model has two pieces: the model image, containing the tokenizer and configuration, and the model weights, which for an 80 billion...

Hello Reader, Are you thinking about becoming an AWS SA, and getting yourself a salary boost - maybe still in 2026? The demand for AWS Solutions Architects has never been higher, cloud computing already crossed $723 billion in 2025 and is projected to top $1 trillion by 2027, accelerated by AI (Source: Gartner). SA Bootcamp is developed to be the most direct and guided route to become a Solutions Architect and get a high paying cloud job fast, without wasting time doing it the hard way like...

Hello Reader, AWS released something this week that is going to confuse a lot of people. It is related to the Gen-AI Word of the Week: Harness. In this newsletter, we are going to go over what is Agent Harness and how this newly released Agent Core Harness is related to it or differs from it. And more importantly, how much should you learn about it for your interviews and real-world projects? What a harness actually is First let's understand what is an AI agent. Most people focus on the LLM...