Greife auf kostenlose Karteikarten, Zusammenfassungen, Übungsaufgaben und Altklausuren für deinen DistSystems Kurs an der Frankfurt University of Applied Sciences zu.
Name the definitions for distributed Systems.
Autonomous computers are part of distributed system, if they are able to solve problem in the network
-hard- and software components
-based on different but connected computers
-communicate with each other based on specific protocol
-Interchange messages with each other
How do we identify a service
we identify a serive by it´s ip adress + port number
What is the difference between server and service?
The Server is the machine , you can run multiple services on a server
Socket programming using java
-Name the relevant ckasses
-Name the relevant steps
pseudo code
Java : client program
Socket echoSocket = new Socket("127,0.0.1",1117);
OutputStream os = echoSocket.getOutputStream();//setup outgoing bytes
os.println("eineNachricht an den Server");// send a sting over the socket to the server
BufferedReader in = new BufferedReader(new InputStreamReader(echoSocket.getInputStream()));// remember the decorator pattern
sout("echo: "+ in.readLine());
in.close();//close inputstream
out.close();close outputstream
echoSocket.close(); //close connection
java: Server Program
ServerSocket echod = new ServerSocket(1117);// Service is started using port 1117
Socket socket = echod.accept( ); //incoming connection is accepted
InputStream in = socket.getInputStream( ); // stup datastream for incoming bytes
//read from the client using object in
OutputStream out = socket.getOutputStream( );// setup datastream for outgoing bytes
//weite to the client using object out
out.flush( );
in.close( );//close inputstream
out.close( );//close outputstream
socket.close( );//close connection
What ist the difference betweeen a Socket and a ServerSocket?
The Socket represents the clientside the ServerSocket represents the serverside.
what is the difference between char based and byte base streams?
The main difference between Byte Stream and Character Stream in Java is that the Byte Stream helps to perform input and output operations of 8-bit bytes while the Character Stream helps to perform input and output operations of 16-bit Unicode
What are the disadvantages of distributed systems?
Hardware: low cost components usually have a worse quality so blackout is much more possible
Software: complexity will increase , you have to care about distributed computing
Network: bottleneck, possible loss of data
Security: hacker attacks are possible, harder to manage, distributed responsibility
Consistency: You have to take care of data´s actuality
What are the two methods HTTP GET / HTTP POST good for?
They both are good for getting resources from the server
What is the difference between HTTP GET/ HTTP POST?
HTTP GET : It is used to send parameters from the client to the server
The parameters are part of the URL
HTTP POST: parameters are not part of the url, they are part of the body the body is unlimited in it´s size possible to send endless data from the client to the server
What information are written in an HTTP Request / Response header?
Request: Which resources is requested, which language is supported , what is the supported browser type, what was the referring webpage, what charset is supported
Response: Status code, the data of the response what kind of file type ist returned ,what server software is used
What is in the HTTP response body?
The answer/response from the server is sent inthe body of the responseBody
Name the advantage for distributed Systems!
Cost effectiveness: Microprocessor have a better cost/performance ratio than legacy systems
Performance & Reliability: better performance, the blackout of one components doesn´t lead in a blackout of the whole system
Scalability & Flexibility: Incremental increase/decrease of the computing power are possible, as well as load balance
Inherent distributing: a intrinsic advantage. So no one is the owner of the distributed system
shared data & peripheral: using shared data and expensive peripherals like printers etc
Greife kostenlos auf tausende geteilte Karteikarten, Zusammenfassungen, Altklausuren und mehr zu.
Jetzt loslegenFür deinen Studiengang DistSystems an der Frankfurt University of Applied Sciences gibt es bereits viele Kurse, die von deinen Kommilitonen auf StudySmarter erstellt wurden. Karteikarten, Zusammenfassungen, Altklausuren, Übungsaufgaben und mehr warten auf dich!