CN107018174A - A kind of method, device and the transaction processing system of blocking system service processing - Google Patents

A kind of method, device and the transaction processing system of blocking system service processing Download PDF

Info

Publication number
CN107018174A
CN107018174A CN201611229300.2A CN201611229300A CN107018174A CN 107018174 A CN107018174 A CN 107018174A CN 201611229300 A CN201611229300 A CN 201611229300A CN 107018174 A CN107018174 A CN 107018174A
Authority
CN
China
Prior art keywords
service
login
service unit
unit
service request
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.)
Granted
Application number
CN201611229300.2A
Other languages
Chinese (zh)
Other versions
CN107018174B (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.)
Advanced New Technologies Co Ltd
Advantageous New Technologies Co Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201611229300.2A priority Critical patent/CN107018174B/en
Publication of CN107018174A publication Critical patent/CN107018174A/en
Application granted granted Critical
Publication of CN107018174B publication Critical patent/CN107018174B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/0815Network architectures or network communication protocols for network security for authentication of entities providing single-sign-on or federations

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

本申请实施例公开了一种单元化系统服务处理的方法、装置及业务处理系统,该方法包括:接收服务请求,其中,所述服务请求中包括用户信息;根据所述服务请求的服务类型,确定与所述服务类型对应的路由规则;根据所述用户信息和所述路由规则确定处理所述服务请求的服务单元,将所述服务请求发送至确定的服务单元以对所述服务请求进行处理。利用本申请实施例,通过不同的服务由不同的服务单元进行处理,相应的,用户信息中与不同服务相对应的信息也会分配到相应的服务单元,不仅不会影响响应时间,而且可以实现对用户信息的单元化部署,从而可以提高用户信息所在系统的可用性和容灾能力。

The embodiment of the present application discloses a method, device and business processing system for unitized system service processing. The method includes: receiving a service request, wherein the service request includes user information; according to the service type of the service request, determining a routing rule corresponding to the service type; determining a service unit that processes the service request according to the user information and the routing rule, and sending the service request to the determined service unit to process the service request . Using the embodiment of this application, different services are processed by different service units, correspondingly, the information corresponding to different services in the user information will also be allocated to the corresponding service units, not only will not affect the response time, but also can realize The unitized deployment of user information can improve the availability and disaster recovery capabilities of the system where the user information is located.

Description

一种单元化系统服务处理的方法、装置及业务处理系统Method, device and business processing system for unitized system service processing

技术领域technical field

本申请涉及计算机技术领域,尤其涉及一种单元化系统服务处理的方法、装置及业务处理系统。The present application relates to the field of computer technology, in particular to a method, device and business processing system for unitized system service processing.

背景技术Background technique

随着终端技术和网络技术的不断发展,用户信息越来越多,为了尽可能减少对用户服务和数据的影响,用户信息如何存储就成为一项急需解决的重要问题。With the continuous development of terminal technology and network technology, there are more and more user information. In order to minimize the impact on user services and data, how to store user information has become an important problem that needs to be solved urgently.

通常,大部分应用程序都会依赖用户信息中稳定的内部标记-用户内标(即UserID),来向服务提供者请求服务。例如,根据UserID编码中的均匀分布的打散位,来分配服务和用户信息到相应的服务单元,此外其依赖的数据也会保留在该服务单元中(即数据本地化)。由于并不是所有的服务都依赖UserID,例如,登录服务只需要用户输入登录标识和登录验证信息(包括登录密码),因此,再通过UserID编码来分配服务和用户信息,会使得服务和用户信息的分配不再均匀,基于上述各方面的考虑,对于用户信息的存储通常采用存储共享的方式处理,即将所有用户信息存储在一个公共单元。Usually, most applications will rely on a stable internal mark in user information - user internal standard (ie, UserID) to request services from service providers. For example, according to the evenly distributed scattered bits in the UserID code, the service and user information are assigned to the corresponding service unit, and the data it depends on will also be retained in the service unit (that is, data localization). Since not all services rely on UserID, for example, the login service only requires the user to enter the login ID and login verification information (including login password), therefore, assigning services and user information through UserID encoding will make the service and user information The distribution is no longer uniform. Based on the above-mentioned considerations, the storage of user information is usually handled by storage sharing, that is, all user information is stored in a common unit.

但是,采用一个公共单元来存储用户信息的处理方式,在架构上会形成高密度的单点,这样,用户信息在一致性和扩容的问题上也会随着用户数量的增加而日益突出,从而导致响应时间变长,更重要的是,当该公共单元所在的机房或城市(部署地)发生灾难性的故障后,会对用户服务和数据造成严重影响,使得用户信息所在系统的可用性和容灾能力较差。However, the use of a common unit to store user information will form a high-density single point in the architecture. In this way, the consistency and expansion of user information will become increasingly prominent with the increase in the number of users, thus More importantly, when a catastrophic failure occurs in the computer room or city (deployment site) where the public unit is located, it will seriously affect user services and data, making the availability and capacity of the system where user information is located Disaster ability is poor.

发明内容Contents of the invention

本申请实施例的目的是提供一种单元化系统服务处理的方法、装置及业务处理系统,以实现对用户信息的单元化部署,提高用户信息所在系统的可用性和容灾能力。The purpose of the embodiments of the present application is to provide a method, device and business processing system for unitized system service processing, so as to implement unitized deployment of user information and improve the availability and disaster recovery capabilities of the system where the user information is located.

为解决上述技术问题,本申请实施例是这样实现的:In order to solve the above technical problems, the embodiment of the present application is implemented as follows:

本申请实施例提供一种单元化系统服务处理的方法,所述方法包括:An embodiment of the present application provides a method for unitized system service processing, the method including:

接收服务请求,其中,所述服务请求中包括用户信息;receiving a service request, wherein the service request includes user information;

根据所述服务请求的服务类型,确定与所述服务类型对应的路由规则;According to the service type of the service request, determine a routing rule corresponding to the service type;

根据所述用户信息和所述路由规则确定处理所述服务请求的服务单元,将所述服务请求发送至确定的服务单元以对所述服务请求进行处理。A service unit that processes the service request is determined according to the user information and the routing rule, and the service request is sent to the determined service unit to process the service request.

可选地,所述服务请求为登录后的服务请求,所述用户信息中包括用户内标;Optionally, the service request is a service request after login, and the user information includes a user internal standard;

所述根据所述用户信息和所述路由规则确定处理所述服务请求的服务单元,包括:The determining the service unit for processing the service request according to the user information and the routing rules includes:

根据所述用户内标和所述服务请求的服务类型所对应的路由规则,确定处理所述服务请求的第一服务单元。A first service unit that processes the service request is determined according to the routing rule corresponding to the user internal standard and the service type of the service request.

可选地,所述服务请求为登录服务请求,所述用户信息中包括登录标识和登录验证信息,Optionally, the service request is a login service request, and the user information includes login identification and login verification information,

所述根据所述服务请求和所述路由规则确定处理所述服务请求的服务单元,包括:The determining the service unit for processing the service request according to the service request and the routing rule includes:

根据所述登录标识和所述服务请求的服务类型所对应的路由规则,确定处理所述服务请求的第二服务单元;determining a second service unit that processes the service request according to the routing rule corresponding to the login identifier and the service type of the service request;

所述将所述服务请求发送至所述确定的服务单元之后,所述方法还包括:After sending the service request to the determined service unit, the method further includes:

当接收到所述第二服务单元发送的与所述登录标识相对应的目标用户内标时,确定与所述目标用户内标对应的第三服务单元;When receiving the target user internal standard corresponding to the login identifier sent by the second service unit, determine a third service unit corresponding to the target user internal standard;

将所述登录验证信息发送给所述第三服务单元以对所述登录验证信息进行登录验证。Send the login verification information to the third service unit to perform login verification on the login verification information.

可选地,所述根据所述用户信息和所述路由规则确定处理所述服务请求的服务单元,包括:Optionally, the determining the service unit that processes the service request according to the user information and the routing rule includes:

获取所述用户信息的哈希Hash值;Obtain the hash Hash value of the user information;

根据所述Hash值和所述路由规则确定处理所述服务请求的服务单元。A service unit that processes the service request is determined according to the Hash value and the routing rule.

本申请实施例提供一种单元化系统服务处理装置,所述装置包括:An embodiment of the present application provides a unitized system service processing device, the device includes:

接收模块,用于接收服务请求,其中,所述服务请求中包括用户信息;A receiving module, configured to receive a service request, wherein the service request includes user information;

路由规则确定模块,用于根据所述服务请求的服务类型,确定与所述服务类型对应的路由规则;A routing rule determination module, configured to determine a routing rule corresponding to the service type according to the service type of the service request;

服务处理模块,用于根据所述用户信息和所述路由规则确定处理所述服务请求的服务单元,将所述服务请求发送至确定的服务单元以对所述服务请求进行处理。A service processing module, configured to determine a service unit that processes the service request according to the user information and the routing rule, and send the service request to the determined service unit to process the service request.

可选地,所述服务请求为登录后的服务请求,所述用户信息中包括用户内标;Optionally, the service request is a service request after login, and the user information includes a user internal standard;

所述服务处理模块,用于根据所述用户内标和所述服务请求的服务类型所对应的路由规则,确定处理所述服务请求的第一服务单元。The service processing module is configured to determine a first service unit that processes the service request according to the routing rule corresponding to the user internal standard and the service type of the service request.

可选地,所述服务请求为登录服务请求,所述用户信息中包括登录标识和登录验证信息,Optionally, the service request is a login service request, and the user information includes login identification and login verification information,

所述服务处理模块,用于根据所述登录标识和所述服务请求的服务类型所对应的路由规则,确定处理所述服务请求的第二服务单元;The service processing module is configured to determine a second service unit that processes the service request according to the routing rule corresponding to the login identifier and the service type of the service request;

所述装置还包括:The device also includes:

服务单元确定模块,用于当接收到所述第二服务单元发送的与所述登录标识相对应的目标用户内标时,确定与所述目标用户内标对应的第三服务单元;A service unit determining module, configured to determine a third service unit corresponding to the target user internal standard when receiving the target user internal standard sent by the second service unit and corresponding to the login identifier;

发送模块,用于将所述登录验证信息发送给所述第三服务单元以对所述登录验证信息进行登录验证。A sending module, configured to send the login verification information to the third service unit to perform login verification on the login verification information.

可选地,所述服务处理模块,用于获取所述用户信息的哈希Hash值;根据所述Hash值和所述路由规则确定处理所述服务请求的服务单元。Optionally, the service processing module is configured to acquire a Hash value of the user information; determine a service unit to process the service request according to the Hash value and the routing rule.

本申请实施例提供一种业务处理系统,所述系统包括路由设备和服务单元,其中:An embodiment of the present application provides a business processing system, the system includes a routing device and a service unit, wherein:

