11. Fallacies of Distributed Computing
● the network is reliable
● latency isn't a problem
● bandwidth isn't a problem
● the network is secure
● topology won't change
● the administrator will know what to do
● transport cost isn't a problem
● the network is homogeneous
● the system is atomic/monolithic
● the system is finished
● business logic can and should be centralized
18. The way you should be doing things should be
easy and the way you shouldn't do things should
be difficult.
-- Ryan Dahl, original Node.js presentation, JSConf 2009
80. C-C-C-C-C-Callback!
Bob worker using callback
callback will reply to
if sender provides it sender
New Carl worker
by convention, the first
parameter is always an error
81. C-C-C-C-C-Callback!
Bob worker using callback
callback will reply to
if sender provides it sender
New Carl worker
by convention, the first second param is
parameter is always an error the response
82. C-C-C-C-C-Callback!
Bob worker using callback
no error callback will reply to
if sender provides it sender
New Carl worker
by convention, the first second param is
parameter is always an error the response
83. C-C-C-C-C-Callback!
Bob worker using callback
sandwich response callback will reply to
no error
if sender provides it sender
New Carl worker
by convention, the first second param is
parameter is always an error the response