Building Cloud Services with the Java Spring Framework Flashcards
How we can increase computing power of mobile device?
use cloud servers
… provides connection between mobile device and cloud servers
Communication protocol
… is a message format
Syntax
… is a meaning of the messages
Semantics
… is a duration of operation
Timing
One of the most popular communication protocol in the Internet
HTTP
HTTP abbreviation means
HyperText Transfer Protocol
What HTTP provide?
Client-server interaction
How Client-server interaction looks like?
Client sends request and gets response from the server
Server has a … that can be accessible for client
series of resources
server сan be accessible for mobile services, browsers and ..
IoT (internet of things)
Why HTTP can be used as communication protocol?
everyone use it on web cites
its about transform HTTP to another necessary formats
Data Marshalling
What can provide work with millions clients simultaneously
Load Balancing infrastructure
What standard Java application make?
series of commands
What does standard Java application analyze?
command line parameters («flags)
What about does standard Java application notify user?
results or bugs were happen
Where does standard Java application store resources?
Database/local file system
What is an issue with communication with remote service?
Resources are remotely
What does HTTP method GET do?
Retrieve info from a server
What does HTTP method POST do?
Send a big amount of info to the server
What does HTTP method PUT do?
Save some info to the server
What does HTTP method DELETE do?
Delete some resources from the server
2 main parts of HTTP methods
method and path to the resource
Extra info to help server handle the request is placed in …
Header
Important info to process request is placed in
Body
… line consists method and path to the resource
Request
Mandatory block in HTTP request is
Header
Optional block in HTTP request is
Body
Where language should be placed?
Header
Where character set should be placed?
Header
Where content type should be placed?
Header
Where cookies should be placed?
Header
URL abbreviation means
Uniform Resource locate
Show example of URL
http://host:port/path
protocol http
server host
port port
path
What sign show that you can put your params in URL?
?
Show example of query params
?a=b
key a
value b
Which sign allows to send multiple key-value pairs in URL?
&
Show example of multyple query params
?a=b&c=d
What is Mime types?
information how other side should interpret information
in request or response
Give an example of mime type
text/plain
image/png
How mime type is used in content type?
Content type in header can show body which mime type should be used
There are 2 mechanism to send data: URL parameters and …
Message body