所述路由设备,用于接收服务请求,其中,所述服务请求中包括用户信息;根据所述服务请求的服务类型,确定与所述服务类型对应的路由规则;根据所述用户信息和所述路由规则确定处理所述服务请求的服务单元,将所述服务请求发送至所述确定的服务单元;The routing device is configured to receive a service request, wherein the service request includes user information; according to the service type of the service request, determine a routing rule corresponding to the service type; according to the user information and the The routing rule determines the service unit that processes the service request, and sends the service request to the determined service unit;

所述服务单元,用于对所述服务请求进行处理。The service unit is configured to process the service request.

可选地,所述服务单元包括第一服务单元和第二服务单元,所述服务请求为登录服务请求,所述用户信息中包括登录标识和登录验证信息,其中:Optionally, the service unit includes a first service unit and a second service unit, the service request is a login service request, and the user information includes login identification and login verification information, wherein:

所述第二服务单元,用于获取所述登录标识对应的用户内标,将所述登录验证信息发送给所述用户内标对应的第一服务单元;The second service unit is configured to obtain the user internal standard corresponding to the login identifier, and send the login verification information to the first service unit corresponding to the user internal standard;

所述第一服务单元,用于对所述登录验证信息进行登录验证,将登录验证结果发送给所述第二服务单元;The first service unit is configured to perform login verification on the login verification information, and send a login verification result to the second service unit;

所述第二服务单元,还用于获取与所述登录验证结果相应的登录结果,将所述登录结果发送给所述路由设备。The second service unit is further configured to obtain a login result corresponding to the login verification result, and send the login result to the routing device.

可选地,所述服务单元包括第一服务单元和第二服务单元,所述服务请求为登录服务请求,所述用户信息中包括登录标识和登录验证信息,其中:Optionally, the service unit includes a first service unit and a second service unit, the service request is a login service request, and the user information includes login identification and login verification information, wherein:

所述第二服务单元,用于获取所述登录标识对应的用户内标,将所述用户内标发送给所述路由设备;The second service unit is configured to obtain the user internal standard corresponding to the login identifier, and send the user internal standard to the routing device;

所述路由设备,还用于根据所述用户内标,确定与所述用户内标对应的第一服务单元,将所述登录验证信息发送给所述第一服务单元;The routing device is further configured to determine a first service unit corresponding to the user internal standard according to the user internal standard, and send the login verification information to the first service unit;

所述第一服务单元,用于对所述登录验证信息进行登录验证,将登录验证结果发送给所述第二服务单元;The first service unit is configured to perform login verification on the login verification information, and send a login verification result to the second service unit;

所述第二服务单元,还用于获取与所述登录验证结果相应的登录结果,将所述登录结果发送给所述路由设备。The second service unit is further configured to obtain a login result corresponding to the login verification result, and send the login result to the routing device.

可选地,所述服务单元还包括第三服务单元,所述服务请求为修改登录标识的服务请求,所述业务处理请求中包括用户内标和修改后的登录标识,Optionally, the service unit further includes a third service unit, the service request is a service request for modifying the login ID, and the service processing request includes the user internal standard and the modified login ID,

所述第三服务单元,用于获取与所述用户内标相对应的登录标识,向所述第二服务单元发送包括所述修改后的登录标识的修改登录标识指令;The third service unit is configured to obtain a login ID corresponding to the user internal standard, and send a login ID modification instruction including the modified login ID to the second service unit;

所述第二服务单元,用于使用所述修改后的登录标识替换所述登录标识,将所述修改登录标识指令对应的修改结果发送给所述第三服务单元;The second service unit is configured to use the modified login ID to replace the login ID, and send the modification result corresponding to the instruction to modify the login ID to the third service unit;

所述第三服务单元,还用于将所述修改结果发送给所述路由设备。The third service unit is further configured to send the modification result to the routing device.

由以上本申请实施例提供的技术方案可见,本申请实施例通过根据接收到的包括用户信息的服务请求的服务类型,确定与该服务类型对应的路由规则,然后,可以根据用户信息和该路由规则确定处理该服务请求的服务单元,将该服务请求发送至确定的服务单元以对该服务请求进行处理,这样,不同的服务由不同的服务单元进行处理,相应的,用户信息中与不同服务相对应的信息也会分配到相应的服务单元,不仅不会影响响应时间,而且可以实现对用户信息的单元化部署,从而可以提高用户信息所在系统的可用性和容灾能力。It can be seen from the above technical solution provided by the embodiment of the present application that the embodiment of the present application determines the routing rule corresponding to the service type according to the service type of the received service request including user information, and then, according to the user information and the routing rule The rule determines the service unit that processes the service request, and sends the service request to the determined service unit to process the service request. In this way, different services are processed by different service units. Correspondingly, user information related to different services The corresponding information will also be assigned to the corresponding service unit, which will not only not affect the response time, but also realize the unitized deployment of user information, thereby improving the availability and disaster recovery capabilities of the system where the user information is located.

附图说明Description of drawings

为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请中记载的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments described in this application. Those skilled in the art can also obtain other drawings based on these drawings without any creative effort.

图1为本申请一种单元化系统服务处理的方法实施例;FIG. 1 is an embodiment of a method for unitized system service processing in the present application;

图2为本申请另一种单元化系统服务处理的方法实施例;FIG. 2 is another embodiment of a method for unitized system service processing in the present application;

图3为本申请一种服务请求的处理方法实施例;FIG. 3 is an embodiment of a method for processing a service request in the present application;

图4A为本申请再一种单元化系统服务处理的方法实施例;FIG. 4A is another embodiment of a method for unitized system service processing in the present application;

图4B为本申请一种登录服务的处理流程示意图;FIG. 4B is a schematic diagram of a processing flow of a login service of the present application;

图5为本申请一种单元化系统服务处理装置实施例;Fig. 5 is an embodiment of a unitized system service processing device of the present application;

图6为本申请另一种单元化系统服务处理装置实施例;FIG. 6 is an embodiment of another unitized system service processing device of the present application;

图7为本申请一种业务处理系统实施例。Fig. 7 is an embodiment of a business processing system of the present application.

具体实施方式detailed description

本申请实施例提供一种单元化系统服务处理的方法、装置及业务处理系统。Embodiments of the present application provide a method, device, and service processing system for unitized system service processing.

为了使本技术领域的人员更好地理解本申请中的技术方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都应当属于本申请保护的范围。In order to enable those skilled in the art to better understand the technical solutions in the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described The embodiments are only some of the embodiments of the present application, but not all of them. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without creative efforts shall fall within the scope of protection of this application.

实施例一Embodiment one

如图1所示,本申请实施例提供一种单元化系统服务处理的方法,该方法的执行主体可以为具有流量调拨功能的设备,如路由设备等,在实际应用中,该设备可以是一个逻辑单元,它可以是由多种设备基于层状结构构建而成,其中,可以包括DNS(Domain NameSystem,域名系统)解析设备、CDN(Content Delivery Network,内容分发网络)设备、负载均衡设备、跨单元代理设备等,上述各设备具体可以是终端设备或者服务器。本申请实施例中以执行主体为路由设备为例进行详细说明,对于其它类型的设备,可以根据本申请实施例中的相关内容处理,在此不再赘述。本申请实施例提供的单元化系统服务处理的方法是基于一定的应用背景产生的,具体可以包括以下内容:As shown in Figure 1, the embodiment of the present application provides a method for unitized system service processing. The execution subject of the method may be a device with traffic allocation function, such as a routing device. In practical applications, the device may be a A logical unit, which can be constructed based on a layered structure of various devices, which can include DNS (Domain Name System, domain name system) resolution devices, CDN (Content Delivery Network, content distribution network) devices, load balancing devices, cross- The unit proxy device, etc., each of the above-mentioned devices may specifically be a terminal device or a server. In this embodiment of the present application, a routing device is used as an example for detailed description. For other types of devices, it can be processed according to the relevant content in the embodiment of the present application, and will not be repeated here. The method for unitized system service processing provided by the embodiment of this application is generated based on a certain application background, and may specifically include the following:

随着终端技术和网络技术的不断发展,用户信息越来越多,而这些用户信息往往被存储在某个指定的机房或某一个地域内,为了尽可能减少对用户服务和用户信息的影响,可以将用户信息进行单元化处理,即将用户信息拆分成多个部分,每一个部分中的用户信息存在一定的关联关系,例如都与用户信息中的某一项信息相关联等。基于此,可以将多个部分分别部署在不同的机房,甚至是不同的地域,这样,当某一部分的用户信息不能使用(如由于火灾或地震等使得存储该部分用户信息的机房停止工作等)时,其它部分用户信息仍然可以正常使用,从而提高用户信息所在系统的可用性和容灾能力。With the continuous development of terminal technology and network technology, there are more and more user information, and these user information are often stored in a designated computer room or in a certain region. In order to minimize the impact on user services and user information, The user information can be unitized, that is, the user information is divided into multiple parts, and the user information in each part has a certain relationship, for example, it is associated with a certain item of user information. Based on this, multiple parts can be deployed in different computer rooms, or even in different regions, so that when a certain part of the user information cannot be used (for example, due to fire or earthquake, the computer room that stores this part of user information stops working, etc.) , other parts of user information can still be used normally, thereby improving the availability and disaster recovery capabilities of the system where the user information is located.

在实际应用中,考虑到用户信息中的大部分信息都是与用户内标(即UserID)相关联,如账号信息、身份认证信息和安全信息等,并且针对这些信息的服务也都是基于用户内标来进行操作的。然而也并不是所有的用户信息对应的服务都基于用户内标操作,例如用户信息中的登录信息(即LoginID),相应的,针对登录信息的登录服务并不基于用户内标进行操作,为此,可以将用户信息划分为两个部分,一部分为登录信息,另一部分为基于用户内标进行操作的服务对应的用户信息。当然,对于基于用户内标进行操作的服务对应的用户信息,还可以通过服务、用户内标之间的关联性,将用户信息继续进行拆分,可再拆分为多个部分,可以分别将其存储在一个机房或地域,也可以将其存储在不同的机房或地域。In practical applications, considering that most of the user information is associated with the user internal standard (UserID), such as account information, identity authentication information and security information, etc., and the services for these information are also based on user ID. internal standard to operate. However, not all services corresponding to user information operate based on user internal standards, such as the login information (i.e. LoginID) in user information. Correspondingly, the login service for login information does not operate based on user internal standards. , the user information can be divided into two parts, one part is the login information, and the other part is the user information corresponding to the service based on the user internal standard. Of course, for the user information corresponding to the service based on the user's internal standard, the user information can also be split into multiple parts through the correlation between the service and the user's internal standard. It is stored in one computer room or region, or it can be stored in different computer rooms or regions.

