switch rabbitmq to rpc