Book Image

Hands-On Serverless Applications with Kotlin

By : Hardik Trivedi, Ameya Kulkarni
Book Image

Hands-On Serverless Applications with Kotlin

By: Hardik Trivedi, Ameya Kulkarni

Overview of this book

Serverless is a cloud computing execution model where the cloud provider dynamically manages the allocation and provisioning of servers. Many companies now use serverless architectures to cut costs and improve scalability. Thanks to its concise and expressive syntax and a smooth learning curve, Kotlin is a great fit for developing serverless applications. With this book, you’ll be able to put your knowledge to work by implementing serverless technology in your applications and become productive in no time. Complete with detailed explanation of essential concepts and examples, this book will help you understand the serverless architecture fundamentals and how to design serverless architectures for your applications. You’ll also explore how AWS Lambda functions work. The book will guide you in designing, building, securing, and deploying your application to production, along with implementing non-functional requirements such as auditing and logging. Furthermore, you’ll discover how to scale up and orchestrate serverless applications using an open source framework and handle distributed serverless systems in production. By the end of the book, you’ll be able to build scalable and cost-efficient Kotlin applications with a serverless framework.
Table of Contents (11 chapters)
3
Designing a Kotlin Serverless Application

Summary

We have come to the end of another amazing chapter. In this chapter, we saw the capability of Firebase doing a lot of things as a backend. We also saw how easy it is to write cloud functions in Kotlin. Most of the things are taken care of by Firebase only, such as load balancing, SSL connections, server maintenance, and so on. We simply focus on our tiny cloud function in isolation. After deployment, that function becomes part of the entire Firebase infrastructure ocean.

Dealing with the Firebase real-time database is also very easy. This could get a bit complex and interesting. It depends upon the structure of your data.

Firebase's two other services, Crashlytics and Performance-monitoring, are the cherry on the cake. These are very small utilities, but make your cake – I mean app – look delicious. Unlike the humongous AWS infrastructure, Firebase is...