Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

RE: [PHP] Web application architecture (subdomain vs. sub directory)

2 views
Skip to first unread message

tedd

unread,
Aug 26, 2010, 11:40:55 AM8/26/10
to Bob McConnell, php-g...@lists.php.net
At 9:58 AM -0400 8/26/10, Bob McConnell wrote:
>From: tedd
>
> >
>> 4. Host? Roll the dice like the rest of us.
>
>Before you can select a hosting provider, define what you want. Are you
>looking for a cage with power and network connections, a VM that you can
>load up and manage, or a fully managed server environment? UPS or
>generator? What about backup and failover? Do you need redundant network
>connections? There is a wide range of options here that are not easy to
>evaluate. We have used a variety of different hosts through the years as
>our needs and requirements changed. Our current one is fully managed,
>guarantees PCI compliance and is very expensive. But it is still less
>than the FTE we would have to hire to do it all ourselves. We have more
>than 100 client sites on that cluster of servers.
>
>Depending on your size, it may be worth considering hiring a consultant
>to walk you through this process the first time. It could save you a lot
>of mistakes, time and money.
>
>Bob McConnell


Which I am sure is good advice.

Cheers,

tedd

--
-------
http://sperling.com/

tedd

unread,
Aug 26, 2010, 9:41:33 AM8/26/10
to Tim Martens, php-g...@lists.php.net
At 1:45 PM -0500 8/25/10, Tim Martens wrote:
>Hi Everyone,
>
>New to the list. Hello!
>
>I'm in the customer discovery phase for a Health IT web application concept
>I have. My programmer is new to web apps, but not to programming and is set
>up with LAM(PHP). We're still debating weather to use a framework or to go
>with Rasmus's "no framework framework" approach.
>
>Language/Framework decisions aside... my main question is about subdomain (
>customerx.appname.com vs subdirectory (appname.com/customerx/) models for
>instances of individual customers' accounts.
>
>It seems most people are opting for the former -- is this but a trebd? --
>but I see flickr use the latter. The guys at Particletree (i.e., Wufoo)
>wrote a blog post about it (
>http://particletree.com/notebook/subdomains-development-sucks/) years ago to
>which they still attest.
>
>They say the subdirectory model is much easier and faster to develop and
>deploy. We are developing locally on our macs and will be using
>Mecurial/Bitbucket for CVS.
>
>I'm really lost on this issue as all my searches turn up stuff on SEO/SEM.
>Is one approach easier that the other? What about security and scalability
>considerations? I would very much appreciate your opinions as to the pros
>and cons of each approach.
>
>As an aside, does anyone have some advice about rapid PHP deployment, i.e.,
>pushing new features to production daily in micro iterations vs the typical
>milestone approach? Are there any good tools for this? What about hosts?
>
>Thanks all,
>
>Tim

Tim:

My recommendations:

1. No framework. Learn one thing, namely what you want to do and not
two (i.e., "what you want to do" and a "framework"). I did not know
that Rasmus said that, but I listen to what he says.

2. Use directories. They are much simpler to use and easy to
create/change/delete/scale/make-secure. -- SEO stuff does not apply
here.

3. Investigate "Agile" development.

4. Host? Roll the dice like the rest of us.

Cheers,

tedd

unread,
Aug 26, 2010, 9:46:47 AM8/26/10
to Tim Martens, php-g...@lists.php.net
At 4:45 PM -0500 8/25/10, Tim Martens wrote:
>Thanks for all your answers. To clarify my question, I'm looking for advice
>regarding how best to set up users for a web app, e.g., username.myapp.comvs
>myapp.com/username and the pros and cons of each. All users will be using
>essentially the same app that will have their data in their account. I can
>see the logic of setting up subdomain for things like a universal login and,
>say, metrics for example.
>
>Is javascripting more difficult across subdomains? Is one approach beter in
>terms of security? Essentially the entire app will be running on https.
>
>Thanks again!
>
>Tim


Tim:

That's a different question -- you should post another question
rather than continue the old thread regarding something else.

Bob McConnell

unread,
Aug 26, 2010, 9:58:08 AM8/26/10
to php-g...@lists.php.net
From: tedd

Before you can select a hosting provider, define what you want. Are you

Tim Martens

unread,
Aug 26, 2010, 2:18:51 PM8/26/10
to php-g...@lists.php.net
Thank you everyone for your generous feedback. It's given me a lot to think
about. I now realize that my question has as much to do with DNS and Apache
as with PHP. As we clarify the functionality and essence of the app, I'll
post again with more focussed questions.

Based on advice here and elsewhere, I think we're tending toward a an "no
framework" MVC approach and sub-directory model to get started. As Per so
elegantly stated "The subdirectory approach is easily rewritten to an
internal subdomain
structure." So if we need to pivot to a subdomain model we can do so.

Tim

Per Jessen

unread,
Aug 27, 2010, 2:22:39 AM8/27/10
to php-g...@lists.php.net
Tim Martens wrote:

> Based on advice here and elsewhere, I think we're tending toward a an
> "no framework" MVC approach and sub-directory model to get started. As
> Per so elegantly stated "The subdirectory approach is easily rewritten
> to an internal subdomain
> structure." So if we need to pivot to a subdomain model we can do so.

Just to clarify - I meant rewritten as in Apache URL rewriting.

--
Per Jessen, Zürich (20.4°C)

0 new messages