-Use separate connections for publishing/consuming/administrating messages.
-Messages can be sent directly to exchange(direct/fanout) with routing key, no need to have queue binding.
-Use callbacks publisher confirms to reliable message receiving.
-Use ChannelAwareMessageListener when message acknowledgement is important.
-For auto acknowledgement, SimpleMessageListenerContainer will suffice.
- SimpleMessageListenerContainer may require content_type:text/plain and content_encoding:UTF-8 to avoid byte based received Message invocation.
-You can apply Jackson2JsonMessageConverter to RabbitTemplate to apply it while sending.
-Listener can be attached with various utility inbuilt functions, eg. post processors, message properties converter etc.
-Ensure related domain has dedicated vHost. Across VHost can be communicated via federation setup.
-Use Admin connection to declare exchange and queues.
No comments:
Post a Comment