Lecture 9 - Web Application Flashcards

(10 cards)

1
Q

What is a web application architecture?

A

A web application architecture is a layout that displays the interactions between different software components, such as frontend, and backend.
- It is the skeleton: a high-level structure that outlines how different software components are organized and interact.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is a 1-Tier web application architecture?

A

1-Tier Architecture: all the software components are available on the same machine
REFER TO SLIDES FOR DIAGRAMS

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is 2-Tier web application?

A

2-Tier Architecture: The client sends the request to the server and the server processes the request and sends the response back to the client
REFER TO SLIDES FOR DIAGRAMS

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is 3-Tier web application architecture?

A
  • Client Tier/Presentation Layer: displays the user interface and manages user interaction.
  • Business Logic Tier/Application server: has all the business logic that dictates how data is handled, and routed between the Client and Database Tiers.
  • Database Tier/Database server: stores data and handles data queries and updates.
    REFER TO SLIDES FOR DIAGRAMS
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is a serverless architecture?

A

Similar to other architecture, comes from client or mobile, AWS API gateway will handle these requests, we then use the appropriate lamda function (based on the business logic) based the will go to the AWS DynamoDB table, which request IAM (provide different access), and then uses cloudwatch to analyse customer behaviour and manage usage.
REFER TO SLIDES FOR DIAGRAMS

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is Complex web application architecture?

A

We can add more layers to the 3-tier architecture:
- Presentation Layer.
- Application Layer.
- Database Layer.
- More layers of services: serve specific tasks or provide additional functionality to the web application.
○ Examples: Caching service, and datawarehouse.
§ Caching service: is used to store frequently accessed data, where the application logic queries the caching service upon user request.
§ Data warehouse: used for data analysis ie analyse customer behaviour

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is Web application design pattern?

A
  • It is a reusable solution regarding how to structure the components and their interaction such as how to organize the business logic, how to handle user requests, or how to separate different services.
    ○ Such as Django
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is an example of a popular design pattern?

A

Model—View—Controller (MVC):
- Model: Maintains the application’s data. It interacts with the database to retrieve, update, and store data.
- View: Provides templates for presenting the data to the user. It handles the layout and visual presentation of the data.
- Controller: Acts as an intermediary between the Model and the View. It processes user inputs, makes calls to the Model to retrieve data, and then selects the appropriate View to display the data. The Controller manages the flow of data and controls the application logic.

REFER TO SLIDES FOR DIAGRAM AND STEPS

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is Django - Example of MVC?

A

Django is an open-source web application framework written in Python.
- Django customizes the MVC design pattern.
REFER TO SLIDES FOR EXAMPLE

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Steps to creating a web based application

A

REFER TO SLIDES

How well did you know this?
1
Not at all
2
3
4
5
Perfectly