---
title: "Discussion on \"Testing Event-Based Workflows Using Node.js and RabbitMQ\" | Hashnode"
description: "Discussion on \"Testing Event-Based Workflows Using Node.js and RabbitMQ\". Techniques for testing event-based workflows using RabbitMQ and Node.js in microservice environments."
url: "https://hashnode.com/posts/testing-event-based-workflows-using-nodejs-and-rabbitmq/61ff9e578d15cb3e7ce643dd"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Testing Event-Based Workflows Using Node.js and RabbitMQ](https://humanlytyped.hashnode.dev/testing-event-based-workflows-using-nodejs-and-rabbitmq?utm_source=hashnode&utm_medium=feed)

Techniques for testing event-based workflows using RabbitMQ and Node.js in microservice environments.

Feb 6, 2022 · 8 min read · humanlytyped.hashnode.dev  
Updated Aug 28, 2023  
Read the article

-   [#rabbitmq](https://hashnode.com/tag/rabbitmq)
-   [#nodejs](https://hashnode.com/tag/nodejs)
-   [#typescript](https://hashnode.com/tag/typescript)
-   [#testing](https://hashnode.com/tag/testing)
-   [#microservices](https://hashnode.com/tag/microservices)

## Written by

[Barisere Jonathan](https://hashnode.com/@barisere)

@barisere

  
[View profile](https://hashnode.com/@barisere)

## Responses 1

Markdown supported · ⌘↵ to post

[Momoh Tyler](https://hashnode.com/@TylerJusFly)

[Feb 14, 2022](https://hashnode.com/posts/testing-event-based-workflows-using-nodejs-and-rabbitmq/61ff9e578d15cb3e7ce643dd/comment/620a275b21583d1fa4fa7cec)

how do i read the metrics to figure out a worker is stuck by looking at the queue length?

and how do i get the queue to keep track of the messages that come in?

[Barisere Jonathan](https://hashnode.com/@barisere)

[Feb 18, 2022](https://hashnode.com/posts/testing-event-based-workflows-using-nodejs-and-rabbitmq/61ff9e578d15cb3e7ce643dd/comment/620a275b21583d1fa4fa7cec#reply-620ff13c8f26523301cb56e9)

RabbitMQ has a management interface that shows real-time information about your queues, including how many messages are on them, how many acks/nacks it recorded, how many consumers are on the queue, etc. If you're deploying RabbitMQ using Docker, there's a separate image that has the management interface. I'll attach images and links later.

**Edit**

Here's a screenshot of the management interface. Notice the graph that shows 850 messages in "Ready" state and 0 in "Unacked" state. The "Ready" messages are waiting to be delivered. If any had been delivered to a consumer, but the consumer hasn't acked the message, the "Unacked" count would be higher.

![RabbitMQ management interface showing queue information.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1645229168666/6dfb50MXP.png)
