Question

In: Computer Science

URL routing in relation to server-side development. How does it differ from routing physical files?

URL routing in relation to server-side development. How does it differ from routing physical files?

Solutions

Expert Solution

Answer: Routing is the mechanism by which requests are connected to some code. It is essentially the way we navigate through a website or web-application. By clicking on a link, the URL changes which provides the user with some new data or a new web page.

Server side routing : When browsing, the adjustment of a URL can make a lot of things happen. This will happen regularly by clicking on a link, which in turn will request a new page from the server. This is what we call a server-side route. A whole new document is served to the user.

A server-side request causes the whole page to refresh. This is because a new GET request is sent to the server which responds with a new document, completely discarding the old page altogether.

Advantages :

1. A server-side route will only request the data that’s needed. No more, no less.

2. Because server-side routing has been the standard for a long time, search engines are optimized for web pages that come from the server.

Disadvantages :

1. Every request results in a full-page refresh. That means that unnecessary data is being requested. A header and a footer of a web page often stays the same. This isn’t something you would want to request from the server again.

2. It can take a while for the page to be rendered. However, this is only the case when the document to be rendered is very large or when you have slow internet speed.

This is how URL routing differs in server side than physical files.


Related Solutions

How does the addition of computation on the server side and client side alter Sir Tim...
How does the addition of computation on the server side and client side alter Sir Tim Berners Lee’s original computational model?
What is strategy deployment? How does it differ from strategy development?
What is strategy deployment? How does it differ from strategy development?
How does the representation of knowledge in computers (documents, photos, music, files etc.) differ from the...
How does the representation of knowledge in computers (documents, photos, music, files etc.) differ from the representation of knowledge in humans? How are they similar? Use real-world examples to back up your stance as well as using the Virtual Library for additional research. Do NOT use Wikipedia. Use appropriate academic resources. APA structure and format expected. Use in-text citations and and references Please.
How does a de facto exclusion differ from a regular exclusion? What can a DHCP server...
How does a de facto exclusion differ from a regular exclusion? What can a DHCP server do to enable active conflict detection? What is an Organizationally Unique Identifier (OUI)? That is a client identifier (ClientID)? How does a DHCP client respond if it determines that a leased IP address is already in use?
1) How does a bailment differ from a gift? 2) How does a bailment differ from...
1) How does a bailment differ from a gift? 2) How does a bailment differ from a lease? 3) Give an example of a bailment that is not a contract. Give an example of a bailment that is a contract.
1. How does TLS provide authentication? Does it provide mutual authentication (both client and server-side)? Is...
1. How does TLS provide authentication? Does it provide mutual authentication (both client and server-side)? Is that required? 2.What is the purpose of padding, Message Authentication Code (MAC), handshake protocol, change cyber suite (CCS) protocol? 3.How does TLS provide: confidentiality, availability, integrity, non-repudiation?
How does culture play a role in human development? Does human development differ among cultures? What...
How does culture play a role in human development? Does human development differ among cultures? What are some examples of cultural differences in rites of passage, if any?
Briefly describe the physical, psychosocial, cognitive and motor development of a child in relation to the...
Briefly describe the physical, psychosocial, cognitive and motor development of a child in relation to the development stages mentioned in the table. (in 30 -40 words each) Pre-schooler (3-5 years) 29.1) Physiologic development 29.2) Psychosocial development 29.3) Cognitive development 29.4) Motor development 30) Briefly describe the physical, psychosocial, cognitive and motor development of a child in relation to the development stages mentioned in the table. (in 30 -40 words each) Schooler (5-12 years) 30.1) Physiologic development 30.2) Psychosocial development 30.3)...
How does the roles of TNCs differ in the globalization project and sustainable development?
How does the roles of TNCs differ in the globalization project and sustainable development?
how does urine differ from blood
how does urine differ from blood
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT