We love to use Tapir for the rapid development of Web APIs. Recently, we noticed it considerably impacted the performance of a web socket server (increased latency, lower throughput, heightened CPU usage). We managed to alleviate the slowdown almost entirely (reducing the overhead to a minimum - much less latency and CPU usage, greater throughput - performance rivalling a plain cats-effect/http4s/fs2 stack).
The journey towards this goal was quite insightful, and we would like to share it with you.In particular, we will cover async-profiler, introduce you to some high-level concurrency combinators of the fs2 library and show some surprising benchmarks. Let the results be a testament to the JVM’s excellent tooling and a proof that one can use high-level Scala libraries like Tapir without compromising on overall performance.
scalar-conf.com/
Scalar Conference 2024
powered by SoftwareMill
#scalarconf
Негізгі бет Ғылым және технология Kamil Kloch TURBOCHARGING WEB SOCKET INTEGRATION FOR TAPIR Scalar Conference 2024
Пікірлер: 1