ptth/readme_draft.md

47 lines
1.2 KiB
Markdown
Raw Normal View History

2021-03-21 17:49:34 +00:00
![The PTTH logo, a green box sitting on a black conveyor belt. The box has an arrow pointing left, and the text "PTTH", in white. The conveyor belt has an arrow pointing right, in white.](assets/logo-128-pixel.png)
2021-10-02 16:55:04 +00:00
TODO: "Splitting a server in half" diagram
2021-03-21 17:49:34 +00:00
# PTTH
2021-10-03 20:53:38 +00:00
PTTH is a web server.
2021-03-21 17:49:34 +00:00
2021-10-03 20:53:38 +00:00
A web server has:
2021-03-21 17:49:34 +00:00
2021-10-03 20:53:38 +00:00
1. A public host
2. Files to serve
**With PTTH, the files can live outside of the public host.**
If you want to host 1 TB of files, normally you'd put them on the
cloud server:
2021-03-21 17:49:34 +00:00
2021-10-03 20:53:38 +00:00
```
Cloud
HTTP server ----> 1 TB of files
^
Not cloud |
HTTP client
```
2021-03-21 17:49:34 +00:00
2021-10-03 20:53:38 +00:00
But uploading 1 TB to the cloud is expensive and slow, even if
you're sending it to S3-like blob storage.
2021-03-21 19:10:24 +00:00
2021-10-03 20:53:38 +00:00
With PTTH, the files can live outside of the cloud:
2021-03-21 19:10:24 +00:00
2021-10-03 20:53:38 +00:00
```
Cloud
+-----> ptth_relay <------+
| |
Not cloud | |
HTTP client ptth_server
1 TB of files
```
2021-03-21 19:10:24 +00:00
2021-10-03 20:53:38 +00:00
The PTTH server lives where the files live.
The cloud host runs a relay which streams files from the end
server as the client demands.
2021-03-21 19:10:24 +00:00
2021-10-03 20:53:38 +00:00
For home users, this can save you money - The relay server
doesn't need to store any of your files.