Slide 39
Slide 39 text
Page 39 Ably - Serious realtime infrastructure
When to use push vs pull subscriptions?
Push subscriptions
● High throughput
Target can be load balanced.
● Reduced consumer complexity
Creates complexity for producer, and
you need to address durability and
downstream failures
● Always online
Unsuitable for devices that are not
always online.
● Unintentional DoS risk
Control rate of downstream requests.
Pull subscriptions
● On demand
Generally better suited for devices such
as mobiles, desktops, browsers where
data is needed on demand.
● Simple
Simple for consumers and producers.
● Low throughput per subscriber
Not suitable for high throughput,
without sharding or queueing.
● Capacity planning harder
Unpredictable load.