Introduction to Multi-Tenant Architecture Hawaii

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

Advanced Data Services
(808) 325-5251
73-4354 Mamalahoa Hwy Ste 207
Kailua Kona, HI
Kona Impact LLC
(808) 329-6077
75-5759 Kuakini Hwy Ste 103a
Kailua Kona, HI
The Computer People
(808) 214-4572
1215 S Kihei Rd # 0-307
Kihei, HI
Advanced Management Systems
(808) 935-5500
PO Box 11434
Hilo, HI
Alfalfas.net
(808) 968-7399
18 1314 Ol Volcano Rd
Hilo, HI
808 Computers
(808) 331-1808
73-4531 Iki Pl
Kailua Kona, HI
Falcon Computers
(808) 334-1988
75-5629 Kuakini Hwy Ste E2
Kailua Kona, HI
Tech Projects LLC
(808) 891-2300
480 Kenolio Rd
Kihei, HI
Technology Solutions Hawaii
(808) 345-3256
PO Box 7520
Hilo, HI
Akamai Kids
(808) 895-4089
54 Kapaa St # 424
Hilo, HI

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

808 Computers

(808) 331-1808
73-4531 Iki Pl
Kailua Kona, HI
http://www.808computers.com

Related Articles
- GlassFish ESB V2 for SOA Tooling Hawaii
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 Hawaii
- Service Oriented Architecture Hawaii
- Pattern Summaries: Chain of Responsibility Hawaii
- Java Standardization Request 168 Hawaii
- Component Architecture-Based Applications Hawaii
- Portal Development Factory Hawaii
- Highly Effective Datacenters Hawaii
Related Articles
- GlassFish ESB V2 for SOA Tooling Hawaii
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 Hawaii
- Service Oriented Architecture Hawaii
- Pattern Summaries: Chain of Responsibility Hawaii
- Java Standardization Request 168 Hawaii
- Component Architecture-Based Applications Hawaii
- Portal Development Factory Hawaii
- Highly Effective Datacenters Hawaii

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