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
 
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
 
csm18 profile image
csm •

I'll definitely apply when it opens 😊

Thread Thread
 
hemapriya_kanagala profile image
Hemapriya Kanagala • • Edited

Adorable child giving a thumbs up

Collapse
 
earlgreyhot1701d profile image
Earl Grey •

Biggest congrats on completing the course, Hema! It's been a joy reading your perspective on it. I love how differently we approached our write-ups, and your deep dives into the subject matter taught me a lot.

You're so on point about the multi-agent coordination. The chaos potential was a 5 out of 5! I was worried about how the agent interactions and architecture would come together too.

Your diagram in Making Retrieval Happen in Parallel really helps a reader picture the parallel workflow. Question: were you able to use Udacity's environment to build the projects? I ended up using my own AWS account since there was less friction there for me.

A thousand times yes to "Finishing a cloud project also means knowing what you created and cleaning up what you no longer need." I've learned this the hard way and I'm still trying to get a handle on a strategy.

And this course laid a great foundation to keep building on after the last project. Can't wait to see what you build next, classmate! 💙

Collapse
 
hemapriya_kanagala profile image
Hemapriya Kanagala •

Thank you so much, La Shara! I've loved reading your write-ups too 😀

I used Udacity's environment itself for all 3 projects. It just felt easier to me. Also, since I'm in India, I didn't want to use my own AWS account and end up with unexpected charges. The costs would add up in USD and then get converted to INR, so I thought it was better to avoid that altogether.

You know, when I saw your post and realised we were in the same program, I was genuinely so happy! Since we'd already connected here on DEV, it felt so nice to know I had someone I knew going through the same journey. I remember thinking, yay, at least I know someone in my cohort 😄 I'm really glad we got to be classmates ❤️

Can't wait to see what you build next either!

Collapse
 
earlgreyhot1701d profile image
Earl Grey •

Smart call on the environment, Hema! Surprise charges are stressful enough without a currency conversion on top. And same here, it was so nice to spot a familiar name in the cohort. Classmates for the win! 💙

Thread Thread
 
hemapriya_kanagala profile image
Hemapriya Kanagala •

SpongeBob GIF

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
 
iictp profile image
IICTP •

Congratulations on the graduation — and on the 120/120. The part I found most useful was the WorkflowState table itself: keeping each agent's findings in one DynamoDB record with a version field, so the Refund Agent reads the Inventory Agent's work instead of redoing it, with the optimistic-locking retry when versions clash. The three retrievers running in parallel with ThreadPoolExecutor is a neat pairing with that. Did the X-Ray traces with 100% sampling change anything you thought was slow, or mostly confirm what the test results already showed?

Collapse
 
hemapriya_kanagala profile image
Hemapriya Kanagala • • Edited

Thank you so much 😀 Honestly, the X-Ray traces helped me better understand what was happening behind the scenes. I didn't notice anything particularly slow, but it was nice to see how the different components interacted and how everything flowed.

Collapse
 
iictp profile image
IICTP •

So glad the traces made the flow visible — seeing the interaction map across the agents is often the real win, even when nothing turns out to be slow. That visibility is exactly what makes X-Ray worth setting up early. Would you add X-Ray annotations next time to mark the agent handoffs, or did the default traces already show you enough of the flow?

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
 
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
 
earlgreyhot1701d profile image
Earl Grey •

I appreciate the shoutout!! ❤️

Collapse
 
emilywoodsnyc profile image
Emily Woods •

Congratulations on graduating! The distinction between WorkflowState, memory and policy documents made the architecture much easier to follow. I would add one recovery scenario: the return update succeeds, but the agent loses the response before recording completion. This reliability question explores that ambiguous outcome. Keeping the same operation identity on retry seems particularly useful once a workflow can change an order.

Collapse
 
hemapriya_kanagala profile image
Hemapriya Kanagala •

That's a good point, Emily 😀 I hadn't thought about that scenario while working on the project. The optimistic locking handles concurrent updates to WorkflowState, but this is a different situation altogether. If the return update goes through but the agent fails before saving the result, having an operation ID would definitely help avoid processing the same request again. Thanks for bringing this up!

Collapse
 
webdeveloperhyper profile image
Web Developer Hyper •

Congratulations on the success of your project! 😀 Finding the task easier than before means your AI and AWS skills have improved. I hope your skills improve even more!

Collapse
 
hemapriya_kanagala profile image
Hemapriya Kanagala •

