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
Credits
About the Authors
Acknowledgments
About the Reviewer
www.PacktPub.com
Customer Feedback
Preface

What is REST?


REST stands for representational state transfer, which is a way for computers to communicate and interoperate with each other. It has become the de facto architectural style for web applications and the fact that it's built on top of the hypertext transfer protocol (HTTP) makes it more powerful. HTTP is as widespread as the internet itself, and REST services can reuse the same infrastructure, without needing to open any special ports in the firewall. Besides, one can leverage HTTP methods such as GET, POST, PUT, and so on to assign semantic meanings to the various operations on the server.

REST is extremely light weight and can be consumed/accessed by embedded devices or mobile devices where the computational power is low, and battery life is of high importance. This is because REST itself does not have any baggage on its own, as it relies heavily on the underlying HTTP machinery. Today HTTP/2 is spreading fast as a replacement for HTTP/1.1. With that, even the underlying HTTP...