first part of Distributed Systems for Fun and Profit chapter 1
This chapter talks about some basic concepts of distributed systems, such as performance and availability.
Distributed systems are constrained by two physical factors:
the number of nodes (which increases with the required storage and computation capacity)
the distance between nodes (information travels, at best, at the speed of light)
Working within those constraints:
an increase in the number of independent nodes increases the probability of failure in a system (reducing availability and increasing administrative costs)
an increase in the number of independent nodes may increase the need for communication between nodes (reducing performance as scale increases)
an increase in geographic distance increases the minimum latency for communication between distant nodes (reducing performance for certain operations)
At first glance, I think more nodes bring more benefits rather than problems. I think as the traffic can be divided to different nodes, then the problem of computing(the traffic cost a lot of time for CPU) can be tackled. I just ignored the failure and the communication part of a distributed system!
3.
tip:
how to solve bugs in an old system?
First, find all the classes and methods that are related to the bug.
Second, read the code and the call method.
Third, add some logs and run the code.(mock or write a main method)