Thank you so much @webdeveloperhyper 😀

Collapse
 
zahurul profile image
Zahurul Islam •

Congrats on the 120/120! Using optimistic locking on the shared WorkflowState is a detail a lot of first multi-agent builds miss. Once several specialists write to the same state, lost updates turn up fast. Did you also give each specialist only the slice of state it needed, or did they all read the full WorkflowState? I've found isolating context per agent makes them much easier to debug.

Collapse
 
hemapriya_kanagala profile image
Hemapriya Kanagala •

Thank you so much, Zahurul 😀 In my implementation, the agents share the same WorkflowState, but they access the information they need for their tasks. For example, the Refund Agent uses the findings from the Inventory Agent rather than having to fetch all that information again. I hadn't really thought about context isolation from a debugging perspective, but that's an interesting point!

Collapse
 
xulingfeng profile image
xulingfeng •

Congratulations, Hemapriya! 120/120 is a wonderful way to finish the project. 🎉

But you know what I liked most? The part where you realized the project hadn't necessarily become easier. You had simply learned enough to face it with more confidence. That's a lovely kind of progress, and sometimes we don't notice it until we look back.

I'll keep a warm cup ready for you at The Third Cup. Every good learning journey deserves a little celebration. ☕

Collapse
 
hemapriya_kanagala profile image
Hemapriya Kanagala •

Thank you so much, Lingfeng 😀 For sure, I'll be there at my favourite window, and I'll be waiting for that coffee 😄

Collapse
 
xulingfeng profile image
xulingfeng •

It's settled, then! Your window seat is reserved. I'll make sure nobody steals it, and the coffee will be waiting when you arrive. 😄☕

Thread Thread
 
hemapriya_kanagala profile image
Hemapriya Kanagala •

GIF

Collapse
 
alexcodebytes profile image
Oleksandr •

Congratulations on the graduation! 🎓 I really like how you described the shift from your first project to your third. Sometimes the biggest sign of progress isn't that a project has become simpler, but that you now recognize the building blocks and can focus on the genuinely new challenges.

The part about WorkflowState and optimistic locking stood out to me. It's easy to get caught up in the idea of multiple agents collaborating, but once they start sharing and updating information, coordination and consistency become just as important as the agents themselves.

I also appreciate that you included the cleanup and observability work. Getting 120/120 is a great achievement, but understanding what happens behind the scenes — and remembering that cloud resources can keep costing money after a project is finished — are valuable lessons too.

Enjoy the milestone! After three projects, which concept do you think changed the way you approach building agent systems the most?

Collapse
 
hemapriya_kanagala profile image
Hemapriya Kanagala •

Thank you so much, Oleksandr! I think understanding how agents share information and coordinate with each other changed my perspective the most. Before this project, I mostly thought about what an individual agent could do. But this time, I had to think about what happens when multiple agents need to work together, share findings, and update information without overwriting each other's work. It made me look at agent systems a little differently.

And honestly, I think that's one of the things I'll carry with me into my next projects 😄

Collapse
 
milochen0418 profile image
Milo Chen •

Congratulations on graduating, Hemapriya! 🎉 Splitting NovaMart's support into an orchestrator plus Inventory, Policy, Refund and Communication agents is a really clean design. To your question: for me it was connecting apps to AI agents through MCP. It looked intimidating at first, but once the first app had a few tools, the rest came much faster. Wishing you lots of success with whatever you build next!

Collapse
 
hemapriya_kanagala profile image
Hemapriya Kanagala •

Thank you so much, Milo 😄 MCP is something I want to explore more too! It's funny how something can seem so intimidating until you actually get your hands on it. Wishing you lots of success with your projects as well 😀

Collapse
 
the_daily_flare profile image
The daily flare •

I liked how you explained optimistic locking because it made the shared state much clearer to me.

Collapse
 
hemapriya_kanagala profile image
Hemapriya Kanagala •

Thank you so much 😀

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
 
alonex profile image
Minh Hieu •

Good job bro, thanks for sharing!

Collapse
 
hemapriya_kanagala profile image
Hemapriya Kanagala •

Thank you 😃

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 😀

Collapse
 
technogamerz profile image
𝐓𝐡𝐞 𝐋𝐚𝐳𝐲 𝐆𝐢𝐫𝐥 •

120 points 😮wow congratulations 🎉❤️

Collapse
 
hemapriya_kanagala profile image
Hemapriya Kanagala •

Thank you so much, Divya 😀❤️