社交网络平台架构 [英] Architecture of Social Networking Platforms

查看:26
本文介绍了社交网络平台架构的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我很想知道 Ning、SocialGo 等平台是如何设计的.不是特别针对社交网络平台,而是一般允许用户构建类似网站的平台.

I am curious to know how the platforms like Ning, SocialGo are designed. Not particularly about Social Network Platforms, but generally platforms that allow the users to build similar websites.

我的理解是,当用户注册时,他们会获得一个子域,通过该子域,他们的成员可以注册并访问该特定用户生成的站点.我想有一个通用的数据库结构可以为每个生成站点的用户克隆.

My understanding is when the users register they get a sub domain through which their members can register and access that particular user generated site. I suppose there is a common database structure that is cloned for each user that generates a site.

我想知道当单个站点增长时它们将如何扩展.此外,如果他们引入新功能,他们将如何将其整合到所有可用站点中?比如一个新的特性,需要改变数据库结构,如何对现有的所有站点都做?

I am wondering how they will scale when the individual sites grow. Also if they introduce a new feature, how they will incorporate that to all the available sites? For example, a new feature that requires a change in the database structure, how it can be done to all the existing sites?

是的.我想创造类似的东西.但所有这些复杂性都浮现在我的脑海中.如果有人在开发这种复杂的东西方面有经验,可以分享他们的知识,那就太好了.

Yeah. I want to create something similar. But all these complexities came to my mind. If anyone experienced in developing something this complex could share their knowledge that would be great.

谢谢.

推荐答案

很难猜测 foo 和 bar 公司的架构是什么,但是...我的愿景是为您的操作系统安装虚拟化基础选择与您的惊人社交应用程序捆绑在一起,并预先配置了它自己的数据库集,或链接到主/从集群.

It's quite a bit difficult to guess what is the architecture of foo and bar companies but... my vision is to have a virtualized base install of your operating system of choice bundled with your amazing social app pre-configured on it with it's own database set, or linked to a master/slave cluster.

所以事情是每当用户来注册一个新的社交应用克隆时;您的系统通过基于您的模板创建一个全新的虚拟机来完成这项工作.这可能需要几秒钟的时间来自动配置……好吧,如果该社交网络动摇并需要扩展;只需克隆一些其他虚拟机并将它们绑定在一起即可.vips、缓存、前端和成对的主从数据库.您可以拥有适用于所有人的模板.

So the things is whenever a user comes and register a new socialapp clone; your system do the job by creating a fresh new virtual machine based on your template. This may take a few seconds to auto-config... well and if that socialnet rocks and need to scale; just clone a few other virtual machines and tie them together. vips, cache, front-ends, and pairs of master-slave databases. You can have templates for all.

特别注意,这个虚拟机不需要是一个完整的操作系统;您只能使用 OpenVZ 和朋友 (FreeBSD Jails) 等技术来构建用户空间.

Take special note that this virtual machine does not need to be a fully operating system; you can manage to build userlands only with technologies like OpenVZ and friends (FreeBSD Jails).

也请查看 http://www.opennebula.org.

嗯,这是我的简单 2 美分.我也在学习这个.

Well this are my simple 2 cents. I am learning this as well.

这篇关于社交网络平台架构的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