A publish-subscribe messaging method may include identifying a definition of a transformation rule for transforming a message received from a publisher. The message may be received from the publisher at a broker. The message may identify a topic and may include message data. A determination may be made as to whether the message is associated with a transformation rule for transforming the message. The method may further include transforming the message as defined by the transformation rule and sending the transformed message to a destination.