You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by Bummer <je...@centrum.cz> on 2020/03/27 09:21:11 UTC
Artemis: Downloading metadata only
Hello.
I'd like to receive only metadata of each message and not the message
payload itself in order to save quite a lot of resources as I don't care
about the payload. Is it possible? From what I found the payload is
downloaded automatically even though I don't read it from the buffer.
Thank you for any responses.
Jan
--
Sent from: http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html
Re: Artemis: Downloading metadata only
Posted by Bummer <je...@centrum.cz>.
Hello Brusdev,
the purpose is to send an event about something that happened. More
specifically, our cloud service has several connectors that our customers
use to send their files to us for further processing. The files that we
receive are sent to an address with a couple of queues. And I'd like to use
one of the queues to emit events about receiving a file regardless of the
connector. I don't need the payload for that.
Or is there any other way?
Jan
--
Sent from: http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html
Re: Artemis: Downloading metadata only
Posted by brusdev <br...@gmail.com>.
Hi Jan,
there isn't a way to receive only the metadata of a message.
It could be an enhancement, but I can't understand the purpose.
Could you share more information about your context?
What interface are you using to receive the messages?
Do you want skip the message body on consuming or browsing?
Why do your messages have a body if you don't need it?
Thanks,
Domenico
--
Sent from: http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html
Re: Artemis: Downloading metadata only
Posted by Bummer <je...@centrum.cz>.
Thank you for these links, Brusdev. Very interesting. I shall read it and
hopefully figure out what to do next too. :-)
--
Sent from: http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html
Re: Artemis: Downloading metadata only
Posted by brusdev <br...@gmail.com>.
Hi Jan,
if I understood correctly your requirements you could use a non-exclusive
divert[1] to copy all messages that are routed to the old address to the new
address and a transformer class[2] to remove the messages body or properties
before it is copied.
[1]
https://activemq.apache.org/components/artemis/documentation/latest/diverts.html#non-exclusive-divert
[2]
https://activemq.apache.org/components/artemis/documentation/latest/transformers.html
Regards,
Domenico
--
Sent from: http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html
Re: Artemis: Downloading metadata only
Posted by Bummer <je...@centrum.cz>.
@jbertram Yes, just the headers. :-)
--
Sent from: http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html
Re: Artemis: Downloading metadata only
Posted by Justin Bertram <jb...@apache.org>.
Also, can you define "metadata" for your use-case? Are you talking about
just the message's headers/properties?
Justin
On Fri, Mar 27, 2020 at 4:21 AM Bummer <je...@centrum.cz> wrote:
> Hello.
>
> I'd like to receive only metadata of each message and not the message
> payload itself in order to save quite a lot of resources as I don't care
> about the payload. Is it possible? From what I found the payload is
> downloaded automatically even though I don't read it from the buffer.
>
> Thank you for any responses.
>
> Jan
>
>
>
> --
> Sent from:
> http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html
>
>