CN102185900B - Application service platform system and method for developing application services - Google Patents

Application service platform system and method for developing application services Download PDF

Info

Publication number
CN102185900B
CN102185900B CN 201110097156 CN201110097156A CN102185900B CN 102185900 B CN102185900 B CN 102185900B CN 201110097156 CN201110097156 CN 201110097156 CN 201110097156 A CN201110097156 A CN 201110097156A CN 102185900 B CN102185900 B CN 102185900B
Authority
CN
China
Prior art keywords
application service
server
application
request message
tabulation
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN 201110097156
Other languages
Chinese (zh)
Other versions
CN102185900A (en
Inventor
高磊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Feinno Communication Technology Co Ltd
Original Assignee
Beijing Feinno Communication Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Feinno Communication Technology Co Ltd filed Critical Beijing Feinno Communication Technology Co Ltd
Priority to CN 201110097156 priority Critical patent/CN102185900B/en
Publication of CN102185900A publication Critical patent/CN102185900A/en
Priority to CN201180062570.8A priority patent/CN103283209B/en
Priority to PCT/CN2011/085194 priority patent/WO2012142854A1/en
Application granted granted Critical
Publication of CN102185900B publication Critical patent/CN102185900B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses an application service platform system and a method for developing application services. The application service platform system comprises a proxy server, a server cluster consisting of a plurality of application servers, a central server and a resource server, wherein the proxy server is used for distributing client requests to all the application servers; each application server is used for loading and running application services; the central server is used for receiving the application services uploaded externally and deploying the application services to the corresponding application server; and the resource server is used for storing the data resource needing to be accessed by all the application services of the application servers. By means of the technical scheme disclosed by the invention, the difficulty in application development is reduced, the flexibility of deployment is improved and the difficulty in deployment is reduced.

Description

A kind of application service platform system and a kind of Application and Development service method
Technical field
The present invention relates to service development field, backstage, particularly relate to a kind of application service platform system and a kind of Application and Development service method.
Background technology
In service development field, backstage, most of internet, applications and enterprise use and all can run into system scale and become complicated day by day, and after system scale increased day by day, development cost and O﹠M cost all sharply increased.
The present invention is devoted to reduce the application and development difficulty, improves the flexibility of disposing and reduces the difficulty of disposing.
Summary of the invention
The invention provides a kind of application service platform system, this system has reduced and has used the difficulty of opening, and has improved the flexibility of disposing and has reduced the difficulty of disposing.
The present invention also provides a kind of method of Application and Development service platform.
For achieving the above object, technical scheme of the present invention is achieved in that
The invention discloses a kind of application service platform system, this system comprises: acting server, server cluster, central server and the Resource Server formed by a plurality of application servers, wherein:
Acting server, be used for receiving client request message, by the corresponding application service of the tabulation of the application service configuration information on Help Center's server this client request message of identification, obtain the path of corresponding application service then by the tabulation of the application service configuration information on Help Center's server and the tabulation of application service operation information, client request message is distributed to the application server at corresponding application service place according to the path that obtains; Receive the result that the application server end returns, and return to client;
Wherein, the tabulation of application service configuration information comprises following information: application service ID, application service title, application service type, application process name, application service metadata mark; The tabulation of application service operation information comprises following information: application process title, application service path;
Each application server is used for load applications service and operation, and the operation information of application service is write in the application service operation information tabulation on the central server; Be used for when receiving the client request message of acting server transmission, giving corresponding application service with this client request message and handling; This client request message institute tasks requested is handled in application service, and result is returned to acting server;
Central server be used for to receive outside application service of uploading, and the descriptor of this application service that the outside is imported into is saved in the tabulation of application service configuration information, and in this application service of corresponding application server deploy;
Resource Server is used for preserving the data resource that each application service on the application server need be visited.
The invention also discloses a kind of method that runs on the application service of above-mentioned application service platform system, this method comprises:
Based on the service of application component AppBean Application and Development, a kind of AppBean handles one type service request;
Based on application service of a kind of AppBean exploitation the time, the parameter that needs to determine comprises the application service context.
By as seen above-mentioned, this application service platform system that is constituted by above-mentioned acting server, application server cluster, central server and Resource Server of the present invention, the server resource that disperses logically is incorporated into together, greatly reduced the development difficulty of using, improved the flexibility of disposing and reduced the difficulty of disposing.
Description of drawings
Fig. 1 is the logical construction schematic diagram of the application service platform system in the embodiment of the invention;
Fig. 2 is an actual networking schematic diagram of the application service platform system in the embodiment of the invention;
Fig. 3 is the structural representation of the single application server in the embodiment of the invention.
Embodiment
In order to make the purpose, technical solutions and advantages of the present invention clearer, describe the present invention below in conjunction with the drawings and specific embodiments.
Fig. 1 is the logical construction schematic diagram of the application service platform system in the embodiment of the invention.In Fig. 1, being described below of each logical gate:
※ acts on behalf of (Proxy)
-be used for the message of distribution customer terminal, and maintain customer end state (connecting as long);
-service:
SAP: safeguard with the SIP of client is long to be connected;
HAP: be responsible for distribution Http and use;
SMSP: the responsible branch up application of sending short messages;
※ applied host machine cluster (AppEngine Hosts)
The application service operation of-load reality can be carried out the server grouping;
※ infrastructure service (Base Service)
Some core application or the independent utility of-platform internal demands;
※ resource (Resource)
-offer the system resource that platform uses, as:
Database (Database)
File (File)
Memory object buffer server (Memcache)
※ center (Center)
The management and control center of-whole system is for system management operation such as the deployment of keeping an eye on used application service, distribution, renewals.
Fig. 2 is an actual networking schematic diagram of the application service platform system in the embodiment of the invention.As shown in Figure 2, this application service platform system comprises: acting server, server cluster, central server and the Resource Server formed by a plurality of application servers, wherein:
Acting server, be used for receiving client request message, by the corresponding application service of the tabulation of the application service configuration information on Help Center's server this client request message of identification, obtain the path of corresponding application service then by the tabulation of the application service configuration information on Help Center's server and the tabulation of application service operation information, client request message is distributed to the application server at corresponding application service place according to the path that obtains; Receive the result that the application server end returns, and return to client;
Wherein, the tabulation of application service configuration information comprises following information at least: application service ID, application service title, application service type, application process name, application service metadata mark; The tabulation of application service operation information comprises following information at least: application process title, application service path;
In the present embodiment, acting server comprises: HTML (Hypertext Markup Language) http proxy server, initial session sip proxy server and note system SMS acting server.Wherein, http proxy server is responsible for distributing the HTTP application service, and sip proxy server is responsible for growing with the SIP of client and is connected, and the SMS acting server is responsible for the branch up application service of sending short messages.
Each application server is used for load applications service and operation, and the operation information of application service is write in the application service operation information tabulation on the central server; Be used for when receiving the client request message of acting server transmission, giving corresponding application service with this client request message and handling; This client request message institute tasks requested is handled in application service, and result is returned to acting server;
Central server be used for to receive outside application service of uploading, and the descriptor of this application service that the outside is imported into is saved in the tabulation of application service configuration information, and in this application service of corresponding application server deploy;
Resource Server is used for preserving the data resource that each application service on the application server need be visited.In the present embodiment, Resource Server comprises: database server, file server and memory object buffer server.
In application service platform system shown in Figure 2, acting server, be further used for when receiving client request message, according to the information in the client request message and the tabulation of the application service configuration information on the central server, create the application service context, in described client request message, be distributed to the application service on the corresponding application server behind the interpolation application service context;
Application service in the process of finishing this client request message institute tasks requested, is carried out the data resource location according to the application service context after receiving client request message.
In application service platform system shown in Figure 2, described acting server, be used for when receiving client request message, according to the uniform resource position mark URL in this request message, find out application service metadata mark field on the central server and comprise application service configuration information tabulation with described URL consistent information, identify the corresponding application service of this client request message according to the application service title in the application service configuration information tabulation that finds out; Described acting server, be used for the application process name according to the application service configuration information tabulation that finds out, find out application process name field on the central server and comprise application service operation information tabulation with described application process name consistent information, from the application service operation information tabulation that finds out, obtain the routing information of application service.
Described acting server, according in the metadata mark field in the tabulation of the application service configuration information that finds out about the load application Service context information, create the application service context.
In application service platform system shown in Figure 2, central server is further used for preserving the Resources list; The Resources list comprises following information: resource name, resource type, application service context type, location algorithm title, location algorithm parameter;
Application service is carried out the resource location according to the corresponding informance in application service context and the Resources list in the process of finishing this client request message institute tasks requested after receiving client request message.
In application service platform system shown in Figure 2, a plurality of application servers in the server cluster are divided into a plurality of different groups, and every group comprises one to multiple servers; Preserve application server tabulation and server packet tabulation on the central server; The application server tabulation comprises following information: group names, application server address under application server title, the application server; The server packet tabulation comprises: the application server descriptor in server packet title, the grouping;
Central server is deployed to this application service on the single application server according to external command when receiving the application service of uploading the outside, perhaps is deployed on a plurality of servers that belong to same group.
Like this, an application service can optionally load in the middle of certain group, just the application service of core can be used one group of server separately, guarantees that the resource of core application is used and stability; And one group of independent server is used in the unsettled application service of just having reached the standard grade, to peel off influence wherein, reduce the risk of whole system.This way is conducive to carry out the distribution of whole resource and the adjustment of network strategy.
Fig. 3 is the structural representation of the single application server in the embodiment of the invention.As shown in Figure 3, the main frame process is the background monitoring process that is deployed on every application server, is responsible for carrying out downloading-running and the deployment of application service.The main frame process can be set up long a connection with central server, accepts system commands such as deployment, renewal, monitoring by this length.The several application service may operate in the application process in an application server, and this application process also can be called the service shell.On the application server a plurality of application processes can be arranged.
In the present invention, based on application service platform system illustrated in figures 1 and 2, provide the application service development mode based on application component (AppBean).In the present invention, the exploitation of application service need be undertaken by the good several AppBean of expansion customization, a kind of AppBean is for the treatment of one type service request, and service request may be called from user client software, browser, internal reference or outside signaling.
In the exploitation moment of application service, AppBean can think an abstract base class, and all application services all can be derived from from this base class of AppBean.Below AppBean is introduced.
The abstraction interface of AppBean
-setup () realizes from installing
-prepare () realizes initializing resource
-run () realizes operation
Several subclasses of AppBean, each subclass may be handled multi-form signaling, and the application developer need select suitable subclass to go to realize the application of oneself, and wherein main subclass has following several:
-RemoteAppBean: each RemoteAppBean handles a specific Rpc request;
-HttpAppBean: handle a specific Http request;
-MessageAppBean: handle a specific message transaction;
Below above several AppBean are illustrated:
RemoteAppBean
Handle a specific Rpc request, may derive from following several scene
-derive from quoting of other AppBean;
-derive from proxy;
-derive from other system's external service;
Parameter interpretation
-﹤ A ﹥ required parameter, the strongly-typed definition;
-﹤ R ﹥ replys parameter, the strongly-typed definition;
The application service context AppContext of-﹤ C ﹥ particular type;
When calling an application service of deriving from from RemoteAppBean, must provide the application service context (AppContext) of the particular type that this application service states when realizing, for example:
The following statement of application service meeting of obtaining user profile:
1. from RemoteAppBean ﹤ GetOption, UserInfo derives among the UserContext ﹥;
A. required parameter ﹤ A ﹥ is GetOption, for obtaining some option parameter of user
B. replying parameter ﹤ R ﹥ is UserInfo, is the set of user profile
C. application service context ﹤ C ﹥ is UserContext, is the user profile of current context, and UserContext is used for identifying user ID
2. realize the process method logic of managing business
HttpAppBean
HttpAppBea is for the treatment of a specific Http request, and the Http request may come from:
-from the direct request of subscription client and browser, the request meeting is carried out the reverse proxy conversion by 7 layers of load of intelligence of HAP
-be directed to the request of other servers
Realize that a specific application service based on HttpAppBean need customize following parameter:
-application service context ﹤ C ﹥: the context of particular type;
-Context source: from where obtaining context ﹤ C ﹥;
-URL prefix: the URL prefix that this application service is handled.(the URL prefix is passed through
HttpPrefix metadata mark is handled, and back extended meeting is mentioned)
For example: develop one and be used for the flow process that the user unifies the application service of login authentication and be:
1. the base class from HttpAppBean derives from;
2. specifying application service context type ﹤ C ﹥ is SessionContext;
3. specify the Context source to be the ssic field among the cookie;
4. realize the process method, read HttpRequest, return HttpResponse after the processing and give client.
MessageAppBean
MessageAppBean is for the treatment of the message transaction of loose coupling, and a MessageAppBean handles the Message of a particular type, and MessageAppBean can monitor the message queue of this type, and begins to handle when message queue arrives;
Realize that a specific MessageAppBean need specify following parameter
-application service context ﹤ C ﹥: the context of particular type;
-type of message ﹤ A ﹥: specify strongly-typed Message;
-event title (Message Name): an overall unique name that is used for mark one class message;
MessageAppBean adopts the producer/consumer's pattern
-the producer can be pressed into message queue with the Message that produces
MessageQueueService.Enqueue(context,entity);
-can when starting, get back to registration in the message queue service as consumer's MessageAppBean, and subscribe to the Queue of particular type, begin to accept the content among the Queue;
-producers and consumers allows one-to-many, the mapping relations of multi-to-multi.
More than three kinds of AppBean have been carried out introducing for example.
By above-mentioned illustrating as can be seen, the parameter of each AppBean is all not quite alike, but all comprises this parameter of AppContext.
AppContext
In application service platform of the present invention system, application service context (AppContext) is the key of application call and resource location.Here application call comprises that acting server calls application service, and the application service of calling other in the application service, and these two kinds of application all need AppContext to realize the location of target application service.AppContext is divided into two parts from the data formation:
Uri: be string format, comprised user's index information, be responsible for the location, for example:
-id:230302023
-session:13910000001
Data: additional data
The strongly-typed data structure that-predefine is good;
-in some occasion, additional data can be offered the application service of back by Proxy.
The context that in system of the present invention, has some to pre-define:
-NullContext: predefined empty context, being used in does not need contextual occasion;
-SessionContext: predefined the context of preserving session id.
Except standard A ppContext, when using application service system platform of the present invention to carry out regarded as output controlling, need some relevant bases of first custom service, AppContext is exactly one of them.Exemplify one below about the specific embodiment of AppContext.
For example: use application service platform of the present invention system to open an instant message (IM) system, user in this IM system adopts an integer id to position, can customize the AppContex of this IM system so according to following mode, derive from called after UserContext from AppContext:
Uri part: " id:230302023 ", expression user's id, the id by this user so, application service position and database memory location that can consumer positioning;
The Data part:
-user's logging in network address;
-client type etc.;
As the UserContext that has customized the user, the AppBean that operates based on the user in all these systems can use UserContext as the ﹤ C ﹥ parameter of AppBean, as:
-obtain subscriber data;
-subscriber data is set;
-obtain buddy list etc.;
In addition, in application service platform of the present invention system, except the AppContext based on unique user is provided, type of service based on group also is provided, and exploitation also needs to customize the AppContext based on group based on the application service of group, the IM system uses an integer to be used for sign group, derive from from AppContext, called after GroupContext, the structure of GroupContext is as follows:
The Uri part: " group:123123 ", the sign id of group, expression user's id, by the id of this group, we can locate the application service position of group, with the database memory location so;
The Data part:
The session parameter of-group;
The mandate of-group etc.;
Behind the GroupContext that has customized based on group, all AppBean that operate based on group in this system can use GroupContext as the ﹤ C ﹥ parameter of AppBean, as:
-group name is set;
-renewal group authority;
-obtain group deferred information etc.
The apply metadata mark
In the present invention, an application service may comprise following metadata mark:
1.AppName(the name of application service and systematic name)
Name and the systematic name of statement AppBean;
-AppName(category="Core",name="AddBuddy")
Here xxx is that Java language is to the mark of program metadata.
The Category:name overall situation is unique;
Category can be used for the classification of AppBean;
-make things convenient for the O﹠M personnel to be configured and classify;
-in a Category, if allow the AppBean can be by other
AppBean visit among the Category must be with this AppBean statement
Become open or friendly;
Public (): allow all AppBean visits;
Friendlly (" Core "): only allow to specify the Category visit;
Friendlly (" Core:AddBuddy "): only allow to specify application access;
2.Stateful(the state information of application service)
Stateful("Presence")
An AppBean has state when statement, and then this AppBean can be kept at state in this machine internal memory;
The application that does not mark Stateful all is considered as stateless and uses, and this machine internal memory of banning use of carries out the preservation of state;
If the Stateful parameter the same (" Presence ") of a plurality of AppBean statements among Category, then these several AppBean start in the process, and do not allow separately heat to upgrade;
The heat that is applied in of Stateful can lost condition when upgrading, so go to replace with the memcache mode as far as possible, suggestion is only in the very high field startup of some performance requirement;
When certain AppBean is declared as Stateful, can adopt the mode of consistency Hash of the AppContext binding of this AppBean to carry out route at the visit of this AppBean;
3.BeforeHandler(the front service processing item)
Priority treatment front service before certain AppBean takes over control is judged daily record record, security audit etc. such as quota;
This Handler can interrupting service operation, revise professional suction parameter, can asynchronous process;
BeforeHandler(type=SecurityQuotaHandler.class,params=("AddBuddy“));
Realize that a BeforeHandler need realize emoteAppBeanHandler<A, R, C〉interface;
–void?run(RemoteAppHandlerTx<A,R,C>tx);
4.AfterHandler(rearmounted Business Processing item)
Handle after can specifying in professional success, or carry out after the failure, or no matter successfully failure is all carried out;
AfterHandler(type=OperationLogHandler.class,result=OpResults.All,params=("AddBuddy“));
Handler can take complete required parameter, and is applied in the context data that adds among the context;
The result of Handler can not have influence on the return results of AppBean again
Implementation method is identical with BeforeHandler.
5.
The HttpPrefix(HTTP prefix is only at HttpAppBean)
Be used for the Http request scope that HttpAppBean of mark handles;
As: HttpPrefix ("/login.do ");
It is initial http request that this HttpAppBean of-expression handles with login.do.Message Name(event title is only at MessageAppBean)
The title that is used for a MessageAppBean of mark;
As: Message Name
6.ContextLoader(the load application Service context information)
Be used for AppBean of mark and how load AppContext
As: ContextLoader (name=" CookieParser ")
-expression removes to handle Context by the program of CookieParser by name;
-CookieParser program is built in the middle of the Proxy, removes to load user related information by the Cookie field of handling among the Http Request.
The application service development process based on AppBean has been introduced in the front.The minimum particle size of the exploitation of application service in the present invention is AppBean as can be seen.Next introduce application service that exploitation finishes how in the process of application service system platform deploy and operation.
The application server that the front is mentioned in the server cluster in the application service system platform can be divided into a plurality of groups, and an application service can be deployed on one group of application server, therefore at first introduces the packet configuration situation of the application server among the present invention.
In the present invention, the application server that can move application service need be tabulated and the server packet tabulation at the application server of the center service configuration overall situation specifically in the unified configuration of the overall situation.
The application server tabulation is as shown in table 1:
Field name The space segment type Major key Describe
ServerName VarChar Y The application server title
ServerGroup VarChar ? The server packet title
ServerAddress VarChar ? Application server address
Table 1
By table 1 as seen, the application server tabulation comprises following information: group names, application server address under application server title, the application server.
The server packet tabulation is as shown in table 2:
Field name Field type Major key Describe
GroupName VarChar Y The server packet title
GroupDesc VarChar ? The application server descriptor
Table 2
By table 2 as seen, the server packet tabulation comprises: the application server descriptor in server packet title, the grouping.
Central server is deployed to this application service on the single application server according to external command when receiving the application service of uploading the outside, perhaps is deployed on a plurality of servers that belong to same group.
In actual applications, many application servers can be divided into different groups, be used for the different application service of operation, the benefit of server packet is as follows: 1. core application is specified application servers group specially, can guarantee that the resource of core application is used and stability; 2. specify independent application servers group to some newly-increased unsettled application, can reduce the risk of whole system; 3. be conducive to carry out the distribution of whole resource and the adjustment of network strategy.
Load application is served the process of application server
In the present invention, the application service meeting finished of exploitation is loaded on the application server in the server cluster and moves, and the route of acting server at this application service is customized on the application server of this application service of load.This process comprises the steps:
-developer compiles the code of the application service that exploitation is finished, and generates the deployment bag (jar bag) that is used for deployment;
-O﹠M personnel are by loading tool (being generally AppLoader), application type and the metadata of searching in the automatic analysis deployment bag by metadata mark, the data that analyze are write in the application service configuration information tabulation on the central server, and deployment wrapped pass on the central server.
Application service configuration information tabulation (hereinafter referred to as the Application table) is as shown in table 3:
Figure GDA00002897520400141
Table 3
In table 3, can be by analyzing the metadata mark that Java application class and application class comprise about Annotations field: AppLoader, and extract type information and the metadata markup information of each AppBean, and the character string by JSON (JavaScript Object Notation) form is kept at the Annotations field of Application table, and concrete form is as follows:
The Annotations field comprises classInfo son field and classAnnotations son field;
Comprise current type, type of foundation, and the general shape parameter of type of foundation in the classInfo field;
The classAnnotations field comprises each metadata mark that this AppBean comprises, each parameter of metadata mark, by " key ", " value " mode is stored.
In table 3, except the bag title is disposed in the WorkerPackage(application service), the ServerGroup(application servers group) and Enabled(whether enable) field, the data of remaining field write in the application service configuration information tabulation in the central server automatically by loading tool.This has been avoided the trouble and the risk of errors that manually write.
The option whether-O﹠M personnel selection application service is disposed bag title, application servers group and enabled upgrades Application table table.
-central server is under O﹠M personnel's instruction, and each application server in the application servers group shown in the Application table sends the load instructions that loads the indicated application service deployment bag of Application table.
After the main frame process receives load instructions on the-application server, download the deployment bag of corresponding application service, and startup application process (AppWorker), this application process is moved this application service, and the running status of this application service is write in the application service operation information tabulation in the central server.
Application service operation information tabulation (hereinafter referred to as Running Worker table) is as shown in table 4:
Figure GDA00002897520400151
Table 4
The application process of each startup all can connect with central server, and adds a running status record as shown in table 4 in the application service operation information tabulation of the overall situation.
In table 4, an application service path form can for:
rpc=tcp://192.168.1.100:8000;http=http://192.168.1.100:8080。
The routing policy of application service
Acting server (proxy) need call certain application service, when perhaps an application service need be called the Another application service, positions by the tabulation of application service configuration information and the tabulation of application service operation information just.
For example, in one embodiment of the invention, the flow process of address of searching a Http application service is as follows:
1. acting server receives the Http request that client or browser send;
2. acting server visit central server from the Annotations field (application service metadata mark field) of Application table, finds HttpPrefix(metadata markup information) record conforming to request URL during Http asks;
Specifically, enumerate the record in all Application table, find the HttpPrefix metadata mark among the Annotations, and whether the URL that judges request is initial with the value of HttpPrefix;
3. acting server generates AppContext according to the information of the Annotations field in the determined record in the step 2 (application service metadata mark field); Specifically, find the ContextLoader information of Annotations field, find the assignment function that meets the ContextLoader value, information extraction is as the input of function from the Cookie field of Http request message, the operation function obtains AppContext;
4. acting server is found out the record that AppWorkerName field (the application process title of operation) conforms to it according to the WorkerName field in the determined record in the step 2 (application process name section) from Running Worker table; Can there be many records to conform to it.
5. acting server disposes according to the Stateful in the Annotations field in the determined record in the step 2 and carries out following selection:
If a. be ' true ', then use the mode of consistency Hash from many RunningWorker, to select a record by AppContext information; Here, the consistency Hash is to calculate cryptographic Hash by the Uri character string of AppContext, selects the corresponding record of cryptographic Hash; Concrete hash algorithm can adopt the KETAMA algorithm;
If b. be ' false ', then select a RuningWorker record at random;
6. extract the address information in the ServiceURLs field (application service path field) in the selected RuningWorker record, according to realizing calling of application service to address information.
In the above example, acting server receives is request at HttpAppBean, therefore looks for the HttpPrefix of the correspondence in the Application table according to the URL in this request, to find the application service of correspondence.If what acting server received is the Rpc request corresponding with RemoteAppBean, far call service name (RemoteAppName) in then directly asking according to this Rpc is searched the consistent Application table with it of application service title (AppName) field, the table that this Application table generates when being the RemoteAppBean that disposes this Rpc request correspondence.If what acting server received is the Message message corresponding with MessageAppBean, then according to the event title in this message, the record that the Annotations field of showing from Application finds MessageName to conform to described event title, this record are the applied form data of application service of handling this message.
In the present invention, define and realize an application service with certain business function, this application service certainly will will visit various resources, provides application service as database, file server, memory object buffer server or other.In one embodiment of the invention, these resources are not the single-point services, just may there be the example of a plurality of vertical fractionations in the database of same type, in the present embodiment, an application service can accessed resources be bundled on the AppContext that states when realizing.
For example, we have stated an application service of obtaining user profile in front, and title GetUserInfoApp reads customer data base (UserDB) at the realization link of this application service, and the result is returned.Detailed process is as follows:
1. acting server receives the Http request that comes from client;
2. acting server is judged the application service that this request is corresponding by the URL of Http request; Be specially acting server by each the Application table on the orient core server, find the HttpPrefix Application table consistent with the URL of Http request in the Annotations field, the application service that this table is corresponding is this Http asks corresponding application service;
3. identifying the corresponding application service of this request according to the judgement acting server in the 2nd step is the request of GetUserInfoAPP, and needs UserContext as context parameters;
4. acting server is by the Application tabulation of the correspondence on the visit central server, according to the ContextLoader information creating UserContext of its Annotations field;
5. acting server adds the UserContext data of creating in the Http request from client, behind the path by inquiry Application tabulation and RunningWorker tabulation acquisition GetUserInfoAPP, the Http request is forwarded to the application server at GetUserInfoAPP place;
6. after the application process of the operation GetUserInfoAPP on the application server receives the Http request, extract UserContext, and give GetUserInfoAPP and handle;
7.GetUserInfoAPP read UserDB, when reading UserDB, carry out the location of UserDB by the id information among the UserContext;
8.GetUserInfoAPP organize returned packet, and return to acting server;
9. acting server returns to client with returned packet.
In the step 7 of said process, position by resource (Resource) table.Resource table in one embodiment of the invention is as shown in table 5:
Figure GDA00002897520400191
Table 5
Can realize the different locate modes at different resource by realizing different mapping functions (Locator).For example in last example, the concrete configuration of resource table is as shown in table 6:
Field name Explanation of field The example value
ResourceName Resource name UserDB
ResourceType Resource type Database
ContextType The Context that the location relies on UserContext
LocatorName Location algorithm ModDatabaseLocator
LocatorParams The parameter of location algorithm 5
Table 6
When then using id:1001 location UserDB in step 7, ModDatabaseLocator can take out 1001, and with 1001 except 5, getting remainder is 1, returns the database instance of UserDB.1 by name.
By as seen above-mentioned, this application service platform system that is constituted by above-mentioned acting server, application server cluster, central server and Resource Server of the present invention, the server resource that disperses logically is incorporated into together, greatly reduced the development difficulty of using, improved the flexibility of disposing and reduced the difficulty of disposing.
The above only is preferred embodiment of the present invention, and is in order to limit the present invention, within the spirit and principles in the present invention not all, any modification of making, is equal to replacement, improvement etc., all should be included within the scope of protection of the invention.

Claims (10)

1. an application service platform system is characterized in that, this system comprises: acting server, server cluster, central server and the Resource Server formed by a plurality of application servers, wherein:
Acting server, be used for receiving client request message, by the corresponding application service of the tabulation of the application service configuration information on Help Center's server this client request message of identification, obtain the path of corresponding application service then by the tabulation of the application service configuration information on Help Center's server and the tabulation of application service operation information, client request message is distributed to the application server at corresponding application service place according to the path that obtains; Receive the result that the application server end returns, and return to client;
Wherein, the tabulation of application service configuration information comprises following information: application service ID, application service title, application service type, application process name, application service metadata mark; The tabulation of application service operation information comprises following information: application process title, application service path;
Each application server is used for load applications service and operation, and the operation information of application service is write in the application service operation information tabulation on the central server; Be used for when receiving the client request message of acting server transmission, giving corresponding application service with this client request message and handling; This client request message institute tasks requested is handled in application service, and result is returned to acting server;
Central server be used for to receive outside application service of uploading, and the descriptor of this application service that the outside is imported into is saved in the tabulation of application service configuration information, and in this application service of corresponding application server deploy;
Resource Server is used for preserving the data resource that each application service on the application server need be visited.
2. system according to claim 1 is characterized in that,
Acting server, be further used for when receiving client request message, according to the information in the client request message and the tabulation of the application service configuration information on the central server, create the application service context, in described client request message, be distributed to the application service on the corresponding application server behind the interpolation application service context;
Application service in the process of handling this client request message institute tasks requested, is carried out the data resource location according to the application service context after receiving client request message.
3. system according to claim 2 is characterized in that,
Central server is further used for preserving the Resources list; The Resources list comprises following information: resource name, resource type, application service context type, location algorithm title, location algorithm parameter;
Application service is carried out the resource location according to the corresponding informance in application service context and the Resources list in the process of finishing this client request message institute tasks requested after receiving client request message.
4. system according to claim 1 is characterized in that,
Described acting server comprises: HTML (Hypertext Markup Language) http proxy server, initial session sip proxy server and note system SMS acting server;
Described Resource Server comprises: database server, file server and memory object buffer server.
5. system according to claim 1 is characterized in that,
A plurality of application servers in the described server cluster be divided into a plurality of not on the same group;
Preserve application server tabulation and server packet tabulation on the described central server;
The application server tabulation comprises following information: group names, application server address under application server title, the application server;
The server packet tabulation comprises: the application server descriptor in server packet title, the grouping;
Central server is used for according to external command this application service being deployed on the single application server when receiving the application service of uploading the outside, perhaps is deployed on a plurality of servers that belong to same group.
6. system according to claim 1 is characterized in that,
Described acting server, be used for when receiving client request message, according to the uniform resource position mark URL in this request message, find out application service metadata mark field on the central server and comprise application service configuration information tabulation with described URL consistent information, identify the corresponding application service of this client request message according to the application service title in the application service configuration information tabulation that finds out; Perhaps,
Be used for when receiving the request message of client, according to the far call service name in this request message, find out the application service name field application service configuration information tabulation consistent with described far call service name on the central server, identify the corresponding application service of this request message according to the application service name field that finds out; Perhaps,
Be used for when receiving the request message of client, according to the event title in this request message, find out application service metadata mark field on the central server and comprise application service configuration information tabulation with described event title consistent information, identify the corresponding application service of this client request message according to the application service title in the application service configuration information tabulation that finds out;
Described acting server, be used for the application process name according to the application service configuration information tabulation that finds out, find out application process name field on the central server and comprise application service operation information tabulation with described application process name consistent information, from the application service operation information tabulation that finds out, obtain the routing information of application service.
7. system according to claim 2 is characterized in that,
Described acting server, be used for when receiving client request message, according to the uniform resource position mark URL in this request message, find out application service metadata mark field on the central server and comprise application service configuration information tabulation with described URL consistent information, according to the information about the load application service context in the metadata mark field in this application service configuration information tabulation, create the application service context then.
8. the method for the developing operation application service of each described application service platform system in claim 1 to 6 is characterized in that this method comprises:
Based on the service of application component AppBean Application and Development, a kind of AppBean handles one type service request;
Based on application service of a kind of AppBean exploitation the time, the parameter that needs to determine comprises the application service context.
9. method according to claim 8 is characterized in that, this method further comprises:
Based on application service of a kind of AppBean exploitation the time, make the metadata mark of this application service comprise: the state information of the name of application service and systematic name, application service, front service processing item, rearmounted Business Processing item, HTTP prefix/event title, load application Service context information.
10. method according to claim 8 is characterized in that, described application service context comprises two parts in the data formation: the generic resource identifier URI of string format and additional data part.
CN 201110097156 2011-04-18 2011-04-18 Application service platform system and method for developing application services Active CN102185900B (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
CN 201110097156 CN102185900B (en) 2011-04-18 2011-04-18 Application service platform system and method for developing application services
CN201180062570.8A CN103283209B (en) 2011-04-18 2011-12-31 A kind of application service platform system and its implementation
PCT/CN2011/085194 WO2012142854A1 (en) 2011-04-18 2011-12-31 Application service platform system and implementation method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201110097156 CN102185900B (en) 2011-04-18 2011-04-18 Application service platform system and method for developing application services

Publications (2)

Publication Number Publication Date
CN102185900A CN102185900A (en) 2011-09-14
CN102185900B true CN102185900B (en) 2013-07-17

Family

ID=44571970

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201110097156 Active CN102185900B (en) 2011-04-18 2011-04-18 Application service platform system and method for developing application services

Country Status (1)

Country Link
CN (1) CN102185900B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107341048A (en) * 2017-06-23 2017-11-10 郑州云海信息技术有限公司 A kind of method and apparatus for inquiring about the client for taking server specific resources

Families Citing this family (42)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012142854A1 (en) * 2011-04-18 2012-10-26 北京新媒传信科技有限公司 Application service platform system and implementation method thereof
CN102523304B (en) * 2011-12-29 2014-10-22 北京新媒传信科技有限公司 Application cloud platform and implementation method thereof
CN102413022B (en) * 2011-12-31 2014-04-16 北京新媒传信科技有限公司 Application debugging method and system
CN102523308B (en) * 2011-12-31 2015-01-14 北京新媒传信科技有限公司 Application development method and development and application platform system for operating method
CN102427480B (en) * 2011-12-31 2015-01-14 北京新媒传信科技有限公司 Application access method in a plurality of application service platform systems
CN102497454B (en) * 2011-12-31 2014-06-11 北京新媒传信科技有限公司 Method for realizing gray publication of application in application service platform system
CN102638567B (en) * 2012-03-02 2015-05-20 深圳市朗科科技股份有限公司 Multi-application cloud storage platform and cloud storage terminal
CN102857546B (en) * 2012-03-20 2016-09-28 深圳市朗科科技股份有限公司 Cloud storage platform and cloud storage terminal
CN103379023B (en) * 2012-04-25 2016-06-01 腾讯科技(深圳)有限公司 Instant communicating method and instant communication client
CN102647429A (en) * 2012-04-28 2012-08-22 杭州格畅科技有限公司 Application communication access control method, application process manager and online application platform
CN103581279B (en) * 2012-08-10 2017-05-10 百度在线网络技术(北京)有限公司 Access system, method and device for third-party developer
CN103685390B (en) * 2012-09-13 2016-10-05 深圳市云帆世纪科技有限公司 Load-balancing method based on ID, Apparatus and system
CN103593172B (en) * 2012-10-29 2017-02-08 百度在线网络技术(北京)有限公司 System, method and device for developing unified structured data oriented applications
US9131353B2 (en) * 2013-05-08 2015-09-08 Intel Corporation Apparatus, system and method of setting up an application service platform (ASP) peer to peer (P2P) group
CN103297269B (en) * 2013-05-22 2016-04-27 中国石油大学(华东) A kind of Web Service Deployment based on service compute platform and management method
CN103366553A (en) * 2013-06-28 2013-10-23 银江股份有限公司 Real-time transportation service information acquiring method and system based on wireless terminal
CN103618741A (en) * 2013-12-09 2014-03-05 惠州华阳通用电子有限公司 TCP long connection communication system and method
CN103747107B (en) * 2014-01-27 2017-03-15 西安雷迪信息技术有限公司 A kind of compatible cloud operating platform and its implementation
KR102170520B1 (en) * 2014-03-06 2020-10-27 삼성전자주식회사 Apparatas and method for improving a loading time in an electronic device
CN103905551B (en) * 2014-04-02 2018-07-24 北京中交兴路车联网科技有限公司 A kind of service calling method and device
CN104158851B (en) * 2014-07-21 2015-11-25 小米科技有限责任公司 A kind of dissemination system of Network, method and apparatus
CN105704188B (en) * 2014-11-27 2019-04-12 华为软件技术有限公司 Using the dispositions method and device with service
CN104615719B (en) * 2015-02-05 2018-04-17 百度在线网络技术(北京)有限公司 Application program intelligence distribution method and device
CN104780221B (en) * 2015-04-29 2018-04-06 温州中普科技咨询有限公司 Medium-sized and small enterprises intellectual property synthetic service platform system
CN106970843B (en) * 2016-01-14 2020-07-24 阿里巴巴集团控股有限公司 Remote calling method and device
CN105740376A (en) * 2016-01-27 2016-07-06 北京铭万智达科技有限公司 API (Application Program Interface) calling statistics and monitoring method in micro-service
CN106210058B (en) * 2016-07-13 2019-04-16 成都知道创宇信息技术有限公司 A kind of reverse proxy method of multi-core parallel concurrent
CN106325858A (en) * 2016-08-12 2017-01-11 中国南方电网有限责任公司 Application building system and method of mobile device terminal
CN106301947B (en) * 2016-08-31 2023-08-25 广州品唯软件有限公司 Service information processing system and method
CN106951357B (en) * 2017-05-10 2018-06-15 焦点科技股份有限公司 A kind of server end application publication monitoring method and device based on finger daemon
CN107451254B (en) * 2017-07-31 2020-08-07 广州市食蚁兽网络技术有限公司 Method for generating unique identifier of database table data
CN108616576B (en) * 2018-04-08 2022-05-27 网宿科技股份有限公司 Method and device for scheduling application server
CN108595222A (en) * 2018-04-26 2018-09-28 努比亚技术有限公司 Background service environmental structure method, server and computer readable storage medium
CN108810170A (en) * 2018-07-19 2018-11-13 中国联合网络通信集团有限公司 resource allocation method and system
CN109857563B (en) * 2019-02-18 2021-04-27 重庆西部汽车试验场管理有限公司 Task execution method and device and task execution system
CN110879811B (en) * 2019-11-18 2023-05-23 浪潮通用软件有限公司 Implementation method for carrying out data and program consistency self-check during running
CN111124705B (en) * 2019-12-04 2024-03-12 中盈优创资讯科技有限公司 Service request processing method and device
CN111309796B (en) * 2020-02-07 2023-09-26 腾讯科技(深圳)有限公司 Data processing method, device and computer readable storage medium
CN111569417A (en) * 2020-04-30 2020-08-25 北京视博云信息技术有限公司 Peripheral data transmission method and system for cloud games
CN115134408B (en) * 2021-03-19 2024-01-05 百果园技术(新加坡)有限公司 Application service realization method, device, system, medium and equipment
CN113381976B (en) * 2021-05-11 2022-06-24 北京丁牛科技有限公司 Smuggling attack testing method and device, electronic equipment and storage medium
CN113220366A (en) * 2021-05-11 2021-08-06 北京达佳互联信息技术有限公司 Sub-application starting method and device, terminal and server

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101110756A (en) * 2006-07-18 2008-01-23 华为技术有限公司 Application server distribution method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002024120A (en) * 2000-07-11 2002-01-25 Mitsubishi Electric Corp Distributed application server system

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101110756A (en) * 2006-07-18 2008-01-23 华为技术有限公司 Application server distribution method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
JP特开2002-24120A 2002.01.25

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107341048A (en) * 2017-06-23 2017-11-10 郑州云海信息技术有限公司 A kind of method and apparatus for inquiring about the client for taking server specific resources
CN107341048B (en) * 2017-06-23 2021-03-23 苏州浪潮智能科技有限公司 Method and device for inquiring client occupying specific resources of server

Also Published As

Publication number Publication date
CN102185900A (en) 2011-09-14

Similar Documents

Publication Publication Date Title
CN102185900B (en) Application service platform system and method for developing application services
US10324711B2 (en) System and method for the data management in the interaction between machines
CN102427480B (en) Application access method in a plurality of application service platform systems
CN102497454B (en) Method for realizing gray publication of application in application service platform system
US7853674B2 (en) System and method for provisioning component applications
US8856735B2 (en) System and method of generating REST2REST services from WADL
CN102413022B (en) Application debugging method and system
US7836439B2 (en) System and method for extending a component-based application platform with custom services
US7729363B2 (en) System and method for managing communication for component applications
US9632764B2 (en) Defining configurable characteristics of a product and associating configuration with enterprise resources
KR101004576B1 (en) Concatenation discovery web service
US20140289366A1 (en) Service providing method and system for instance hosting
CA2533608C (en) System and method for provisioning component applications
US11595299B2 (en) System and method of suppressing inbound payload to an integration flow of an orchestration based application integration
CN102523308B (en) Application development method and development and application platform system for operating method
US20130091416A1 (en) Method for establishing a relationship between semantic data and the running of a widget
EP1684482B1 (en) System and method for managing communication for component applications
JP5886901B2 (en) Storage medium for providing system, method and program for managing distribution of contents to apparatus
US20080216050A1 (en) Method and System for Accessing a Resource Implemented in a Computer Network
CN202077062U (en) Application service platform system
US10397342B2 (en) Web service contract selection
CN116566656A (en) Resource access method, device, equipment and computer storage medium
van Gurp et al. Service grid variability realization
WO2006040991A1 (en) Terminal device, server device, and web service providing system
US8321500B2 (en) Method and system for generating messages

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CP02 Change in the address of a patent holder

Address after: Room 810, 8 / F, 34 Haidian Street, Haidian District, Beijing 100080

Patentee after: BEIJING D-MEDIA COMMUNICATION TECHNOLOGY Co.,Ltd.

Address before: 100089 Beijing city Haidian District wanquanzhuang Road No. 28 Wanliu new building A block 5 layer

Patentee before: BEIJING D-MEDIA COMMUNICATION TECHNOLOGY Co.,Ltd.

CP02 Change in the address of a patent holder