Chapter 5. Connecting applications to services