https://kotlinlang.org logo
#ktor
Title
# ktor
s

spierce7

06/29/2022, 3:44 PM
Can anyone speak to their migration experience moving to 2.0? I’ve been waiting for a few releases before I move production servers over. Is anyone running 2.0 in prod?
s

Satyam Agarwal

06/30/2022, 2:49 AM
Migrate to 2.0.3 directly. Lots of issues with content-type headers and manipulating request bodies.
Use ktor migration plugin, made my life a lot easier. So many namespaces changes. And even after plug-in migrated namespaces, I had to do a lot of cleanup myself.
I had to replace lots of deprecated apis myself. You don't need to do it, but eventually you'd have to, and replacing withTestApplication with testApplication is a major pain.
s

spierce7

06/30/2022, 2:52 AM
There isn’t a rush for me to migrate. I’m just trying to move over once everything is stable
s

Satyam Agarwal

06/30/2022, 3:17 AM
Sure. But overall I am pretty happy with the new version. And two of my very critical applications are running on 2.0.3 in production without any problems.
s

spierce7

06/30/2022, 3:33 AM
thank you
r

ribesg

06/30/2022, 8:35 AM
I’m waiting on 2.1.0 because I need this to replace a custom Ktor 1.0 feature that I don’t want to reimplement as a Ktor 2.0 plugin https://github.com/ktorio/ktor/commit/7820574232b755c50a71e1249f0c84cd91e17630
5 Views