Kotlin and MongoDB
FAQs
Coroutines in Kotlin are similar to lightweight threads, but actually less resource-intensive than JVM threads as per the official Kotlin documentation Coroutines allow for asynchronous programming, and in the case of server-side, can enable scaling to massive numbers of clients. If your application is synchronous, you do not need coroutines -- and in fact, you can use the Kotlin sync driver. However, if your application is asynchronous, you can use the Kotlin driver with coroutine support.
If you're developing a server-side application that uses Kotlin, MongoDB is a great fit. Consider the official MongoDB Kotlin driver It comes with support for both synchronous use cases and asynchronous use cases with Kotlin coroutines.
The API documentation for the server-side driver can be found here This includes documentation for both the Kotlin coroutine and Kotlin sync driver, as well as Core essential driver functionality) and BSON kotlinx.serialization.
We're happy to accept contributions to help improve the Kotlin driver. We will guide user contributions to ensure they meet the standards of the Kotlin driver codebase. Please ensure that any PRs include documentation, tests, and pass checks. The source code for the Kotlin driver can be found here
Get started with Atlas today
- 125+ regions worldwide
- Sample data sets
- Always-on authentication
- End-to-end encryption
- Command line tools