Mi Galaxy EMQ Book

Model Introduction


Tag Message Receiving Model

A tag can be specified a timestamp when it is created. Messages to be received will be after the timestamp. Example Diagram:

tag_model

Tag binding attribute message receiving model

Tags can be used in combination with attribute filtering. They can achieve the effect of receiving only messages with specific attributes by a certain tag. Example Diagram:

tag_filter_model

NOTE

If deleteMessageForce is set to False when the user creates a Queue, EMQ will delete a message if and only if it is handled by the receivers under all tags. In this case, an existing but unused tag will become great obstacle of the message cleanup mechanism. The user should promptly delete the unused Tag.

Otherwise, if the user sets deleteMessageForce to True, messages will be deleted after they expires, regardless of whether they were received or processed.