Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Learn AWS Serverless Computing
Learn AWS Serverless Computing

Learn AWS Serverless Computing: A beginner's guide to using AWS Lambda, Amazon API Gateway, and services from Amazon Web Services

Arrow left icon
Profile Icon Scott Patterson
Arrow right icon
€18.99 per month
Full star icon Full star icon Full star icon Full star icon Empty star icon 4 (5 Ratings)
Paperback Dec 2019 382 pages 1st Edition
eBook
€8.99 €26.99
Paperback
€32.99
Subscription
Free Trial
Renews at €18.99p/m
Arrow left icon
Profile Icon Scott Patterson
Arrow right icon
€18.99 per month
Full star icon Full star icon Full star icon Full star icon Empty star icon 4 (5 Ratings)
Paperback Dec 2019 382 pages 1st Edition
eBook
€8.99 €26.99
Paperback
€32.99
Subscription
Free Trial
Renews at €18.99p/m
eBook
€8.99 €26.99
Paperback
€32.99
Subscription
Free Trial
Renews at €18.99p/m

What do you get with a Packt Subscription?

Free for first 7 days. $19.99 p/m after that. Cancel any time!
Product feature icon Unlimited ad-free access to the largest independent learning library in tech. Access this title and thousands more!
Product feature icon 50+ new titles added per month, including many first-to-market concepts and exclusive early access to books as they are being written.
Product feature icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Product feature icon Thousands of reference materials covering every tech concept you need to stay up to date.
Subscribe now
View plans & pricing
Table of content icon View table of contents Preview book icon Preview Book

Learn AWS Serverless Computing

The Evolution of Compute

You're here to learn a new skill, to expand your understanding of new ways of compute, and to follow along with the examples in this book to gain practical experience. Before we begin, it would be helpful to know a bit of the history and context behind why serverless exists. This chapter will explain the progression of thinking from the humble data center through to the new goalposts of serverless.

We'll learn how the placement of physical hardware has evolved from the perspective of the infrastructure engineer and developer, and how the different stages have allowed us to achieve new layers of compute abstraction. The evolution of these factors has also driven new ways of structuring software, and we will explore some of the reasons behind this.

The following topics will be covered in this chapter:

  • Understanding enterprise data...

Understanding enterprise data centers

How we view a data center has changed with the introduction of new technologies and software development methods. We will begin with a recap of the characteristics of a fully self-managed data center and go on to explain how our views have changed over time:

Evolutionary changes in hardware, compute, and software architectures

It's worth noting that, in all the examples in this book, there is still an underlying data center that has to be managed, but now we're talking about shifting that responsibility of management. In the preceding diagram, each stream of evolution is not tightly linked. For example, monoliths can still be run on private or public clouds. In this section, we will cover the evolution of hardware over time and focus in on the following topics:

  • The physical data center
  • Colocating our gear
  • Cloud born
...

Exploring the units of compute

In the previous section, we were reminded of the progression of building data centers to consuming cloud resources. We can also relate this shift to how we provision, deploy, and scale our compute resources. Let's have a look at how our thinking has moved from deploying physical servers to scaling our applications and to scaling at an application function level:

  • Physical servers: Scale at the physical server layer
  • Virtual machines: Density efficiencies achieved by virtualizing the hardware
  • Containers: Better density with faster start times
  • Functions: Best density by abstracting the runtime

Physical servers – scale at the physical server layer

When designing for scale in...

Understanding software architectures

