Looking for REST-Server making use of Kotlin's Coroutines


#1

Hello,

we have a problem with large number of context switches mostly incurred through REST calls (at least context switches rose sharply after we changed to a more microservice-oriented approach using REST calls). Sometimes we have over 50.000 context switches per second.

So I thought a REST-server making use of coroutines to reduce context swichtes would be very useful. Does anyone know whether that exists?

Thanks, Oliver


#2

Have a look at Ktor using CIO engine.
Additionally you can let Spring use coroutines instead of thread for handling stuff but I never used them so I cannot help you with that.