Scale PubNub applications for high-volume real-time events
Does it follow best practices?
Evaluation — 96%
↑ 1.45xAgent success when using this tile
Validation for skill structure
A social news aggregation app lets users subscribe to topic feeds (e.g., technology, sports, finance, politics). Each user follows a different combination of topics and also receives personal notifications and direct messages. Users frequently go offline (commute, sleep) and when they come back online, they need to catch up on messages they missed. Some messages are ephemeral system announcements (like "server maintenance in 5 minutes") that should not clutter the history. Users should also be able to "delete" posts from their view, but the original content must be preserved for moderation purposes.
The app uses PubNub (JavaScript SDK, Node.js) for the real-time layer. The team needs the feed management backend and the client-side reconnection logic.
Produce the following files:
feed-manager.js: A Node.js module that exports:
feed-client.js: A Node.js module that exports:
setup-guide.md: A brief document describing what PubNub features and add-ons need to be enabled in the Admin Portal for this system to work, and any default behavior the team should be aware of regarding message storage and buffering.