On 28 November 2014 at 08:09:02, Arlo O'Keeffe (
mailt...@gmail.com) wrote:
> is it possible to send a Message with an OutputStream instead
> of a byte[]?
>
> If not, will it ever be possible?
Publishing bodies that are streams is possible, although not trivial due to framing.
> The same goes for receiving messages via an InputStream.
The client would still need to parse protocol data, so even if we'd turn it into an InputStream,
we'd lose its lazy evaluation/memory efficiency.
Take a look at
http://blog.travis-ci.com/2013-08-08-solving-the-puzzle-of-scalable-log-processing/,
you can apply a similar technique in the meantime.
--
MK
Staff Software Engineer, Pivotal/RabbitMQ