Introduction to Multi-Tenant Architecture Colorado

Learn how to create websites with similar functionality yet different UIs and maintain them across one shared code base using Multi-Tenant Website Architecture.

Local Companies

Greystone Technology Group, Inc.
(303) 757-0779
3801 E. Florida Avenue, Suite 630
Denver, CO
arieLMIS, Inc.
(303) 415-0266
2400 Central Ave., Ste. B
Boulder, CO
Custom Computer Software Systems
303-458-1366
2701 Alcott St
Denver, CO
Rapid Refill Ink
303-292-9465
1719 Wazee St
Denver, CO
Mainsale Software LLC
303-337-1155
750 S Fraser St
Aurora, CO
Verio
(832) 603-2268
8005 South Chester Street, Suite 200
Englewood, CO
Database Link LLC
303 169 1801
7125 E.Townsend Dr.
Denver, CO
Elephant's Task LLC
(303) 284-4854
9250 W. 94th Place
Westminster, CO
Advantage Computer Systems Corp
303-369-5160
2770 S Elmira St
Denver, CO
Ballantyne Computer Service Inc
303-390-2470
999 18th St
Denver, CO

Have you ever built multiple websites that have similar core functionality but really differ only in a few ways, such as layout and UI? This can be costly and time consuming. Instead of copying and pasting code, giving it different namespaces, and then setting each to a different site name, I will discuss an architecture concept referred to as Multi-Tenant Websites, which helps improve upon the scenario I just mentioned. These websites allow developers to create a multitude of sites with slight discrepancies, while maintaining a shared code-base and appearing different to the end-user. I will go into the main concepts that the Multi-Tenant Architecture Utilizes and show some examples of these.



Tenants



The first piece to start with is having a table in your database to map each tenant (NOTE: When I refer to "Tenant," this term can be used interchangeable with "Website" to limit confusion) to an ID. For this case, a simple Database Table with an Identity column and name of the tenant as shown in Figure 1 will be enough.


Figure 1: Table Containing List of Tenants using the website.

This Table will allow you to Map all tenant specific data to its proper tenant.



App URL and App Settings



This next piece is the most critical concept to successfully differentiate websites from each other sharing the same code base and, in most cases, the same database. From the first section, you might wonder how you determine which tenant is active as a user is navigating to its respective site. Well, you can utilize the URL string and create a mapping table of all the possible URLs for the web server and relate it to its corresponding tenant ID (I will demonstrate the mapping later on in the article). Figure 2 illustrates the table used for the mapping.

Read the Rest of this Article at Developer.com

Featured Local Company

Verio

(832) 603-2268
8005 South Chester Street, Suite 200
Englewood, CO
http://www.verio.com/web-osting

Related Articles
- Java Standardization Request 168 Colorado
As an IT professional, it is likely that you have heard portal buzz words including JSR 168 and WSRP. But if you are like many, you may not understand the differences or the benefits of these complementary portal standards.
- Pattern Summaries: Chain of Responsibility Colorado
- GlassFish ESB V2 for SOA Tooling Colorado
- Portal Development Factory Colorado
- Service Oriented Architecture Colorado
- Component Architecture-Based Applications Colorado
- Highly Effective Datacenters Colorado
- Enterprise Java Application Architecture and Design Colorado
Regional Articles
- Introduction to Multi-Tenant Architecture Arvada CO
- Introduction to Multi-Tenant Architecture Aurora CO
- Introduction to Multi-Tenant Architecture Boulder CO
- Introduction to Multi-Tenant Architecture Brighton CO
- Introduction to Multi-Tenant Architecture Broomfield CO
- Introduction to Multi-Tenant Architecture Canon City CO
- Introduction to Multi-Tenant Architecture Castle Rock CO
- Introduction to Multi-Tenant Architecture Colorado Springs CO
- Introduction to Multi-Tenant Architecture Commerce City CO
- Introduction to Multi-Tenant Architecture Denver CO
- Introduction to Multi-Tenant Architecture Durango CO
- Introduction to Multi-Tenant Architecture Englewood CO
- Introduction to Multi-Tenant Architecture Evergreen CO
- Introduction to Multi-Tenant Architecture Fort Collins CO
- Introduction to Multi-Tenant Architecture Fort Morgan CO
- Introduction to Multi-Tenant Architecture Fountain CO
- Introduction to Multi-Tenant Architecture Golden CO
- Introduction to Multi-Tenant Architecture Grand Junction CO
- Introduction to Multi-Tenant Architecture Greeley CO
- Introduction to Multi-Tenant Architecture Lafayette CO
- Introduction to Multi-Tenant Architecture Littleton CO
- Introduction to Multi-Tenant Architecture Longmont CO
- Introduction to Multi-Tenant Architecture Loveland CO
- Introduction to Multi-Tenant Architecture Montrose CO
- Introduction to Multi-Tenant Architecture Morrison CO
- Introduction to Multi-Tenant Architecture Parker CO
- Introduction to Multi-Tenant Architecture Pueblo CO
- Introduction to Multi-Tenant Architecture Sterling CO
- Introduction to Multi-Tenant Architecture Westminster CO
- Introduction to Multi-Tenant Architecture Wheat Ridge CO
Related Articles
- GlassFish ESB V2 for SOA Tooling Colorado
Are you finding it hard to obtain funding to finish building out your Service Oriented Architecture (SOA) technology stack? You may have heard about the Open Source GlassFish Java 5 EE Application Server, but did you know that there is a GlassFish ESB (Enterprise Service Bus) Project that integrates the Open ESB Project? See what it can do for you.
- Enterprise Java Application Architecture and Design Colorado
- Portal Development Factory Colorado
- Service Oriented Architecture Colorado
- Highly Effective Datacenters Colorado
- Java Standardization Request 168 Colorado
- Pattern Summaries: Chain of Responsibility Colorado
- Component Architecture-Based Applications Colorado
Related Local Event
The American Society for Bone and Mineral Research 31st Annual Meeting
Dates: 9/11/2009 - 9/15/2009
Location: Colorado Convention Center
Denver, CO
View Details

Topics: 
Architecture & Design Languages & Tools Project Management Web Services
Database Microsoft & .NET Security Wireless
Java Open Source Techniques XML