10 Spring Boot with Kotlin, Native Image and GraphQL
This chapter covers:
- Spring Boot with Kotlin and Spring Kotlin DSLs
- Spring Boot Native Image with GraalVM
- Spring Boot with GraphQL
In the previous chapter, you’ve explored how to deploy Spring Boot applications on various platforms. In this final chapter of this book, we’ll discuss Spring Boot with Kotlin, GraalVM Native Image and GraphQL.
Spring Framework 5.0 provided extensive support for Kotlin programming language and the nature of the support is such that you can develop Spring Boot applications with Kotlin without even writing a single line of Java code. Besides, Spring Boot provides several Domain Specific Language (DSLs) to further simplify the code syntax.
GraalVM Native Image and GraphQL are two major technologies for which Spring Boot extends its support. Currently, these technologies have experimental support in Spring Boot and features are under development. GraalVM Native Image turns the Spring Boot applications into an architecture-specific native executable which has a faster start-up time and consumes less memory footprint. GraphQL offers an alternative approach to REST APIs to develop efficient APIs. Let's see these in practice with Spring Boot.