Loading...
Assume:
👉 Requires distributed storage
POST /paste
Request:
{
"content": "text...",
"expiry": "optional",
"visibility": "public/private"
}
Response:
{
"url": "https://pastebin.com/abc123"
}
GET /{paste_id}
DELETE /{paste_id}
Use:
Schema:
paste_id (PK)
created_at
expiry
visibility
user_id
Use:
Key:
paste_id → content blob
👉 Reason:
Use:
Key:
paste_id → content
System consists of:
Responsibilities:
Use Snowflake-style:
[timestamp | machine_id | sequence]
Convert to Base62 → short ID