Skip to Content
Cloud Computing, 2nd Edition
book

Cloud Computing, 2nd Edition

by Kris Jamsa
March 2022
Intermediate to advanced
400 pages
10h 10m
English
Jones & Bartlett Learning
Content preview from Cloud Computing, 2nd Edition

Understanding Web-Service Performance

Primarily because of their distributed nature, web services provide advantages to developers, the most important of which is ease of code reuse. The cost of a web service’s distributed processing is performance. Because the web services require network operations, the web service will be considerable slower than a program’s call to a function that resides on the same computer. Consider, for example, the following C# program that determines the square root of the values 1 to 1000:

The program reads as follows: Line 1: using System semi colon. Line 2: name space Console Application 1. Line 3: open brace. Line 4: class Program. Line 5: open brace. Line 6: static void Main open parenthesis string open bracket close bracket args close parenthesis. Line 7: open brace. Line 8: long Starting Ticks equals Date Time dot Now dot Ticks semicolon. Line 9: for open parenthesis double i equals 0.0 semicolon i less than 1000.0 semicolon i equals i plus 1.0 close parenthesis. Line 10: open brace. Line 11: double Discard equals Math dot S q r t open parenthesis i close parenthesis semicolon. Line 12: close brace. Line 13: long Ending Ticks equals Date Time dot Now dot Ticks semicolon. Line 14: long Ticks Required equals open parenthesis Ending Ticks minus Starting Ticks close parenthesis semicolon. Line 15: Console dot Out dot Write Line open parenthesis double quotes Ticks required colon double quote plus Ticks Required dot. Line 16: To String open parenthesis close parenthesis close parenthesis semicolon. Line 17: Console dot Read Line open parenthesis close parenthesis semicolon. Line 18: close brace. Line 19: close brace. Line 20: close brace.

The program, in this case, simply tracks how long it takes to perform its processing and then displays output similar to the following: ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Cloud Computing

Cloud Computing

Gopal Shyam
Cloud Computing For Dummies, 2nd Edition

Cloud Computing For Dummies, 2nd Edition

Judith S. Hurwitz, Daniel Kirsch

Publisher Resources

ISBN: 9781284233988