CN117896345A - Mail service method and device, storage medium and electronic equipment - Google Patents

Mail service method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN117896345A
CN117896345A CN202410033904.8A CN202410033904A CN117896345A CN 117896345 A CN117896345 A CN 117896345A CN 202410033904 A CN202410033904 A CN 202410033904A CN 117896345 A CN117896345 A CN 117896345A
Authority
CN
China
Prior art keywords
cluster
service
mail
account
account name
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.)
Pending
Application number
CN202410033904.8A
Other languages
Chinese (zh)
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.)
China Construction Bank Corp
Original Assignee
China Construction Bank Corp
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 China Construction Bank Corp filed Critical China Construction Bank Corp
Priority to CN202410033904.8A priority Critical patent/CN117896345A/en
Publication of CN117896345A publication Critical patent/CN117896345A/en
Pending legal-status Critical Current

Links

Abstract

The application discloses a mail service method and device, a storage medium and electronic equipment, wherein the method comprises the following steps: under the condition that a central node cluster of a mail system acquires a mail service request, determining a first service cluster corresponding to a first account name through the central node cluster, wherein the mail service request carries the first account name, and an account corresponding to the first account name is a requester of the mail service request; and forwarding the mail service request to the first service cluster through the central node cluster, and providing mail service for an account corresponding to the first account name through the first service cluster. By adopting the scheme, the problem that the existing mail system has poor processing effect when processing large-scale mails is solved.

Description

