Patent ID: 7509392

Claim:
A method comprising: determining an application server partition based on a request context associated with a request from a client, wherein the request requests an operation, wherein the determining further comprises determining the application server partition based on a type of the operation and a location of the client, wherein the application server partition comprises an application state and application resources that customizes an application for the client; determining whether the application server partition exists based on global server partition information, wherein an on-demand system performs the determining whether the application server partition exists; if the application server partition exists, sending the request to the application server partition; if the application server partition does not exist, determining whether the request context is valid based on a validation rule, wherein the determining further comprises comparing the request context to the validation rule, wherein the on-demand system performs the determining whether the request context is valid; if the request context is valid, creating the application server partition in a server cluster based on a creation rule and sending the request to the application server partition; and if the request context is not valid, sending an exception to the client.