以下提供一种互联网支付类的用户信息示例,该用户信息可以包括登录信息(其中包括登录标识)、安全信息、行为信息、身份认证信息、基本信息(其中包括用户内标)、账号信息、社交信息、交易信息和产品信息等。其中,安全信息、行为信息、身份认证信息、账号信息、社交信息、交易信息和产品信息分别与基本信息中的用户内标相关联。需要说明的是,账号信息、产品信息、交易信息也可以拥有各自的服务维度和标识,但是这些信息都是在用户内标生成之后而确定,因此,可以将这些信息和基本信息设置到同一部分或单元(即同一存储区域、机房或地域等)。登录信息由于涉及登入、登出、鉴权、登录标识的增、删、改、查等服务,可以把它和其余用户信息独立出来,按照登录标识的维度单元化。认证信息由于涉及证件号的相关服务,可以采用登录信息的处理方式。The following provides an example of Internet payment user information, which may include login information (including login ID), security information, behavior information, identity authentication information, basic information (including user internal token), account information, social information, transaction information, product information, etc. Among them, security information, behavior information, identity authentication information, account information, social information, transaction information and product information are respectively associated with the user internal standard in the basic information. It should be noted that account information, product information, and transaction information can also have their own service dimensions and identifiers, but these information are determined after the user internal standard is generated, so these information and basic information can be set in the same part Or unit (that is, the same storage area, computer room or region, etc.). Since login information involves services such as login, logout, authentication, and addition, deletion, modification, and query of login IDs, it can be separated from other user information and unitized according to the dimensions of login IDs. Authentication information can be processed in the same way as login information because it involves services related to the certificate number.

在请求某项服务时,可以基于上述用户信息的单元化部署,通过单元化系统服务处理的方法得到该项服务,该方法具体可以包括以下步骤:When requesting a certain service, the service may be obtained through the method of unitized system service processing based on the unitized deployment of the above user information, and the method may specifically include the following steps:

在步骤S101中:接收服务请求,其中,该服务请求中包括用户信息。In step S101: receiving a service request, wherein the service request includes user information.

其中,服务请求可以是用于向相应的服务提供者请求某项服务的信息,服务可以包括多种,例如登录服务、查询服务、信息修改服务等。用户信息可以是与用户相关的信息,如用户的登录标识、登录密码、用户内标、账号信息和/或身份认证信息等,登录标识可以是用户设置的用户名,也可以是用户的邮箱地址,还可以是用户的手机号等。Wherein, the service request may be information for requesting a certain service from a corresponding service provider, and the service may include various types, such as login service, query service, information modification service, and the like. User information can be information related to the user, such as the user's login ID, login password, user internal standard, account information and/or identity authentication information, etc. The login ID can be the user name set by the user, or the user's email address , and can also be the user's mobile phone number, etc.

在实施中,终端设备(如手机、平板电脑或个人计算机等)中可以安装有应用程序,通过应用程序,用户可以向相应的服务提供者请求某一项或多项服务,具体地,用户可以点击该应用程序的快捷方式图标,终端设备可以启动该应用程序,该应用程序可以获取终端设备的标识等相关信息(如MAC(Media Access Control,介质访问控制)地址或IP(Internet Protocol,网络之间互连的协议)地址等)发送给相应的服务器,服务器可以从预先存储的用户信息中获取该用户的用户信息,以及该应用程序的首页的数据发送给终端设备,终端设备可以显示该应用程序的首页和相关的用户信息(如用户的头像、用户的交易信息等)。In an implementation, an application program may be installed in a terminal device (such as a mobile phone, a tablet computer, or a personal computer, etc.), and through the application program, the user may request one or more services from the corresponding service provider. Specifically, the user may Click the shortcut icon of the application program, the terminal device can start the application program, and the application program can obtain the identification and other related information of the terminal device (such as MAC (Media Access Control, media access control) address or IP (Internet Protocol, Interconnection protocol) address, etc.) to the corresponding server, the server can obtain the user's user information from the pre-stored user information, and send the data of the home page of the application to the terminal device, and the terminal device can display the application The home page of the program and related user information (such as the user's avatar, the user's transaction information, etc.).

在业务服务系统中,通常可以包括路由设备和服务单元,该服务单元可以是提供一种或多种服务的部件或设备,具体可以为应用服务器或数据存储设备等。用户可以根据实际需要进行相应的操作,以请求相应的服务,例如,如果用户需要查询某信息,则可以在该应用程序提供的搜索框中输入该信息对应的搜索关键词,输入完成后,可以点击搜索按键,终端设备可以获取搜索框中用户输入的搜索关键词,同时,可以获取该用户的用户信息,如用户的登录标识和/或用户内标,可以基于上述信息生成查询服务的服务请求,可以将该服务请求发送给业务服务系统中的路由设备,路由设备可以接收到该服务请求。A business service system may generally include a routing device and a service unit. The service unit may be a component or device that provides one or more services, specifically an application server or a data storage device. Users can perform corresponding operations according to actual needs to request corresponding services. For example, if users need to inquire about certain information, they can enter the search keywords corresponding to the information in the search box provided by the application program. After the input is completed, they can Click the search button, the terminal device can obtain the search keyword entered by the user in the search box, and at the same time, obtain the user information of the user, such as the user's login ID and/or user internal standard, and generate a service request for the query service based on the above information , the service request can be sent to the routing device in the business service system, and the routing device can receive the service request.

在步骤S102中:根据上述服务请求的服务类型,确定与该服务类型对应的路由规则。In step S102: according to the service type of the above service request, determine a routing rule corresponding to the service type.

其中,服务类型可以包括多种,例如查询服务、信息删除服务或信息修改服务等,当然,还可以根据实际情况将服务类型进行相应的调整,例如,基于前述用户信息的单元化部署中的相关内容,可以将服务类型设置为登录服务和登录后的服务,本申请实施例对此不做限定。路由规则可以是为了快速搜索到某服务类型而设置的一种路径表,该路由规则中可以存储有服务类型与服务获取路径信息的对应关系。Among them, the service type can include various types, such as query service, information deletion service, or information modification service. For the content, the service type can be set as a login service and a service after login, which is not limited in this embodiment of the present application. The routing rule may be a routing table set up for quickly searching for a certain service type, and the routing rule may store the correspondence between the service type and service acquisition path information.

在实施中,路由设备中设置有一种或多种路由规则,通过该路由规则,可以快速定位到请求的服务所对应的服务提供者的相关信息。考虑到上述用户信息的单元化部署,以及服务之间的关联性,可以将服务类型设置为登录服务和登录后的服务。其中,登录服务可以是与用户登录业务服务系统相关的服务,登录后的服务可以是用户登录业务服务系统后请求的服务,例如,查询服务、信息删除服务或信息修改服务等。基于上述步骤S101的示例,路由设备接收到终端设备发送的服务请求后,可以对该服务请求进行解析,以确定该服务请求为查询服务。由于查询服务是与用户内标相对应的服务,因此,该服务请求所属的服务类型可以为登录后的服务。In implementation, one or more routing rules are set in the routing device, through which the relevant information of the service provider corresponding to the requested service can be quickly located. Considering the above unitized deployment of user information and the correlation between services, the service type can be set as login service and post-login service. Wherein, the login service may be a service related to the user's login into the business service system, and the post-login service may be a service requested by the user after logging into the business service system, for example, query service, information deletion service, or information modification service. Based on the example of step S101 above, after receiving the service request sent by the terminal device, the routing device may analyze the service request to determine that the service request is a query service. Since the query service is a service corresponding to the user's internal standard, the service type to which the service request belongs may be a service after login.

路由设备中的路由规则可以表格的形式存储,其中,服务获取路径信息以服务单元表示,如表1所示。The routing rules in the routing device can be stored in the form of a table, where the service acquisition path information is expressed in service units, as shown in Table 1.

表1Table 1

路由设备确定该服务请求的服务类型为登录后的服务后,可以从如上述表1所示的路由规则中查找服务类型为登录后的服务对应的服务获取路径信息,即服务单元3、服务单元4、服务单元5、服务单元6,从而可以得到服务类型对应的路由规则,即登录后的服务对应的服务获取路径信息为服务单元3、服务单元4、服务单元5和服务单元6。After the routing device determines that the service type of the service request is a logged-in service, it can search for the service corresponding to the logged-in service from the routing rules shown in Table 1 above to obtain path information, that is, service unit 3, service unit 4. Service unit 5 and service unit 6, so that the routing rules corresponding to the service types can be obtained, that is, the service acquisition path information corresponding to the logged-in service is service unit 3, service unit 4, service unit 5 and service unit 6.

在步骤S103中:根据上述用户信息和上述路由规则确定处理上述服务请求的服务单元,将该服务请求发送至确定的服务单元以对该服务请求进行处理。In step S103: determining a service unit for processing the service request according to the user information and the routing rule, and sending the service request to the determined service unit for processing the service request.

其中,服务单元可以是用于提供某一项或多项服务的服务器或终端设备等,服务单元也可以是一个逻辑单元,可以是由多种设备基于层状结构构建而成。Wherein, the service unit may be a server or a terminal device for providing one or more services, and the service unit may also be a logic unit, which may be constructed by multiple devices based on a layered structure.

在实施中,路由设备获取到该服务请求的服务类型对应的路由规则后,可以结合该服务请求中的用户信息,确定处理该服务请求的服务单元。基于上述步骤S102的示例,路由设备得到登录后的服务对应的服务获取路径信息为服务单元3、服务单元4、服务单元5和服务单元6后,可以从用户信息中获取用户的用户内标,可以通过用户内标在路由设备中预先存储的路由表中查找到该用户内标对应的服务单元,路由表可以如表2所示。In implementation, after the routing device obtains the routing rule corresponding to the service type of the service request, it can combine the user information in the service request to determine the service unit that processes the service request. Based on the example of the above step S102, after the routing device obtains the service acquisition path information corresponding to the logged-in service as service unit 3, service unit 4, service unit 5, and service unit 6, it can obtain the user internal standard of the user from the user information, The service unit corresponding to the user internal standard can be found in the routing table pre-stored in the routing device through the user internal standard, and the routing table can be shown in Table 2.

表2Table 2

用户内标user internal standard 路由信息routing information AA 服务单元3service unit 3 BB 服务单元3service unit 3 CC 服务单元4service unit 4

通过上述表2的路由表,可以查找到用户内标对应的服务单元,例如,用户内标为B,则通过表2的路由表,可以查找到B对应的服务单元为服务单元3。路由设备可以将该服务请求发送给确定的服务单元(如上述路由单元3),该服务单元接收到该服务请求后,可以通过服务之间的关联性,将其提供给相应的服务提供者,以便对该服务请求进行相应的处理。Through the routing table in Table 2 above, the service unit corresponding to the user's internal standard can be found. For example, if the user's internal standard is B, then the service unit corresponding to B can be found to be service unit 3 through the routing table in Table 2. The routing device can send the service request to a certain service unit (such as the above-mentioned routing unit 3), and after receiving the service request, the service unit can provide it to the corresponding service provider through the association between services, In order to process the service request accordingly.

