Skip to content
Exercise · NATS: subjects and queue groups · lesson 3 of 8

Exercise: match a subject

A NATS server hands a message to every subscription whose pattern fits the publish subject: orders.*.eu fits orders.new.eu, and orders.> fits any subject that starts with orders.. In this exercise you implement the rule the server uses to compare a subject with a pattern.