Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Hands-On Serverless Applications with Kotlin
Hands-On Serverless Applications with Kotlin

Hands-On Serverless Applications with Kotlin: Develop scalable and cost-effective web applications using AWS Lambda and Kotlin

Arrow left icon
Profile Icon Trivedi Profile Icon Kulkarni
Arrow right icon
₹2919.99
eBook Sep 2018 386 pages 1st Edition
eBook
₹2919.99
Paperback
₹3649.99
Subscription
Free Trial
Renews at ₹800p/m
Arrow left icon
Profile Icon Trivedi Profile Icon Kulkarni
Arrow right icon
₹2919.99
eBook Sep 2018 386 pages 1st Edition
eBook
₹2919.99
Paperback
₹3649.99
Subscription
Free Trial
Renews at ₹800p/m
eBook
₹2919.99
Paperback
₹3649.99
Subscription
Free Trial
Renews at ₹800p/m

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
Table of content icon View table of contents Preview book icon Preview Book

Hands-On Serverless Applications with Kotlin

AWS Serverless Offerings

In Chapter 1, Basics of Serverless, we entered the serverless mindset, covering the definition and evolution of serverless computing. We also listed the various serverless providers and their offerings. AWS, with its early adoption of FaaS and BaaS services and their deep integration with each other, is a good choice for developing serverless applications.

In this chapter, we will take a detailed look at the AWS serverless/FaaS offering, Lambda, and will explore its various aspects, as follows:

  • Lambda execution environments
  • Service limits
  • Invocation types and event sources
  • Supported Runtime environments
  • Error handling and scaling
  • Configuration
  • Creating a deployment package of Lambda functions via the web console
  • Testing Lambda functions
  • Exposing a function as an API endpoint using the Amazon API Gateway
  • Basic monitoring of Lambda functions
  • Versioning...

AWS Lambda overview

Lambda is the FaaS offering from Amazon Web Services. It provides a platform to package functions as code and run them in an ephemeral environment. Let's explore this in a little more detail in the following sections.

Execution environment

AWS Lambda promises the execution of your code without a need to manage the underlying infrastructure. That doesn't mean that the underlying infrastructure and servers don't exist. They need to exist to provide an execution environment to the Lambda function. AWS manages them for you and abstracts away the nuts and bolts.

AWS maintains a fleet of machines to run the functions via various orchestration mechanisms. The underlying hardware is as follows:

    ...

Summary

In this chapter, we covered the nuts and bolts of how AWS Lambda (FaaS) works. We took a look at the Java programming model, which can be extended to other JVM-based languages. We provided a brief overview of all preconfigured AWS events that can be used as trigger points in Lambda.

You saw how Lambda functions can be created, packaged, deployed, and tested, via the console. In this process, we created a simple Lambda function that greets its callers, and then tested it. We then created an API Gateway to integrate with this Lambda function. We deployed this API Gateway and invoked the Lambda function via Postman.

In short, we executed an end-to-end exercise with Lambda functions.

In the next chapter, we will dive into AWS offerings and look at how they can be integrated with Lambda. In the process, we will create a modern serverless application using Kotlin.

...
Left arrow icon Right arrow icon

Key benefits

  • Design enterprise-ready serverless applications that effortlessly meet your customers’ requirements
  • Deploy, manage, monitor, and orchestrate serverless applications using AWS
  • Use Cloud9 to provision a secured development environment in the cloud

Description

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.

Who is this book for?

Hands-On Serverless Applications with Kotlin is for you if you are a Kotlin developer who wants to learn about serverless architectures. Some knowledge of Kotlin programming and AWS is assumed.

What you will learn

  • Design a serverless architecture
  • Use AWS Lambda to contain your serverless API
  • Explore various ways to secure your Kotlin AWS serverless application
  • Understand how a serverless API enables you to use huge infrastructure and cut costs
  • Discover how to handle distributed systems in Kotlin
  • Design the data ?ow between cloud services and custom business logic
  • Apply design patterns in serverless applications

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date : Sep 29, 2018
Length: 386 pages
Edition : 1st
Language : English
ISBN-13 : 9781788991049
Vendor :
Amazon
Languages :
Concepts :
Tools :

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want

Product Details

Publication date : Sep 29, 2018
Length: 386 pages
Edition : 1st
Language : English
ISBN-13 : 9781788991049
Vendor :
Amazon
Languages :
Concepts :
Tools :

