5 ms·
Does anyone know of any good resources to learn about data streams in general? Some weeks ago I had to implemnt some streams (in nodejs) to upload a file to s3
by mrlucax 7y ago
Does anyone know of any good resources to learn about data streams in general? Some weeks ago I had to implemnt some streams (in nodejs) to upload a file to s3 "on the fly", without storing the file locally and then uploading it, but I culdn't wrap my head about the data stream concept.
- yingw787 7y agoHave you reviewed data-intensive architectures? I've found that book quite useful. I'm just talking out my butt right now but I think fundamentally, a stream is just a chunk of data lifted from persist into memory. I imagine a cursor process traversing some bytes in a file, and then lifting some of those bytes into memory, and sending that memory over network.
- alexpetralia 7y agoYes, however I think there's a lot more complexity in modern steaming architectures: event sourcing, concurrency, eventual consistency, pub-sub, queueing, event handlers, microservices, stateless messages, data lakes - to name a few. I would also be interested in a resource that tackles major concepts here.
- CameronNemo 7y ago> data-intensive architectures I suspect you mean __Designing Data-Intensive Applications__, by Martin Kleppman, but I am not entirely sure.
- yingw787 7y agoYeah, I just didn't want to type it out :P
- dttos 7y agoCheck out dataflows in Composable for a quick way to implement these data streams. https://docs.composable.ai/en/latest/03.DataFlows/01.Overview/ https://docs.composable.ai/en/latest/03.DataFlows/01.Overvie...
- toolslive 7y agoyou can also use the upload multipart feature of s3. Basically, you buffer until you have a sizeable chunk of the incoming stream, then upload that chunk; iterate. At the end you tell s3 to concatenate the parts.