Distributed system design
- ACP in 12 years
- Memcached
- Distributed in-memory key-value store for small chunks of arbitrary data
- Membase, later changed to CouchDB
- Caveat:
- Volatile due to eviction, full, service crashing
- Too many items may cause thrashing
- Non-transactional
- UDP vs TCP
- UDP is connection-less protocol and faster than TCP, especially when occasional loss is not a big issue such as video stream, VoIP. UDP is very good for pub-sub used in Tibco. Good for heartbeat too. Packages may arrive out of order. Package based
- TCP has very huge overhead for handshaking and is bytestream based, therefore merging them back is a big overhead. Point-to-point connection has to be maintained
- http://stackoverflow.com/questions/1099672/when-is-it-appropriate-to-use-udp-instead-of-tcp
- Scatter-gather IO
- readv, writev
- facebook uses it cut down CPU by 50%
- Tinyurl
No comments:
Post a Comment