by dmytton · 10y ago · 0 comments
> Batched calls are accounted for as multiple operations.
i.e.
# serialized: 1 message, 1 op
publish("['foo', 'bar']")
# instead of:
# a) 2 messages, 2 ops
publish("foo")
publish("bar")
# b) 2 messages, 1 call, 2 ops
publish("foo", "bar") 64 1k messages for Events, sent individually or in a batch
they suggest: 1 64k message for BatchedEvent"Pub/Sub passed the test with flying colours. We published 2M messages without any service degradation and received almost no server errors from the Pub/Sub backend. Enabling batching and compression on the Event Service machines resulted in ~1Gbps of network traffic towards Pub/Sub."
I have 64 1k messages? Ok, I am going to put them inside a single 64k message and reduce my request count by 64x, and profit!
Even if practically that number is much lower (around 100 per batch), the cost ends up becoming around $3,000 for the messages and $9,000 for the network, so roughly $12,000 per month.