NATS - JetStream icon

NATS - JetStream

NATS - JetStream

Acknowledge a Message

AI-generated

Overview

This node interacts with the NATS JetStream messaging system. Specifically, for the 'Acknowledge a Message' operation, it acknowledges a message from the stream consumer that was received earlier in the workflow by a NATS - JetStream Trigger node. This is useful in scenarios where message processing confirmation is required to ensure messages are not re-delivered or lost, such as in event-driven architectures or message queue workflows.

Use Case Examples

  1. Acknowledging a message after successful processing to prevent re-delivery.
  2. Confirming receipt of a message in a workflow that processes streaming data from NATS JetStream.

Properties

Name Meaning
acknowledgeMessage Notice indicating that the node will acknowledge a message from the stream consumer earlier in the workflow by a NATS - JetStream Trigger node.

Output

JSON

  • json - The acknowledged message data passed through the workflow.

Dependencies

  • NATS JetStream service and credentials for API access

Troubleshooting

  • If the node fails to acknowledge a message, ensure the NATS JetStream Trigger node earlier in the workflow correctly receives and passes the message.
  • Errors related to authentication indicate issues with the provided NATS API credentials; verify and update them as needed.
  • If the operation is not recognized, confirm the 'operation' parameter is set to 'acknowledge'.

Discussion