Mail service method and device, storage medium and electronic equipment
Technical Field
The embodiment of the application relates to the field of computers, in particular to a mail service method and device, a storage medium and electronic equipment.
Background
With the rapid development of the internet, email has become an important communication tool for business, and mailbox systems have become important propositions for supporting the internal operation of enterprises. Unlike the timeliness pursued by instant messaging tools, mail systems are formal channels of inter-department, enterprise and client communication, and mail is also a basis for the advancement of many work implementations. In this way, the mail system is required to bear the integrity and accuracy of information transmission and ensure the stability and safety of information storage. Because of the obvious security requirement of business mails, most of the existing mail systems consider the data encryption mode of the business mails, and the background physical deployment architecture is simpler. Even complex architectures are mostly simple services that separate networks from applications, i.e. distributed (JAVA applications are mostly J2 EE-based), and only taking into account the separation of different services, lack a highly available and scalable solution to larger-scale mail systems.
Aiming at the problem that the existing mail system has poor processing effect when processing large-scale mails in the related art, no effective solution is proposed at present.
Disclosure of Invention
The embodiment of the application provides a mail service method and device, a storage medium and electronic equipment, which are used for at least solving the problem that the existing mail system is poor in processing effect when processing large-scale mails.
According to one embodiment of the present application, there is provided a mail service method including: under the condition that a central node cluster of a mail system acquires a mail service request, determining a first service cluster corresponding to a first account name through the central node cluster, wherein the mail service request carries the first account name, and an account corresponding to the first account name is a requester of the mail service request; and forwarding the mail service request to the first service cluster through the central node cluster, and providing mail service for an account corresponding to the first account name through the first service cluster.
In an exemplary embodiment, after determining, by the central node cluster, a first service cluster corresponding to a first account name, the method includes: sending target information to a client under the condition that the mail service request acquired by the central node cluster is sent by the client; the client is a client sending the mail service request, the target information carries a domain name of the first service cluster, and the target information is used for indicating the client to send the service request to the first service cluster under the condition that the client sends the service request of an account corresponding to the first account name.
In an exemplary embodiment, determining, by the central node cluster, a first service cluster corresponding to a first account name includes: acquiring a first list through the central node cluster, wherein the first list is provided with account names of accounts served by different service clusters of the mail system; and determining a first service cluster corresponding to the first account name according to the first list through the central node cluster.
In an exemplary embodiment, providing, by the first service cluster, a mail service for an account corresponding to the first account name includes: determining a second account name from the mail service request through the first service cluster, wherein an account corresponding to the second account name is a receiver of the mail service request; and determining a second service cluster for providing mail service for the account corresponding to the second account name through the first service cluster, and sending the mail content carried in the mail service request to the account corresponding to the second account name through the second service cluster.
In an exemplary embodiment, determining, by the first service cluster, a second service cluster for providing a mail service for an account corresponding to the second account name includes: sending a first request message to a central node cluster through the first service cluster, wherein the first request message carries the second account name; and acquiring the domain name of a second service cluster sent by the central node cluster in response to the first request message through the first service cluster.
In an exemplary embodiment, the method further comprises: under the condition that a third service cluster of a mail system acquires the mail service request, determining whether a first account name is located in a second list or not through the third service cluster, wherein the second list is provided with account names of accounts served by the third service cluster; sending a second request message to the central node cluster under the condition that the first account name is not located in the second list so as to determine the service cluster for providing mail service for the account corresponding to the first account name; and under the condition that the first account name is located in the second list, providing mail service for the account corresponding to the first account name through the third service cluster.
In an exemplary embodiment, the method further comprises: and sending the account name of the account served by the service cluster to the central node cluster at regular time through the service cluster of the mail system, wherein the service cluster comprises the first service cluster.
According to another embodiment of the present application, there is also provided a mail service apparatus including: the determining module is used for determining a first business cluster corresponding to a first account name through a central node cluster of a mail system under the condition that the central node cluster obtains a mail service request, wherein the mail service request carries the first account name, and an account corresponding to the first account name is a requester of the mail service request; and the processing module is used for forwarding the mail service request to the first service cluster through the central node cluster and providing mail service for the account corresponding to the first account name through the first service cluster.
According to a further embodiment of the present application, there is also provided a computer readable storage medium having stored therein a computer program, wherein the computer program is arranged to perform the steps of any of the method embodiments described above when run.
According to a further embodiment of the present application, there is also provided an electronic device comprising a memory having stored therein a computer program and a processor arranged to run the computer program to perform the steps of any of the method embodiments described above.
According to the method and the device, when the central node cluster of the mail system acquires a mail service request, the central node cluster determines a first service cluster corresponding to the first account name, then the service request is sent to the corresponding first service cluster, and the first service cluster provides mail service. The mail service is provided for the user through the multi-service cluster, the problem that the existing mail system is poor in processing effect when processing large-scale mails is solved, and the efficiency of processing and providing the mail service for the mail system is improved. In addition, the mail service is provided for the user through the multi-service cluster, so that the mutual isolation among the resources can be improved, and the technical effect of enhancing the availability of the resources is achieved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiments of the application and together with the description serve to explain the application and do not constitute an undue limitation to the application. In the drawings:
fig. 1 is a hardware block diagram of a mobile terminal of a mail service method according to an embodiment of the present application;
FIG. 2 is a flow chart of a mail service method according to an embodiment of the present application;
fig. 3 is a schematic diagram of a multi-service cluster structure according to an embodiment of the present application;
FIG. 4 is a schematic diagram of a user request processing flow in a multi-cluster deployment mode according to an embodiment of the present application;
fig. 5 is a block diagram of a mail service apparatus according to an embodiment of the present application.
Detailed Description
In order to make the present application solution better understood by those skilled in the art, the following description will be made in detail and with reference to the accompanying drawings in the embodiments of the present application, it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without making any inventive effort, shall fall within the scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and claims of the present application and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order.
The method embodiments provided in the embodiments of the present application may be performed in a mobile terminal, a computer terminal or similar computing device. Taking the mobile terminal as an example, fig. 1 is a block diagram of a hardware structure of a mobile terminal of a mail service method according to an embodiment of the present application. As shown in fig. 1, a mobile terminal may include one or more (only one is shown in fig. 1) processors 102 (the processor 102 may include, but is not limited to, a microprocessor MCU or a processing device such as a programmable logic device FPGA) and a memory 104 for storing data, wherein the mobile terminal may also include a transmission device 106 for communication functions and an input-output device 108. It will be appreciated by those skilled in the art that the structure shown in fig. 1 is merely illustrative and not limiting of the structure of the mobile terminal described above. For example, the mobile terminal may also include more or fewer components than shown in fig. 1, or have a different configuration than shown in fig. 1.
The memory 104 may be used to store computer programs, such as software programs and modules of application software, such as computer programs corresponding to mail service methods in the embodiments of the present application, and the processor 102 executes the computer programs stored in the memory 104 to perform various functional applications and data processing, i.e., implement the methods described above. Memory 104 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include memory remotely located relative to the processor 102, which may be connected to the mobile terminal via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission device 106 is used to receive or transmit data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the mobile terminal. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, simply referred to as NIC) that can connect to other network devices through a base station to communicate with the internet. In one example, the transmission device 106 may be a Radio Frequency (RF) module, which is configured to communicate with the internet wirelessly.
In this embodiment, a mail service method is provided, and fig. 2 is a flowchart of a mail service method according to an embodiment of the present application, as shown in fig. 2, where the flowchart includes the following steps:
step S202, under the condition that a central node cluster of a mail system acquires a mail service request, determining a first service cluster corresponding to a first account name through the central node cluster, wherein the mail service request carries the first account name, and an account corresponding to the first account name is a requester of the mail service request;
it should be noted that cluster deployment is a deployment form commonly used for production. A cluster is typically made up of two or more node machines (servers) that provide a unified set of web services or applications to users. The implementation principle is that each node is interconnected by corresponding hardware and software, each cluster node has own process, and the processes of each node can communicate with each other, and the nodes are revealed to a user in the form of a single system through cooperation. Cluster deployments have high availability, one server fails and other servers can continue to provide access to services and applications that are needed by the user. This means that the downtime is shorter and the impact on the traffic is smaller. Meanwhile, the expandability and the elasticity of cluster deployment are extremely strong, operation and maintenance personnel can efficiently and lowly expand or reduce resources in a mode of increasing or reducing nodes in the clusters, and meanwhile, each node can also share flow in an average way by combining a load mechanism.
It should be noted that, the central node cluster of the mail system is communicated with each service cluster network, and can be accessed through different domain names.
As an alternative embodiment, mail services include, but are not limited to, forwarding mail, mail filtering and sorting, archiving of mail, encrypting mail.
As an alternative embodiment, the mail service request includes, but is not limited to, a first account name, a second account name, and mail content.
Step S204, forwarding the mail service request to the first service cluster through the central node cluster, and providing a mail service for an account corresponding to the first account name through the first service cluster.
As an alternative embodiment, the division of the service clusters may be according to function division, object type division, and load balancing division, which is not further limited in the embodiments of the present application.
In an exemplary embodiment, the determining, by the central node cluster, the first service cluster corresponding to the first account name may be implemented by the following steps S11-S12:
step S11: acquiring a first list through the central node cluster, wherein the first list is provided with account names of accounts served by different service clusters of the mail system;
step S12: and determining a first service cluster corresponding to the first account name according to the first list through the central node cluster.
As an alternative embodiment, it is assumed that the first list has recorded therein: the account names of the first service cluster service are A, B, C, D, E and F, the account names of the second service cluster service are 1,2,3,4 and 5, and then the central node cluster can determine the first service cluster corresponding to the first account name according to the first list.
In an exemplary embodiment, the providing, by the first service cluster, the mail service for the account corresponding to the first account name may be implemented by the following steps S21 to S22:
step S21: determining a second account name from the mail service request through the first service cluster, wherein an account corresponding to the second account name is a receiver of the mail service request;
step S22: and determining a second service cluster for providing mail service for the account corresponding to the second account name through the first service cluster, and sending the mail content carried in the mail service request to the account corresponding to the second account name through the second service cluster.
In an exemplary embodiment, the determining, by the first service cluster, the second service cluster for providing the mail service for the account corresponding to the second account name may be implemented by the following steps S31-S32:
step S31: sending a first request message to a central node cluster through the first service cluster, wherein the first request message carries the second account name;
step S32: and acquiring the domain name of a second service cluster sent by the central node cluster in response to the first request message through the first service cluster.
That is, the first service cluster may send a message to the central node cluster requesting to determine a second service cluster providing a mail service for an account corresponding to the second account name, and further forward the mail service request to the second service cluster.
Through the steps S202-S204, when the central node cluster of the mail system obtains the mail service request, the central node cluster determines the first service cluster corresponding to the first account name, and then sends the service request to the corresponding first service cluster, and the first service cluster provides the mail service. The mail service is provided for the user through the multi-service cluster, the problem that the existing mail system is poor in processing effect when processing large-scale mails is solved, and the efficiency of processing and providing the mail service for the mail system is improved. In addition, the mail service is provided for the user through the multi-service cluster, so that the mutual isolation among the resources can be improved, and the technical effect of enhancing the availability of the resources is achieved.
In an exemplary embodiment, after determining, by the central node cluster, the first service cluster corresponding to the first account name, the following step S41 is further provided:
step S41: sending target information to a client under the condition that the mail service request acquired by the central node cluster is sent by the client;
it should be noted that, the client is a client that sends the mail service request, the target information carries a domain name of the first service cluster, and the target information is used to instruct the client to send the service request to the first service cluster when sending the service request of the account corresponding to the first account name.
As an alternative embodiment, when the account corresponding to the first account name accesses the mail system for the first time, the corresponding client will automatically send the mail service request to the central node cluster.
In an exemplary embodiment, the above method further has the following steps S51-S53:
step S51: under the condition that a third service cluster of a mail system acquires the mail service request, determining whether a first account name is located in a second list or not through the third service cluster, wherein the second list is provided with account names of accounts served by the third service cluster;
step S52: sending a second request message to the central node cluster under the condition that the first account name is not located in the second list so as to determine the service cluster for providing mail service for the account corresponding to the first account name;
step S53: and under the condition that the first account name is located in the second list, providing mail service for the account corresponding to the first account name through the third service cluster.
That is, assuming that the third service cluster obtains the mail service request, the third service cluster queries the first account name in the second list stored by the third service cluster, if the second list has the first account name, the service cluster which indicates that the account corresponding to the first account name currently provides the mail service is the third service cluster, if the second list is not in the second list, the third service cluster needs to send query information to the central node cluster according to the first account name, queries the account corresponding to the first account name and provides the mail service, and then forwards the request to the corresponding service cluster for processing.
As an optional embodiment, when the account corresponding to the first account name uses the mail system for the second time, the corresponding client may access the corresponding service cluster through the saved information.
In an exemplary embodiment, the above method further has the following step S61:
step S61: and sending the account name of the account served by the service cluster to the central node cluster at regular time through the service cluster of the mail system, wherein the service cluster comprises the first service cluster.
As an optional embodiment, through the above step S61, it may be determined that the account name stored in the central node cluster is consistent with the account name stored in each service cluster.
It will be apparent that the embodiments described above are only some, but not all, of the embodiments of the present application. For better understanding of the above method, the following description will explain the above process with reference to the examples, but is not intended to limit the technical solutions of the embodiments of the present application, specifically:
based on the distributed architecture and the multi-cluster deployment mode, the user group is accessed into different clusters deployed with the same service through the control of the central node cluster, so that the flexibility and the high availability are achieved. Fig. 3 is a schematic diagram of a multi-service cluster structure according to an embodiment of the present application, where, as shown in fig. 3, a central node cluster is connected to each service cluster network and accesses the central node cluster through different domain names. The user logs in the central node cluster for the first time, the central node cluster is connected with the central node cluster and acquires the user node information, the central node cluster returns the server information (namely the domain name of the service cluster for providing service for the user) to the client, and the client caches the server information to the local. When the user uses the domain name for the second time, the user can log in by accessing any domain name, at the moment, the service cluster receiving the request can firstly compare the user information in the current cluster, and if the user is the user managed by the current cluster, the request is processed locally; if not, the user node position is inquired from the central node cluster according to the user name, and the service request is forwarded to the corresponding cluster. Fig. 4 is a schematic diagram of a user request processing flow in a multi-cluster deployment mode in the embodiment of the present application, where, as shown in fig. 4, each service cluster stores a user list managed by the cluster, and a central node cluster stores attribution information between a user and each service cluster, where the information is synchronized by each service cluster to the central node at a timing.
In addition, the central node, in addition to providing the underlying mail services and data storage, provides three interfaces to the split nodes: namely, the user registers, inquires the node position of the user and modifies the password, and the center node needs to keep smooth conversation with other three partial nodes. Services deployed by each service node are consistent, including a global information network (World Wide Web, web) server deployed with a high availability agent (High Availability Proxy, short for Haproxy), an AP server deployed with a ng-ginx, a hypertext preprocessor (Hypertext Preprocessor, PHP, running manager (FastCGIProcess Manager, FPM), monitoring, analysis and automation (MAA) in the server domain, and the like; a cluster of Elastic Search (ES) and Redis and a database server and cos object storage are jointly deployed.
From the above, the architecture mode not only has the advantages of high reuse degree of the distributed architecture system module and convenient development, but also has the same service and contained resource types deployed among multiple clusters. The method has good performance in the aspects of availability, disaster tolerance and scalability. In addition, the method and the system are in a form that multiple clusters are oriented to different grouping users, and resources are reasonably distributed by taking a central node as overall control. The method not only improves the mutual isolation among resources and increases the usability, but also supports the daily operation and maintenance analysis of the mail system by a large-scale organization to a greater extent due to the characteristics that users and the resources are stable and correspond to each other, and is more beneficial to traffic monitoring and analysis. The present application perfects the current more common solution to aim at dividing the web services and software services of the mail system into several layers based on the distributed concept, resulting in the lack of support means for enterprise-level users.
From the description of the above embodiments, it will be clear to a person skilled in the art that the method according to the above embodiments may be implemented by means of software plus the necessary general hardware platform, but of course also by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk), comprising several instructions for causing a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the method described in the embodiments of the present application.
The embodiment also provides a mail service device, which is used for implementing the above embodiment and the preferred implementation, and is not described in detail. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. While the means described in the following embodiments are preferably implemented in software, implementation in hardware, or a combination of software and hardware, is also possible and contemplated.
Fig. 5 is a block diagram of a mail service apparatus according to an embodiment of the present application, as shown in fig. 5, the apparatus includes:
the determining module 52 is configured to determine, when a central node cluster of a mail system obtains a mail service request, a first service cluster corresponding to a first account name through the central node cluster, where the mail service request carries the first account name, and an account corresponding to the first account name is a requester of the mail service request;
the first processing module 54 is configured to forward the mail service request to the first service cluster through the central node cluster, and provide a mail service for an account corresponding to the first account name through the first service cluster.
Through the device, under the condition that the central node cluster of the mail system acquires the mail service request, the central node cluster determines the first service cluster corresponding to the first account name, then the service request is sent to the corresponding first service cluster, and the first service cluster provides mail service. The mail service is provided for the user through the multi-service cluster, the problem that the existing mail system is poor in processing effect when processing large-scale mails is solved, and the efficiency of processing and providing the mail service for the mail system is improved. In addition, the mail service is provided for the user through the multi-service cluster, so that the mutual isolation among the resources can be improved, and the technical effect of enhancing the availability of the resources is achieved.
In an exemplary embodiment, the apparatus further comprises: the first sending module is used for sending target information to the client when the mail service request acquired by the central node cluster is sent by the client; the client is a client sending the mail service request, the target information carries a domain name of the first service cluster, and the target information is used for indicating the client to send the service request to the first service cluster under the condition that the client sends the service request of an account corresponding to the first account name.
In an exemplary embodiment, the determining module 52 is further configured to obtain a first list through the central node cluster, where the first list has account names of accounts served by different service clusters of the mail system; and determining a first service cluster corresponding to the first account name according to the first list through the central node cluster.
In an exemplary embodiment, the first processing module 54 is further configured to determine, by using the first service cluster, a second account name from the mail service request, where an account corresponding to the second account name is a receiver of the mail service request; and determining a second service cluster for providing mail service for the account corresponding to the second account name through the first service cluster, and sending the mail content carried in the mail service request to the account corresponding to the second account name through the second service cluster.
In an exemplary embodiment, the first processing module 54 is further configured to send a first request message to the central node cluster through the first service cluster, where the first request message carries the second account name; and acquiring the domain name of a second service cluster sent by the central node cluster in response to the first request message through the first service cluster.
In an exemplary embodiment, the apparatus further includes a second processing module, configured to determine, when a third service cluster of the mail system obtains the mail service request, whether a first account name is located in a second list through the third service cluster, where the second list has an account name of an account served by the third service cluster; sending a second request message to the central node cluster under the condition that the first account name is not located in the second list so as to determine the service cluster for providing mail service for the account corresponding to the first account name; and under the condition that the first account name is located in the second list, providing mail service for the account corresponding to the first account name through the third service cluster.
In an exemplary embodiment, the apparatus further comprises: and the second sending module is used for sending the account name of the account served by the service cluster to the central node cluster at regular time through the service cluster of the mail system, wherein the service cluster comprises the first service cluster.
It should be noted that each of the above modules may be implemented by software or hardware, and for the latter, it may be implemented by, but not limited to: the modules are all located in the same processor; alternatively, the above modules may be located in different processors in any combination.
Embodiments of the present application also provide a computer readable storage medium having a computer program stored therein, wherein the computer program is arranged to perform the steps of any of the method embodiments described above when run.
In one exemplary embodiment, the computer readable storage medium may include, but is not limited to: a usb disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing a computer program.
Embodiments of the present application also provide an electronic device comprising a memory having a computer program stored therein and a processor arranged to run the computer program to perform the steps of any of the method embodiments described above.
In an exemplary embodiment, the electronic apparatus may further include a transmission device connected to the processor, and an input/output device connected to the processor.
Specific examples in this embodiment may refer to the examples described in the foregoing embodiments and the exemplary implementation, and this embodiment is not described herein.
It will be appreciated by those skilled in the art that the modules or steps of the application described above may be implemented in a general purpose computing device, they may be concentrated on a single computing device, or distributed across a network of computing devices, they may be implemented in program code executable by computing devices, so that they may be stored in a storage device for execution by computing devices, and in some cases, the steps shown or described may be performed in a different order than that shown or described herein, or they may be separately fabricated into individual integrated circuit modules, or multiple modules or steps of them may be fabricated into a single integrated circuit module. Thus, the present application is not limited to any specific combination of hardware and software.
The foregoing description is only of the preferred embodiments of the present application and is not intended to limit the same, but rather, various modifications and variations may be made by those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the principles of the present application should be included in the protection scope of the present application.

