Moleculer Broker icon

Moleculer Broker

Moleculer Broker

Overview

This node, named 'Moleculer Broker', integrates with the Moleculer microservices framework. It supports operations such as 'Call', 'Emit', and 'Broadcast' to interact with Moleculer services. The 'Emit' operation specifically allows the node to emit events to the Moleculer broker, which can be useful for triggering actions or notifying other services within a microservices architecture.

Use Case Examples

  1. Emitting an event to notify other services about a status change.
  2. Triggering a custom event in a Moleculer-based microservices system to initiate workflows.

Output

JSON

  • json - The JSON output contains the response or result of the emitted event operation, including any data returned by the Moleculer broker.

Dependencies

  • Requires a Moleculer API key credential for authentication to the Moleculer broker service.

Troubleshooting

  • Common issues include authentication failures due to missing or invalid API credentials. Ensure the Moleculer API key credential is correctly configured.
  • Errors may occur if the event name or parameters are incorrect or if the Moleculer broker is unreachable. Verify event names and network connectivity.
  • If the node is set to continue on failure, errors will be included in the output JSON for the corresponding item, allowing for error handling downstream.

Discussion