Network Programming
M. Holmes He · Apress eBooks · 2022
Most modern apps would be useless without a network. This is true for Manyface and other real-world apps alike. A network, on the other hand, is complex and is rough at times. This is especially true for a mobile network where even the connectivity could be nondeterministic and intermittent. This scenario of weak connection continuously challenges mobile apps, and the solution logic flow cannot be easily tested, verified, or validated. A network also contributes a large bulk of waiting time, and anxiety, to the users. This is because network latency (~tens to hundreds of milliseconds for WAN RTT) is by magnitude greater than that imposed by logic or the UI (~16.6 milliseconds). Without the content fetched from a network, any discussion on rendering time optimization is futile. To make peace with the network, we need to understand its nature, and this is the purpose of this chapter.