Claims (10)

1. A mail service method, comprising:
under the condition that a central node cluster of a mail system acquires a mail service request, determining a first service cluster corresponding to a first account name through the central node cluster, wherein the mail service request carries the first account name, and an account corresponding to the first account name is a requester of the mail service request;
and forwarding the mail service request to the first service cluster through the central node cluster, and providing mail service for an account corresponding to the first account name through the first service cluster.
2. The method according to claim 1, wherein after determining, by the central node cluster, a first service cluster corresponding to a first account name, the method comprises:
sending target information to a client under the condition that the mail service request acquired by the central node cluster is sent by the client;
the client is a client sending the mail service request, the target information carries a domain name of the first service cluster, and the target information is used for indicating the client to send the service request to the first service cluster under the condition that the client sends the service request of an account corresponding to the first account name.
3. The method according to claim 1, wherein determining, by the central node cluster, a first service cluster corresponding to a first account name, comprises:
acquiring a first list through the central node cluster, wherein the first list is provided with account names of accounts served by different service clusters of the mail system;
and determining a first service cluster corresponding to the first account name according to the first list through the central node cluster.
4. The method of claim 1, wherein providing, by the first service cluster, a mail service for an account corresponding to the first account name, comprises:
determining a second account name from the mail service request through the first service cluster, wherein an account corresponding to the second account name is a receiver of the mail service request;
and determining a second service cluster for providing mail service for the account corresponding to the second account name through the first service cluster, and sending the mail content carried in the mail service request to the account corresponding to the second account name through the second service cluster.
5. The method of claim 4, wherein determining, by the first service cluster, a second service cluster that provides mail services for an account corresponding to the second account name, comprises:
sending a first request message to a central node cluster through the first service cluster, wherein the first request message carries the second account name;
and acquiring the domain name of a second service cluster sent by the central node cluster in response to the first request message through the first service cluster.
6. The method according to claim 1, wherein the method further comprises:
under the condition that a third service cluster of a mail system acquires the mail service request, determining whether a first account name is located in a second list or not through the third service cluster, wherein the second list is provided with account names of accounts served by the third service cluster;
sending a second request message to the central node cluster under the condition that the first account name is not located in the second list so as to determine the service cluster for providing mail service for the account corresponding to the first account name;
and under the condition that the first account name is located in the second list, providing mail service for the account corresponding to the first account name through the third service cluster.
7. The method according to claim 1, wherein the method further comprises:
and sending the account name of the account served by the service cluster to the central node cluster at regular time through the service cluster of the mail system, wherein the service cluster comprises the first service cluster.
8. A mail service apparatus, characterized by comprising:
the determining module is used for determining a first business cluster corresponding to a first account name through a central node cluster of a mail system under the condition that the central node cluster obtains a mail service request, wherein the mail service request carries the first account name, and an account corresponding to the first account name is a requester of the mail service request;
the first processing module is configured to forward the mail service request to the first service cluster through the central node cluster, and provide mail service for an account corresponding to the first account name through the first service cluster.
9. A computer readable storage medium, characterized in that a computer program is stored in the computer readable storage medium, wherein the computer program, when being executed by a processor, implements the steps of the method according to any of the claims 1 to 7.
10. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the steps of the method of any one of claims 1 to 7 when the computer program is executed.
CN202410033904.8A 2024-01-09 2024-01-09 Mail service method and device, storage medium and electronic equipment Pending CN117896345A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410033904.8A CN117896345A (en) 2024-01-09 2024-01-09 Mail service method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410033904.8A CN117896345A (en) 2024-01-09 2024-01-09 Mail service method and device, storage medium and electronic equipment

