attach a payload to queue batch rather than each message?

With CF queues, are you able to send a payload that’s attached to the actual batch, rather than each message? I would like to send a userId for example to the controller, rather than to each consumer message.
2 Replies
Hello, I’m Allie!
No, you cannot, also because you don't know what messages will be part of a batch(unless you set the size to 1, but that kind of defeats the purpose).
Lu
LuOP7mo ago
Makes sense, thank you
Want results from more Discord servers?
Add your server