Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Building Serverless Web Applications

You're reading from   Building Serverless Web Applications Develop scalable web apps using the Serverless Framework on AWS

Arrow left icon
Product type Paperback
Published in Jul 2017
Publisher Packt
ISBN-13 9781787126473
Length 354 pages
Edition 1st Edition
Languages
Tools
Concepts
Arrow right icon
Author (1):
Arrow left icon
Diego Zanon Diego Zanon
Author Profile Icon Diego Zanon
Diego Zanon
Arrow right icon
View More author details
Toc

Developing the backend


After this overview of architectures, we can start building the backend. In this sample, which is only an experiment, I've opted for the monolith architecture because it reduces the cold start delays and our backend logic is very small. In your solution, you need to think about the use cases and weigh the benefits and drawbacks of each option.

Defining the functionalities

In the previous chapter, we developed the frontend and hardcoded some data to display static pages. Now, we are going to create the backend to expose the necessary information that will be used by the frontend. Take a look at the following frontend views and what functionalities they will need from the backend:

  1. Home page: This page requires a list of all available products to display
  2. Product details: This page requires the detailed information about a product, including the list of user comments
  3. Shopping Cart: This page needs to display the selected products and allow the user to save or checkout the cart...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image