Publications (1)

Publication Number Publication Date
CN117896345A true CN117896345A (en) 2024-04-16

Family

ID=90640812

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410033904.8A Pending CN117896345A (en) 2024-01-09 2024-01-09 Mail service method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN117896345A (en)

Similar Documents

Publication Publication Date Title
CN112000448A (en) Micro-service architecture-based application management method
CN106571960B (en) Log collection management system and method
CN106550003B (en) Load balancing control method, device and system
CN112202918B (en) Load scheduling method, device, equipment and storage medium for long connection communication
US10430414B2 (en) Method and apparatus for sharing environment context
US9800662B2 (en) Generic network trace with distributed parallel processing and smart caching
US20200329118A1 (en) Data transmission scheduling method and system
US8326913B2 (en) Method and system for service contract discovery
CN110677475A (en) Micro-service processing method, device, equipment and storage medium
US7788330B2 (en) System and method for processing data associated with a transmission in a data communication system
EP4033719A1 (en) System for providing exact communication delay protection of request response for distributed service
CN108259605B (en) Data calling system and method based on multiple data centers
CN112417050A (en) Data synchronization method and device, system, storage medium and electronic device
CN117896345A (en) Mail service method and device, storage medium and electronic equipment
US20190124162A1 (en) Automatic server cluster discovery
CN104462235A (en) Internet of Things general event service mechanism based on Restful Web Service
CN110995890B (en) Domain name request scheduling method and device
CN111294383B (en) Internet of things service management system
Nasim et al. Mobile publish/subscribe system for intelligent transport systems over a cloud environment
CN113630317A (en) Data transmission method and device, nonvolatile storage medium and electronic device
CN103188309A (en) Service acquiring method in distributed type system
CN111541667A (en) Method, equipment and storage medium for intersystem message communication
CN112732757B (en) Method, system, device, equipment and storage medium for processing degraded data
CN111865639B (en) Method and device for collecting information of snmp service equipment and electronic equipment
Hong et al. Global-scale event dissemination on mobile social channeling platform

Legal Events

Date Code Title Description
PB01 Publication