Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/stokito/golang-parallel-downloader
Live coding task for interview. Write a downloader with parallel processing.
https://github.com/stokito/golang-parallel-downloader
golang-interview live-coding test-assignment
Last synced: 15 days ago
JSON representation
Live coding task for interview. Write a downloader with parallel processing.
- Host: GitHub
- URL: https://github.com/stokito/golang-parallel-downloader
- Owner: stokito
- License: 0bsd
- Created: 2023-09-27T09:04:01.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2023-09-28T16:51:19.000Z (about 1 year ago)
- Last Synced: 2024-04-16T18:12:23.204Z (7 months ago)
- Topics: golang-interview, live-coding, test-assignment
- Language: Go
- Homepage:
- Size: 10.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.txt
- License: LICENSE.txt
Awesome Lists containing this project
README
# Golang downloader with parallel processing sample
Golang interview live coding task:
Download from URL in specified chunks and process in parallel.
Time for the task: 50 minutes.Build:
go build -o downloader
Execute tests:
go test ./...
Run:
./downloader https://data.iana.org/TLD/tlds-alpha-by-domain.txt 100
This will download the file with chunks by 100 bytes.
All these chunks will be gathered and printed after downloading.Please note: the webserver should return a Content-Length header for the file