79439840

Date: 2025-02-14 15:39:27
Score: 0.5
Natty:
Report link

JetStream push subscriptions work a bit differently from plain NATS subscriptions. In core NATS you can subscribe to a wildcard subject like "*.events.east.india" and get messages from subjects such as "Kolkata-Manipur.events.east.india" or "Kohima-Shilong.events.east.india". However, when you’re using JetStream, the subscription subject is tied to the consumer configuration.

Your subscription isn’t working with "*.events.east.india" in a JetStream push subscribe because JetStream requires an exact match to the consumer’s delivery subject, and wildcards are meant for stream configuration—not for the push subscription call.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Yevhen Surovskyi