Emulating request scoped objects with Kotlin Coroutines

Background A common pattern in web applications is to have data that is request scoped, that is, available during the lifetime of the current request only. An example of an object typically available in request scope is the current database session. The implementation of different request scoped objects however do not all work correctly when … Continue reading Emulating request scoped objects with Kotlin Coroutines