Subject Name Performance Considerations

When designing subject name conventions, remember these performance considerations:

Shorter subjects perform better than long subjects.
Subjects with several short elements perform better than one long element.
A set of subjects that differ early in their element lists perform better than subjects that differ only in the last element.
With certified delivery and distributed queue features, the cost of storage and accounting varies according to the number of subject names. We strongly discourage embedding one-time tokens (such as timestamps) within such subject names, because they can result in unbounded growth of storage and accounting costs. Instead, embed such one-time values within message fields.