---
title: "Comment by Saravana Thiyagarajan on \"Microservices 101 with Node.js and RabbitMQ\" | Hashnode"
description: "Hi, I am really new to micro-services &amp; mongo DB but in relational databases like MySQL &amp; postgres SQL. we have a topic called transactions if the failu"
url: "https://hashnode.com/posts/microservices-101-with-nodejs-and-rabbitmq/630861614d50fd71142c5c4e/comment/63f60f8e437bc8d091bd0154"
---

[Discussion](https://hashnode.com/posts/microservices-101-with-nodejs-and-rabbitmq/630861614d50fd71142c5c4e)

Comment [Microservices 101 with Node.js and RabbitMQ](https://hashnode.com/posts/microservices-101-with-nodejs-and-rabbitmq/630861614d50fd71142c5c4e)

[Saravana Thiyagarajan](https://hashnode.com/@Saravana-Thiyagaraja)

[Feb 22, 2023](https://hashnode.com/posts/microservices-101-with-nodejs-and-rabbitmq/630861614d50fd71142c5c4e/comment/63f60f8e437bc8d091bd0154)

Hi, I am really new to micro-services & mongo DB but in relational databases like MySQL & postgres SQL. we have a topic called transactions if the failure happens in a set of queries while updating the database records we can roll back the changes but in this approach what will happen if something goes wrong on any of the services? how to handle those cases and how to handle any exceptions?

[Ondiek Elijah](https://hashnode.com/@Ondiek)

[Feb 24, 2023](https://hashnode.com/posts/microservices-101-with-nodejs-and-rabbitmq/630861614d50fd71142c5c4e/comment/63f60f8e437bc8d091bd0154#reply-63f8c1365ebda1e9aa53c150)

Transactions must be handled across multiple services in a microservices architecture. This can be accomplished through a distributed transaction coordinator or by implementing a saga pattern.

Regarding exceptions, each service must have error-handling mechanisms in place. This includes logging errors, retrying failed requests, and notifying relevant parties. In the case of Node.js and RabbitMQ, the AMQP protocol can implement reliable messaging between services. RabbitMQ includes features such as message acknowledgements and dead-letter queues to handle exceptions and failures.

[Saravana Thiyagarajan](https://hashnode.com/@Saravana-Thiyagaraja)

[Feb 24, 2023](https://hashnode.com/posts/microservices-101-with-nodejs-and-rabbitmq/630861614d50fd71142c5c4e/comment/63f60f8e437bc8d091bd0154#reply-63f8f5ed5ebda1e9aa53ca73)

[Ondiek Elijah](https://hashnode.com/@Ondiek) Yeap, thanks for responding. I think because I am new to micro-services for seems a bit hard to understand can you write a blog on building some real-world small CRUD applications with those error handling & re-trying the requests& web concurrency , it will more help full for a junior dev's like me

[Ondiek Elijah](https://hashnode.com/@Ondiek)

[Feb 25, 2023](https://hashnode.com/posts/microservices-101-with-nodejs-and-rabbitmq/630861614d50fd71142c5c4e/comment/63f60f8e437bc8d091bd0154#reply-63f9b9a5478545fd8f77c2e0)

[Saravana Sai](https://hashnode.com/@SaravanaSai) Sure thing; in the meantime, you might want to explore the many tutorials on YouTube.
