Home / Companies / Ably / Blog / Post Details
Content Deep Dive

Edit and delete messages without rewriting your history layer

Blog post from Ably

Post Details
Company
Date Published
Author
Ably
Word Count
844
Language
-
Hacker News Points
-
Summary

Ably Pub/Sub has introduced a new feature that allows users to edit and delete previously published messages, addressing the challenge of maintaining consistency and coordination in real-time systems when messages need to be altered after delivery. This feature includes a clear model for versioning, history, and permission controls, ensuring that changes are reflected in real-time for subscribers and that the latest version of a message is always available in history queries. By keeping changes within the same channel stream, this update facilitates effective moderation and content removals, preventing outdated content from resurfacing during reconnects or refreshes. The system utilizes lexicographically sortable strings to manage message versions, allowing users to manage message updates and deletions seamlessly. This capability is particularly beneficial for applications requiring rapid content moderation, such as livestream chats and support workflows, where maintaining coherent and up-to-date transcripts is essential. The feature is currently in public preview and can be enabled through the Ably dashboard, with the potential to impact billing due to the persistence of messages on affected channels.