Packt Subscriptions

See our plans and pricing
Modal Close icon
₹800 billed monthly
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Simple pricing, no contract
₹4500 billed annually
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just ₹400 each
Feature tick icon Exclusive print discounts
₹5000 billed in 18 months
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just ₹400 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total 10,949.97
Hands-On Serverless Applications with Kotlin
₹3649.99
Learning Concurrency in Kotlin
₹3649.99
Hands-On Design Patterns with Kotlin
₹3649.99
Total 10,949.97 Stars icon

Table of Contents

10 Chapters
Basics of Serverless Chevron down icon Chevron up icon
AWS Serverless Offerings Chevron down icon Chevron up icon
Designing a Kotlin Serverless Application Chevron down icon Chevron up icon
Developing Your Serverless Application Chevron down icon Chevron up icon
Improving Your App with Firebase Service Chevron down icon Chevron up icon
Analyzing Your Application Chevron down icon Chevron up icon
Secure Your Application Chevron down icon Chevron up icon
Scale Your Application Chevron down icon Chevron up icon
Advanced AWS Services Chevron down icon Chevron up icon
Other Books You May Enjoy Chevron down icon Chevron up icon
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

How do I buy and download an eBook? Chevron down icon Chevron up icon

Where there is an eBook version of a title available, you can buy it from the book details for that title. Add either the standalone eBook or the eBook and print book bundle to your shopping cart. Your eBook will show in your cart as a product on its own. After completing checkout and payment in the normal way, you will receive your receipt on the screen containing a link to a personalised PDF download file. This link will remain active for 30 days. You can download backup copies of the file by logging in to your account at any time.

If you already have Adobe reader installed, then clicking on the link will download and open the PDF file directly. If you don't, then save the PDF file on your machine and download the Reader to view it.

Please Note: Packt eBooks are non-returnable and non-refundable.

Packt eBook and Licensing When you buy an eBook from Packt Publishing, completing your purchase means you accept the terms of our licence agreement. Please read the full text of the agreement. In it we have tried to balance the need for the ebook to be usable for you the reader with our needs to protect the rights of us as Publishers and of our authors. In summary, the agreement says:

  • You may make copies of your eBook for your own use onto any machine
  • You may not pass copies of the eBook on to anyone else
How can I make a purchase on your website? Chevron down icon Chevron up icon

If you want to purchase a video course, eBook or Bundle (Print+eBook) please follow below steps:

  1. Register on our website using your email address and the password.
  2. Search for the title by name or ISBN using the search option.
  3. Select the title you want to purchase.
  4. Choose the format you wish to purchase the title in; if you order the Print Book, you get a free eBook copy of the same title. 
  5. Proceed with the checkout process (payment to be made using Credit Card, Debit Cart, or PayPal)
Where can I access support around an eBook? Chevron down icon Chevron up icon
  • If you experience a problem with using or installing Adobe Reader, the contact Adobe directly.
  • To view the errata for the book, see www.packtpub.com/support and view the pages for the title you have.
  • To view your account details or to download a new copy of the book go to www.packtpub.com/account
  • To contact us directly if a problem is not resolved, use www.packtpub.com/contact-us
What eBook formats do Packt support? Chevron down icon Chevron up icon

Our eBooks are currently available in a variety of formats such as PDF and ePubs. In the future, this may well change with trends and development in technology, but please note that our PDFs are not Adobe eBook Reader format, which has greater restrictions on security.

You will need to use Adobe Reader v9 or later in order to read Packt's PDF eBooks.

What are the benefits of eBooks? Chevron down icon Chevron up icon
  • You can get the information you need immediately
  • You can easily take them with you on a laptop
  • You can download them an unlimited number of times
  • You can print them out
  • They are copy-paste enabled
  • They are searchable
  • There is no password protection
  • They are lower price than print
  • They save resources and space
What is an eBook? Chevron down icon Chevron up icon

Packt eBooks are a complete electronic version of the print edition, available in PDF and ePub formats. Every piece of content down to the page numbering is the same. Because we save the costs of printing and shipping the book to you, we are able to offer eBooks at a lower cost than print editions.

When you have purchased an eBook, simply login to your account and click on the link in Your Download Area. We recommend you saving the file to your hard drive before opening it.

For optimal viewing of our eBooks, we recommend you download and install the free Adobe Reader version 9.