Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aksh-bansal-dev/http-chunked
A basic server serving images as chunked response using Go.
https://github.com/aksh-bansal-dev/http-chunked
Last synced: 25 days ago
JSON representation
A basic server serving images as chunked response using Go.
- Host: GitHub
- URL: https://github.com/aksh-bansal-dev/http-chunked
- Owner: Aksh-Bansal-dev
- Created: 2022-12-06T08:50:16.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2022-12-06T09:37:08.000Z (about 2 years ago)
- Last Synced: 2024-11-20T11:05:24.895Z (3 months ago)
- Language: HTML
- Homepage:
- Size: 37.1 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# http-chunked
A basic server serving images as chunked response using Go.Suppose a website has many images on a page, then rendering that page would be slow because the browser will try to create separate
connection for fetching each image. Establishing new connections take time and also most browser only support a limited number of concurrent
connections.To improve page load, server can send multiple images in a single request and stream them using `Transfer-Encoding: chunked` so client can render
an image as soon as its data is received instead of waiting for the complete response(all images).## How it works?
The server is encoding the image in base64 format, and sending it to the client in chunks. The client displays an image as soon as it receives the
data for that image.[reference](https://dropbox.tech/infrastructure/retrieving-thumbnails).