Home / Companies / Pusher / Blog / October 2022

October 2022 Summaries

2 posts from Pusher

Filter
Month: Year:
Post Summaries Back to Blog
Implementing HTTP request retry policies is essential to ensure systems can handle and recover from unexpected failures when making requests. A common and effective approach is using an exponential backoff strategy, which involves increasing the time between retries to reduce the load on both the source and destination hosts. This strategy helps manage failure rates and prevents overwhelming servers with repeated requests, but it is crucial to set a maximum delay to avoid excessively long wait times. Additionally, a maximum retry cap should be instituted to prevent indefinite retries, allowing for follow-up actions like logging or fallback methods if necessary. The appropriate retry strategy and parameters depend on the application's requirements, with high-volume, high-accuracy needs differing from those of lower-volume use cases. However, in some scenarios, like high-frequency updates or when full data suites are included in requests, retries may not be necessary. Libraries for different programming environments, such as NodeJS or PHP, offer support for implementing these retry policies.
Oct 26, 2022 1,064 words in the original blog post.
Pusher Presence channels are a feature within Pusher Channels that enable developers to create a live "who's online" feature by providing users with a list of channel occupants and notifying them when new users subscribe or unsubscribe. Built on top of private channels for added security, Presence channels are suitable for applications like chat apps, online games, and collaborative tools where knowing the online status of users is crucial. They require authorization and use a specific prefix (presence-) to operate, allowing users to see who has joined or left, who is online, and the number of members in the channel. Presence channels are ideal for small groups of subscribers, and the infrastructure simplifies the process by managing long-lived WebSocket connections and broadcasting events when presence states change. Although they are limited to channels with fewer than 100 members, developers can leverage other Pusher capabilities and webhooks for larger groups. The Pusher platform offers various tools and documentation to facilitate the integration of Presence channels into applications, ensuring a seamless and efficient real-time user experience.
Oct 05, 2022 1,280 words in the original blog post.