2.4.5.2 Posting to Social Feed
1. Frontend calls POST /api/posts.
2. Backend inserts into Posts table.
3. On success, backend can broadcast an event (e.g., newPost) to subscribed channels.
4. The next time the feed is fetched, if the number of posts is large, the system uses pagination and indexes to keep queries fast.
Last updated