Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Hands-On Serverless Applications with Kotlin
  • Table Of Contents Toc
  • Feedback & Rating feedback
Hands-On Serverless Applications with Kotlin

Hands-On Serverless Applications with Kotlin

By : Trivedi, Kulkarni
close
close
Hands-On Serverless Applications with Kotlin

Hands-On Serverless Applications with Kotlin

By: Trivedi, 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)
close
close
3
Designing a Kotlin Serverless Application

Firebase cloud functions

Firebase cloud functions let you run a specific piece of code whenever an event is triggered or an HTTP request comes to your Firebase server. This is the same as AWS's Lambda functions. Firebase cloud functions can respond to:

  • Firebase Authentication triggers
  • Google Analytics for Firebase triggers
  • Crashlytics triggers
  • Cloud Storage triggers
  • Cloud Pub/Sub triggers
  • HTTP triggers

Since here we are mainly discussing Kotlin, this section will demonstrate how to use Kotlin code to write a cloud function that ultimately serves as your business logic for the API.

Furthermore, in this section, we will also see how Kotlin code is transpiled into JavaScript. Well, Firebase only supports JavaScript code (or TypeScript code to transpile at deployment) to handle events from Firebase services. For this chapter, we chose to use JavaScript. We will look at how...

Unlock full access

Continue reading for free

A Packt free trial gives you instant online access to our library of over 7000 practical eBooks and videos, constantly updated with the latest in tech

Create a Note

Modal Close icon
You need to login to use this feature.
notes
bookmark search playlist font-size

Change the font size

margin-width

Change margin width

day-mode

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Delete Bookmark

Modal Close icon
Are you sure you want to delete it?
Cancel
Yes, Delete

Delete Note

Modal Close icon
Are you sure you want to delete it?
Cancel
Yes, Delete

Edit Note

Modal Close icon
Write a note (max 255 characters)
Cancel
Update Note

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY