[HTML payload içeriği buraya]
30.9 C
Jakarta
Monday, November 25, 2024

Ktor 3.0 switches to kotlinx.io library



Ktor 3.0, the most recent model of the Kotlin-based framework for constructing asynchronous client- and server-side functions, is now out there. Ktor 3.0 switches to the kotlinx.io library for dealing with information sources. The discharge additionally highlights help for server-sent occasions (SSE).

The JetBrains Ktor 3.0 know-how, introduced October 10, may be accessed from begin.ktor.io. The largest change in model 3.0 is the swap to the kotlinx.io multiplatform library. This library affords a multiplatform API that may deal with information sources and offers capabilities together with working with recordsdata, utilizing compression, and extra. The kotlinx.io library additionally cuts down on pointless copying of bytes between ByteReadChannel, ByteWriteChannel, and community interfaces. This permits for extra environment friendly byte transformations and parsing, thus making room for future efficiency enhancements.

SSE can be now supported for each the server and the consumer. With SSE, servers push shoppers over an HTTP connection and SSE offers a one-way communication channel. This method is helpful for eventualities the place the server must ship event-based updates with no need the consumer to repeatedly ballot for brand spanking new data.

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest Articles