The evolution of compute has also opened new possibilities regarding how we structure and architect our applications. Mark Richards talks about "Ingredients that go into an evolutionary cauldron agility, velocity, and modularity" (source: keynote talk, Fundamentals of software architecture at O'Reilly Software Architecture Conference in London 2016). By this, he means that, when we are talking about the topic of software architecture, we need the ability to change and evolve the way we do things in order to keep up with the ever-increasing expectations we have of new technologies. Instead of investing in complex analysis and planning, organizations should invest in making sure their software solutions include the essential evolutionary ingredients so they can change and evolve at an acceptable pace when...

Predicting what comes next

So, what is the next evolution after nanoservices? We've already seen applications being broken into smaller and smaller parts with the edition of repositories so that developers can share useful functions with others in the community. 

I think we're going to see more sharing of things we can build into our applications, especially things we may not be specialists in building. I postulate that an Algorithms as a Service concept will emerge and become increasingly popular very soon. Developers who have knowledge in a particular problem domain or technology vertical will be able to share their models or the use of those models with others to achieve the same inferences.

A simple example could be a recommendation engine that predicts the likelihood of a customer purchasing a product, given their previous buying or browsing behaviors. Models...

Summary 

This chapter has been a reminder of the reasons behind hardware, compute, and software architectures evolving to where they are today. As we discovered, the progression of how we want to be less and less responsible for the hardware and compute we consume has been a large driver to abstracting management and responsibility away. 

In the next chapter, we're going to explore some of the factors contributing to how designing and building applications has changed with the adoption of serverless architectures.

Questions

  1. Which compute option gives you the best workload density?

A) Virtual machines
B) Containers
C) Functions
D) Bare metal

  1. Which of the following is a benefit of an n-tier architecture?

A) Defined and separated areas of responsibility
B) Each tier can be scaled individually
C) Controlled network isolation between tiers
D) All of the above

  1. What is the typical lifetime of a container?

A) Minutes or hours
B) Milliseconds or seconds
C) Days or weeks
D) Months or years

  1. When creating virtual machines on a physical server, what must you take into account?

A) Air temperature and humidity
B) The type of workloads running on the physical host
C) The amount of available CPU and memory

Further reading

Left arrow icon Right arrow icon

Key benefits

  • Learn how to write, run, and deploy serverless applications in Amazon Web Services
  • Make the most of AWS Lambda functions to build scalable and cost-efficient systems
  • Build and deploy serverless applications with Amazon API Gateway and AWS Lambda functions

Description

Serverless computing is a way to run your code without having to provision or manage servers. Amazon Web Services provides serverless services that you can use to build and deploy cloud-native applications. Starting with the basics of AWS Lambda, this book takes you through combining Lambda with other services from AWS, such as Amazon API Gateway, Amazon DynamoDB, and Amazon Step Functions. You’ll learn how to write, run, and test Lambda functions using examples in Node.js, Java, Python, and C# before you move on to developing and deploying serverless APIs efficiently using the Serverless Framework. In the concluding chapters, you’ll discover tips and best practices for leveraging Serverless Framework to increase your development productivity. By the end of this book, you’ll have become well-versed in building, securing, and running serverless applications using Amazon API Gateway and AWS Lambda without having to manage any servers.

Who is this book for?

This AWS book is for cloud architects and developers who want to build and deploy serverless applications using AWS Lambda. A basic understanding of AWS is required to get the most out of this book.

What you will learn

  • Understand the core concepts of serverless computing in AWS
  • Create your own AWS Lambda functions and build serverless APIs using Amazon API Gateway
  • Explore best practices for developing serverless applications at scale using Serverless Framework
  • Discover the DevOps patterns in a modern CI/CD pipeline with AWS CodePipeline
  • Build serverless data processing jobs to extract, transform, and load data
  • Enforce resource tagging policies with continuous compliance and AWS Config
  • Create chatbots with natural language understanding to perform automated tasks

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date : Dec 24, 2019
Length: 382 pages
Edition : 1st
Language : English
ISBN-13 : 9781789958355
Concepts :
Tools :

What do you get with a Packt Subscription?

Free for first 7 days. $19.99 p/m after that. Cancel any time!
Product feature icon Unlimited ad-free access to the largest independent learning library in tech. Access this title and thousands more!
Product feature icon 50+ new titles added per month, including many first-to-market concepts and exclusive early access to books as they are being written.
Product feature icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Product feature icon Thousands of reference materials covering every tech concept you need to stay up to date.
Subscribe now
View plans & pricing

