A portion of the disclosure of this patent document contains material which is subject to copyright protection. The copyright owner has no objection to the facsimile reproduction by anyone of the patent document or the patent disclosure, as it appears in the Patent and Trademark Office patent file or records, but otherwise reserves all copyright rights whatsoever.
The current invention relates generally to developer frameworks, and more particularly to developing applications in an improved manner.
The subject matter discussed in the background section should not be assumed to be prior art merely as a result of its mention in the background section. Similarly, a problem mentioned in the background section or associated with the subject matter of the background section should not be assumed to have been previously recognized in the prior art. The subject matter in the background section merely represents different approaches, which in and of themselves may also be inventions.
In conventional database systems, users access their data resources in one logical database. A user of such a conventional system typically retrieves data from and stores data on the system using the user's own systems. A user system might remotely access one of a plurality of server systems that might in turn access the database system. Data retrieval from the system might include the issuance of a query from the user system to the database system. The database system might process the request for information received in the query and send to the user system information relevant to the request.
There is often a desire to develop various applications for extending capabilities of the aforementioned database systems. To date, however, such applications have typically been developed in an uncontrolled environment. For example, developers conventionally dictate the development of such applications, leaving the database system service with less control. This, in turn, may lead to various shortcomings in the development process, etc. For instance, various development best practices (e.g. with respect to testing, resource allocation, etc.) may not necessarily be enforced, since they are under the control of the developer.
In accordance with embodiments, there are provided mechanisms and methods for allowing access to developed applications via a multi-tenant on-demand database service, in a controlled environment. These mechanisms and methods for providing such access can enable embodiments to provide additional control over the development process as well as the access of such developed applications. The ability of embodiments to provide such additional control may lead to an improved application development/runtime framework, etc.
In an embodiment and by way of example, a method is provided for allowing access to developed applications via a multi-tenant on-demand database service, in a controlled environment. In use, developed applications are received at a multi-tenant on-demand database service. Access to the applications is provided to tenants of the on-demand database service. Such applications are under the control of the on-demand database service.
While the present invention is described with reference to an embodiment in which techniques for allowing access to developed applications are implemented in an application server providing a front end for a multi-tenant database on-demand service, the present invention is not limited to multi-tenant databases or deployment on application servers. Embodiments may be practiced using other database architectures, i.e., ORACLE®, DB2® and the like without departing from the scope of the embodiments claimed.
Any of the above embodiments may be used alone or together with one another in any combination. Inventions encompassed within this specification may also include embodiments that are only partially mentioned or alluded to or are not mentioned or alluded to at all in this brief summary or in the abstract. Although various embodiments of the invention may have been motivated by various deficiencies with the prior art, which may be discussed or alluded to in one or more places in the specification, the embodiments of the invention do not necessarily address any of these deficiencies. In other words, different embodiments of the invention may address different deficiencies that may be discussed in the specification. Some embodiments may only partially address some deficiencies or just one deficiency that may be discussed in the specification, and some embodiments may not address any of these deficiencies.
Systems and methods are provided for allowing access to developed applications via a multi-tenant on-demand database service, in a controlled environment. Further, systems and methods are provided for extending an interface that executes with the on-demand database service.
In the development of applications for use with database systems, many challenges exist that result from the fact that the control of such application development rests with the developer. For example, various development best practices (e.g. with respect to testing, resource allocation, etc.) are not necessarily enforced, since they are under the control of the developer. Thus, mechanisms and methods are provided herein for allowing access to developed applications via a multi-tenant on-demand database service, in a controlled environment. The ability of embodiments to provide such additional control may lead to an improved development/runtime framework, etc. For example, by administering control over the development process, etc., embodiments are enabled whereby interfaces (e.g. API's, etc.) may be extended in a more affective manner.
Next, mechanisms and methods will be described for allowing access to developed applications in a controlled environment, as well as extending an interface that executes with an on-demand database service.
In one embodiment, the on-demand database service 102 may include a multi-tenant on-demand database service. In the present description, such multi-tenant on-demand database service may include any service that relies on a database system that is accessible over a network, in which various elements of hardware and software of the database system may be shared by one or more customers. For instance, a given application server may simultaneously process requests for a great number of customers, and a given database table may store rows for a potentially much greater number of customers. Various examples of such a multi-tenant on-demand database service will be set forth in the context of different embodiments that will be described during reference to subsequent figures.
As shown, the on-demand database service 102 communicates with a plurality of developers 104. In use, the on-demand database service 102 is adapted to receive developed applications from the developers 104. In the context of the present description, the developers 104 may include any one or more persons or entities (e.g. corporation, organization, etc.) that develop computer code. Further, the applications may include any computer code (e.g. a complete program, a partial program, a code segment, etc.).
In addition, the on-demand database service 102 communicates with one or more tenants 106 of the on-demand database service 102. In the aforementioned embodiment where the on-demand database service 102 includes a multi-tenant on-demand database service, a plurality of the tenants 106 may exist. In any case, a tenant refers to any one or more persons or entities that are capable of accessing the on-demand database service 102, in the present description. For example, the tenant(s) 106 may subscribe to the on-demand database service 102.
By this design, the on-demand database service 102 serves to provide access to the applications to the tenant(s) 106 of the on-demand database service 102. In use, the aforementioned applications are under the control of the on-demand database service 102. By administering such control, an improved development/runtime framework, etc. is thereby provided.
In various embodiments, such control may be administered in any desired manner. For example, the on-demand database service 102 may enforce any desired policies by precluding access to applications by the tenant(s) 106, in situations where the applications do not adhere to the policies. In other embodiments, the on-demand database service 102 may enforce such policies by precluding or limiting functionality accessible to the developers 104, in such non-compliant scenario. For example, publication of an application to the on-demand database service 102 may be disallowed in the absence of meeting certain requirements. In one specific embodiment, the on-demand database service 102 may monitor and limit various aspects of the applications and terminate related code, based on a dynamic contextual limiter. Of course, the foregoing control may be implemented in any desired manner.
In one embodiment, the aforementioned control may take the form of limiting at least one aspect of the applications by the on-demand database service 102. For instance, such aspect may relate to processing, storage, bandwidth, etc. resources made available to the applications of the developers 104. By this design, the on-demand database service 102 may be able constrain the developers in a way that optimizes the ability of the on-demand database service 102 to service the tenant(s) 106 via the applications.
In various embodiments, such resources-related aspect may involve a database associated with the on-demand database service 102, a manner in which such database may be accessed utilizing the applications, etc. In such embodiments, the foregoing aspect may include, but is not limited to a number of columns of a database, a number of queries to a database in a predetermined timeframe, a number of rows returned by queries, a number of database statements (e.g. modification statements, etc.), a number of script statements between database statements, a number of rows processed (e.g. modified, etc.) in a predetermined timeframe, a number of transaction statements, a total number of uncommitted rows since a last transaction control statement, a total number of script statements since a last database call, a duration of processing, etc.
Of course, such exemplary list is not to be construed as limiting. For example, any aspect of the on-demand database service 102 (e.g. electronic mail management, etc.) may also be limited as well. In one specific instance, a number of e-mails one can send per request and/or a number of outbound web service calls made per request, may be limited. In various embodiments, limits may be applied to an application on a per-request basis or on a per-time-period (e.g. per day) basis. In the latter embodiment, such limitation may apply on a per-user or per-tenant basis.
In other embodiments, a development of the applications may be controlled. For example, the applications are controlled by imposing requirements of the on-demand database service 102 that the applications be tested (e.g. validated, etc.). Such testing may, in one embodiment, be natively run in an automated manner, by way of a call made to an application program interface associated with the on-demand database service 102.
In other aspects of the present embodiment involving development controls, the on-demand database service 102 may require that functional tests be written for applications and further require a predetermined percentage of code coverage. In this embodiment, such technique may allow one to run such tests whenever the on-demand database service 102 is modified, to reduce the risk of accidentally breaking working applications. By this design, regression and/or any other negative traits may be avoided. More information regarding one possible embodiment involving such controlled testing will be set forth in greater detail during reference to
In still additional embodiments, access to the applications by the tenant(s) 106 of the on-demand database service 102 may be controlled. For instance, a single instance of each application may be instantiated among a plurality of the tenant(s) 106 of the on-demand database service 102. Thus, only a single copy of the application need be stored by the on-demand database service 102, and simultaneously shared amongst the tenant(s) 106 in the foregoing manner.
It should be that the forgoing control may be static or dynamic, may or may not be uniformly applied, etc. For example, the foregoing aspects and related control criteria may or may not be different for different applications, tenants 106, etc. Just by way of example, the on-demand database service 102 may allow for more resources when running an upgrade script, with respect to when running a per-row database trigger, etc. Further, the on-demand database service 102 may allow for more resources for large tenants 106, etc.
As shown, developed applications are received at an on-demand database service. See operation 152. In various embodiments, the on-demand database service may or may not include a multi-tenant on-demand database service.
Further, the developed applications may be received in whole or in part. For example, in one embodiment, an application may be developed utilizing a separate system and may be subsequently uploaded to the on-demand database service. In other embodiments, code segments of the application may be received at the on-demand database service as the application is being developed. Of course, hybrid systems are further contemplated which employ both of the foregoing frameworks. Still yet, the aforementioned receipt of developed applications may or may not occur over a network.
With continuing reference to
In a particular embodiment, the foregoing testing may involve a unit test. Such unit test may verify whether a particular piece of code of an application is working properly. As an option, the unit test may take no arguments, commit no data to a database, etc. In other embodiments, tests may be employed which cover as many lines of code as possible, and, in the case of conditional logic (including ternary operators), execute each branch of code logic. Further, the tests may be designed to complete successfully without throwing any exceptions, unless those errors are expected and caught. Still yet, tests may be configured to liberally make use of “System.assert( )” methods to prove that code behaves properly, exercise bulk trigger functionality, etc.
In one embodiment, the testing may be controlled by the on-demand database service. For example, all testing may be under the control of the on-demand database service. In other embodiments, only some of the testing may be under the control of the on-demand database service. In such embodiment, a first subset of the testing may be controlled by developers of the applications, and a second subset of the testing may be controlled by the on-demand database service.
Further, the testing may occur at any desired time. For instance, the testing may be periodic, on-demand, triggered by an event or milestone, etc. In one example, the testing may occur automatically across all relevant applications upon at least one aspect (e.g. code, feature, etc.) of the on-demand database service being added, upgraded, etc. To this end, continued operation of the applications on the on-demand database service is ensured.
In another embodiment, the testing may be required by the on-demand database service. Such requirement may be enforced in any desired manner (e.g. see, again, the aforementioned exemplary enforcement techniques, etc.). As an option, it may be determined whether at least one of the applications has passed the testing. To this end, access to such application(s) may be conditionally provided, based on the determination. For example, access may be provided to the application(s), if it is determined that the application(s) has passed the testing. Further, such access to the application(s) may be precluded, if it is determined that the application(s) has not passed the testing. As an option, a report may be provided to indicate an extent and/or manner in which the testing was passed or failed, so that appropriate action may be taken by the application developer.
A definition of requirements for such pass may be configured in any desired manner. For example, such pass criteria may be defined by the on-demand database service. Further, the criteria may involve any desired parameters, thresholds, etc. To this end, a managed code environment is provided that requires application developers to give up some control over the development process, in exchange for the benefit of standardized improvements in applications available via the on-demand database service.
As shown, at least one programming language instruction is received at a platform on which applications can be built. See operation 202. The receipt of such instruction may be accomplished in any desired manner. For example, the at least one programming language instruction may or may not be received at an API associated with the platform.
In various embodiments, such platform may or may not be part of the on-demand database service 102 of
In the context of the present description, the foregoing applications may include any desired software, and such application may be built in any desired manner. For example, in various embodiments, such “building” may range from providing a forum to manage the entire or a portion of the development process, to simply making a pre-existing application accessible for use, etc. Still yet, in the present description, the aforementioned programming language instruction may include any piece of code recognizable by the platform.
With continuing reference to
In other embodiments where the on-demand database service has the ability to call out to other external systems, the set of instructions may refer to instructions to another system via the on-demand database service. More information regarding such call out feature may be found with reference to U.S. patent application Ser. No. 11/778,587 entitled “METHOD AND SYSTEM FOR PROVIDING A CLIENT ACCESS TO AN EXTERNAL SERVICE VIA AN APPLICATION SERVICES PLATFORM,” by Manoj Cheenath et al., filed Jul. 16, 2007, the entire contents of which are incorporated herein by reference. Further, the aforementioned controls may be applied to any call out request to such external systems. For example, such call out request may be given a lower priority (e.g. disallowed during a low level database operations involving locks, etc.).
In one embodiment involving a multi-tenant on-demand database service, the set of instructions may be configured to be applied to all tenants. In another embodiment, the set of instructions may be tenant-specific. In other words, the set of instructions may be prepared to query for information related to a single tenant (or subset of tenants) selected from the tenants storing data utilizing the on-demand database service.
To this end, the set of instructions may be applied (e.g. to the on-demand database service) to affect a result, in accordance with the programming language instruction. See operation 206. In various embodiments, the set of instructions may be applied to provide a result set from the on-demand database service, updating data in the on-demand database service, and/or performing any desired action or altering an existing action, in accordance with the programming language instruction. In one particular embodiment, the set of instructions may be applied to extend an interface (e.g. API, graphical user interface, etc.) of the on-demand database service in any desired manner.
Various possible features may be enabled by the foregoing extension technique. In one embodiment, the set of instructions may be applied to run a set of multi-object manipulations at the on-demand database service responsive to a single transaction. For example, the manipulation of multiple objects which previously required multiple transactions, may, after the extension, require a single transaction.
An example of the method 200 of
In some embodiments, the programming language instruction may include a format, syntax, etc. that is tailored for use with a database system. In one specific embodiment, a procedural language salesforce object query language (PL/SOQL) programming language instruction may be employed. In the present embodiment, the PL/SOQL is capable of serving as a procedural extension to an on-demand database centric service API that allows flow control and transaction control to execute on a server in conjunction with database APIs [e.g. SOQL, data manipulation language (DML), etc.]. The PL/SOQL can enable the capability to thread together multiple SOQL/DML statements as a single unit of work on the server. The PL/SOQL need not necessarily be considered a general purpose programming language, as it is heavily data focused, in some embodiments. It may, in one optional embodiment, be used by developers to interface with an on-demand database system, in contrast to traditional application developers' conventional tools, such as PL/SQL by Oracle®, Inc, of Redwood Shores, Calif. and others.
The present PL/SOQL embodiment may also include syntax and semantics intended to emulate that of Java, however, the present embodiment is not limited to Java. The PL/SOQL embodiments may include variable and expression syntax, block and conditional syntax, loop syntax, object and array notation, pass by reference, etc. Where embedded concepts that interface with on-demand database applications are provided, syntax and semantics that are easy to understand and which encourage efficient use of database APIs may also be employed.
More exemplary information regarding such PL/SOQL embodiment may be found with reference to U.S. Provisional Patent Application 60/828,757 entitled “PROGRAMMING LANGUAGE METHOD AND SYSTEM FOR EXTENDING APIS TO EXECUTE IN CONJUNCTION WITH AN ON-DEMAND DATABASE SERVICE,” by Craig Weissman, filed Oct. 9, 2006, and U.S. Provisional Patent Application 60/828,192 entitled “PROGRAMMING LANGUAGE METHOD AND SYSTEM FOR EXTENDING APIS To EXECUTE IN CONJUNCTION WITH AN ON-DEMAND DATABASE SERVICE,” by Craig Weissman, filed Oct. 4, 2006, the entire contents of which are incorporated herein by reference.
As shown, the on-demand database service 302 remains in communication with a developer 304 and at least one end user tenant 306 via a network 308. Further, the on-demand database service 302 includes an application server 310 that interfaces with the developer 304 and user tenant 306 differently. Specifically, the application server 310 may interface with the developer 304 during a compile-time phase, and the user tenant 306 during a runtime phase.
For example, the application server 310 is adapted to receive program language instructions (e.g. script, etc.) from the developer 304 who may, in one embodiment, intend to extend an API of the on-demand database service 302. In response to receiving such script, the application server 310 processes (e.g. compiles, etc.) and stores the same in a database 312. As an option, such processing may further include any of the desired controls mentioned earlier, to make sure that the developer 304 employs best practices, or any other predetermined practices in script development. In one embodiment, such compiled script may be stored in the form of metadata, for use in response to requests from the end user tenant 306. By this feature, the script may be adapted to be triggered in response to a particular associated request (e.g. request to select, access, modify, etc. an object) from the end user tenant 306.
Specifically, the application server 310 is further adapted for receiving requests from the end user tenant 306. In response to such requests, they are processed utilizing a run-time interpreter 314 of the application server 310, by using such request to identify and retrieve the correlating compiled script from the database 312. The run-time interpreter 314 is further equipped with the ability to processing the compiled script. The compiled script thus may dictate the manner in which the request is fulfilled, etc. As mentioned earlier, such compiled script may allow for more efficient retrieval of database information, and/or any other desired enhancement, etc.
As shown, the present method 400 is triggered upon receipt of script from a developer. See decision 402. In response to such receipt, the script is compiled, as net forth in operation 404. In response to such compilation, the compiled script is stored in the form of metadata, as indicated in operation 406. To this end, the metadata is made available for retrieval and use in conjunction with requests by an end user tenant.
In decisions 502, it is first determined whether a request is received from an end user tenant. If so, such request is first translated in compliance with a format, protocol, etc. that may be used to retrieve metadata stored in a database (see operation 406 of
Environment 610 is an environment in which an on-demand database service exists. User system 612 may be any machine or system that is used by a user to access a database user system. For example, any of user systems 612 can be a handheld computing device, a mobile phone, a laptop computer, a work station, and/or a network of computing devices. As illustrated in
An on-demand database service, such as system 616, is a database system that is made available to outside users that do not need to necessarily be concerned with building and/or maintaining the database system, but instead may be available for their use when the users need the database system (e.g., on the demand of the users). Some on-demand database services may store information from one or more tenants stored into tables of a common database image to form a multi-tenant database system (MTS). Accordingly, “on-demand database service 616” and “system 616” will be used interchangeably herein. A database image may include one or more database objects. A relational database management system (RDMS) or the equivalent may execute storage and retrieval of information against the database object(s). Application platform 618 may be a framework that allows the applications of system 616 to run, such as the hardware and/or software, e.g., the operating system. In an embodiment, on-demand database service 616 may include an application platform 618 that enables creation, managing and executing one or more applications developed by the provider of the on-demand database service, users accessing the on-demand database service via user systems 612, or third party application developers accessing the on-demand database service via user systems 612.
The users of user systems 612 may differ in their respective capacities, and the capacity of a particular user system 612 might be entirely determined by permissions (permission levels) for the current user. For example, where a salesperson is using a particular user system 612 to interact with system 616, that user system has the capacities allotted to that salesperson. However, while an administrator is using that user system to interact with system 616, that user system has the capacities allotted to that administrator. In systems with a hierarchical role model, users at one permission level may have access to applications, data, and database information accessible by a lower permission level user, but may not have access to certain applications, database information, and data accessible by a user at a higher permission level. Thus, different users will have different capabilities with regard to accessing and modifying application and database information, depending on a user's security or permission level.
Network 614 is any network or combination of networks of devices that communicate with one another. For example, network 614 can be any one or any combination of a LAN (local area network), WAN (wide area network), telephone network, wireless network, point-to-point network, star network, token ring network, hub network, or other appropriate configuration. As the most common type of computer network in current use is a TCP/IP (Transfer Control Protocol and Internet Protocol) network, such as the global internetwork of networks often referred to as the “Internet” with a capital “I,” that network will be used in many of the examples herein. However, it should be understood that the networks that the present invention might use are not so limited, although TCP/IP is a frequently implemented protocol.
User systems 612 might communicate with system 616 using TCP/IP and, at a higher network level, use other common Internet protocols to communicate, such as HTTP, FTP, AFS, WAP, etc. In an example where HTTP is used, user system 612 might include an HTTP client commonly referred to as a “browser” for sending and receiving HTTP messages to and from an HTTP server at system 616. Such an HTTP server might be implemented as the sole network interface between system 616 and network 614, but other techniques might be used as well or instead. In some implementations, the interface between system 616 and network 614 includes load sharing functionality, such as round-robin HTTP request distributors to balance loads and distribute incoming HTTP requests evenly over a plurality of servers. At least as for the users that are accessing that server, each of the plurality of servers has access to the MTS' data; however, other alternative configurations may be used instead.
In one embodiment, system 616, shown in
One arrangement for elements of system 616 is shown in
Several elements in the system shown in
According to one embodiment, each user system 612 and all of its components are operator configurable using applications, such as a browser, including computer code run using a central processing unit such as an Intel Pentium® processor or the like. Similarly, system 616 (and additional instances of an MTS, where more than one is present) and all of their components might be operator configurable using application(s) including computer code to run using a central processing unit such as processor system 617, which may include an Intel Pentium® processor or the like, and/or multiple processor units. A computer program product embodiment includes a machine-readable storage medium (media) having instructions stored thereon/in which can be used to program a computer to perform any of the processes of the embodiments described herein. Computer code for operating and configuring system 616 to intercommunicate and to process webpages, applications and other data and media content as described herein are preferably downloaded and stored on a hard disk, but the entire program code, or portions thereof, may also be stored in any other volatile or non-volatile memory medium or device as is well known, such as a ROM or RAM, or provided on any media capable of storing program code, such as any type of rotating media including floppy disks, optical discs, digital versatile disk (DVD), compact disk (CD), microdrive, and magneto-optical disks, and magnetic or optical cards, nanosystems (including molecular memory ICs), or any type of media or device suitable for storing instructions and/or data. Additionally, the entire program code, or portions thereof, may be transmitted and downloaded from a software source over a transmission medium, e.g., over the Internet, or from another server, as is well known, or transmitted over any other conventional network connection as is well known (e.g., extranet, VPN, LAN, etc.) using any communication medium and protocols (e.g., TCP/IP, HTTP, HTTPS, Ethernet, etc.) as are well known. It will also be appreciated that computer code for implementing embodiments of the present invention can be implemented in any programming language that can be executed on a client system and/or server or server system such as, for example, C, C++, HTML, any other markup language, Java™, JavaScript, ActiveX, any other scripting language, such as VBScript, and many other programming languages as are well known may be used. (Java™ is a trademark of Sun Microsystems, Inc.).
According to one embodiment, each system 616 is configured to provide webpages, forms, applications, data and media content to user (client) systems 612 to support the access by user systems 612 as tenants of system 616. As such, system 616 provides security mechanisms to keep each tenant's data separate unless the data is shared. If more than one MTS is used, they may be located in close proximity to one another (e.g., in a server farm located in a single building or campus), or they may be distributed at locations remote from one another (e.g., one or more servers located in city A and one or more servers located in city B). As used herein, each MTS could include one or more logically and/or physically connected servers distributed locally or across one or more geographic locations. Additionally, the term “server” is meant to include a computer system, including processing hardware and process space(s), and an associated storage system and database application (e.g., OODBMS or RDBMS) as is well known in the art. It should also be understood that “server system” and “server” are often used interchangeably herein. Similarly, the database object described herein can be implemented as single databases, a distributed database, a collection of distributed databases, a database with redundant online or offline backups or other redundancies, etc., and might include a distributed database or storage network and associated processing intelligence.
User system 612, network 614, system 616, tenant data storage 622, and system data storage 624 were discussed above in
Application platform 618 includes an application setup mechanism 738 that supports application developers' creation and management of applications, which may be saved as metadata into tenant data storage 622 by save routines 736 for execution by subscribers as one or more tenant process spaces 704 managed by tenant management process 710 for example. Invocations to such applications may be coded using PL/SOQL 34 that provides a programming language style interface extension to API 732. A detailed description of some PL/SOQL language embodiments is discussed in commonly owned co-pending U.S. Provisional Patent Application 60/828,192 entitled, PROGRAMMING LANGUAGE METHOD AND SYSTEM FOR EXTENDING APIS TO EXECUTE IN CONJUNCTION WITH DATABASE APIS, by Craig Weissman, filed Oct. 4, 2006, which is incorporated in its entirety herein for all purposes. Invocations to applications may be detected by one or more system processes, which manages retrieving application metadata 716 for the subscriber making the invocation and executing the metadata as an application in a virtual machine.
Each application server 700 may be communicably coupled to database systems, e.g., having access to system data 625 and tenant data 623, via a different network connection. For example, one application server 7001 might be coupled via the network 614 (e.g., the Internet), another application server 700N-1 might be coupled via a direct network link, and another application server 700N might be coupled by yet a different network connection. Transfer Control Protocol and Internet Protocol (TCP/IP) are typical protocols for communicating between application servers 700 and the database system. However, it will be apparent to one skilled in the art that other transport protocols may be used to optimize the system depending on the network interconnect used.
In certain embodiments, each application server 700 is configured to handle requests for any user associated with any organization that is a tenant. Because it is desirable to be able to add and remove application servers from the server pool at any time for any reason, there is preferably no server affinity for a user and/or organization to a specific application server 700. In one embodiment, therefore, an interface system implementing a load balancing function (e.g., an F5 Big-IP load balancer) is communicably coupled between the application servers 700 and the user systems 612 to distribute requests to the application servers 700. In one embodiment, the load balancer uses a least connections algorithm to route user requests to the application servers 700. Other examples of load balancing algorithms, such as round robin and observed response time, also can be used. For example, in certain embodiments, three consecutive requests from the same user could hit three different application servers 700, and three requests from different users could hit the same application server 700. In this manner, system 616 is multi-tenant, wherein system 616 handles storage of, and access to, different objects, data and applications across disparate users and organizations.
As an example of storage, one tenant might be a company that employs a sales force where each salesperson uses system 616 to manage their sales process. Thus, a user might maintain contact data, leads data, customer follow-up data, performance data, goals and progress data, etc., all applicable to that user's personal sales process (e.g., in tenant data storage 622). In an example of a MTS arrangement, since all of the data and the applications to access, view, modify, report, transmit, calculate, etc., can be maintained and accessed by a user system having nothing more than network access, the user can manage his or her sales efforts and cycles from any of many different user systems. For example, if a salesperson is visiting a customer and the customer has Internet access in their lobby, the salesperson can obtain critical updates as to that customer while waiting for the customer to arrive in the lobby.
While each user's data might be separate from other users' data regardless of the employers of each user, some data might be organization-wide data shared or accessible by a plurality of users or all of the users for a given organization that is a tenant. Thus, there might be some data structures managed by system 616 that are allocated at the tenant level while other data structures might be managed at the user level. Because an MTS might support multiple tenants including possible competitors, the MTS should have security protocols that keep data, applications, and application use separate. Also, because many tenants may opt for access to an MTS rather than maintain their own system, redundancy, up-time, and backup are additional functions that may be implemented in the MTS. In addition to user-specific data and tenant-specific data, system 616 might also maintain system level data usable by multiple tenants or other data. Such system level data might include industry reports, news, postings, and the like that are sharable among tenants.
In certain embodiments, user systems 612 (which may be client systems) communicate with application servers 700 to request and update system-level and tenant-level data from system 616 that may require sending one or more queries to tenant data storage 622 and/or system data storage 624. System 616 (e.g., an application server 700 in system 616) automatically generates one or more SQL statements (e.g., one or more SQL queries) that are designed to access the desired information. System data storage 624 may generate query plans to access the requested data from the database.
Each database can generally be viewed as a collection of objects, such as a set of logical tables, containing data fitted into predefined categories. A “table” is one representation of a data object, and may be used herein to simplify the conceptual description of objects and custom objects according to the present invention. It should be understood that “table” and “object” may be used interchangeably herein. Each table generally contains one or more data categories logically arranged as columns or fields in a viewable schema. Each row or record of a table contains an instance of data for each category defined by the fields. For example, a CRM database may include a table that describes a customer with fields for basic contact information such as name, address, phone number, fax number, etc. Another table might describe a purchase order, including fields for information such as customer, product, sale price, date, etc. In some multi-tenant database systems, standard entity tables might be provided for use by all tenants. For CRM database applications, such standard entities might include tables for Account, Contact, Lead, and Opportunity data, each containing pre-defined fields. It should be understood that the word “entity” may also be used interchangeably herein with “object” and “table”.
In some multi-tenant database systems, tenants may be allowed to create and store custom objects, or they may be allowed to customize standard entities or objects, for example by creating custom fields for standard objects, including custom index fields. U.S. patent application Ser. No. 10/817,161, filed Apr. 2, 2004, entitled “Custom Entities and Fields in a Multi-Tenant Database System”, and which is hereby incorporated herein by reference, teaches systems and methods for creating custom objects as well as customizing standard objects in a multi-tenant database system. In certain embodiments, for example, all custom entity data rows are stored in a single multi-tenant physical table, which may contain multiple logical tables per organization. It is transparent to customers that their multiple “tables” are in fact stored in one large table or that their data may be stored in the same table as the data of other customers.
While the invention has been described by way of example and in terms of the specific embodiments, it is to be understood that the invention is not limited to the disclosed embodiments. To the contrary, it is intended to cover various modifications and similar arrangements as would be apparent to those skilled in the art. Therefore, the scope of the appended claims should be accorded the broadest interpretation so as to encompass all such modifications and similar arrangements.
This application is a continuation of U.S. application Ser. No. 12/763,078, filed Apr. 19, 2010, which is continuation of U.S. application Ser. No. 11/859,498, filed Sep. 21, 2007, which claims the benefit of U.S. Provisional Application No. 60/828,757, filed Oct. 9, 2006, and U.S. Provisional Application No. 60/828,192, filed Oct. 4, 2006, the entire contents of which are incorporated herein by reference.
Number | Name | Date | Kind |
---|---|---|---|
5263155 | Wang | Nov 1993 | A |
5481735 | Mortensen et al. | Jan 1996 | A |
5504879 | Eisenberg et al. | Apr 1996 | A |
5561797 | Gilles et al. | Oct 1996 | A |
5577188 | Zhu | Nov 1996 | A |
5608872 | Schwartz et al. | Mar 1997 | A |
5649104 | Carleton et al. | Jul 1997 | A |
5715450 | Ambrose et al. | Feb 1998 | A |
5737609 | Reed et al. | Apr 1998 | A |
5761419 | Schwartz et al. | Jun 1998 | A |
5768592 | Chang | Jun 1998 | A |
5778169 | Reinhardt | Jul 1998 | A |
5819038 | Carleton et al. | Oct 1998 | A |
5821937 | Tonelli et al. | Oct 1998 | A |
5831610 | Tonelli et al. | Nov 1998 | A |
5870590 | Kita et al. | Feb 1999 | A |
5870606 | Lindsey | Feb 1999 | A |
5873086 | Fujii et al. | Feb 1999 | A |
5873096 | Lim et al. | Feb 1999 | A |
5890156 | Rekieta et al. | Mar 1999 | A |
5913023 | Szermer | Jun 1999 | A |
5918159 | Fomukong et al. | Jun 1999 | A |
5920863 | McKeehan et al. | Jul 1999 | A |
5956716 | Kenner et al. | Sep 1999 | A |
5963953 | Cram et al. | Oct 1999 | A |
6016495 | McKeehan et al. | Jan 2000 | A |
6021438 | Duvvoori et al. | Feb 2000 | A |
6029177 | Sadiq et al. | Feb 2000 | A |
6041228 | Niska et al. | Mar 2000 | A |
6044216 | Bhargava et al. | Mar 2000 | A |
6092083 | Brodersen et al. | Jul 2000 | A |
6138112 | Slutz | Oct 2000 | A |
6144960 | Okada | Nov 2000 | A |
6148296 | Tabbara | Nov 2000 | A |
6157935 | Tran et al. | Dec 2000 | A |
6161149 | Achacoso et al. | Dec 2000 | A |
6163878 | Kohl | Dec 2000 | A |
6167534 | Straathof et al. | Dec 2000 | A |
6169534 | Raffel et al. | Jan 2001 | B1 |
6178425 | Brodersen et al. | Jan 2001 | B1 |
6189011 | Lim et al. | Feb 2001 | B1 |
6216135 | Brodersen et al. | Apr 2001 | B1 |
6233617 | Rothwein et al. | May 2001 | B1 |
6237001 | Bamford et al. | May 2001 | B1 |
6256659 | McLain et al. | Jul 2001 | B1 |
6266669 | Brodersen et al. | Jul 2001 | B1 |
6289382 | Bowman-Amuah | Sep 2001 | B1 |
6295530 | Ritchie et al. | Sep 2001 | B1 |
6311207 | Mighdoll et al. | Oct 2001 | B1 |
6324568 | Diec | Nov 2001 | B1 |
6324693 | Brodersen et al. | Nov 2001 | B1 |
6336137 | Lee et al. | Jan 2002 | B1 |
6343287 | Kumar et al. | Jan 2002 | B1 |
D454139 | Feldcamp | Mar 2002 | S |
6367077 | Brodersen et al. | Apr 2002 | B1 |
6393605 | Loomans | May 2002 | B1 |
6405220 | Brodersen et al. | Jun 2002 | B1 |
6434550 | Warner et al. | Aug 2002 | B1 |
6442748 | Bowman-Amuah | Aug 2002 | B1 |
6446089 | Brodersen et al. | Sep 2002 | B1 |
6453362 | Bittinger et al. | Sep 2002 | B1 |
6535909 | Rust | Mar 2003 | B1 |
6536036 | Pavela | Mar 2003 | B1 |
6549908 | Loomans | Apr 2003 | B1 |
6553563 | Ambrose et al. | Apr 2003 | B2 |
6560461 | Fomukong et al. | May 2003 | B1 |
6574635 | Stauber et al. | Jun 2003 | B2 |
6577726 | Huang et al. | Jun 2003 | B1 |
6600735 | Iwama et al. | Jul 2003 | B1 |
6601087 | Zhu et al. | Jul 2003 | B1 |
6604117 | Lim et al. | Aug 2003 | B2 |
6604128 | Diec | Aug 2003 | B2 |
6609150 | Lee et al. | Aug 2003 | B2 |
6621834 | Scherpbier et al. | Sep 2003 | B1 |
6651073 | Lyle et al. | Nov 2003 | B1 |
6654032 | Zhu et al. | Nov 2003 | B1 |
6665648 | Brodersen et al. | Dec 2003 | B2 |
6665655 | Warner et al. | Dec 2003 | B1 |
6684438 | Brodersen et al. | Feb 2004 | B2 |
6711565 | Subramaniam et al. | Mar 2004 | B1 |
6724399 | Katchour et al. | Apr 2004 | B1 |
6728702 | Subramaniam et al. | Apr 2004 | B1 |
6728960 | Loomans | Apr 2004 | B1 |
6732095 | Warshavsky et al. | May 2004 | B1 |
6732100 | Brodersen et al. | May 2004 | B1 |
6732111 | Brodersen et al. | May 2004 | B2 |
6754681 | Brodersen et al. | Jun 2004 | B2 |
6763351 | Subramaniam et al. | Jul 2004 | B1 |
6763501 | Zhu et al. | Jul 2004 | B1 |
6768904 | Kim | Jul 2004 | B2 |
6772229 | Achacoso et al. | Aug 2004 | B1 |
6782383 | Subramaniam et al. | Aug 2004 | B2 |
6804330 | Jones et al. | Oct 2004 | B1 |
6826565 | Ritchie et al. | Nov 2004 | B2 |
6826582 | Chatterjee et al. | Nov 2004 | B1 |
6826745 | Coker et al. | Nov 2004 | B2 |
6829655 | Huang et al. | Dec 2004 | B1 |
6842748 | Warner et al. | Jan 2005 | B1 |
6850895 | Brodersen et al. | Feb 2005 | B2 |
6850949 | Warner et al. | Feb 2005 | B2 |
6883015 | Geen et al. | Apr 2005 | B1 |
6895577 | Noble et al. | May 2005 | B1 |
6947952 | Welch et al. | Sep 2005 | B1 |
6957259 | Malik | Oct 2005 | B1 |
6959433 | Morales et al. | Oct 2005 | B1 |
6963899 | Fernandez et al. | Nov 2005 | B1 |
6965919 | Woods et al. | Nov 2005 | B1 |
7039899 | Quiroga | May 2006 | B1 |
7058622 | Tedesco | Jun 2006 | B1 |
7058924 | Greenstein | Jun 2006 | B2 |
7062502 | Kesler | Jun 2006 | B1 |
7069231 | Cinarkaya et al. | Jun 2006 | B1 |
7093261 | Harper et al. | Aug 2006 | B1 |
7139758 | Laws et al. | Nov 2006 | B1 |
7181758 | Chan | Feb 2007 | B1 |
7203700 | Kumar et al. | Apr 2007 | B1 |
7213013 | Subramaniam et al. | May 2007 | B1 |
7213175 | Morrison et al. | May 2007 | B2 |
7289976 | Kihneman et al. | Oct 2007 | B2 |
7293011 | Bedi et al. | Nov 2007 | B1 |
7296274 | Cohen et al. | Nov 2007 | B2 |
7299452 | Zhang et al. | Nov 2007 | B1 |
7302400 | Greenstein | Nov 2007 | B2 |
7302431 | Apollonsky et al. | Nov 2007 | B1 |
7340411 | Cook | Mar 2008 | B2 |
7349980 | Darugar et al. | Mar 2008 | B1 |
7356482 | Frankland et al. | Apr 2008 | B2 |
7363629 | Springer et al. | Apr 2008 | B2 |
7373106 | Ikeda | May 2008 | B2 |
7401094 | Kesler | Jul 2008 | B1 |
7412455 | Dillon | Aug 2008 | B2 |
7437704 | Dahne-Steuber et al. | Oct 2008 | B2 |
7444518 | Dharmarajan et al. | Oct 2008 | B1 |
7464015 | Iwashita | Dec 2008 | B2 |
7493592 | Karatal et al. | Feb 2009 | B2 |
7508789 | Chan | Mar 2009 | B2 |
7562119 | Smith et al. | Jul 2009 | B2 |
7620655 | Larsson et al. | Nov 2009 | B2 |
7647597 | Krishnaswamy et al. | Jan 2010 | B2 |
7698160 | Beaven et al. | Apr 2010 | B2 |
7725501 | Stillman et al. | May 2010 | B1 |
7730478 | Weissman | Jun 2010 | B2 |
7730482 | Illowsky et al. | Jun 2010 | B2 |
7779039 | Weissman et al. | Aug 2010 | B2 |
7853948 | Berstis et al. | Dec 2010 | B2 |
8015495 | Achacoso et al. | Sep 2011 | B2 |
8082301 | Ahlgren et al. | Dec 2011 | B2 |
8095413 | Beaven | Jan 2012 | B1 |
8095594 | Beaven et al. | Jan 2012 | B2 |
8275836 | Beaven et al. | Sep 2012 | B2 |
8312422 | Karatal et al. | Nov 2012 | B2 |
8457545 | Chan | Jun 2013 | B2 |
8484111 | Frankland et al. | Jul 2013 | B2 |
8880619 | Van Wely | Nov 2014 | B2 |
9171033 | Weissman | Oct 2015 | B2 |
20010044791 | Richter et al. | Nov 2001 | A1 |
20020013827 | Edstrom et al. | Jan 2002 | A1 |
20020022986 | Coker et al. | Feb 2002 | A1 |
20020023173 | Jacobs et al. | Feb 2002 | A1 |
20020029161 | Brodersen et al. | Mar 2002 | A1 |
20020029376 | Ambrose et al. | Mar 2002 | A1 |
20020035577 | Brodersen et al. | Mar 2002 | A1 |
20020042264 | Kim | Apr 2002 | A1 |
20020042843 | Diec | Apr 2002 | A1 |
20020048054 | Ohata et al. | Apr 2002 | A1 |
20020072951 | Lee et al. | Jun 2002 | A1 |
20020082892 | Raffel et al. | Jun 2002 | A1 |
20020083183 | Pujare et al. | Jun 2002 | A1 |
20020128037 | Schmidt | Sep 2002 | A1 |
20020129352 | Brodersen et al. | Sep 2002 | A1 |
20020140731 | Subramaniam et al. | Oct 2002 | A1 |
20020143997 | Huang et al. | Oct 2002 | A1 |
20020162090 | Parnell et al. | Oct 2002 | A1 |
20020165742 | Robins | Nov 2002 | A1 |
20020169776 | Tuunanen et al. | Nov 2002 | A1 |
20030004971 | Gong et al. | Jan 2003 | A1 |
20030018705 | Chen et al. | Jan 2003 | A1 |
20030018830 | Chen et al. | Jan 2003 | A1 |
20030036919 | Felt et al. | Feb 2003 | A1 |
20030065738 | Yang et al. | Apr 2003 | A1 |
20030066031 | Laane | Apr 2003 | A1 |
20030066032 | Ramachandran et al. | Apr 2003 | A1 |
20030069936 | Warner et al. | Apr 2003 | A1 |
20030070000 | Coker et al. | Apr 2003 | A1 |
20030070004 | Mukundan et al. | Apr 2003 | A1 |
20030070005 | Mukundan et al. | Apr 2003 | A1 |
20030074418 | Coker | Apr 2003 | A1 |
20030088545 | Subramaniam et al. | May 2003 | A1 |
20030093518 | Hiraga | May 2003 | A1 |
20030093716 | Farchi et al. | May 2003 | A1 |
20030097360 | McGuire et al. | May 2003 | A1 |
20030120675 | Stauber et al. | Jun 2003 | A1 |
20030126139 | Lee et al. | Jul 2003 | A1 |
20030151633 | George et al. | Aug 2003 | A1 |
20030159063 | Apfelbaum et al. | Aug 2003 | A1 |
20030159089 | DiJoseph | Aug 2003 | A1 |
20030159136 | Huang et al. | Aug 2003 | A1 |
20030187921 | Diec | Oct 2003 | A1 |
20030189600 | Gune et al. | Oct 2003 | A1 |
20030196188 | Kuzmin | Oct 2003 | A1 |
20030200309 | Ohhashi et al. | Oct 2003 | A1 |
20030200460 | Morota et al. | Oct 2003 | A1 |
20030204427 | Gune et al. | Oct 2003 | A1 |
20030206192 | Chen et al. | Nov 2003 | A1 |
20030225730 | Warner et al. | Dec 2003 | A1 |
20030226060 | Das et al. | Dec 2003 | A1 |
20040001092 | Rothwein et al. | Jan 2004 | A1 |
20040010489 | Rio | Jan 2004 | A1 |
20040015981 | Coker et al. | Jan 2004 | A1 |
20040025093 | Willy et al. | Feb 2004 | A1 |
20040027388 | Berg et al. | Feb 2004 | A1 |
20040040014 | Ball | Feb 2004 | A1 |
20040088602 | Cohen et al. | May 2004 | A1 |
20040093371 | Burrows et al. | May 2004 | A1 |
20040098704 | Becker et al. | May 2004 | A1 |
20040103396 | Nehab | May 2004 | A1 |
20040117654 | Feldman et al. | Jun 2004 | A1 |
20040128001 | Levin et al. | Jul 2004 | A1 |
20040128584 | Mandava et al. | Jul 2004 | A1 |
20040167689 | Bromley et al. | Aug 2004 | A1 |
20040186860 | Lee et al. | Sep 2004 | A1 |
20040193510 | Catahan, Jr. et al. | Sep 2004 | A1 |
20040199489 | Barnes-Leon et al. | Oct 2004 | A1 |
20040199536 | Barnes Leon et al. | Oct 2004 | A1 |
20040199543 | Braud et al. | Oct 2004 | A1 |
20040249854 | Barnes-Leon et al. | Dec 2004 | A1 |
20040260534 | Pak et al. | Dec 2004 | A1 |
20040260659 | Chan et al. | Dec 2004 | A1 |
20040267719 | Doherty et al. | Dec 2004 | A1 |
20040268299 | Lei et al. | Dec 2004 | A1 |
20050015675 | Kolawa et al. | Jan 2005 | A1 |
20050028146 | Quick | Feb 2005 | A1 |
20050050555 | Exley et al. | Mar 2005 | A1 |
20050081106 | Chang et al. | Apr 2005 | A1 |
20050091098 | Brodersen et al. | Apr 2005 | A1 |
20050091670 | Karatal et al. | Apr 2005 | A1 |
20050132329 | Suwanda | Jun 2005 | A1 |
20050172302 | Chan et al. | Aug 2005 | A1 |
20050188345 | Chang et al. | Aug 2005 | A1 |
20050223022 | Weissman et al. | Oct 2005 | A1 |
20050229044 | Ball | Oct 2005 | A1 |
20050246338 | Bird | Nov 2005 | A1 |
20050256884 | Arnold et al. | Nov 2005 | A1 |
20060021019 | Hinton et al. | Jan 2006 | A1 |
20060031359 | Clegg et al. | Feb 2006 | A1 |
20060070048 | Li et al. | Mar 2006 | A1 |
20060074938 | Miller | Apr 2006 | A1 |
20060122966 | Fecht et al. | Jun 2006 | A1 |
20060155521 | Iwashita | Jul 2006 | A1 |
20060159067 | Chen et al. | Jul 2006 | A1 |
20070016676 | Breuer et al. | Jan 2007 | A1 |
20070061782 | Schreiner et al. | Mar 2007 | A1 |
20070130106 | Gadiraju | Jun 2007 | A1 |
20070203910 | Ferguson et al. | Aug 2007 | A1 |
20080059441 | Gaug et al. | Mar 2008 | A1 |
20080098486 | Lin et al. | Apr 2008 | A1 |
20080120602 | Comstock et al. | May 2008 | A1 |
20080177879 | Krishnan et al. | Jul 2008 | A1 |
20080249972 | Dillon | Oct 2008 | A1 |
20080270354 | Weissman | Oct 2008 | A1 |
20080270992 | Georgieva et al. | Oct 2008 | A1 |
20080292065 | Chen et al. | Nov 2008 | A1 |
20090013310 | Arner et al. | Jan 2009 | A1 |
20090019427 | Li et al. | Jan 2009 | A1 |
20090019428 | Li et al. | Jan 2009 | A1 |
20090063415 | Chatfield et al. | Mar 2009 | A1 |
20090100342 | Jakobson | Apr 2009 | A1 |
20090125822 | Karatal et al. | May 2009 | A1 |
20090177744 | Marlow et al. | Jul 2009 | A1 |
20090328050 | Liu et al. | Dec 2009 | A1 |
20100174784 | Levey et al. | Jul 2010 | A1 |
20110218958 | Warshavsky et al. | Sep 2011 | A1 |
20110247051 | Bulumulla et al. | Oct 2011 | A1 |
20110289356 | Hossain et al. | Nov 2011 | A1 |
20120042218 | Cinarkaya et al. | Feb 2012 | A1 |
20130218948 | Jakobson | Aug 2013 | A1 |
20130218949 | Jakobson | Aug 2013 | A1 |
20130218966 | Jakobson | Aug 2013 | A1 |
20130247216 | Cinarkaya et al. | Sep 2013 | A1 |
20140359537 | Jackobson et al. | Dec 2014 | A1 |
20150006289 | Jakobson et al. | Jan 2015 | A1 |
20150007050 | Jakobson et al. | Jan 2015 | A1 |
20150095162 | Jakobson et al. | Apr 2015 | A1 |
20150142596 | Jakobson et al. | May 2015 | A1 |
20150172563 | Jakobson et al. | Jun 2015 | A1 |
Number | Date | Country |
---|---|---|
2005174283 | Jun 2005 | JP |
2007538313 | Dec 2007 | JP |
WO2005106666 | Nov 2005 | WO |
Entry |
---|
Non-Final Office Action from U.S. Appl. No. 12/167,913, dated Apr. 22, 2011. |
Final Office Action from U.S. Appl. No. 12/167,913, dated Feb. 10, 2012. |
Final Office Action from U.S. Appl. No. 12/167,913, dated Aug. 20, 2013. |
Non-Final Office Action from U.S. Appl. No. 12/167,913, dated Mar. 14, 2013. |
Non-Final Office Action from U.S. Appl. No. 12/167,913, dated Apr. 25, 2014. |
Final Office Action from U.S. Appl. No. 12/167,918, dated Aug. 6, 2016. |
Final Office Action from U.S. Appl. No. 12/167,918, dated Dec. 2, 2011. |
Non-Final Office Action from U.S. Appl. No. 12/167,918, dated Feb. 27, 2013. |
Non-Final Office Action from U.S. Appl. No. 12/167,918, dated Apr. 18, 2014. |
Non-Final Office Action from U.S. Appl. No. 12/167,918, dated Jul. 5, 2011. |
Non-Final Office Action from U.S. Appl. No. 12/167,918, dated Feb. 12, 2015. |
Final Office Action from U.S. Appl. No. 12/167,918, dated Oct. 15, 2014. |
Office Action from Japanese Patent Application No. 2013-209459, dated Oct. 7, 2014. |
Yamamoto, T. et al., “The era of ‘On-demand CRM’ experiencing utility computing models,” COMPUTERWORLD Get Technology Right, IDG Japan, May 1, 2005, vol. 2, No. 5, pp. 90-97. |
Examiner's Decision to Refuse from Japanese Patent Application No. 2013-209459, dated Aug. 11, 2015. |
Examination Report from European Application No. 12 169 103.4, dated Jun. 8, 2015. |
Number | Date | Country | |
---|---|---|---|
20130238655 A1 | Sep 2013 | US |
Number | Date | Country | |
---|---|---|---|
60828757 | Oct 2006 | US | |
60828192 | Oct 2006 | US |
Number | Date | Country | |
---|---|---|---|
Parent | 12763078 | Apr 2010 | US |
Child | 13865896 | US | |
Parent | 11859498 | Sep 2007 | US |
Child | 12763078 | US |