11 Replies
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-> ...
so what happens while you're receiving the data
usually the tool you are using abstracts that away from you
so you "just wait"
be receiving or be sending
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...
so it's like a variable being loaded ?
yes
interesting
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
yh
is it applicable outside the context of the web or a network with latency
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
okay thanks 👍🏼