LOADING

Turbocharging web socket integration for Tapir

We managed to alleviate almost entirely the slowdown induced by Tapir in a web socket server. The journey towards this goal was quite insightful, and we would like to share it with you.

Kamil Kloch
About This Talk

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.

more great talks

Might Be Interesting

Day 1
  —  
5:00 pm
arrow pointing right icon

Exploring Build Caching: A Practical Overview

In this talk, we will start with the basics, understanding what build caching is and why it can be a bit tricky to handle in real projects.

Day 1
  —  
12:00 pm
arrow pointing right icon

Hands-on Besom: Infrastructure-as-Code with Scala

In my talk I will guide you through a deployment of a complete AI-based web service using Besom, Scala SDK for Pulumi.

Day 2
  —  
4:00 pm
arrow pointing right icon

Growing Oxen: channel operators and retries

In this session, I will guide you through two recent additions to Ox that I helped implement: channel operators and retries.

Day 1
  —  
4:00 pm
arrow pointing right icon

Minimize your Python Discomfort: A tour of NLP with Spacy, ScalaPy, and Scala 3

In this talk, I will show how you can use ScalaPy to leverage an excellent NLP library like Spacy, minimizing your discomfort of using Python, and enhancing your comfort with Scala 3 for the remaining parts of your application.

Day 2
  —  
9:00 am
arrow pointing right icon

Contravariance: intuition building and examples

This talk aims to equip the audience with the minimum required bagage to get comfortable working with contravariance.

See All Events
Join us!

We're looking for amazing speakers.
CFP is open till 10.01.2023

Fill in Call for Papers
location icon

Location

Centrum Konferencyjne POLIN, Poland
stay in touch icon

Follow Us

Contact Us