Hi team, is there anyway to batch Javascript SDK e...
# support
s
Hi team, is there anyway to batch Javascript SDK events? So that instead of each event sending individually to my destination, they're batched together. For example, having events not send to the destination until there are 10 events ready, and then sending them all together?
h
why does that concern you out of interest?
what if you have 9 batched up and close the browser - you lose them
s
It's of interest because storage can charge by number of transactions. So reducing the number of transactions can reduce the cost
My understanding was that RudderStack has a postgre database to store events as they are received, so I thought perhaps they could be queued up here for batching
h
cost is based on amount of events
so even if you batch 100 you get charged for 100, not 1
the js sdk does have a queue in case connectivity is down but sends them individually
s
The RudderStack cost is based on events sure, but my data store is based on transactions
h
you mean self hosted pg?
ah sorry - read the question again fully
which destination?
the wh are all batched loaded (clickhouse/redshift etc)
s
I'm currently using Azure Blob Storage
h
right - yeah then rudder would need to make use of the blob batch which they dont currently
could perhaps use Azure data lake that syncs periodically instead
s
Ah okay thanks @hundreds-lifeguard-65770, I'll look into that
👍 1