本申请实施例提供一种单元化系统服务处理的方法,通过根据接收到的包括用户信息的服务请求的服务类型,确定与该服务类型对应的路由规则,然后,可以根据用户信息和该路由规则确定处理该服务请求的服务单元,将该服务请求发送至确定的服务单元以对该服务请求进行处理,这样,不同的服务由不同的服务单元进行处理,相应的,用户信息中与不同服务相对应的信息也会分配到相应的服务单元,不仅不会影响响应时间,而且可以实现对用户信息的单元化部署,从而可以提高用户信息所在系统的可用性和容灾能力。The embodiment of the present application provides a method for unitized system service processing, by determining the routing rule corresponding to the service type according to the service type of the received service request including user information, and then, according to the user information and the routing rule Determine the service unit that handles the service request, and send the service request to the determined service unit to process the service request. In this way, different services are processed by different service units. Correspondingly, the user information related to different services The corresponding information will also be allocated to the corresponding service unit, which will not only not affect the response time, but also realize the unitized deployment of user information, thereby improving the availability and disaster recovery capabilities of the system where the user information is located.

以下实施例二和实施例三对不同的服务类型进行详细说明,具体可以包括以下内容:The following embodiments 2 and 3 describe different service types in detail, which may specifically include the following:

实施例二Embodiment two

如图2所示,本申请实施例提供了一种单元化系统服务处理的方法,该方法的执行主体可以为具有流量调拨功能的路由设备和第一服务单元共同实现,在实际应用中,该路由设备也可以是一个逻辑单元,可以是由多种设备基于层状结构构架而成,其中,可以包括DNS解析设备、CDN设备、负载均衡设备、跨单元代理设备等。具体包括如下步骤:As shown in Figure 2, the embodiment of the present application provides a method for unitized system service processing. The execution body of the method can be implemented jointly by the routing device with the traffic allocation function and the first service unit. In practical applications, the A routing device can also be a logical unit, which can be constructed from multiple devices based on a layered structure, including DNS resolution devices, CDN devices, load balancing devices, and cross-unit proxy devices. Specifically include the following steps:

在步骤S201中:路由设备接收终端设备发送的服务请求,其中,该服务请求中包括用户信息。In step S201: the routing device receives the service request sent by the terminal device, wherein the service request includes user information.

本申请实施例中,服务请求为登录后的服务请求,用户信息中包括用户内标。In the embodiment of the present application, the service request is a service request after login, and the user information includes the user internal token.

在步骤S202中:路由设备根据该服务请求的服务类型,确定与该服务类型对应的路由规则。In step S202: the routing device determines a routing rule corresponding to the service type according to the service type of the service request.

在步骤S203中:路由设备根据该用户内标和该服务请求的服务类型所对应的路由规则,确定处理该服务请求的第一服务单元。In step S203: the routing device determines the first service unit that processes the service request according to the routing rule corresponding to the user ID and the service type of the service request.

在实施中,考虑到用户内标可以是用户的手机号、即时通讯账号或邮箱地址等非统一的标识形式,因此,通过用户内标将很难将用户信息(如本实施例中的用户内标)均匀分配到各个服务单元,为此,可以设定某种路由规则,例如可以通过校验值算法计算用户信息的校验值,根据校验值将相应的用户信息均匀分配到服务单元中,并生成相应的路由规则。其中,校验值算法可以包括多种,如哈希Hash算法,相应的,上述步骤S203的处理具体可以为:获取用户信息的哈希Hash值,根据该Hash值和该路由规则确定处理该服务请求的服务单元。In practice, considering that the user internal standard may be a non-uniform identification form such as the user's mobile phone number, instant messaging account number or email address, it will be difficult to collect user information (such as the user internal standard in this embodiment) through the user internal standard. standard) to be evenly distributed to each service unit. For this purpose, some routing rules can be set. For example, the check value of user information can be calculated by the check value algorithm, and the corresponding user information can be evenly distributed to the service units according to the check value. , and generate corresponding routing rules. Wherein, the verification value algorithm may include multiple types, such as the hash Hash algorithm. Correspondingly, the processing of the above step S203 may specifically be: obtain the hash Hash value of the user information, and determine and process the service according to the Hash value and the routing rule The requested service unit.

除了上述处理方式外,还可以有其它多种处理方式,例如,对于用户内标为手机号的情况,可以取手机号的最后两位或三位作为分配依据,对于用户内标为邮箱地址的情况,可以取“.com”与“@”之间的信息作为分配依据,本申请实施例对此不做限定。In addition to the above-mentioned processing methods, there are also other processing methods. For example, for the case where the user's internal mark is a mobile phone number, the last two or three digits of the mobile phone number can be used as the allocation basis; for the user's internal mark as an email address In some cases, the information between ".com" and "@" can be used as the allocation basis, which is not limited in this embodiment of the application.

在步骤S204中:路由设备将该服务请求发送至第一服务单元。In step S204: the routing device sends the service request to the first service unit.

上述步骤S201~步骤S204的处理可以分别参见上述实施例一中步骤S101~步骤S103的相关内容,在此不再赘述。For the processing of the above step S201 to step S204, please refer to the relevant content of step S101 to step S103 in the first embodiment, respectively, and details are not repeated here.

在步骤S205中:第一服务单元对该服务请求进行处理,将处理结果发送给路由设备。In step S205: the first service unit processes the service request, and sends the processing result to the routing device.

在实施中,针对不同的具体服务请求,第一服务单元可以进行不同的处理,以下提供两个具体示例,具体可以包括以下内容:In implementation, the first service unit may perform different processing for different specific service requests. Two specific examples are provided below, which may specifically include the following:

示例一:对于如充值服务的服务请求或查询服务的服务请求等,可以直接由第一服务单元调用该服务请求对应的服务执行即可得到相应的处理结果。Example 1: For a service request such as a recharge service or a query service, the first service unit may directly invoke the service execution corresponding to the service request to obtain a corresponding processing result.

示例二:对于修改登录标识的服务的服务请求,如果当前登录标识、修改后的登录标识和用户信息中的其它信息分别被分配在不同的服务单元,如图3所示,具体可以包括以下内容:Example 2: For the service request for the service of modifying the login ID, if the current login ID, the modified login ID and other information in the user information are respectively assigned to different service units, as shown in Figure 3, the specific content may include the following :

步骤301,第一服务单元获取修改后的登录标识对应的用户内标。Step 301, the first service unit obtains the user internal standard corresponding to the modified login ID.

步骤302,第一服务单元根据该用户内标确定增加登录标识服务对应的第四服务单元。In step 302, the first service unit determines a fourth service unit corresponding to the service of adding a login identifier according to the user internal standard.

步骤303,第一服务单元调用第四服务单元的增加登录标识服务。Step 303, the first service unit invokes the service of adding a login identifier of the fourth service unit.

步骤304,第四服务单元增加修改后的登录标识,将增加结果发送给第一服务单元。Step 304, the fourth service unit adds the modified login ID, and sends the addition result to the first service unit.

步骤305,第一服务单元确定增加结果为增加成功时,获取当前登录标识,确定删除当前登录标识的服务对应的第五服务单元。Step 305: When the first service unit determines that the addition is successful, it obtains the current login ID, and determines the fifth service unit corresponding to the service for deleting the current login ID.

步骤306,第一服务单元调用第五服务单元的删除当前登录标识的服务。Step 306, the first service unit invokes the service of deleting the current login ID of the fifth service unit.

步骤307,第五服务单元删除当前登录标识,将删除结果发送给第一服务单元。Step 307, the fifth service unit deletes the current login ID, and sends the deletion result to the first service unit.

步骤308,第一服务单元将删除结果对应的修改结果发送给路由设备。Step 308, the first service unit sends the modification result corresponding to the deletion result to the routing device.

在步骤S206中:路由设备将该处理结果发送给终端设备。In step S206: the routing device sends the processing result to the terminal device.

需要说明的是,上述提及的第一服务单元、第三服务单元~第五服务单元可以位于同一个物理存储单元中,也可以位于不同的物理存储单元中,本申请实施例对此不做限定。It should be noted that the above-mentioned first service unit, third service unit to fifth service unit may be located in the same physical storage unit, or may be located in different physical storage units, and this embodiment of the present application does not do this limited.

此外,为了提高用户信息所在系统的可用性和容灾能力,可以设置相应的容灾策略,可以通过多种方式对受灾的服务单元进行信息恢复,例如,可以对每个服务单元中的数据进行备份,当某服务单元受灾时,可以通过备份对该服务单元中的数据进行恢复,或者也可以通过历史记录恢复,再或者在安全挑战后引导用户重置用户信息(如登录标识),又或者可以从其保留的联系方式上选取等。In addition, in order to improve the availability and disaster recovery capabilities of the system where user information resides, corresponding disaster recovery strategies can be set up, and information recovery of disaster-stricken service units can be carried out in various ways, for example, the data in each service unit can be backed up , when a service unit suffers a disaster, the data in the service unit can be restored through backup, or can also be restored through historical records, or guide users to reset user information (such as login ID) after a security challenge, or can Select from their reserved contact information, etc.

需要说明的是,一个登录标识在统一的路由规则约束下,只能映射到一个服务单元,这样,只要保证该服务单元的一致性即可保证登录标识在全局的唯一性。It should be noted that a login ID can only be mapped to one service unit under the constraints of unified routing rules. In this way, as long as the consistency of the service unit is ensured, the global uniqueness of the login ID can be guaranteed.

本申请实施例提供一种单元化系统服务处理的方法,通过根据接收到的包括用户信息的服务请求的服务类型,确定与该服务类型对应的路由规则,然后,可以根据用户信息和该路由规则确定处理该服务请求的服务单元,将该服务请求发送至确定的服务单元以对该服务请求进行处理,这样,不同的服务由不同的服务单元进行处理,相应的,用户信息中与不同服务相对应的信息也会分配到相应的服务单元,不仅不会影响响应时间,而且可以实现对用户信息的单元化部署,从而可以提高用户信息所在系统的可用性和容灾能力。此外,可以依赖其余的用户信息副本和缓存优化,来提高系统性能和可用性,并且通过设置容灾策略,当登录信息所在的服务单元受灾后,可以采用多种途径进行恢复。The embodiment of the present application provides a method for unitized system service processing, by determining the routing rule corresponding to the service type according to the service type of the received service request including user information, and then, according to the user information and the routing rule Determine the service unit that handles the service request, and send the service request to the determined service unit to process the service request. In this way, different services are processed by different service units. Correspondingly, the user information related to different services The corresponding information will also be allocated to the corresponding service unit, which will not only not affect the response time, but also realize the unitized deployment of user information, thereby improving the availability and disaster recovery capabilities of the system where the user information is located. In addition, you can rely on the rest of the user information copy and cache optimization to improve system performance and availability, and by setting a disaster recovery strategy, when the service unit where the login information is located is damaged, it can be restored in various ways.

