Downloading » History » Sprint/Milestone 3
jortel@redhat.com, 08/29/2017 03:43 PM
1 | 1 | jortel@redhat.com | # Downloading |
---|---|---|---|
2 | |||
3 | 3 | jortel@redhat.com | In pulp3, there are two competing technologies and designs being considered. For the purposes of the discussion we'll name them **Jupiter** and **Saturn**. The *Jupiter* solution is based on *concurrent.futures* and the Saturn solution is based on *asyncio*. |
4 | |||
5 | ## Design Constraints |
||
6 | |||
7 | 1 | jortel@redhat.com | ## Use Cases |
8 | |||
9 | 2 | jortel@redhat.com | ### Importer |
10 | |||
11 | 1 | jortel@redhat.com | As an importer, I need to download single files. |
12 | As an importer, I need to download files concurrently. |
||
13 | As an importer, I want to validate downloaded files. |
||
14 | As an importer, I am not required to keep all content (units) and artifacts in memory to support concurrent downloading. |
||
15 | As an importer, I need a way to link a downloaded file to an artifact without keeping all content units and artifacts in memory. |
||
16 | As an importer, I can perform concurrent downloading using a synchronous pattern. |
||
17 | As an importer, concurrent downloads must share resources such as sessions,connection pools and auth tokens across individual downloads. |
||
18 | As an importer I can customize how downloading is performed. For example, to support mirror lists |
||
19 | As an importer, concurrent downloading must limit the number of simultaneous connections. Downloading 5k artifacts cannot open 5k connections. |
||
20 | As an importer, I can terminate concurrent downlading at any point and not leak resources. |
||
21 | As an importer, I can download using any protocol. Starting with HTTP/HTTPS and FTP. |
||
22 | |||
23 | 2 | jortel@redhat.com | ### Streamer |
24 | 1 | jortel@redhat.com | |
25 | As the streamer, I need to download files related to published metadata but delegate *the implementation* (protocol, settings, credentials) to the importer. The implementation must be a black-box. |
||
26 | As the streamer, I can download using any protocol supported by the importer. |
||
27 | As the streamer, I want to validate downloaded files. |
||
28 | As the streamer, concurrent downloads must share resources such as sessions,connection pools and auth tokens across individual downloads without having knowledge of such things. |
||
29 | As the streamer, I need to support complex downloading such as mirror lists. This complexity must be delegated to the importer. |
||
30 | As the streamer, I need to bridge the downloaded bit stream to the Twisted response. The file is not written to disk. |
||
31 | As the streamer, I need to forward HTTP headers from the download response to the twisted response. |
||
32 | As the streamer, I can download using (the same) custom logic as the importer such as supporting mirror lists |