Messaging Flow Architecture
Direct Message Creation Flow
1. DM Creation
2. Group Chat
3. Cascade Delete
Pause
Reset
Direct Message flow checking for existing 1:1 conversation. If found, returns the existing thread. If not, creates a new conversation and links both users in the join table.
SENDER
RECEIVER
CREATE
JOIN REC
INIT MSG
IF EXISTS
METADATA
ADMINS
MEMBERS
DELETE REQ
CASCADE
CASCADE
USER A (SENDER)
USER B (RECEIVER)
DELETE TRIGGER
GROUP METADATA
LOOKUP GATE
GROUP ADMINS
GROUP MEMBERS
CONVERSATIONS
MEMBERS JOIN
MESSAGES