实施例三Embodiment three

如图4A所示,本申请实施例提供了一种单元化系统服务处理的方法,该方法的执行主体可以为具有流量调拨功能的路由设备和第一服务单元共同实现,在实际应用中,该路由设备也可以是一个逻辑单元,可以是由多种设备基于层状结构构架而成,其中,可以包括DNS解析设备、CDN设备、负载均衡设备、跨单元代理设备等。具体包括如下步骤:As shown in Figure 4A, the embodiment of the present application provides a method for unitized system service processing. The execution body of the method can be implemented jointly by the routing device with the traffic allocation function and the first service unit. In practical applications, the A routing device can also be a logical unit, which can be constructed from multiple devices based on a layered structure, including DNS resolution devices, CDN devices, load balancing devices, and cross-unit proxy devices. Specifically include the following steps:

在步骤S401中:路由设备接收终端设备发送的服务请求,其中,该服务请求中包括用户信息。In step S401: the routing device receives the service request sent by the terminal device, wherein the service request includes user information.

本申请实施例中,服务请求为登录服务请求,用户信息中包括登录标识和登录验证信息。In this embodiment of the application, the service request is a login service request, and the user information includes a login ID and login verification information.

在步骤S402中:路由设备根据该服务请求的服务类型,确定与该服务类型对应的路由规则。In step S402: the routing device determines a routing rule corresponding to the service type according to the service type of the service request.

在步骤S403中:路由设备根据该登录标识和该服务请求的服务类型所对应的路由规则,确定处理该服务请求的第二服务单元。In step S403: the routing device determines the second service unit that processes the service request according to the routing rule corresponding to the login identifier and the service type of the service request.

在步骤S404中:路由设备将该服务请求发送至第二服务单元。In step S404: the routing device sends the service request to the second service unit.

上述步骤S401~步骤S404的处理可以分别参见上述实施例一中步骤S101~步骤S103的相关内容,在此不再赘述。For the processing of the above step S401 to step S404, please refer to the related content of step S101 to step S103 in the first embodiment, respectively, and details are not repeated here.

如果第二服务单元中缓存有登录验证服务的第三服务单元的信息,则第二服务单元可以直接将该登录验证信息发送给第三服务单元,然后,继续执行步骤S408~步骤S410的处理;如果第二服务单元中缓存有登录验证服务的第三服务单元的信息,则可以执行下述步骤S405~步骤S410的处理。If the information of the third service unit of the login verification service is cached in the second service unit, the second service unit may directly send the login verification information to the third service unit, and then continue to perform the processing of steps S408 to S410; If the information of the third service unit of the login verification service is cached in the second service unit, the following steps S405 to S410 may be performed.

在步骤S405中:第二服务单元获取与该登录标识相对应的目标用户内标,将该目标用户内标发送给路由设备。In step S405: the second service unit obtains the target user ID corresponding to the login ID, and sends the target user ID to the routing device.

在步骤S406中:路由设备确定与该目标用户内标对应的第三服务单元。In step S406: the routing device determines the third service unit corresponding to the internal standard of the target user.

在步骤S407中:路由设备将该登录验证信息发送给第三服务单元。In step S407: the routing device sends the login verification information to the third service unit.

上述步骤S401~步骤S407的处理过程可以参见图4B所示的流程示意图。其中,需要说明的是,某些登录服务仅需要用户输入登录标识和登录验证信息,而还存在一些登录服务不仅需要用户的登录标识和登录验证信息,还需要用户的其他信息,如终端设备的标识、IP地址等部分安全信息等,这样,可以从安全信息所在的服务单元中复制该部分的安全信息到第二服务单元中,从而可以进行上述相关登录处理。For the processing process of the above step S401 to step S407, refer to the schematic flowchart shown in FIG. 4B. Among them, it should be noted that some login services only require the user to enter the login ID and login verification information, while some login services not only require the user's login ID and login verification information, but also other information of the user, such as the terminal device In this way, this part of security information can be copied from the service unit where the security information is located to the second service unit, so that the above-mentioned related login processing can be performed.

在步骤S408中:第三服务单元对该登录验证信息进行登录验证,将登录验证结果发送给第二服务单元。In step S408: the third service unit performs login verification on the login verification information, and sends the login verification result to the second service unit.

在步骤S409中:第二服务单元获取与该登录验证结果相应的登录结果,将该登录结果发送给路由设备。In step S409: the second service unit acquires a login result corresponding to the login verification result, and sends the login result to the routing device.

在步骤S410中:路由设备将该登录结果发送给终端设备。In step S410: the routing device sends the login result to the terminal device.

需要说明的是,上述提及的第一服务单元和第三服务单元可以位于同一个物理存储单元中,也可以位于不同的物理存储单元中,本申请实施例对此不做限定。It should be noted that the first service unit and the third service unit mentioned above may be located in the same physical storage unit, or may be located in different physical storage units, which is not limited in this embodiment of the present application.

本申请实施例提供一种单元化系统服务处理的方法,通过根据接收到的包括用户信息的服务请求的服务类型,确定与该服务类型对应的路由规则,然后,可以根据用户信息和该路由规则确定处理该服务请求的服务单元,将该服务请求发送至确定的服务单元以对该服务请求进行处理,这样,不同的服务由不同的服务单元进行处理,相应的,用户信息中与不同服务相对应的信息也会分配到相应的服务单元,不仅不会影响响应时间,而且可以实现对用户信息的单元化部署,从而可以提高用户信息所在系统的可用性和容灾能力。此外,可以依赖其余的用户信息副本和缓存优化,来提高系统性能和可用性,并且通过设置容灾策略,当登录信息所在的服务单元受灾后,可以采用多种途径进行恢复。The embodiment of the present application provides a method for unitized system service processing, by determining the routing rule corresponding to the service type according to the service type of the received service request including user information, and then, according to the user information and the routing rule Determine the service unit that handles the service request, and send the service request to the determined service unit to process the service request. In this way, different services are processed by different service units. Correspondingly, the user information related to different services The corresponding information will also be allocated to the corresponding service unit, which will not only not affect the response time, but also realize the unitized deployment of user information, thereby improving the availability and disaster recovery capabilities of the system where the user information is located. In addition, you can rely on the rest of the user information copy and cache optimization to improve system performance and availability, and by setting a disaster recovery strategy, when the service unit where the login information is located is damaged, it can be restored in various ways.

实施例四Embodiment Four

以上为本申请实施例提供的单元化系统服务处理的方法,基于同样的思路,本申请实施例还提供一种单元化系统服务处理装置,如图5所示。The above is the method for unitized system service processing provided by the embodiment of the present application. Based on the same idea, the embodiment of the present application also provides a unitized system service processing device, as shown in FIG. 5 .

所述单元化系统服务处理装置包括:接收模块501、路由规则确定模块502和服务处理模块503,其中:The unitized system service processing device includes: a receiving module 501, a routing rule determination module 502 and a service processing module 503, wherein:

接收模块501,用于接收服务请求,其中,所述服务请求中包括用户信息;A receiving module 501, configured to receive a service request, wherein the service request includes user information;

路由规则确定模块502,用于根据所述服务请求的服务类型,确定与所述服务类型对应的路由规则;A routing rule determining module 502, configured to determine a routing rule corresponding to the service type according to the service type of the service request;

服务处理模块503,用于根据所述用户信息和所述路由规则确定处理所述服务请求的服务单元,将所述服务请求发送至确定的服务单元以对所述服务请求进行处理。The service processing module 503 is configured to determine a service unit that processes the service request according to the user information and the routing rule, and send the service request to the determined service unit to process the service request.

本申请实施例中,所述服务请求为登录后的服务请求,所述用户信息中包括用户内标;In the embodiment of the present application, the service request is a service request after login, and the user information includes the user internal standard;

所述服务处理模块503,用于根据所述用户内标和所述服务请求的服务类型所对应的路由规则,确定处理所述服务请求的第一服务单元。The service processing module 503 is configured to determine a first service unit that processes the service request according to the routing rule corresponding to the user internal identifier and the service type of the service request.

本申请实施例中,所述服务请求为登录服务请求,所述用户信息中包括登录标识和登录验证信息,In this embodiment of the application, the service request is a login service request, and the user information includes a login ID and login verification information,

所述服务处理模块503,用于根据所述登录标识和所述服务请求的服务类型所对应的路由规则,确定处理所述服务请求的第二服务单元;The service processing module 503 is configured to determine a second service unit that processes the service request according to the routing rule corresponding to the login identifier and the service type of the service request;

如图6所示,所述装置还包括:As shown in Figure 6, the device also includes:

服务单元确定模块504,用于当接收到所述第二服务单元发送的与所述登录标识相对应的目标用户内标时,确定与所述目标用户内标对应的第三服务单元;A service unit determining module 504, configured to determine a third service unit corresponding to the target user internal standard when receiving the target user internal standard sent by the second service unit and corresponding to the login identifier;

发送模块505,用于将所述登录验证信息发送给所述第三服务单元以对所述登录验证信息进行登录验证。A sending module 505, configured to send the login verification information to the third service unit to perform login verification on the login verification information.

本申请实施例中,所述服务处理503,用于获取所述用户信息的哈希Hash值;根据所述Hash值和所述路由规则确定处理所述服务请求的服务单元。In the embodiment of the present application, the service processing 503 is configured to obtain a hash value of the user information; and determine a service unit for processing the service request according to the Hash value and the routing rule.

需要说明的是,上述提及的第一服务单元和第三服务单元可以位于同一个物理存储单元中,也可以位于不同的物理存储单元中,本申请实施例对此不做限定。It should be noted that the first service unit and the third service unit mentioned above may be located in the same physical storage unit, or may be located in different physical storage units, which is not limited in this embodiment of the present application.

本申请实施例提供一种单元化系统服务处理装置,通过根据接收到的包括用户信息的服务请求的服务类型,确定与该服务类型对应的路由规则,然后,可以根据用户信息和该路由规则确定处理该服务请求的服务单元,将该服务请求发送至确定的服务单元以对该服务请求进行处理,这样,不同的服务由不同的服务单元进行处理,相应的,用户信息中与不同服务相对应的信息也会分配到相应的服务单元,不仅不会影响响应时间,而且可以实现对用户信息的单元化部署,从而可以提高用户信息所在系统的可用性和容灾能力。The embodiment of the present application provides a unitized system service processing device, which determines the routing rule corresponding to the service type according to the service type of the received service request including user information, and then determines the routing rule according to the user information and the routing rule The service unit that processes the service request sends the service request to the specified service unit to process the service request. In this way, different services are processed by different service units. Correspondingly, the user information corresponds to different services The information will also be distributed to the corresponding service units, not only will not affect the response time, but also can realize the unitized deployment of user information, thereby improving the availability and disaster recovery capabilities of the system where the user information is located.

