Ktor 3.0 switches to kotlinx.io library



Ktor 3.0, the latest version of the Kotlin-based framework for building asynchronous client- and server-side applications, is now available. Ktor 3.0 switches to the kotlinx.io library for handling data sources. The release also highlights support for server-sent events (SSE).

The JetBrains Ktor 3.0 technology, announced October 10, can be accessed from start.ktor.io. The biggest change in version 3.0 is the switch to the kotlinx.io multiplatform library. This library offers a multiplatform API that can handle data sources and provides capabilities including working with files, using compression, and more. The kotlinx.io library also cuts down on unnecessary copying of bytes between ByteReadChannel, ByteWriteChannel, and network interfaces. This allows for more efficient byte transformations and parsing, thus making room for future performance improvements.

SSE is also now supported for both the server and the client. With SSE, servers push clients over an HTTP connection and SSE provides a one-way communication channel. This approach is useful for scenarios where the server needs to send event-based updates without needing the client to repeatedly poll for new information.



Source link

case studies

See More Case Studies

Contact us

Partner with Us for Comprehensive IT

We’re happy to answer any questions you may have and help you determine which of our services best fit your needs.

Your benefits:
What happens next?
1

We Schedule a call at your convenience 

2

We do a discovery and consulting meting 

3

We prepare a proposal 

Schedule a Free Consultation