hi, Cant find any information this anywhere so was wondering if anyone had any ideas. Basically when you go to basecamp.com it allows you to sign up for a account and gives you a url username.projectpath.com I was just wondering how they do this, and if each account has there own database or if it is all stored in one. thanks scott -- Posted via http://www.ruby-forum.com/.
Jon Gretar Borgthorsson
2006-Jul-16 22:33 UTC
[Rails] how does base camp manage there accounts
Dunno how basecamp does it. But check out these 2 solutions. http://weblog.rubyonrails.org/2006/05/22/dan-webbs-request-routing-plugin/ http://www.agilewebdevelopment.com/plugins/account_location On 7/16/06, scot <scot@streamd.net> wrote:> hi, > > Cant find any information this anywhere so was wondering if anyone had > any ideas. > > Basically when you go to basecamp.com it allows you to sign up for a > account and gives you a url username.projectpath.com > > I was just wondering how they do this, and if each account has there own > database or if it is all stored in one. > > thanks > scott > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-- -------------- Jon Gretar Borgthorsson http://www.jongretar.net/
> > Cant find any information this anywhere so was wondering if anyone had > any ideas. > > Basically when you go to basecamp.com it allows you to sign up for a > account and gives you a url username.projectpath.com > > I was just wondering how they do this, and if each account has there own > database or if it is all stored in one. > >storing it in one database or not is just a design decision, but considering DHH wrote the account_location plugin ( that sets up subdomains for accounts) it''s probably a safe bet that they store many of them in the same database (for at least one of their apps), although i''m sure there comes a point where one box can only serve so many accounts before experiencing performance degredation. I don''t think the issues of subdomains and databases are really something that should necessarily have any direct connection. The real question is database seperation, and the resulting security benefits and connection overhead issues are something that is important to the design of your application. Account specific subdomains are just windowdressing. -kate = masukomi -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060716/15a160ce/attachment.html