实施例五Embodiment five

基于同样的思路,本申请实施例还提供一种业务处理系统,如图7所示。Based on the same idea, the embodiment of the present application also provides a service processing system, as shown in FIG. 7 .

所述业务处理系统包括:路由设备710和服务单元720,其中:The service processing system includes: a routing device 710 and a service unit 720, wherein:

所述路由设备710,用于接收服务请求,其中,所述服务请求中包括用户信息;根据所述服务请求的服务类型,确定与所述服务类型对应的路由规则;根据所述用户信息和所述路由规则确定处理所述服务请求的服务单元720,将所述服务请求发送至所述确定的服务单元720;The routing device 710 is configured to receive a service request, wherein the service request includes user information; according to the service type of the service request, determine a routing rule corresponding to the service type; according to the user information and the The routing rule determines the service unit 720 that processes the service request, and sends the service request to the determined service unit 720;

所述服务单元720,用于对所述服务请求进行处理。The service unit 720 is configured to process the service request.

本申请实施例中,所述服务单元720包括第一服务单元721和第二服务单元722,所述服务请求为登录服务请求,所述用户信息中包括登录标识和登录验证信息,其中:In the embodiment of this application, the service unit 720 includes a first service unit 721 and a second service unit 722, the service request is a login service request, and the user information includes a login ID and login verification information, wherein:

所述第二服务单元722,用于获取所述登录标识对应的用户内标,将所述登录验证信息发送给所述用户内标对应的第一服务单元721;The second service unit 722 is configured to obtain the user internal standard corresponding to the login ID, and send the login verification information to the first service unit 721 corresponding to the user internal standard;

所述第一服务单元721,用于对所述登录验证信息进行登录验证,将登录验证结果发送给所述第二服务单元722;The first service unit 721 is configured to perform login verification on the login verification information, and send a login verification result to the second service unit 722;

所述第二服务单元722,还用于获取与所述登录验证结果相应的登录结果,将所述登录结果发送给所述路由设备710。The second service unit 722 is further configured to acquire a login result corresponding to the login verification result, and send the login result to the routing device 710 .

上述各服务单元执行的处理,可以参见上述实施例二或实施例三中的相关内容,在此不再赘述。For the processing performed by each of the above service units, reference may be made to the relevant content in Embodiment 2 or Embodiment 3 above, and will not be repeated here.

本申请实施例中,所述服务单元720包括第一服务单元721和第二服务单元722,所述服务请求为登录服务请求,所述用户信息中包括登录标识和登录验证信息,其中:In the embodiment of this application, the service unit 720 includes a first service unit 721 and a second service unit 722, the service request is a login service request, and the user information includes a login ID and login verification information, wherein:

所述第二服务单元722,用于获取所述登录标识对应的用户内标,将所述用户内标发送给所述路由设备710;The second service unit 722 is configured to obtain the user internal token corresponding to the login ID, and send the user internal token to the routing device 710;

所述路由设备710,还用于根据所述用户内标,确定与所述用户内标对应的第一服务单元,将所述登录验证信息发送给所述第一服务单元721;The routing device 710 is further configured to determine a first service unit corresponding to the user internal standard according to the user internal standard, and send the login verification information to the first service unit 721;

所述第一服务单元721,用于对所述登录验证信息进行登录验证,将登录验证结果发送给所述第二服务单元722;The first service unit 721 is configured to perform login verification on the login verification information, and send a login verification result to the second service unit 722;

所述第二服务单元722,还用于获取与所述登录验证结果相应的登录结果,将所述登录结果发送给所述路由设备710。The second service unit 722 is further configured to acquire a login result corresponding to the login verification result, and send the login result to the routing device 710 .

上述各服务单元执行的处理,可以参见上述实施例二或实施例三中的相关内容,在此不再赘述。For the processing performed by each of the above service units, reference may be made to the relevant content in Embodiment 2 or Embodiment 3 above, and will not be repeated here.

本申请实施例中,所述服务单元还包括第三服务单元723,所述服务请求为修改登录标识的服务请求,所述业务处理请求中包括用户内标和修改后的登录标识,In the embodiment of the present application, the service unit further includes a third service unit 723, the service request is a service request for modifying the login ID, and the business processing request includes the user internal standard and the modified login ID,

所述第三服务单元723,用于获取与所述用户内标相对应的登录标识,向所述第二服务单元722发送包括所述修改后的登录标识的修改登录标识指令;The third service unit 723 is configured to obtain a login ID corresponding to the user internal standard, and send a modification login ID instruction including the modified login ID to the second service unit 722;

所述第二服务单元722,用于使用所述修改后的登录标识替换所述登录标识,将所述修改登录标识指令对应的修改结果发送给所述第三服务单元723;The second service unit 722 is configured to use the modified login ID to replace the login ID, and send the modification result corresponding to the modify login ID instruction to the third service unit 723;

所述第三服务单元723,还用于将所述修改结果发送给所述路由设备710。The third service unit 723 is further configured to send the modification result to the routing device 710 .

上述各服务单元执行的处理,可以参见上述实施例二或实施例三中的相关内容,在此不再赘述。For the processing performed by each of the above service units, reference may be made to the relevant content in Embodiment 2 or Embodiment 3 above, and will not be repeated here.

需要说明的是,上述提及的第一服务单元和第三服务单元可以位于同一个物理存储单元中,也可以位于不同的物理存储单元中,本申请实施例对此不做限定。It should be noted that the first service unit and the third service unit mentioned above may be located in the same physical storage unit, or may be located in different physical storage units, which is not limited in this embodiment of the present application.

本申请实施例提供一种业务处理系统,通过根据接收到的包括用户信息的服务请求的服务类型,确定与该服务类型对应的路由规则,然后,可以根据用户信息和该路由规则确定处理该服务请求的服务单元,将该服务请求发送至确定的服务单元以对该服务请求进行处理,这样,不同的服务由不同的服务单元进行处理,相应的,用户信息中与不同服务相对应的信息也会分配到相应的服务单元,不仅不会影响响应时间,而且可以实现对用户信息的单元化部署,从而可以提高用户信息所在系统的可用性和容灾能力。The embodiment of the present application provides a business processing system, by determining the routing rule corresponding to the service type according to the service type of the received service request including the user information, and then determining and processing the service according to the user information and the routing rule The requesting service unit sends the service request to the determined service unit to process the service request. In this way, different services are processed by different service units. Correspondingly, the information corresponding to different services in the user information is also It will be assigned to the corresponding service unit, not only will not affect the response time, but also can realize the unitized deployment of user information, thereby improving the availability and disaster recovery capabilities of the system where the user information is located.

在20世纪90年代,对于一个技术的改进可以很明显地区分是硬件上的改进(例如,对二极管、晶体管、开关等电路结构的改进)还是软件上的改进(对于方法流程的改进)。然而,随着技术的发展,当今的很多方法流程的改进已经可以视为硬件电路结构的直接改进。设计人员几乎都通过将改进的方法流程编程到硬件电路中来得到相应的硬件电路结构。因此,不能说一个方法流程的改进就不能用硬件实体模块来实现。例如,可编程逻辑器件(Programmable Logic Device,PLD)(例如现场可编程门阵列(Field Programmable GateArray,FPGA))就是这样一种集成电路,其逻辑功能由用户对器件编程来确定。由设计人员自行编程来把一个数字系统“集成”在一片PLD上,而不需要请芯片制造厂商来设计和制作专用的集成电路芯片。而且,如今,取代手工地制作集成电路芯片,这种编程也多半改用“逻辑编译器(logic compiler)”软件来实现,它与程序开发撰写时所用的软件编译器相类似,而要编译之前的原始代码也得用特定的编程语言来撰写,此称之为硬件描述语言(Hardware Description Language,HDL),而HDL也并非仅有一种,而是有许多种,如ABEL(Advanced Boolean Expression Language)、AHDL(Altera Hardware DescriptionLanguage)、Confluence、CUPL(Cornell University Programming Language)、HDCal、JHDL(Java Hardware Description Language)、Lava、Lola、MyHDL、PALASM、RHDL(RubyHardware Description Language)等,目前最普遍使用的是VHDL(Very-High-SpeedIntegrated Circuit Hardware Description Language)与Verilog。本领域技术人员也应该清楚,只需要将方法流程用上述几种硬件描述语言稍作逻辑编程并编程到集成电路中,就可以很容易得到实现该逻辑方法流程的硬件电路。In the 1990s, the improvement of a technology can be clearly distinguished as an improvement in hardware (for example, improvements in circuit structures such as diodes, transistors, and switches) or improvements in software (improvement in method flow). However, with the development of technology, the improvement of many current method flows can be regarded as the direct improvement of the hardware circuit structure. Designers almost always get the corresponding hardware circuit structure by programming the improved method flow into the hardware circuit. Therefore, it cannot be said that the improvement of a method flow cannot be realized by hardware physical modules. For example, a Programmable Logic Device (Programmable Logic Device, PLD) (such as a Field Programmable Gate Array (Field Programmable GateArray, FPGA)) is such an integrated circuit, and its logic function is determined by programming the device by a user. It is programmed by the designer to "integrate" a digital system on a PLD, instead of asking a chip manufacturer to design and make a dedicated integrated circuit chip. Moreover, nowadays, instead of making integrated circuit chips by hand, this kind of programming is mostly realized by "logic compiler (logic compiler)" software, which is similar to the software compiler used when writing programs. The original code of the computer must also be written in a specific programming language, which is called a hardware description language (Hardware Description Language, HDL), and there is not only one kind of HDL, but many kinds, such as ABEL (Advanced Boolean Expression Language) , AHDL (Altera Hardware Description Language), Confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), Lava, Lola, MyHDL, PALASM, RHDL (Ruby Hardware Description Language), etc., currently the most commonly used is VHDL (Very-High-Speed Integrated Circuit Hardware Description Language) and Verilog. It should also be clear to those skilled in the art that only a little logical programming of the method flow in the above-mentioned hardware description languages and programming into an integrated circuit can easily obtain a hardware circuit for realizing the logic method flow.

