DEV Community

Cover image for I Built My First Multi-Agent System on AWS, and It Was Easier Than I Expected

I Built My First Multi-Agent System on AWS, and It Was Easier Than I Expected

Hemapriya Kanagala on November 25, 2026

TL;DR I recently completed the final project of Udacity's Future AWS Agent Engineer Nanodegree Program, which I had the opportunity to pursue thr...
Collapse
 
shubhradev profile image
Shubhra Pokhariya •

Congratulations, Hema! πŸŽ‰ Really happy to see you complete this project. I liked what you said about the project feeling easier because you had become more comfortable with the concepts. That's so true in development. The more we build and experiment, the less intimidating things start to feel. Also, getting multiple agents to work together while thinking about things like optimistic locking and observability is no small achievement. Well done! ❀️

Collapse
 
hemapriya_kanagala profile image
Hemapriya Kanagala •

Thank you so much, di πŸ˜€

Collapse
 
nyaomaru profile image
nyaomaru •

This is so cool!! πŸ˜ΈπŸš€

I really like how you separated the agents' responsibilities and managed their shared state with optimistic locking.

And 120/120 points! Huge congratulations on graduating too! πŸŽ‰πŸ’š

Collapse
 
hemapriya_kanagala profile image
Hemapriya Kanagala •

Thank you so much, Nyaomaru πŸ˜€ means a lot.

Collapse
 
csm18 profile image
csm •

Congratulations akka 🎊
You said the last project is simpler than the other 2. By just looking at the diagrams my mind is blown πŸ˜„

It takes a lot of patience and effort to do a course with hands on projects, that to ai agents 🫑

Collapse
 
hemapriya_kanagala profile image
Hemapriya Kanagala •

Thank you so much ra πŸ˜€ It looks complicated, but once you start working on it, you slowly get the hang of it πŸ˜„

Also, you should definitely apply for the scholarship when it opens next time. I think you'll love the program!

Collapse
 
hemapriya_kanagala profile image
Hemapriya Kanagala •

I'm curious, has this ever happened to you? You start working on something thinking, "This is going to be so difficult!" But as you spend more time with it, you slowly start figuring things out, and it doesn't seem quite as intimidating anymore.

I'd love to hear what that was for you. Maybe it was a project, a new language, or something you had been putting off learning. Share your experience below. I'm sure many of us can relate πŸ˜€

Collapse
 
hemapriya_kanagala profile image
Hemapriya Kanagala •

Also, if anyone wants another take on this project, my classmate La Shara (@earlgreyhot1701d) wrote about her experience with it too! We worked on the same project, but our articles ended up being pretty different, so I thought some of you might enjoy reading hers as well πŸ˜„

From One Chatbot to Five Agents: My AWS Agent Engineer Nanodegree

Collapse
 
kartik-nvjk profile image
Kartik N V J K •

The version 1 to version 2 walk-through is a clear way to explain optimistic locking. Your retry reads the latest WorkflowState and saves again, so does the agent's result get re-checked against what changed in between, or is the same result written onto the newer version? I'd expect that to matter most for the Refund Agent, since its decision depends on what the Inventory Agent already saved.

Collapse
 
hemapriya_kanagala profile image
Hemapriya Kanagala •

Hey Kartik, good question! So, the retry itself doesn't make the agent run its decision again. It just reads the latest WorkflowState and tries to save the update against that version.

But in the Refund Agent's case, there's another check too. It uses the Inventory Agent's findings as context, but before initiating a refund request, it fetches the order and customer details from DynamoDB again and checks whether the order is eligible. So it doesn't rely only on what the Inventory Agent had found earlier.

Collapse
 
abhisekroy169 profile image
Abhisek Roy • • Edited

that's a nice idea project looks like agent is built on supervisor achitecture . but all test case pass is actually blessing 😍

Collapse
 
hemapriya_kanagala profile image
Hemapriya Kanagala • • Edited

Yes, exactly Abhisek! It took me 2 attempts to get everything right, so when it finally passed, it felt like such a blessing for sure πŸ˜€

Collapse
 
leob profile image
leob •

Interesting topic, great write-up, bookmarked this!

Collapse
 
hemapriya_kanagala profile image
Hemapriya Kanagala •

Thank you so much, Leob πŸ˜ƒ

Collapse
 
star123 profile image
Sᴛᴀʀ⭐ •

It's really good, Didi! ❀️

Collapse
 
hemapriya_kanagala profile image
Hemapriya Kanagala •

Thank you so much, Tara πŸ˜€