Today’s lessons were mainly asides about streaming and buffering. These are two key concepts to understating how web servers work.
Buffer is a temporary holding spot for data being moved from one place to another.
Stream is a sequence of data made available over time.
I understood these two concepts when I thought about watching movies and YouTube on the internet. A stream is opened for data, and that data is stored on the buffer then it gets processed so we can watch things.
Another aside that followed these concepts was binary data. Some basic fundamental knowledge to computer science. Binary data is data stored in binary (sets of 1s and 0s). This tied into how binary data is used for streaming and buffering.
Next topic was character sets, which is a representation of characters as numbers. This doesn’t have to be binary most are Unicode character sets.
After data’s are made into character sets, they are processed through character encoding, which is how characters are stored in binary. The most common character encoding on the internet is UTF8 which stores up to 8 bytes. UTF8 allows a lot of possible combinations for different languages with a lot of characters.
Also got to look into the libraries of Buffer and Stream inside Node.js and followed along with examples of using it in code.<div class='sharedaddy sd-block sd-like jetpack-likes-widget-wrapper jetpack-likes-widget-unloaded' id='like-post-wrapper-155635758-458-5d076ed74c822' data-src='https://widgets.wp.com/likes/#blog_id=155635758&post_id=458&origin=trilamanila.com&obj_id=155635758-458-5d076ed74c822' data-name='like-post-frame-155635758-458-5d076ed74c822'><h3 class="sd-title">Like this:</h3><div class='likes-widget-placeholder post-likes-widget-placeholder' style='height: 55px;'><span class='button'><span>Like</span></span> <span class="loading">Loading...</span></div><span class='sd-text-color'></span><a class='sd-link-color'></a></div>