In this chapter, we've taken a close look at how Kotlin can be used within a microservices architecture to build server-side code. We discussed some of the benefits of a microservices architecture and dived into how Kotlin fits into that architecture. We learned how Kotlin can be used to write microservices with existing JVM frameworks, and we explored Ktor, a Kotlin-based framework for writing asynchronous server code. Finally, we brought these concepts together by writing a simple microservice with Kotlin using Ktor. By building on the lessons learned in this chapter, we can begin leveraging Kotlin outside of our client-side applications.
In the next chapter, we'll explore common design patterns and how they can be achieved using Kotlin.