I am trying to understand the fundamental differences between client-server and peer-to-peer (P2P) networks. My questions are:
- How do these network architectures affect security, scalability, and performance?
- What are the advantages and disadvantages of each model?
- In what scenarios would you choose client-server over P2P and vice versa?
Examples of real-world applications using both architectures would be helpful.