控制器可以按任何适当的方式实现,例如,控制器可以采取例如微处理器或处理器以及存储可由该(微)处理器执行的计算机可读程序代码(例如软件或固件)的计算机可读介质、逻辑门、开关、专用集成电路(Application Specific Integrated Circuit,ASIC)、可编程逻辑控制器和嵌入微控制器的形式,控制器的例子包括但不限于以下微控制器:ARC 625D、Atmel AT91SAM、Microchip PIC18F26K20以及Silicone Labs C8051F320,存储器控制器还可以被实现为存储器的控制逻辑的一部分。本领域技术人员也知道,除了以纯计算机可读程序代码方式实现控制器以外,完全可以通过将方法步骤进行逻辑编程来使得控制器以逻辑门、开关、专用集成电路、可编程逻辑控制器和嵌入微控制器等的形式来实现相同功能。因此这种控制器可以被认为是一种硬件部件,而对其内包括的用于实现各种功能的装置也可以视为硬件部件内的结构。或者甚至,可以将用于实现各种功能的装置视为既可以是实现方法的软件模块又可以是硬件部件内的结构。The controller may be implemented in any suitable way, for example the controller may take the form of a microprocessor or processor and a computer readable medium storing computer readable program code (such as software or firmware) executable by the (micro)processor , logic gates, switches, Application Specific Integrated Circuit (ASIC), programmable logic controllers, and embedded microcontrollers, examples of controllers include but are not limited to the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20 and Silicone Labs C8051F320, the memory controller can also be implemented as part of the memory's control logic. Those skilled in the art also know that, in addition to realizing the controller in a purely computer-readable program code mode, it is entirely possible to make the controller use logic gates, switches, application-specific integrated circuits, programmable logic controllers, and embedded The same function can be realized in the form of a microcontroller or the like. Therefore, such a controller can be regarded as a hardware component, and the devices included in it for realizing various functions can also be regarded as structures within the hardware component. Or even, means for realizing various functions can be regarded as a structure within both a software module realizing a method and a hardware component.

上述实施例阐明的系统、装置、模块或单元,具体可以由计算机芯片或实体实现,或者由具有某种功能的产品来实现。一种典型的实现设备为计算机。具体的,计算机例如可以为个人计算机、膝上型计算机、蜂窝电话、相机电话、智能电话、个人数字助理、媒体播放器、导航设备、电子邮件设备、游戏控制台、平板计算机、可穿戴设备或者这些设备中的任何设备的组合。The systems, devices, modules, or units described in the above embodiments can be specifically implemented by computer chips or entities, or by products with certain functions. A typical implementing device is a computer. Specifically, the computer may be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or Combinations of any of these devices.

为了描述的方便,描述以上装置时以功能分为各种单元分别描述。当然,在实施本申请时可以把各单元的功能在同一个或多个软件和/或硬件中实现。For the convenience of description, when describing the above devices, functions are divided into various units and described separately. Of course, when implementing the present application, the functions of each unit can be implemented in one or more pieces of software and/or hardware.

本领域内的技术人员应明白,本申请的实施例可提供为方法、系统、或计算机程序产品。因此,本申请可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art should understand that the embodiments of the present application may be provided as methods, systems, or computer program products. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.

本申请是参照根据本申请实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present application is described with reference to flowcharts and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the present application. It should be understood that each procedure and/or block in the flowchart and/or block diagram, and a combination of procedures and/or blocks in the flowchart and/or block diagram can be realized by computer program instructions. These computer program instructions may be provided to a general purpose computer, special purpose computer, embedded processor, or processor of other programmable data processing equipment to produce a machine such that the instructions executed by the processor of the computer or other programmable data processing equipment produce a An apparatus for realizing the functions specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.

这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to operate in a specific manner, such that the instructions stored in the computer-readable memory produce an article of manufacture comprising instruction means, the instructions The device realizes the function specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.

这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device, causing a series of operational steps to be performed on the computer or other programmable device to produce a computer-implemented process, thereby The instructions provide steps for implementing the functions specified in the flow chart or blocks of the flowchart and/or the block or blocks of the block diagrams.

在一个典型的配置中,计算设备包括一个或多个处理器(CPU)、输入/输出接口、网络接口和内存。In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.

内存可能包括计算机可读介质中的非永久性存储器,随机存取存储器(RAM)和/或非易失性内存等形式,如只读存储器(ROM)或闪存(flash RAM)。内存是计算机可读介质的示例。Memory may include non-permanent storage in computer readable media, in the form of random access memory (RAM) and/or nonvolatile memory such as read only memory (ROM) or flash RAM. Memory is an example of computer readable media.

