Serverless Single Page Apps
eBook - ePub

Serverless Single Page Apps

Fast, Scalable, and Available

  1. 212 pages
  2. English
  3. ePUB (mobile friendly)
  4. Available on iOS & Android
eBook - ePub

Serverless Single Page Apps

Fast, Scalable, and Available

About this book

You don't need to manage your own servers to build powerful web applications. This book will show you how to create a single page app that runs entirely on web services, scales to millions of users, and costs less per day than a cup of coffee.

Using a web browser, a prepared workspace, and your favorite editor, you'll build a complete single page web application, step by step. Learn the fundamental technologies behind modern single page apps, and use web standards to create lean web applications that can take advantage of the newest technologies. Deploy your application quickly using Amazon S3. Use Amazon Cognito to connect with providers like Google and Facebook to manage user identities. Read and write user data directly from the browser using DynamoDB, and build your own scalable custom microservices with Amazon Lambda.

Whether you've never built a web application before or you're a seasoned web developer who's just looking for an alternative to complex server-side web frameworks, this book describes a simple approach to building serverless web applications that you can easily apply or adapt for your own projects.

Q&A with author Ben Rady

Q: What does "serverless" mean?
A: Serverless means you, as an application developer, don't need to worry
about managing servers. Your applications can be built on top of web
services, instead of running on servers that you have to configure and
maintain.

Q: So the only benefit to a serverless app is that I don't have to be a part-time sysadmin?
A: Scalability, reliability, and cost are other enormous benefits to
serverless apps. When building on top of Amazon Web Services, you can build
apps that will scale into the millions of users, but cost just a few pennies
per day to run. As your application grows, you can simply allocate more
resources via AWS, without having to re-architect for scale. And if your app
only ever has a handful of users, you'll only pay for what you need. In many
cases, the cost of running these kinds of apps is literally nothing.

Q: How do serverless apps compare to traditional web apps?
A: Traditional web applications, built using MVC frameworks and an
application server, put most of the application logic in the server. The web
app is often just an interface on top of this server, which is responsible
for all the essential functions of the app: storing and processing data,
issuing security credentials, and hosting the core application logic. With
a serverless single page app, you can move the majority of this logic into
the browser. This not only unifies the application, but makes it easier to
integrate with the highly scalable and reliable services provided by vendors
such as Amazon Web Services. Instead of trying to horizontally scale
load-balanced application servers, you can rely on the engineers at AWS to
scale most of your application for you.

Q: What about logic that can't run in the browser?
A: Many applications will have some logic that can't run in a browser,
whether for security reasons, performance reasons, or to protect
intellectual property. In those cases, you can use services like Amazon
Lambda to build services that can be accessed directly from the browser.
Whether you choose to structure your application using isolated
microservices, or build a more integrated service layer, Lambda is a great
way to host application logic that can't be run on the client.

Frequently asked questions

Yes, you can cancel anytime from the Subscription tab in your account settings on the Perlego website. Your subscription will stay active until the end of your current billing period. Learn how to cancel your subscription.
At the moment all of our mobile-responsive ePub books are available to download via the app. Most of our PDFs are also available to download and we're working on making the final remaining ones downloadable now. Learn more here.
Perlego offers two plans: Essential and Complete
  • Essential is ideal for learners and professionals who enjoy exploring a wide range of subjects. Access the Essential Library with 800,000+ trusted titles and best-sellers across business, personal growth, and the humanities. Includes unlimited reading time and Standard Read Aloud voice.
  • Complete: Perfect for advanced learners and researchers needing full, unrestricted access. Unlock 1.4M+ books across hundreds of subjects, including academic and specialized titles. The Complete Plan also includes advanced features like Premium Read Aloud and Research Assistant.
Both plans are available with monthly, semester, or annual billing cycles.
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 1000+ topics, we’ve got you covered! Learn more here.
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more here.
Yes! You can use the Perlego app on both iOS or Android devices to read anytime, anywhere — even offline. Perfect for commutes or when you’re on the go.
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app.
Yes, you can access Serverless Single Page Apps by Ben Rady in PDF and/or ePUB format, as well as other popular books in Computer Science & Application Development. We have over one million books available in our catalogue for you to explore.

Table of contents

  1. Serverless Single Page Apps