在rabbitmq代理上预处理队列中的消息

在rabbitmq代理上预处理队列中的消息,rabbitmq,message-queue,amqp,messagebroker,Rabbitmq,Message Queue,Amqp,Messagebroker,是否可以在rabbitmq的代理上执行一些预处理消息? 我想做的是: 0. Let assume that that we catch message at the while before it was published to queue. 1. This message is string (by assumption) 2. preprocess message and split it to many messages by some delimiter (`,`) 3. Pub

是否可以在rabbitmq的代理上执行一些预处理消息?
我想做的是:

0. Let assume that that we catch message at the while before it was published to queue.   
1. This message is string (by assumption)
2. preprocess message and split it to many messages by some delimiter (`,`)
3. Publish to queue many messages instead of one   

有可能吗?我不想在发布之前拆分消息,因为我会压缩许多消息以减少IO(我想减少TCP数据包、头等)

我从未听说过在Rabbit MQ中在代理端处理消息。因为rabbitmq中的代理是一个“虚拟实体”,所以我不确定是否可以这样做

如果可能的话,我不确定向经纪人介绍业务逻辑听起来是否是个好主意,但这当然只是我的主观意见

无论如何,也许你应该考虑通过改变协议来节省交通量: 将您需要的所有内容存储在一些存储中(如redis或aerospike),这些存储应该与ID一起超高速。在Rabbit MQ中,只需发送ID为的消息,该消息将与消息一起存储在该redis中

希望你会觉得这很有用