计算机可读介质包括永久性和非永久性、可移动和非可移动媒体可以由任何方法或技术来实现信息存储。信息可以是计算机可读指令、数据结构、程序的模块或其他数据。计算机的存储介质的例子包括,但不限于相变内存(PRAM)、静态随机存取存储器(SRAM)、动态随机存取存储器(DRAM)、其他类型的随机存取存储器(RAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、快闪记忆体或其他内存技术、只读光盘只读存储器(CD-ROM)、数字多功能光盘(DVD)或其他光学存储、磁盒式磁带,磁带磁磁盘存储或其他磁性存储设备或任何其他非传输介质,可用于存储可以被计算设备访问的信息。按照本文中的界定,计算机可读介质不包括暂存电脑可读媒体(transitory media),如调制的数据信号和载波。Computer-readable media, including both permanent and non-permanent, removable and non-removable media, can be implemented by any method or technology for storage of information. Information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read only memory (ROM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Flash memory or other memory technology, Compact Disc Read-Only Memory (CD-ROM), Digital Versatile Disc (DVD) or other optical storage, Magnetic tape cartridge, tape magnetic disk storage or other magnetic storage device or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, computer-readable media excludes transitory computer-readable media, such as modulated data signals and carrier waves.

还需要说明的是,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、商品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、商品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、商品或者设备中还存在另外的相同要素。It should also be noted that the term "comprises", "comprises" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article, or apparatus comprising a set of elements includes not only those elements, but also includes Other elements not expressly listed, or elements inherent in the process, method, commodity, or apparatus are also included. Without further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of additional identical elements in the process, method, article or apparatus comprising said element.

本领域技术人员应明白,本申请的实施例可提供为方法、系统或计算机程序产品。因此,本申请可采用完全硬件实施例、完全软件实施例或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art should understand that the embodiments of the present application may be provided as methods, systems or computer program products. Accordingly, the present application can take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.

本申请可以在由计算机执行的计算机可执行指令的一般上下文中描述,例如程序模块。一般地,程序模块包括执行特定任务或实现特定抽象数据类型的例程、程序、对象、组件、数据结构等等。也可以在分布式计算环境中实践本申请,在这些分布式计算环境中,由通过通信网络而被连接的远程处理设备来执行任务。在分布式计算环境中,程序模块可以位于包括存储设备在内的本地和远程计算机存储介质中。This application may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. The application may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including storage devices.

本说明书中的各个实施例均采用递进的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于系统实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。Each embodiment in this specification is described in a progressive manner, the same and similar parts of each embodiment can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, as for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and for the related parts, please refer to the part of the description of the method embodiment.

以上所述仅为本申请的实施例而已,并不用于限制本申请。对于本领域技术人员来说,本申请可以有各种更改和变化。凡在本申请的精神和原理之内所作的任何修改、等同替换、改进等,均应包含在本申请的权利要求范围之内。The above descriptions are only examples of the present application, and are not intended to limit the present application. For those skilled in the art, various modifications and changes may occur in this application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included within the scope of the claims of the present application.

Claims (12)

1. a kind of method of blocking system service processing, it is characterised in that methods described includes:
Service request is received, wherein, the service request includes user profile;
According to the service type of the service request, it is determined that routing rule corresponding with the service type;
Determined to handle the service unit of the service request according to the user profile and the routing rule, please by the service Ask and send to the service unit determined to handle the service request.
2. according to the method described in claim 1, it is characterised in that the service request is the service request after logging in, described User profile includes user's internal standard;
It is described to be determined to handle the service unit of the service request according to the user profile and the routing rule, including:
Routing rule according to corresponding to the service type of user's internal standard and the service request, it is determined that the processing service The first service unit of request.
3. according to the method described in claim 1, it is characterised in that the service request is asked for login service, the user Information includes login banner and login authentication information,
It is described to be determined to handle the service unit of the service request according to the service request and the routing rule, including:
Routing rule according to corresponding to the service type of the login banner and the service request, it is determined that the processing service The second service unit of request;
Described to send the service request to the service unit of the determination, methods described also includes:
When timestamp in the targeted customer corresponding with the login banner for receiving the second service unit transmission, it is determined that with Corresponding 3rd service unit of targeted customer's internal standard;
The login authentication information is sent to the 3rd service unit to carry out login authentication to the login authentication information.
4. the method according to any one of claim 1-3, it is characterised in that described according to the user profile and described Routing rule determines the service unit of the processing service request, including:
Obtain the Hash values of the user profile;
Determined to handle the service unit of the service request according to the hash value and the routing rule.
5. a kind of blocking system service processing unit, it is characterised in that described device includes:
Receiving module, for receiving service request, wherein, the service request includes user profile;
Routing rule determining module, for the service type according to the service request, it is determined that corresponding with the service type Routing rule;
Service processing module, for being determined to handle the service of the service request according to the user profile and the routing rule Unit, the service request is sent to the service unit of determination to handle the service request.
6. device according to claim 5, it is characterised in that the service request is the service request after logging in, described User profile includes user's internal standard;
The service processing module, for the route corresponding to the service type according to user's internal standard and the service request Rule, it is determined that handling the first service unit of the service request.
7. device according to claim 5, it is characterised in that the service request is asked for login service, the user Information includes login banner and login authentication information,
The service processing module, for the route corresponding to the service type according to the login banner and the service request Rule, it is determined that handling the second service unit of the service request;
Described device also includes:
Service unit determining module, the corresponding with the login banner of the second service unit transmission is received for working as Timestamp in targeted customer, it is determined that the 3rd service unit corresponding with targeted customer's internal standard;
Sending module, for the login authentication information to be sent into the 3rd service unit with to the login authentication information Carry out login authentication.
8. the device according to any one of claim 5-7, it is characterised in that the service processing module, for obtaining The Hash values of the user profile;Determined to handle the clothes of the service request according to the hash value and the routing rule Business unit.
9. a kind of transaction processing system, it is characterised in that the system includes:Routing device and service unit, wherein:
The routing device, for receiving service request, wherein, the service request includes user profile;According to the clothes The service type of business request, it is determined that routing rule corresponding with the service type;According to the user profile and the route Rule determines the service unit of the processing service request, and the service request is sent to the service unit of the determination;
The service unit, for handling the service request.
10. system according to claim 9, it is characterised in that the service unit includes first service unit and second Service unit, the service request is asked for login service, and the user profile includes login banner and login authentication information, Wherein:
The second service unit, for obtaining the corresponding user's internal standard of the login banner, the login authentication information is sent out Give user's internal standard corresponding first service unit;
The first service unit, for carrying out login authentication to the login authentication information, login authentication result is sent to The second service unit;
The second service unit, is additionally operable to obtain login result corresponding with the login authentication result, and described log in is tied Fruit is sent to the routing device.
11. system according to claim 9, it is characterised in that the service unit includes first service unit and second Service unit, the service request is asked for login service, and the user profile includes login banner and login authentication information, Wherein:
The second service unit, for obtaining the corresponding user's internal standard of the login banner, user's internal standard is sent to The routing device;
The routing device, is additionally operable to according to user's internal standard, it is determined that first service unit corresponding with user's internal standard, The login authentication information is sent to the first service unit;
The first service unit, for carrying out login authentication to the login authentication information, login authentication result is sent to The second service unit;
The second service unit, is additionally operable to obtain login result corresponding with the login authentication result, and described log in is tied Fruit is sent to the routing device.
12. the system according to claim 10 or 11, it is characterised in that it is single that the service unit also includes the 3rd service Member, the service request is changes the service request of login banner, and the business processing request includes user's internal standard and modification Login banner afterwards,
3rd service unit, for obtaining the login banner corresponding with user's internal standard, to the second service list Member, which is sent, includes the modification login banner instruction of the amended login banner;
The second service unit, for replacing the login banner using the amended login banner, by the modification The corresponding modification result of login banner instruction is sent to the 3rd service unit;
3rd service unit, is additionally operable to the modification result being sent to the routing device.
CN201611229300.2A 2016-12-27 2016-12-27 Unitized system service processing method and device and business processing system Expired - Fee Related CN107018174B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611229300.2A CN107018174B (en) 2016-12-27 2016-12-27 Unitized system service processing method and device and business processing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611229300.2A CN107018174B (en) 2016-12-27 2016-12-27 Unitized system service processing method and device and business processing system

Publications (2)

Publication Number Publication Date
CN107018174A true CN107018174A (en) 2017-08-04
CN107018174B CN107018174B (en) 2020-01-03

Family

ID=59440110

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611229300.2A Expired - Fee Related CN107018174B (en) 2016-12-27 2016-12-27 Unitized system service processing method and device and business processing system

Country Status (1)

Country Link
CN (1) CN107018174B (en)

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108134828A (en) * 2017-12-20 2018-06-08 金蝶软件(中国)有限公司 Method for routing, device, computer equipment and the storage medium of service request
CN108768871A (en) * 2018-05-16 2018-11-06 阿里巴巴集团控股有限公司 Service traffics distribution method, device and equipment
CN108920277A (en) * 2018-06-27 2018-11-30 阿里巴巴集团控股有限公司 Business executes system, method and device, business shielding system
CN110347404A (en) * 2019-06-28 2019-10-18 北京你财富计算机科技有限公司 A kind of program switch control method, device, electronic equipment
CN110474841A (en) * 2019-08-30 2019-11-19 中国人民财产保险股份有限公司 Service request routing processing method and terminal equipment
CN111221653A (en) * 2020-01-06 2020-06-02 中国银联股份有限公司 A service processing method, device and computer-readable storage medium
CN112732372A (en) * 2021-01-18 2021-04-30 中国民航信息网络股份有限公司 Service calling method and device and server
CN113626714A (en) * 2021-08-23 2021-11-09 支付宝(杭州)信息技术有限公司 Service information display method, device and device based on privacy protection
CN113839865A (en) * 2021-11-30 2021-12-24 北京鲸鲮信息系统技术有限公司 Management method and system for cross-domain call service
CN114238397A (en) * 2021-11-12 2022-03-25 上海浦东发展银行股份有限公司 User data processing method, apparatus, device, storage medium and program product
CN114253555A (en) * 2020-09-24 2022-03-29 深圳富桂精密工业有限公司 Software service deployment method, electronic device and storage medium
CN114363339A (en) * 2022-01-07 2022-04-15 中国工商银行股份有限公司 Traffic switching method, apparatus, system, device, medium, and program product
CN114356575A (en) * 2022-01-06 2022-04-15 上海幻电信息科技有限公司 User request processing method and device
CN116028256A (en) * 2023-02-27 2023-04-28 中国工商银行股份有限公司 Data processing method, device and medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1956385A (en) * 2005-09-28 2007-05-02 株式会社Ntt都科摩 Information transmission terminal, information transmission method, article information transmission system and article information transmission method
CN101047816A (en) * 2006-03-30 2007-10-03 Lg电子株式会社 Mobile terminal and method of managing broadcasting service information using digital broadcast reception function
CN102594899A (en) * 2011-12-31 2012-07-18 成都市华为赛门铁克科技有限公司 Storage service method and storage server using the same
CN103186552A (en) * 2011-12-28 2013-07-03 北京新媒传信科技有限公司 Method and system for visiting data by client in business service
CN104954463A (en) * 2015-06-12 2015-09-30 华为技术有限公司 Applied user information management method, device and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1956385A (en) * 2005-09-28 2007-05-02 株式会社Ntt都科摩 Information transmission terminal, information transmission method, article information transmission system and article information transmission method
CN101047816A (en) * 2006-03-30 2007-10-03 Lg电子株式会社 Mobile terminal and method of managing broadcasting service information using digital broadcast reception function
CN103186552A (en) * 2011-12-28 2013-07-03 北京新媒传信科技有限公司 Method and system for visiting data by client in business service
CN102594899A (en) * 2011-12-31 2012-07-18 成都市华为赛门铁克科技有限公司 Storage service method and storage server using the same
CN104954463A (en) * 2015-06-12 2015-09-30 华为技术有限公司 Applied user information management method, device and system

Cited By (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108134828A (en) * 2017-12-20 2018-06-08 金蝶软件(中国)有限公司 Method for routing, device, computer equipment and the storage medium of service request
CN108768871A (en) * 2018-05-16 2018-11-06 阿里巴巴集团控股有限公司 Service traffics distribution method, device and equipment
CN108920277B (en) * 2018-06-27 2021-12-07 创新先进技术有限公司 Service execution system, method and device and service isolation system
CN108920277A (en) * 2018-06-27 2018-11-30 阿里巴巴集团控股有限公司 Business executes system, method and device, business shielding system
CN110347404A (en) * 2019-06-28 2019-10-18 北京你财富计算机科技有限公司 A kind of program switch control method, device, electronic equipment
CN110474841B (en) * 2019-08-30 2021-09-10 中国人民财产保险股份有限公司 Service request routing processing method and terminal equipment
CN110474841A (en) * 2019-08-30 2019-11-19 中国人民财产保险股份有限公司 Service request routing processing method and terminal equipment
CN111221653A (en) * 2020-01-06 2020-06-02 中国银联股份有限公司 A service processing method, device and computer-readable storage medium
CN111221653B (en) * 2020-01-06 2024-03-19 中国银联股份有限公司 A service processing method, device and computer-readable storage medium
CN114253555B (en) * 2020-09-24 2025-10-14 深圳富桂精密工业有限公司 Software service deployment method, electronic device and storage medium
CN114253555A (en) * 2020-09-24 2022-03-29 深圳富桂精密工业有限公司 Software service deployment method, electronic device and storage medium
CN112732372A (en) * 2021-01-18 2021-04-30 中国民航信息网络股份有限公司 Service calling method and device and server
CN113626714A (en) * 2021-08-23 2021-11-09 支付宝(杭州)信息技术有限公司 Service information display method, device and device based on privacy protection
CN114238397A (en) * 2021-11-12 2022-03-25 上海浦东发展银行股份有限公司 User data processing method, apparatus, device, storage medium and program product
CN113839865A (en) * 2021-11-30 2021-12-24 北京鲸鲮信息系统技术有限公司 Management method and system for cross-domain call service
CN113839865B (en) * 2021-11-30 2022-03-01 北京鲸鲮信息系统技术有限公司 Management method and system for cross-domain call service
CN114356575A (en) * 2022-01-06 2022-04-15 上海幻电信息科技有限公司 User request processing method and device
CN114363339B (en) * 2022-01-07 2024-01-30 中国工商银行股份有限公司 Traffic switching method, device, system, apparatus, medium and program product
CN114363339A (en) * 2022-01-07 2022-04-15 中国工商银行股份有限公司 Traffic switching method, apparatus, system, device, medium, and program product
CN116028256A (en) * 2023-02-27 2023-04-28 中国工商银行股份有限公司 Data processing method, device and medium

Also Published As

Publication number Publication date
CN107018174B (en) 2020-01-03

Similar Documents

Publication Publication Date Title
CN107018174B (en) Unitized system service processing method and device and business processing system
US9430664B2 (en) Data protection for organizations on computing devices
US11212371B2 (en) Operation request allocation methods, apparatuses, and devices
US10656972B2 (en) Managing idempotent operations while interacting with a system of record
TWI694700B (en) Data processing method and device, user terminal
CN108683695A (en) Hot spot access processing method, cache access agent equipment and distributed cache system
US20170163488A1 (en) Discovering and publishing device changes in a cloud environment
US12438824B2 (en) Protecting integration between resources of different services using service-generated dependency tags
US12127070B2 (en) Geofence tracking with device location privacy
TWI697223B (en) Data processing method
CN107087031A (en) A storage resource load balancing method and device
US11604894B2 (en) Data processing methods, apparatuses, devices, and media
CN113873052B (en) Domain name resolution method, device and equipment of Kubernetes cluster
US20180123999A1 (en) Tracking client location using buckets
CN109495464B (en) Method, apparatus, device and system for tracking application access
CN109144743A (en) A kind of acquisition methods of data, device and equipment
JP7321368B2 (en) Method, computer system and computer program for determining 3rd Generation Partnership Project (3GPP) framework for live uplink streaming (FLUS) sink capabilities
TWI714017B (en) Data processing method, device and server
US9456024B1 (en) Content sharing in mobile ad hoc networks
CN114868362B (en) Method and apparatus for accessing real-time uplink streaming Framework (FLUS) sink capabilities
KR102536777B1 (en) System for providing domain name using layered blockchain
CN110798411A (en) Service invocation method, traffic scheduling method and device
CN116402631A (en) Method, device, storage medium and electronic device for community discovery
HK40001880B (en) Data processing method and apparatus, client
HK40001880A (en) Data processing method and apparatus, client

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20200921

Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman, British Islands

Patentee after: Innovative advanced technology Co.,Ltd.

Address before: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman, British Islands

Patentee before: Advanced innovation technology Co.,Ltd.

Effective date of registration: 20200921

Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman, British Islands

Patentee after: Advanced innovation technology Co.,Ltd.

Address before: A four-storey 847 mailbox in Grand Cayman Capital Building, British Cayman Islands

Patentee before: Alibaba Group Holding Ltd.

CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20200103