Book Image

Building Applications with Spring 5 and Kotlin

By : Miloš Vasić
Book Image

Building Applications with Spring 5 and Kotlin

By: Miloš Vasić

Overview of this book

Kotlin is being used widely by developers because of its light weight, built-in null safety, and functional and reactive programming aspects. Kotlin shares the same pragmatic, innovative and opinionated mindset as Spring, so they work well together. Spring when combined with Kotlin helps you to reach a new level of productivity. This combination has helped developers to create Functional Applications using both the tools together. This book will teach you how to take advantage of these developments and build robust, scalable and reactive applications with ease. In this book, you will begin with an introduction to Spring and its setup with Kotlin. You will then dive into assessing the design considerations of your application. Then you will learn to use Spring (with Spring Boot) along with Kotlin to build a robust backend in a microservice architecture with a REST based collaboration, and leverage Project Reactor in your application. You’ll then learn how to integrate Spring Data and Spring Cloud to manage configurations for database interaction and cloud deployment. You’ll also learn to use Spring Security to beef up security of your application before testing it with the JUnit framework and then deploying it on a cloud platform like AWS.
Table of Contents (12 chapters)

Deploying to the Cloud (AWS)

Today, Amazon Web Services (AWS) is the most popular platforms for hosting applications. AWS is a subsidiary of Amazon.com that provides on-demand cloud computing platforms to individuals, companies, and governments, on a paid subscription basis. The reason for its popularity is that it offers reliable, scalable, and inexpensive cloud computing services.

Since this is the last section of this chapter, we will guide you through the process of deploying to AWS step by step. We will show you how to deploy our API Spring Boot application using AWS Elastic Beanstalk. We will also show you how to customize the Spring Boot configuration through the use of environment variables.

AWS Elastic Beanstalk provides convention over configuration, but it still gives us the ability to make adjustments if needed. Elastic Beanstalk is a managed service designed for deploying...