Reading 18: Message-Passing and Networking
After reading the notes and examining the code for this class, you should be able to use message passing instead of shared memory for communication between TypeScript workers, and understand how client/server communication does message passing over the network. Network communication is inherently concurrent, so building clients and servers will require us to reason about their concurrent behavior and to implement them with thread safety. We must also design the protocol that clients and servers use to communicate, just as we design the operations that clients of an ADT use to work with it. In our introduction to concurrency, we saw two models for concurrent programming: shared memory and message passing. In the shared memory model, concurrent modules interact by reading and writing shared mutable objects. Creating multiple threads inside a single process is our primary example of shared-memory concurrency. Because TypeScript has no API for creating threads, many of our code examples ha
Reading 18: Message-Passing and Networking Reading 18: Message-Passing and Networking Software in 6.102 Safe from bugs Easy to understand Ready for change Correct today and correct in the unknown future. Communicating clearly with future programmers, including future you. Designed to accommodate change without rewriting. Objectives After reading the notes and examining the code for this class, you should be able to use message passing instead of shared memory for communication between TypeScript workers, and understand how client/server communication does message passing over the network. Netw
Explore this link on the map →saved by
related reading
- Reading 14: Concurrencyweb.mit.edu
- Reading 15: Promisesweb.mit.edu
- Computer Networks From Scratchnetworksfromscratch.com
- TypeScript Structured Concurrencythecandidstartup.org
- Web Workers, comlink, TypeScript and React | johnnyreillyjohnnyreilly.com
- How does the Internet Work? - cs.fyics.fyi
- The Communication Protocol · Hugging Facehuggingface.co
- Transfer Data Between Threads with Message Passing - The Rust Programming Languagedoc.rust-lang.org
- Node.js Fundamentals: Web Server Without Dependenciesblog.bloomca.me
- Navigating the future of frontendfrontendmastery.com
- Web Applications 101 - Robin Wieruchrobinwieruch.de
- GitHub - Elijah-Bodden/Membrane: A robust, minimal-server-interaction API for peer routing in the browser · GitHubgithub.com