web applications architecture Flashcards
what is web applications architecture
a framework that defines interactions between different components of a web application
what are the 3 components of a web application
front end; client side
back end; server side
database
front end
handles user interface and experience
back end
processes business logic, handles data storage and interacts with the db
database
stores and manages application data
what is the primary function of web servers
deliver web pages to networked clients
what do webservers do
they are software that take a request in http format for a resource over a network then serves it back to the client as a payload to a http response
request response cycle
client request, the server processing and the response delivery
how does the client server model work
client requests data and services from the server
server processes requests and returns the appropriate response
what is the role of http in the client server model
protocols the facilitate the interaction
what are the four main types of web application architecture
monolothic
micro services
single and multi page applications
monolithic architecture
a single indivisible unit with all components interconnected
the backend front end and db are tightly coupled
how does the server and client interact in a monolithic architecture
the server sends complete html pages to the client for every user request
+ monolithic architecture
simpler to develop and deploy
easier debugging
– monolithic architecture
scalability issues; harder to update and maintain
microservices architecture
small independent services that communicate via apis
+ microservices architecture
scalability and flexibility in using different technologies
– microservices architecture
complexity in management and deployment
single page applications
the entire front end is uploaded initially and subsequent interactions happen without full page reloads
how is content updated in single page applications
by making api calls to the backend
+ single page applications
faster user experience and reduces server load
– single page api
search engine optimisation (seo) challenges; initial load time can be high
multi page applications
multiple pages each loaded separately from the server
how do multi page applications work
when users navigate to different pages the browser sends a request to the server which returns a new html page for each request