Part 4. Data
At this point, you have an architecture with objects and functions connected to one another. All that’s left is to turn the hose on and let the data flow in. As with your system of conventional PVC pipes connected to bring water to your house, your application needs to be connected to transform the input into the desired output. The complexity of connecting everything arises when you need to prepare for data that can arrive at any point in time, not only when you expect it. In other words, you don’t know when someone will turn on the water, but you need to be ready for when they do.
Chapter 8 teaches you how to tame asynchronous logic with promises and direct language syntax (async/await). Promises have the advantage of being compositional ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access