I’ve been searching about this but I couldn’t find an answer.
We are a travel website (so we use kotlin in JVM) and we’been using kotlin for a few months and so far we like it. We sell hotels, flights, activities, etc. and we have several external providers for each type of service and we communicate with them via a soap or rest webservice (we use cxf for that).
So every time a user searches for a trip (lets say a weekend in paris) we open several threads searching across different hotel and flight providers. Typically we open around 30 threads for every search. Web service calls are usually slow because of providers (between 5 and 20 seconds).
So my questions are:
-I suspect that we can have a big performance benefit switching to coroutines as they are lightweight threads. Am I right? (I am not talking about the syntax here)
-Can we benefit using CXF as is or do we have to switch a “suspend friendly” webservices library to fully benefit?
Many thanks in advance