eli5 buffers streams & chunks

it hasn't clicked yet
11 Replies
Neto
Neto3y ago
its hard to send a massive data around with buffers you split a data in smaller blocks and send them instead of sending 9 you send 1 -> 1 -> 1 -> 1 -> 1-> ...
☘
OP3y ago
so what happens while you're receiving the data
Neto
Neto3y ago
usually the tool you are using abstracts that away from you so you "just wait" be receiving or be sending
Neto
Neto3y ago
TomDoesTech
YouTube
Build a Video Upload & Stream App With Next.js 12
In this video, we use createReadStream and createWriteStream to create a video upload and streaming app with Next.js. Source code: https://github.com/TomDoesTech/with-streaming-with-next.js 0:00 Intro 1:21 Demo 3:14 Code preview 7:02 Bootstrap Next.js 11:08 Video upload stream 18:14 Video upload UI 28:56 Video player UI 35:13 Video player stre...
☘
OP3y ago
so it's like a variable being loaded ?
Neto
Neto3y ago
yes
☘
OP3y ago
interesting
Neto
Neto3y ago
with smaller chunks its easier to resend them if you send a massive block of data, if a error happens, you have to send again plus memory consumption
☘
OP3y ago
yh is it applicable outside the context of the web or a network with latency
Neto
Neto3y ago
buffers in IT are more around memory and network you have other kinds of "buffers" in other areas networking its a whole field in IT itself
☘
OP3y ago
okay thanks 👍🏼
Want results from more Discord servers?
Add your server