Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Server-Side Kotlin with Coroutines

GOTO Conferences via YouTube

Overview

Google, IBM & Meta Certificates – 40% Off
One Coursera Plus subscription covers most Professional Certificates on Coursera.
Unlock All Certificates
This talk explores how Kotlin coroutines can make server-side JVM code scalable and reliable. It discusses thread-based and asynchronous server designs, coroutine concurrency, and safe handling of resources, errors, and request cancellation.

Syllabus

Intro
Speaker: Roman Elizarov
Old-school client-server monolith
Sizing threads - easy
Complex business logic
What if a service is slow?
Blocks threads
Release the thread
Suspend behind the scenes
Performance!
Integration
Release thread?
Blocking server
Asynchronous server
Server integrated with coroutines
Server not integrated with coroutines
Suspend is efficient
Let's go deeper (with coroutines)
Call stack with coroutines
Thread pools
CPU-bound code
Fine-grained control and encapsulation
Concurrency with async (futures)
Concurrency with coroutines
Without coroutine scope?
Convention
Types as documentation
Types are enforced
Green threads / Fibers
Fibers promise
Solution - shared thread pool
Returning many responses
Where's the catch?
Flow example

Taught by

GOTO Conferences

Reviews

Start your review of Server-Side Kotlin with Coroutines

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.