Social Networking backend architecture

前端 未结 6 996
鱼传尺愫
鱼传尺愫 2021-02-06 19:04

Ideally, where would an application like Facebook store its \"Friends\" data? In a database table? in an xml file?

6条回答
  •  孤独总比滥情好
    2021-02-06 19:41

    Most probably it should contain some other mechanism. As an example a search engine does not keep its index as a database or XML file. To obtain a maximum performance generally they keep some tree (Binary search tree or more complicated one) and store them on disk in performance effective manner. So I guess such mechanism.

提交回复
热议问题