Chapter 7

Optimizing Request Performance

WHAT’S IN THIS CHAPTER?

  • Understanding network bandwidth and latency
  • Reducing request bandwidth with compression
  • Reducing request latency with pipelining
  • Minimizing request bandwidth with caching

WROX.COM CODE DOWNLOADS FOR THIS CHAPTER

The wrox.com code downloads for this chapter are found at www.wrox.com/WileyCDA/WroxTitle/Professional-iOS-Network-Programming-Connecting-the-Enterprise-to-the-iPhone-and-iPad.productCd-1118362403.html on the Download Code tab. The code is in the Chapter 07 download and individually named according to the names throughout the chapter.

As you have seen in earlier chapters, basic networking from an iOS device is powerful and relatively easy. iOS has a full-featured API that supports many industry-standard protocols; however, even if you develop a phenomenal app, the network communication may perform suboptimally based on the device’s connection to the outside world.

This chapter teaches you the dimensions by which network performance is measured, and you can use that knowledge to improve your app’s network communication. You learn best practices that reduce bandwidth consumed by your app, improve the responsiveness, and even prolong the battery life of the device running the app.

MEASURING NETWORK PERFORMANCE

This section reviews at a high level the metrics used to describe network performance. Although there are many metrics used to describe the performance of a wireless network, this section focuses on the ...

Get Professional iOS Network Programming: Connecting the Enterprise to the iPhone and iPad now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.