Hey team! In testing event transformations for eve...
# support
w
Hey team! In testing event transformations for events emitted by the ruby SDK, we found that the
event
object contains
max_message_count
, and
messages
which is an array of events. I can’t find any documentation around the max message count configuration or around the messages grouping. I’d like to better understand in what circumstances events will come individually VS grouped into this messages array. It is especially important if the messages array contains events that should be received by different destinations.
h
you can have a transform that passes a batch of or single event
w
Right now the transform is receiving the messages array, and I’m trying to understand how that works, do you know what causes events to be grouped in that messages array VS being sent individually?
h
the signature of the transform handler
👍 1
transformBatch vs transformEvent
w
Ok! So a transformEvent handler would have
messages.length
always be 1, while transformBatch could have up to the
max_messages_count
?
💯 1
And sorry if I’ve missed some documentation around this, I’ve been looking but could not find the information on this, which is why I’m asking here. Appreciate the help
h
Yeah I couldnt find it either for you!
w
Thanks for all the help! I think I got everything I need to finish the rudderstack integration now 🙌
👍 1
h
good luck