Unit-2 Issue of Web Technology
Unit-2 Issue of Web Technology
● HTML-The Content Layer: The content layer is where you store all the
content that your customers want to read or look at. This includes text and
images as well as multimedia. It is also important to make sure that every
aspect of your site is represented in the content layer.
● CSS- The Styles Layer: Store all your styles for website in an external style
sheet. This defines the way the pages should look, and you can have separate
style sheets for various media types. Store your CSS in an external style
sheet so that you can get the benefits of the style layer across the site.
When you are creating a web page, it is important to keep the layers separate.
Using external style sheets is the best way to separate your content from your
design. And the same is true for using external Javascript files.
● Faster downloads: Once the script or style sheet has been downloaded by
customer the first time, it is cached. Then every other page that is
downloaded loads more quickly in the browser window.
● Accessibility: External style sheets and script files are more accessible to
more browsers, because they can be ignored more easily, and because they
provide more options. For example, you can set up a style sheet that is
displayed only for screen readers or a script library that only used by people
on cell phones.
● Backwards compatibility: When you have a site that is designed with the
development layers, it will be more backwards compatible because browsers
that can use technology like CSS , Javascript can still view HTML.
Tier Technology:
A tier technology is a software architecture in which different software
components, organized in tiers (layers), provide dedicated functionality. Three
layers involved in the application namely Presentation Layer, Business Layer and
Data Layer are discussed below:
● Presentation Layer: It is also known as Client layer is the top most layer of
an application. This is the layer we see when we use software. By using this
layer we can access the web pages. The main functionality of this layer is to
communicate with Application layer. This layer passes the information
which is given by the user in terms of keyboard actions, mouse clicks to the
Application layer. For example: login page of Gmail where an end user
could see text boxes and buttons to enter user id, password and to click on
sign-in.
1-Tier Architecture:
For instance, we have an application which is having only 2 layers. Examples are
Excel files, MS word, etc. In order to work with these applications, users don’t
need the internet. When the user opens the file and fills it with some data and saves
it, it will be saved in a file system. It’s saved in the file system on a computer hard
drive.
So, here, there are only two components in the architecture namely client computer
and file server which is nothing but a hard drive. Since the whole process takes
place inside a single computer, it’s called 1-Tier architecture.
This architecture consists of 2 layers namely the Client layer and the database
layer. When the user opens the form through the client and saves it after
inserting/modifying it, the changes happen in the database layer. Since the client
and database servers are in different systems, it’s called 2-Tier architecture. Not
only there can be one client but also many clients can be connected to the same
database server. In this also no need for a network just LAN is enough. Usually, in
banks, this kind of architecture is followed (At the end of the day the stored
transactions in the local server will be moved to the main server).
The client-side (or simply, client): it is the application that runs on the end-user
computer; it provides a user-interface (UI) that handles what the application feels
and looks like and how it interacts with end-user. It may employ and consume
resources on the user's machine (computing device) such as temporary and local
storage, etc.
The server-side (or simply, server): it is the application that receives requests
from the clients, and contains the logic to send the appropriate data back to the
client. Instead of user-interface, the server usually has an application programming
interface (API). Moreover, the server often includes a database, which will
persistently store all of the data for the application.
Whenever the web application came into the market, this architecture became
popular. In this, we have a client layer which is nothing but a browser, a database
server where all the data gets stored, and in between both, there will be another
layer named the business logic layer.
As soon as the user sends the request through a client (browser), the corresponding
business logic will get executed. The business logic layer contains business logic in
the form of programs. Depending on the request corresponding business logic gets
triggered and will be sent to the database server. Business logic will give the
response to the client which comes from the database server.
API testing depends on the business logic layer. Usually, this layer is known as an
application server or web server, and the client layer is known as the presentation
layer. The Internet is needed for this type of architecture.
In this architecture, the entire application is organized into three computing tiers
Presentation tier
Application tier
Data-tier
Presentation Tier (Client Tier): It is the user interface and topmost tier in the
architecture. Its purpose is to take request from the client and displays information
to the client. It communicates with other tiers using a web browser as it gives
output on the browser. If we talk about Web-based tiers then these are developed
using languages like- HTML, CSS, JavaScript.
Data Tier (Database Tier): It is the last tier of the architecture also known as the
Database Tier. It is used to store the processed information so that it can be
retrieved later on when required. It consists of Database Servers like- Oracle,
MySQL, DB2 (Developed by IBM), SQLite, MangoDB, etc. The communication
between the Presentation Tier and Data-Tier is done using middle-tier i.e.
Application Tier.
Tiers are physically separated, running on separate machines. A tier can call to
another tier directly, or use asynchronous messaging (message queue). Although
each layer might be hosted in its own tier but that's not required. Several layers
might be hosted on the same tier. Physically separating the tiers improves
scalability and resiliency, but also adds latency from the additional network
communication.
Web Browser: A web browser is application software for accessing the World
Wide Web or a local website. When a user requests a web page from a particular
website, the web browser retrieves its files from a web server and then graphically
renders the page on the user's
Web Server: A Web server handles the HTTP protocol. When the Web server
receives an HTTP request, it responds with an HTTP response, such as sending
back an HTML page. To process a request, a Web server may respond with a static
HTML page or image, send a redirect, or delegate the dynamic response generation
to some other program such as CGI scripts, JSPs (JavaServer Pages), servlets,
ASPs (Active Server Pages), server-side JavaScripts, or some other server-side
technology. Whatever their purpose, such server-side programs generate a
response, most often in HTML, for viewing in a Web browser.
DBMS: It is the software to create and manage databases, allowing users to create,
read, update and delete data in a database.
Benefits
Portability between cloud and on-premises, and between cloud platforms.
Less learning curve for most developers.
Natural evolution from the traditional application model.
Open to heterogeneous environment (Windows/Linux)
Challenges
It's easy to end up with a middle tier that just does CRUD operations on the
database, adding extra latency without doing any useful work.
Monolithic design prevents independent deployment of features.
Assignment:
End of Unit-2