RPC Flashcards

1
Q

What’s the motivation for RPC?

A

There are any steps in doing Remote IPC are the same across many applications, writing RPC reduces overhead when writing these applications

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are some of the design points for RPC?

A
  1. Binding (global registry, or machine-based registry)
  2. Error handling
  3. Language spec - can be language specific or agnostic
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

How is Sun RPC designed?

A
  1. binding - machine-based, you must know in advanced. 2. error handling - verbose + error codes
  2. language agnostic - XDL
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

How are strings and arrays encoded in Sun RPC?

A

length + data (str has /0)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What are the types of DFS?

A
  • Replicated - all files stored on all machines
  • Partitioned - each server stores subset of files
  • Both - partition the files and replicate each partition

Can be P2P or client-server

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Best implementation of remote file system

A
  • allow clients to store blocks of files locally to reduce traffic to/from server
  • frequently update server
    (-) makes code more complicated
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Pros/cons of stateful / stateless file systems

A

stateless - easy to maintain/write/recover from failure, cannot use caching
stateful - can support locking/cache/sync, higher overheads, harder to recover from failure

How well did you know this?
1
Not at all
2
3
4
5
Perfectly