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
2
Q
What are some of the design points for RPC?
A
- Binding (global registry, or machine-based registry)
- Error handling
- Language spec - can be language specific or agnostic
3
Q
How is Sun RPC designed?
A
- binding - machine-based, you must know in advanced. 2. error handling - verbose + error codes
- language agnostic - XDL
4
Q
How are strings and arrays encoded in Sun RPC?
A
length + data (str has /0)
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
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
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