Product Details

Publication date : Dec 24, 2019
Length: 382 pages
Edition : 1st
Language : English
ISBN-13 : 9781789958355
Concepts :
Tools :

Packt Subscriptions

See our plans and pricing
Modal Close icon
€18.99 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
€189.99 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 €5 each
Feature tick icon Exclusive print discounts
€264.99 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 €5 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total 98.97
Serverless Architectures with Kubernetes
€32.99
Networking Fundamentals
€32.99
Learn AWS Serverless Computing
€32.99
Total 98.97 Stars icon
Banner background image

Table of Contents

19 Chapters
Section 1: Why We're Here Chevron down icon Chevron up icon
The Evolution of Compute Chevron down icon Chevron up icon
Event-Driven Applications Chevron down icon Chevron up icon
Section 2: Getting Started with AWS Lambda Functions Chevron down icon Chevron up icon
The Foundations of a Function in AWS Chevron down icon Chevron up icon
Adding Amazon API Gateway Chevron down icon Chevron up icon
Leveraging AWS Services Chevron down icon Chevron up icon
Going Deeper with Lambda Chevron down icon Chevron up icon
Section 3: Development Patterns Chevron down icon Chevron up icon
Serverless Framework Chevron down icon Chevron up icon
CI/CD with the Serverless Framework Chevron down icon Chevron up icon
Section 4: Architectures and Use Cases Chevron down icon Chevron up icon
Data Processing Chevron down icon Chevron up icon
AWS Automation Chevron down icon Chevron up icon
Creating Chatbots Chevron down icon Chevron up icon
Hosting Single-Page Web Applications Chevron down icon Chevron up icon
GraphQL APIs Chevron down icon Chevron up icon
Assessment Chevron down icon Chevron up icon
Other Books You May Enjoy Chevron down icon Chevron up icon

Customer reviews

Rating distribution
Full star icon Full star icon Full star icon Full star icon Empty star icon 4
(5 Ratings)
5 star 60%
4 star 0%
3 star 20%
2 star 20%
1 star 0%
Rajib Das Aug 14, 2020
Full star icon Full star icon Full star icon Full star icon Full star icon 5
I read it through the packet subscription. This is a great introduction to this subject plus I really liked the writing style. My recommendation is to buy it here or go for a packet subscription which is only quite cheap.
Amazon Verified review Amazon
Mike Lewis Feb 09, 2020
Full star icon Full star icon Full star icon Full star icon Full star icon 5
Amazing book. takes the reader from simple steps to actually building Lamdba functions in a few chapters. great foundational knowledge. you will go from 'zero to hero' with this book. cannot recommend it enough. Awesome read
Amazon Verified review Amazon
Alex Thomson Feb 26, 2020
Full star icon Full star icon Full star icon Full star icon Full star icon 5
This is a very useful guide for best-practices when designing and implementing server-less solutions on AWS. It has plenty of REAL WORLD use-cases and examples, and is surprisingly easy to read. 100% recommend
Amazon Verified review Amazon
Jason in Chicago Jul 06, 2021
Full star icon Full star icon Full star icon Empty star icon Empty star icon 3
Just read Full Stack Serverless from O’Reilley (good) before this (meh) and it seemed more useful for AWS + JS with about half the pages.The Packt series seems to be focused on the Serverless Framework (SF) as opposed to AWS Amplify which seems better for an AWS focused project. Maybe SF was better when these Packt books were written, but my noob opinion is that Amplify is better.In the book I liked the examples seemed both simpler and more useful. In this book many examples seemed more like complicated “hello world” by comparison.
Amazon Verified review Amazon
marcuscassius Oct 17, 2020
Full star icon Full star icon Empty star icon Empty star icon Empty star icon 2
It might be a good beginners guide if you're a developer and know a language already. The flurry of terms I was expected to know was overwhelming. I tried rereading this four and five times to figure out what he was talking about and got completely lost. This is not a beginners book.
Amazon Verified review Amazon
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

