© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2023
A. LilleaasPro Kotlin Web Apps from Scratchhttps://doi.org/10.1007/978-1-4842-9057-6_8

8. Parallelizing Service Calls with Coroutines

August Lilleaas1  
(1)
Oslo, Norway
 

In this chapter, you’ll learn how to perform service calls (i.e., call external APIs) and how to do so efficiently. Few web apps operate in isolation, and most real-world web apps use a combination of a database and calls to external services to do their work.

If you’re new to Kotlin, here are some language features that you’ll see examples of in this chapter:
  • Using coroutines from different contexts

  • The difference between kotlin.coroutines and kotlinx.coroutines

Also in this chapter, you will ...

Get Pro Kotlin Web Apps from Scratch: Building Production-Ready Web Apps Without a Framework 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.