Expand description
§Scratch pad for just-authored local posts
When the user hits “post”, the resulting signed post must make its way out onto the DHT before it can be read back through the usual bucket fetch. The network path takes at least a round trip plus proof-of-work — far too long for “post disappears for 10 seconds then reappears in my own timeline” to feel acceptable.
RecentPostsPen closes that gap. Every locally-authored post is deposited here
indexed by (BucketType, base_id) with a short TTL (~10 minutes). Every timeline
walk consults it before diving into the bucket fetch, so the user’s own posts surface
in their own timelines immediately. Old entries age out automatically, and
deduplication against the timeline’s seen set prevents duplicate rendering once the
network fetch catches up.
Structs§
- Recent
Posts Pen - Short-lived scratch space for posts the local client has just submitted.
- Recent
Posts PenEntry