Skip to content

Publishing the scheduled message to NATS #1985

@Santosh1608

Description

@Santosh1608

Observed behavior

I noticed that NATS v2.12 introduces support for scheduled (delayed) message delivery, where a message can be published now and delivered to consumers after a specified delay.

However, I’m unable to find any official documentation or sample code showing how to publish a scheduled message using the nats.go client.

Specifically:

Does the nats.go client currently support publishing scheduled/delayed messages?

If yes, could you point me to the relevant documentation or example code demonstrating how to publish a message with a delivery delay?

Any clarification or sample usage would be really helpful.

For the reference: https://github.com/nats-io/nats-architecture-and-design/blob/main/adr/ADR-51.md

Expected behavior

I need a support for publishing the scheduled message

Server and client version

Image Image

nats-server Version: 2.12.2
nats Version: v1.47.0

Host environment

No response

Steps to reproduce

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    defectSuspected defect such as a bug or regression

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions