Uploaded by Mona Alzaid

Assignments 3-IT405 mona

advertisement
College of Computing and Informatics
Assignment 3
Deadline: Sunday 05/04/2020@ 23:59
[Total Mark for this Assignment is 5]
Student Details:
Name: Mona Saud Alzaid
ID: 150042735
CRN: 21426
Instructions:










You must submit two separate copies (one Word file and one PDF file) using the Assignment Template on
Blackboard via the allocated folder. These files must not be in compressed format.
It is your responsibility to check and make sure that you have uploaded both the correct files.
Zero mark will be given if you try to bypass the SafeAssign (e.g. misspell words, remove spaces between
words, hide characters, use different character sets or languages other than English or any kind of
manipulation).
Email submission will not be accepted.
You are advised to make your work clear and well-presented. This includes filling your information on the cover
page.
You must use this template, failing which will result in zero mark.
You MUST show all your work, and text must not be converted into an image, unless specified otherwise by
the question.
Late submission will result in ZERO mark.
The work should be your own, copying from students or other resources will result in ZERO mark.
Use Times New Roman font for all your answers.
Pg. 01
Learning
Outcome(s):
Recognize the
main elements of
portals
Ошибка! Используйте вкладку "Главная" для
применения Heading 1 к тексту, который должен
здесь отображаться.
Question One
1.5 Marks
What is the difference between synchronous and asynchronous web methods?
Give an example of synchronous and asynchronous web methods? How can
we transform a synchronous web method to asynchronous web methods?
development.
a synchronous client is if I make a function call or if I made a method call whether this is a
network call or is it local call or a server fetching something if I decided as a client as a front it
to wait and tell I got a result back from the server or from that method or from that function
then I am acting as a synchronous client and asynchronous never Waits and anything resin wait
for a call to come back in order to execute the rest of that code
When we talk about synchronous code will start at the very top of a file and execute all the
way down to the bottom of file each line in order until it gets to the bottom and it will stop a
circulars code starts out very similar we'll start at the top of the file and execute the code until
it gets to the bottom but during that execution it'll run into certain asynchronous functions or
code or it will split off and execute that asynchronous code separately from the rest of the code
and that's usually because it needs to wait reduce some operation that takes a long period of
time
Example for a synchronous :YouTube , so when you upload a video on an app like youtube for
example so how will it behave if it's written in a synchronous way you will get all right you
will hit upload and that's it, your screen will be blocked, you cannot do anything you cannot
just change the title, you can't do anything because you hit upload you have to wait because it's
calling a function and it's waiting
but in asynchronous in the backend it's just there is a thread executing and doing its thing and
however your ui is unblocked
Async callbacks have been around since .NET version 1 and are a common way to call a Web
service asynchronously. The process of making an async callback starts with calling a Web
service proxy object s BeginXXX method, where XXX represents the actual method being
called (BeginGetCustomerData, for instance). When calling BeginXXX, you supply the
Pg. 02
Ошибка! Используйте вкладку "Главная" для
применения Heading 1 к тексту, который должен
здесь отображаться.
parameter data needed by the Web service, an AsyncCallBack instance that points to a callback
method, and any state information that the callback method may need to use.
Pg. 03
Learning
Outcome(s):
Evaluate the
effectiveness of
Ошибка! Используйте вкладку "Главная" для
применения Heading 1 к тексту, который должен
здесь отображаться.
Question Two
2 Marks
What is web cache? How a web cache work? Give an example of how a web
cache can assist a web portal (considering any busy website, explain how
caching can improve its performance)
portals.
Caching refers to storing the result of an operation so that future request return faster.
Basically, if you do something once you know whether it's a database query or
rendering some HTML or you know, anything that might be slow. You store the
results so you don't have to do the computation a second time instead you can
reference the previous result.
when do we cache? We cache things when the underlying computation is slow, when
the underlying computation will run multiple times. When the output of said
computation is the same for a particular input, so that we know you know, we don't
have to recompute it every time, because it's going to be the same every time; the
output of this computation.
So when you enter an ecommerce website and save some products in cart the session
will be cached and when you visit the online store again will be upoloading faster and
all previous information are cached like product in cart and visited or related products
and that’s improves performance and user experience as well
Pg. 04
Learning
Outcome(s):
Evaluate the
Ошибка! Используйте вкладку "Главная" для
применения Heading 1 к тексту, который должен
здесь отображаться.
Question Three
1.5 Marks
Marks
What is a reasonable web hosting configuration? Draw/picture a
typical configuration. Give any two reasons why is it a reasonable configurations?
effectiveness of
portals.
Web hosting is a service that allows organizations and individuals to post a website or
web page on to the Internet. A web host, or web hosting service provider, is a business
that provides the technologies and services needed for the website or webpage to be
viewed in the Internet. Websites are hosted, or stored, on special computers called
servers.
When Internet users want to view your website, all they need to do is type your
website address into their browser. Their computer will then connect to your server
and your webpages will be delivered to them through the browser.
Most web hosting companies require that you own your domain name in order to host
with them. If you do not have a domain name, the web hosting companies will help
you purchase one.
Download