Book Image

Kotlin Blueprints

By : Ashish Belagali, Akshay Chordiya, Hardik Trivedi
Book Image

Kotlin Blueprints

By: Ashish Belagali, Akshay Chordiya, Hardik Trivedi

Overview of this book

Kotlin is a powerful language that has applications in a wide variety of fields. It is a concise, safe, interoperable, and tool-friendly language. The Android team has also announced first-class support for Kotlin, which is an added boost to the language. Kotlin’s growth is fueled through carefully designed business and technology benefits. The collection of projects demonstrates the versatility of the language and enables you to build standalone applications on your own. You’ll build comprehensive applications using the various features of Kotlin. Scale, performance, and high availability lie at the heart of the projects, and the lessons learned throughout this book. You’ll learn how to build a social media aggregator app that will help you efficiently track various feeds, develop a geospatial webservice with Kotlin and Spring Boot, build responsive web applications with Kotlin, build a REST API for a news feed reader, and build a server-side chat application with Kotlin. It also covers the various libraries and frameworks used in the projects. Through the course of building applications, you’ll not only get to grips with the various features of Kotlin, but you’ll also discover how to design and prototype professional-grade applications.
Table of Contents (16 chapters)
Title Page
About the Authors
About the Reviewer
Customer Feedback

Chapter 2. Geospatial Messenger – Spring Boot

Writing code in Kotlin is fun, thanks to its concise nature that allows writing applications with shorter, efficient, and expressive code. One of the biggest selling points of Kotlin is its excellent interoperability with Java which means it is designed to play well with the Java ecosystem; the frameworks and libraries. 

Things get really interesting and fun when Kotlin is used together with Spring Boot, which is one of the most widely used web frameworks for quickly bootstrapping and developing web applications in Java language. Spring Boot promotes convention over configuration and thus focuses on eliminating the specification of obvious choices, making the codebase expressive and concise. As we know, Kotlin's constructs also focus on expressiveness and conciseness. Hence development with Spring Boot benefits greatly from the use of Kotlin.

It is no surprise then that with the release of Spring Boot Framework 5.0, the Spring team announced full...