社交网络程序的架构是怎样的?
例如,当马克·扎克伯格在一次采访中说他在两周内写出了 Facebook 时,他究竟(或至少大约)写了什么?我想象大型数据库或树中的“用户”对象能够协商与其他用户对象的链接,但我想知道树的总体管理器是如何工作的。当用户登录时,“主”程序是否查找该用户的对象并用它分叉一个进程,以便在用户登录时与其他用户对象交互?谢谢。
For instance, when Mark Zuckerberg says in an interview that he wrote Facebook in 2 weeks, what exactly (or at least approximately) did he write? I imagine "user" objects in a big database or tree with the ability to negotiate links to other user objects, but I'm wondering how the overarching manager of the tree works. When a user log in, does the "main" program look up that user's object and fork off a process with it to interact with other user object while the user is logged in? Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
你有点绕着一个我觉得你不理解的话题跳舞。要了解他如何编写 Facebook,您需要了解:
了解这三个主题,它就会成为焦点。
You're kindof dancing around a topic that I don't feel you understand. To understand how he wrote Facebook, you need to know:
Learn those three topics, and it will come into focus.
您必须指定应用程序的范围,“社交应用程序”的定义过于笼统,无法详细指定架构。用户关系只是这样一个系统的一部分:消息传递、群组、评级等。您必须定义参与方面、社交图和存在。您通常构建一个专注于策略而不是实施细节的应用程序。
You have to specify the scope of the application, "social app" is too generic a definition to specify an architecture in detail. User relations is just a part of such a system: messaging, groups, ratings, etc. you have to define the participation aspect, the social graph and presence. You usually build an app focusing on a strategy rather than the implementation details.