What is included in a Packt subscription? Chevron down icon Chevron up icon

A subscription provides you with full access to view all Packt and licnesed content online, this includes exclusive access to Early Access titles. Depending on the tier chosen you can also earn credits and discounts to use for owning content

How can I cancel my subscription? Chevron down icon Chevron up icon

To cancel your subscription with us simply go to the account page - found in the top right of the page or at https://subscription.packtpub.com/my-account/subscription - From here you will see the ‘cancel subscription’ button in the grey box with your subscription information in.

What are credits? Chevron down icon Chevron up icon

Credits can be earned from reading 40 section of any title within the payment cycle - a month starting from the day of subscription payment. You also earn a Credit every month if you subscribe to our annual or 18 month plans. Credits can be used to buy books DRM free, the same way that you would pay for a book. Your credits can be found in the subscription homepage - subscription.packtpub.com - clicking on ‘the my’ library dropdown and selecting ‘credits’.

What happens if an Early Access Course is cancelled? Chevron down icon Chevron up icon

Projects are rarely cancelled, but sometimes it's unavoidable. If an Early Access course is cancelled or excessively delayed, you can exchange your purchase for another course. For further details, please contact us here.

Where can I send feedback about an Early Access title? Chevron down icon Chevron up icon

If you have any feedback about the product you're reading, or Early Access in general, then please fill out a contact form here and we'll make sure the feedback gets to the right team. 

Can I download the code files for Early Access titles? Chevron down icon Chevron up icon

We try to ensure that all books in Early Access have code available to use, download, and fork on GitHub. This helps us be more agile in the development of the book, and helps keep the often changing code base of new versions and new technologies as up to date as possible. Unfortunately, however, there will be rare cases when it is not possible for us to have downloadable code samples available until publication.

When we publish the book, the code files will also be available to download from the Packt website.

How accurate is the publication date? Chevron down icon Chevron up icon

The publication date is as accurate as we can be at any point in the project. Unfortunately, delays can happen. Often those delays are out of our control, such as changes to the technology code base or delays in the tech release. We do our best to give you an accurate estimate of the publication date at any given time, and as more chapters are delivered, the more accurate the delivery date will become.

How will I know when new chapters are ready? Chevron down icon Chevron up icon

We'll let you know every time there has been an update to a course that you've bought in Early Access. You'll get an email to let you know there has been a new chapter, or a change to a previous chapter. The new chapters are automatically added to your account, so you can also check back there any time you're ready and download or read them online.

I am a Packt subscriber, do I get Early Access? Chevron down icon Chevron up icon

Yes, all Early Access content is fully available through your subscription. You will need to have a paid for or active trial subscription in order to access all titles.

How is Early Access delivered? Chevron down icon Chevron up icon

Early Access is currently only available as a PDF or through our online reader. As we make changes or add new chapters, the files in your Packt account will be updated so you can download them again or view them online immediately.

How do I buy Early Access content? Chevron down icon Chevron up icon

Early Access is a way of us getting our content to you quicker, but the method of buying the Early Access course is still the same. Just find the course you want to buy, go through the check-out steps, and you’ll get a confirmation email from us with information and a link to the relevant Early Access courses.

What is Early Access? Chevron down icon Chevron up icon

Keeping up to date with the latest technology is difficult; new versions, new frameworks, new techniques. This feature gives you a head-start to our content, as it's being created. With Early Access you'll receive each chapter as it's written, and get regular updates throughout the product's development, as well as the final course as soon as it's ready.We created Early Access as a means of giving you the information you need, as soon as it's available. As we go through the process of developing a course, 99% of it can be ready but we can't publish until that last 1% falls in to place. Early Access helps to unlock the potential of our content early, to help you start your learning when you need it most. You not only get access to every chapter as it's delivered, edited, and updated, but you'll also get the finalized, DRM-free product to download in any format you want when it's published. As a member of Packt, you'll also be eligible for our exclusive offers, including a free course every day, and discounts on new and popular titles.