Real-time Call Method, Device, Equipment and Medium for Address Information

By issuing broadcast notifications to each server instance in the central service of the address database of the e-commerce platform, real-time update and matching of address information is achieved, network overhead and real-time problems caused by external middleware are solved, and the performance and efficiency of logistics services are significantly improved.

CN116703270BActive Publication Date: 2025-06-17广州商研网络科技有限公司
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202310629043.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-05-30
Publication Date
2025-06-17
Estimated Expiration
2043-05-30

AI Technical Summary

Technical Problem

With the help of external middleware, a large amount of network overhead will be generated in e-commerce platforms, and the standard address information of address information cannot be obtained from the address database in real time, which seriously affects the matching performance of address information and the acquisition efficiency and accuracy of order logistics address information.

Method used

By issuing broadcast notifications of standard address information changes to each server instance in the central service of the address library, each server instance can refresh the changed standard address data in real time, and directly obtain the standard address information corresponding to the address information of the logistics order from the local cache.

Benefits of technology

It significantly improves the timeliness and performance of logistics services, significantly improves the efficiency of matching and verification of address information of logistics orders, greatly improves the efficiency and accuracy of address information acquisition, and saves network overhead.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116703270B_ABST
    Figure CN116703270B_ABST
Patent Text Reader

Abstract

This application relates to a method, device, equipment and medium for real-time calling of address information. The method includes: responding to an address change request triggered by a management terminal, driving the central service of the address library to send an address information update instruction to each server instance, and obtaining the address information corresponding to the address change request; updating the address information corresponding to the address change request to the local memory address library corresponding to each server instance based on the address information update instruction; responding to an order address matching request, parsing the standard address information of each logistics address node corresponding to the order address matching request from the updated local memory address libraries corresponding to each server instance; determining the logistics service results corresponding to each logistics address node in each order based on the standard address information, and pushing them to the management terminal. This application can greatly save the network overhead of logistics services and can obtain the standard address information of address information from the address library in real time.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of e-commerce platforms, and particularly to a method for real-time invocation of address information, a corresponding device, an electronic device, and a computer-readable storage medium. Background Art

[0002] With the rapid development of e-commerce platforms based on independent stations, the number of orders that e-commerce platforms need to process is increasing day by day, and the corresponding logistics industry is becoming more and more mature. While expanding the market and strengthening business capabilities, major companies use external middleware to perform distributed caching of address information in logistics orders, such as redis caching, etc., so as to improve their intelligent logistics level.

[0003] The address information of orders in e-commerce platforms generally comes from users, and there is a problem of non-standard address information. For scenarios with intensive logistics calculations, it is necessary to perform real-time matching based on the address information and calculate to determine the logistics service result. Using external middleware will generate a large amount of network overhead, and the standard address information in the address library cannot be obtained in real time, seriously affecting the matching performance of address information, the acquisition efficiency and accuracy of order logistics address information.

[0004] In summary, in order to solve the problems that using external middleware will generate a large amount of network overhead, the standard address information in the address library cannot be obtained in real time, and seriously affect the matching performance of address information, etc., the applicant of the present application has made corresponding explorations in consideration of solving this problem. Summary of the Invention

[0005] The purpose of the present application is to provide a method for real-time invocation of address information, a corresponding device, an electronic device, and a computer-readable storage medium.

[0006] To meet the various purposes of the present application, the present application adopts the following technical solutions:

[0007] A method for real-time invocation of address information proposed to meet one of the purposes of the present application includes the following steps:

[0008] Respond to the address change request triggered by the management end, drive the address library central service to issue an address information update instruction to each server instance, and obtain the address information corresponding to the address change request;

[0009] Update the address information corresponding to the address change request to the local memory address library corresponding to each server instance based on the address information update instruction;

[0010] Respond to the order address matching request, and parse out the standard address information of each logistics address node corresponding to the order address matching request from the local memory address library corresponding to each updated server instance;

[0011] Determine the logistics service results corresponding to each logistics address node in each order based on the standard address information, and push them to the management terminal.

[0012] Optionally, the steps of responding to the address change request triggered by the management terminal further include the following steps:

[0013] Respond to the timing monitoring event to query whether there is address information corresponding to the address change request in the central address library service;

[0014] When there is no address information corresponding to the address change request in the central address library service, store the address information corresponding to the address change request in the central address library service.

[0015] Optionally, after the step of driving the central address library service to issue an address information update instruction to each server instance, the following steps are included:

[0016] Respond to the address information update instruction pushed by the central address library service to close the order address matching request interface corresponding to each server instance;

[0017] Detect whether there are unprocessed order address matching requests in the service request queue of each server instance. If so, process the unprocessed order address matching requests in the service request queue.

[0018] Optionally, the step of updating the address information corresponding to the address change request to the local memory address library corresponding to each server instance based on the address information update instruction includes the following steps:

[0019] Real-time detect the load information of the local memory corresponding to each server instance;

[0020] Determine the weight of the local memory corresponding to each server instance according to the load information. If the weight of the local memory corresponding to each server instance exceeds the preset threshold, respond to the destruction instruction to destroy some address information corresponding to the old server instance.

[0021] Optionally, the step of determining the logistics service results corresponding to each logistics address node in each order based on the standard address information includes the following steps:

[0022] Determine the logistics rendering map corresponding to each order according to the sender address, recipient address, and passing address in the logistics address nodes of each order;

[0023] Based on the logistics rendering map, determine the current location information of the goods corresponding to each order.

[0024] Optionally, the step of parsing the standard address information of each logistics address node corresponding to the order address matching request from the local memory address library corresponding to each updated server instance includes the following steps:

[0025] Obtain the order address submitted by the e-commerce platform client;

[0026] Parse the standard address information corresponding to each logistics address node corresponding to the order address matching request from the local memory of the server instance of the pricing service;

[0027] According to the standard address information corresponding to the logistics address node in the order address, call the corresponding preset freight rule in real time;

[0028] Calculate the freight corresponding to each order in the e-commerce platform according to the preset freight rule.

[0029] Optionally, the step of parsing the standard address information of each logistics address node corresponding to the order address matching request from the local memory address library corresponding to each updated server instance includes the following steps:

[0030] Parse the standard address information corresponding to each logistics address node corresponding to the order address matching request from the local memory address library corresponding to the server instance of the channel service;

[0031] Convert the standard address information corresponding to each logistics address node into the address language of its corresponding country or region.

[0032] An address information real-time call device provided for another purpose of the present application includes:

[0033] A driving module, configured to respond to an address change request triggered by a management end, drive the address library central service to issue an address information update instruction to each server instance, and obtain the address information corresponding to the address change request;

[0034] An address update module, configured to update the address information corresponding to the address change request to the local memory address library corresponding to each server instance based on the address information update instruction;

[0035] A standard address determination module, configured to respond to an order address matching request, and parse the standard address information of each logistics address node corresponding to the order address matching request from the local memory address library corresponding to each updated server instance;

[0036] A logistics service determination module, configured to determine the logistics service results corresponding to each logistics address node in each order based on the standard address information, and push them to the management terminal.

[0037] An electronic device provided to meet another object of the present application, including a central processing unit and a memory. The central processing unit is used to call and run a computer program stored in the memory to execute the steps of the address information real-time call method described in the present application.

[0038] A computer-readable storage medium provided to meet another object of the present application, which stores a computer program implemented based on the address information real-time call method in the form of computer-readable instructions. When the computer program is called and run by a computer, it executes the steps included in the corresponding method.

[0039] Compared with the prior art, in the present application, for problems such as a large amount of network overhead will be generated by relying on external middleware, the standard address information that cannot obtain address information from the address library in real time, seriously affecting the matching performance of address information, etc., after the standard address information in the central address library of the address library central service changes, a broadcast notification of the standard address information change is sent to each server instance, so that each server instance can refresh the changed standard address data in real time, ensuring the real-time update of the standard address information. For some intensive calculation logistics services in the logistics background, directly obtain the standard address information corresponding to the address information of the logistics order from the local cache, greatly improving the timeliness of the logistics service, significantly improving the efficiency of matching and verifying the address information of the logistics order, greatly enhancing the performance of the logistics service. At the same time, the present application does not need to rely on external middleware, greatly saving the network overhead of the logistics service, being able to obtain the standard address information of the address information from the address library in real time, greatly improving the matching performance of the address information, and being able to significantly improve the acquisition efficiency and accuracy of the address information in the logistics order. Description of the Drawings

[0040] The above and / or additional aspects and advantages of the present application will become obvious and easy to understand from the following description of the embodiments in conjunction with the drawings, where:

[0041] Figure 1 It is a schematic flow chart of the address information real-time call method in the embodiment of the present application;

[0042] Figure 2 It is a schematic structural diagram of introducing a real-time address library JVM across systems in the embodiment of the present application;

[0043] Figure 3 It is a schematic flow chart of responding to the address change request triggered by the management terminal in the embodiment of the present application;

[0044] Figure 4 It is a schematic flow chart for detecting and processing unprocessed order address matching requests in the service request queues of each server instance in an embodiment of the present application;

[0045] Figure 5 It is a schematic flow chart for determining the load status of the local memory corresponding to each server instance according to load information in an embodiment of the present application;

[0046] Figure 6 It is a schematic flow chart for determining the logistics service results corresponding to each logistics address node in each order based on standard address information in an embodiment of the present application;

[0047] Figure 7 It is a schematic flow chart for determining the logistics billing results according to the standard address information corresponding to the logistics address nodes in each order in an embodiment of the present application;

[0048] Figure 8 It is a schematic flow chart for determining the address language according to the standard address information corresponding to the logistics address nodes in each order in an embodiment of the present application;

[0049] Figure 9 It is a principle block diagram of an address information real-time calling device in an embodiment of the present application;

[0050] Figure 10 It is a schematic structural diagram of a computer device in an embodiment of the present application. Detailed Embodiments

[0051] The embodiments of the present application will be described in detail below. The examples of the embodiments are shown in the accompanying drawings, where the same or similar reference numerals denote the same or similar elements or elements with the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present application and should not be construed as limiting the present application.

[0052] Those skilled in the art of the present technology can understand that unless specifically stated otherwise, the singular forms "a", "an", "the" and "said" used herein may also include the plural forms. It should be further understood that the term "comprising" used in the specification of the present application means the presence of the described features, integers, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or their groups. It should be understood that when we say an element is "connected" or "coupled" to another element, it can be directly connected or coupled to other elements, or there may also be intermediate elements. In addition, the "connection" or "coupling" used herein may include wireless connection or wireless coupling. The phrase "and / or" used herein includes all or any unit and all combinations of one or more of the associated listed items.

[0053] Those skilled in the art can understand that, unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as the general understanding of those of ordinary skill in the art to which this application belongs. It should also be understood that terms such as those defined in a general dictionary should be understood to have a meaning consistent with the meaning in the context of the prior art, and will not be interpreted in an idealized or overly formal sense unless specifically defined as here.

[0054] Those skilled in the art can understand that the "client", "terminal", and "terminal device" used herein include both devices with a wireless signal receiver that only has the ability to receive and no ability to transmit, and devices with receiving and transmitting hardware that can conduct two-way communication on a two-way communication link. Such devices can include: cellular or other communication devices such as personal computers, tablet computers, etc., which have a single-line display or a multi-line display or a cellular or other communication device without a multi-line display; PCS (Personal Communications Service), which can combine voice, data processing, fax, and / or data communication capabilities; PDA (Personal Digital Assistant), which can include a radio frequency receiver, pager, Internet / intranet access, web browser, notepad, calendar, and / or GPS (Global Positioning System) receiver; conventional laptop and / or palm computers or other devices, which are conventional laptop and / or palm computers or other devices with and / or including a radio frequency receiver. The "client", "terminal", and "terminal device" used herein can be portable, transportable, installed in a vehicle (air, sea, and / or land), or suitable for and / or configured to run locally, and / or run in a distributed form at any other location on the earth and / or in space. The "client", "terminal", and "terminal device" used herein can also be communication terminals, Internet access terminals, music / video playback terminals, such as PDAs, MIDs (Mobile Internet Devices), and / or mobile phones with music / video playback functions, or can also be devices such as smart TVs, set-top boxes, etc.

[0055] As used in this application, the hardware referred to by names such as "server", "client", and "service node" is essentially an electronic device with the equivalent capabilities of a personal computer. It is a hardware device with the necessary components as revealed by the von Neumann principle, including a central processing unit (including an arithmetic unit and a controller), a memory, an input device, and an output device. A computer program is stored in its memory, and the central processing unit loads the program stored in the external memory into the internal memory for execution, executes the instructions in the program, and interacts with the input / output devices to complete specific functions.

[0056] It should be noted that the concept of "server" as used in this application can similarly be extended to apply to server clusters. According to the network deployment principles understood by those skilled in the art, the various servers should be logically divided. Physically, these servers can either be independent of each other but can be invoked through interfaces, or integrated into a single physical computer or a set of computer clusters. Those skilled in the art should understand this flexibility and should not be restricted by it in the implementation of the network deployment method of this application.

[0057] One or several technical features of this application, unless expressly specified, can either be deployed on the server and accessed by the client remotely invoking the online service interface provided by the server, or directly deployed and run on the client for access.

[0058] The neural network models cited or potentially cited in this application, unless expressly specified, can either be deployed on a remote server and remotely invoked on the client, or deployed on a client with sufficient device capabilities for direct invocation. In some embodiments, when it runs on the client, its corresponding intelligence can be obtained through transfer learning to reduce the requirements for the client's hardware operating resources and avoid over-occupying the client's hardware operating resources.

[0059] All kinds of data involved in this application, unless expressly specified, can either be remotely stored on the server or stored on the local terminal device, as long as it is suitable for being invoked by the technical solution of this application.

[0060] Those skilled in the art should be aware that although the various methods of this application are described based on the same concept and thus show commonality with each other, unless otherwise specified, these methods can all be executed independently. Similarly, for the various embodiments disclosed in this application, they are all proposed based on the same inventive concept. Therefore, concepts with the same expression, as well as concepts that are only appropriately transformed for convenience although the concept expressions are different, should be equivalently understood.

[0061] For each of the embodiments to be disclosed in this application, unless explicitly stated as mutually exclusive to each other, the relevant technical features involved in each embodiment can be cross - combined to flexibly construct new embodiments, as long as such combination does not deviate from the creative spirit of this application and can meet the requirements in the prior art or solve certain deficiencies in the prior art. Those skilled in the art should be aware of this flexibility.

[0062] Please refer to Figure 1 , in one embodiment of the real - time address information calling method of this application, it includes the following steps:

[0063] Step S10: Respond to the address change request triggered by the management terminal, drive the central service of the address library to send an address information update instruction to each server instance, and obtain the address information corresponding to the address change request;

[0064] The address change request is generally pushed by the management terminal to the central service of the address library. The management terminal triggers the address change request and pushes it to the central service of the address library. Based on the address change request, the address information in the central service of the address library is updated, the address information corresponding to the address change request is stored in the central service of the address library, and the central service of the address library is driven to push the address information update instruction to each server instance.

[0065] In some embodiments, the address change request is used to update the basic address library in the central service of the address library. The basic address library is a postal communication address formed by stratifying and segmenting according to certain rules based on the national standard place names and combining the characteristics of the postal service itself.

[0066] In some embodiments, the server instances include one or more of the following instances: the logistics pricing server instance and the channel server instance, etc. The order information in each order in the e - commerce platform includes multiple logistics address nodes such as the sender's address, the recipient's address, and the passing - through address, etc. The passing - through address includes transfer addresses or non - transfer addresses, etc. The corresponding logistics freight and address language, etc. of each logistics address node are different. When each order in the e - commerce platform is transported to each logistics address node, the management personnel of the management terminal trigger an address change request and push it to the central service of the address library to update the address information in the central service of the address library, update the standard address information corresponding to the logistics address node to the central service of the address library, and drive the central service of the address library to push the address information update instruction to each server instance, sending an address information change broadcast to each server instance.

[0067] Step S20: Update the address information corresponding to the address change request to the local memory address library corresponding to each server instance based on the address information update instruction;

[0068] The central address library service is used to maintain the address information required by each server instance. It provides various interfaces and distributes them to each server instance. After each server instance receives the address information update instruction sent by the central address library service, it updates the address information corresponding to the address change request to the local memory address library corresponding to each server instance based on the address information update instruction, so as to update the address information corresponding to each server instance, achieving the purpose of real-time refreshing of the caches of each server instance. Each server instance obtains the address information corresponding to the address change request from the central address library service according to its corresponding interface and caches it in the local memory corresponding to each server instance. In some embodiments, when the standard address information corresponding to each logistics address node is updated to the central address library service when each order in the e-commerce platform is transported to each logistics address node, the central address library service will send a change broadcast to each server instance. After each server instance receives the change broadcast sent by the central address library service, each server instance will refresh its corresponding address information and cache the standard address information corresponding to the logistics address node in the local memory corresponding to each server instance, and real-time refresh the cache of the standard address information of each server instance.

[0069] Step S30: In response to the order address matching request, parse out the standard address information of each logistics address node corresponding to the order address matching request from the updated local memory address library corresponding to each server instance;

[0070] In intensive calculations such as logistics services, such as logistics pricing services and channel services, the logistics address node includes the sender address, recipient address, and passing address of each order. The logistics pricing service and channel service can determine the logistics service result based on the recipient address, sender address, and passing address, etc. It requires a large number of random accesses to address information in different countries and regions to determine the logistics billing and address language corresponding to passing through different countries and regions. It has very high requirements for performance and real-time nature. After updating the address information corresponding to the address change request to the local memory address library corresponding to each server instance based on the address information update instruction, each server instance can receive the order address matching request from the e-commerce platform client and respond to the order address matching request, and parse out the standard address information of each logistics address node corresponding to the order address matching request from the updated local memory address library corresponding to each server instance.

[0071] In some embodiments, the server instance can calculate the logistics freight for a large number of imported orders. Each order may include logistics address nodes such as the sender's address, the recipient's address, and the transit address. The sender's address, the recipient's address, and the transit address in the logistics address nodes are relatively key information in freight calculation. Therefore, it is necessary to match the sender's address, the recipient's address, and the transit address in each imported order to obtain the standard address information corresponding to the sender's address, the recipient's address, and the transit address, and parse out the standard address information corresponding to the sender's address, the recipient's address, and the transit address from the updated local memory address library corresponding to each server instance. Different logistics address nodes will generate different logistics freight. Based on the standard address information corresponding to the sender's address, the recipient's address, and the transit address and the preset freight rules, the logistics billing corresponding to each different country, region, and logistics provider, etc. is determined.

[0072] In some embodiments, each order in the e-commerce platform needs to pass through different countries, regions, and logistics providers. Each country, region, and logistics provider has its corresponding address language rules. For example: when the order passes through the UK, the address language corresponding to the logistics address node is English, and when the order passes through France, the address language corresponding to the logistics address node is French, etc. Even in the same country, different logistics providers and regions may have different address languages. Due to language and cultural issues, the addresses imported by multinational enterprises may be in the local language or English or other languages that they can recognize. When the order is sent to the logistics destination, it needs to be converted into a language that the logistics destination can recognize. For example, when the order is sent from China to Thailand, the imported order address may be in simplified Chinese or English, but when it finally reaches the logistics destination, it needs to be converted into Thai, etc. Match the recipient's address in the order to obtain the standard address information corresponding to the recipient's address in the order, and parse out the standard address information corresponding to the recipient's address in the order from the updated local memory address library corresponding to each server instance. Based on the standard address information corresponding to the recipient's address in the order, it is converted into a language that the logistics destination can recognize.

[0073] Step S40: Determine the logistics service results corresponding to each logistics address node in each order based on the standard address information, and push them to the management terminal.

[0074] After parsing out the standard address information of each logistics address node such as the sender address, recipient address, and passing address corresponding to the order address matching request from the local memory address library corresponding to each updated server instance, based on the standard address information, determine the logistics pricing service and logistics service results such as address language conversion corresponding to each logistics address node such as the sender address, recipient address, and passing address in each order. After determining the logistics service results such as logistics pricing service and address language conversion, push the logistics service results to the management terminal.

[0075] In some embodiments, refer to Figure 2 , the address library central service specifically maintains the address library information, that is, the address library service address. The address library service will provide an SDK called address-loader for distribution to other service instances in need of access. Other service instances in need can introduce the address-loader SDK. When the SDK starts up the service, it can obtain the address information from the address library central service and cache the address information in its corresponding local memory. Each service instance will have a corresponding cache, and the data in the local memory can be directly read from each service instance without any network overhead, which is efficient and fast. When the address information in the address library central service changes, the address library central service will send out a change broadcast. After the SDKs of each service instance receive the change broadcast, they can refresh their corresponding address information to achieve the purpose of real-time refreshing of the caches of each service instance. Each service node uses JVM memory to cache country information, and at the same time each service node registers a subscription MQ with the central address library. After the address information in the central service address library changes, each node that has subscribed to the message can refresh the changed address information in real time to ensure real-time performance.

[0076] As can be seen from the above embodiments, in view of the problems that a large amount of network overhead will be generated by means of an external middleware, and the standard address information that cannot obtain address information from the address library in real time seriously affects the matching performance of the address information, etc., after the standard address information in the central address library of the address library central service changes, a broadcast notification of the standard address information change is sent to each server instance, so that each server instance can refresh the changed standard address data in real time, ensuring the real-time update of the standard address information. For some logistics services with intensive calculations in the logistics background, the standard address information corresponding to the address information of the logistics order is directly obtained from the local cache, greatly improving the timeliness of the logistics service, significantly enhancing the efficiency of matching and verifying the address information of the logistics order, greatly improving the performance of the logistics service. At the same time, this application does not need to rely on an external middleware, greatly saving the network overhead of the logistics service, being able to obtain the standard address information of the address information from the address library in real time, greatly improving the matching performance of the address information, and significantly enhancing the acquisition efficiency and accuracy of the address information in the logistics order.

[0077] Based on any embodiment of the present application, please refer to Figure 3 , the steps of responding to the address change request triggered by the management end further include the following steps:

[0078] Step S101, in response to the timing monitoring event, query whether there is address information corresponding to the address change request in the address library central service;

[0079] The address library central service stores the standard address information corresponding to each server instance in the e-commerce platform. When responding to the address change request triggered by the management end, in response to the timing monitoring event, query whether there is address information corresponding to the address change request in the address library central service. If the address library central service already has the standard address information corresponding to each server instance, a notification indicating that the address information corresponding to the address change request already exists is pushed to the management end.

[0080] Step S103, when there is no address information corresponding to the address change request in the address library central service, store the address information corresponding to the address change request in the address library central service.

[0081] When it is queried that there is no address information corresponding to the address change request in the address library central service, it indicates that the address information corresponding to the address change request is available standard address information and is updated and stored in the address library central service.

[0082] As can be seen from the above embodiments, after a request for address change triggered by the response management end, it is checked whether there is standard address information corresponding to the address change request in the central service of the address library. If the standard address information corresponding to each server instance already exists in the central service of the address library, a notification indicating that the address information corresponding to the address change request already exists is pushed to the management end, preventing duplicate storage of standard address information in the central address library of the central service of the address library and avoiding waste of memory in the central address library.

[0083] Based on any embodiment of the present application, please refer to Figure 4 , after the step of driving the central service of the address library to issue an address information update instruction to each server instance, the following steps are included:

[0084] Step S105, in response to the address information update instruction pushed by the central service of the address library, close the order address matching request interfaces corresponding to each server instance;

[0085] When the central service of the address library completes the update of using the address information corresponding to the address change request as the standard address information of the current logistics address node, there may be unprocessed order address matching requests in the service request queues of each server instance, and it is necessary to close the order address matching request interfaces corresponding to each server instance for address information update.

[0086] Step S107, detect whether there are unprocessed order address matching requests in the service request queues of each server instance. If so, process all the unprocessed order address matching requests in the service request queues.

[0087] There may be unprocessed service request queues in each server instance in the e-commerce platform. The unprocessed service request queues store unprocessed order address matching requests of the client. The old server instance obtains the unprocessed service request queues and detects whether there are unprocessed order address matching requests in the unprocessed service request queues. If there are unprocessed order address matching requests in the processed service request queues, the old server instance will process all the order address matching requests stored in the processed service request queues. After the unprocessed order address matching requests are processed, the standard address information corresponding to the current logistics address node is updated to each server instance.

[0088] As can be seen from the above embodiments, by closing the order address matching request interfaces corresponding to the respective server instances, waiting for the unprocessed order address matching requests to be processed, and then updating the standard address information corresponding to the current logistics address node to each server instance, the resource utilization rate of address information update is significantly improved, the update efficiency of the address information in each server instance is improved, and the real-time and low latency of address information update are ensured.

[0089] Based on any embodiment of the present application, please refer to Figure 5 , the step of updating the address information corresponding to the address change request to the local memory address library corresponding to each server instance based on the address information update instruction includes the following steps:

[0090] Step S201: Detect the load information of the local memory corresponding to each server instance in real time;

[0091] In the application scenario of an e-commerce platform, the requests of consumer users for logistics services are ever-changing. Therefore, the load information corresponding to each server instance is also changing in real time. To ensure the load balance of each server instance, it is necessary to obtain the load information of each server instance in the local memory in real time and reasonably store the standard address information corresponding to each logistics address node in each server instance. The load information may include network transmission delay, packet loss rate, bandwidth, etc.

[0092] Step S203: Determine the weight of the local memory corresponding to each server instance according to the load information. If the weight of the local memory corresponding to each server instance exceeds a preset threshold, respond to the destruction instruction to destroy part of the address information corresponding to the old server instance.

[0093] Evaluate the standard address information storage capacity of each server instance in the local memory based on the load information such as network transmission delay, packet loss rate, and bandwidth. Determine the weight of each server instance in the local memory based on the load information. If the weight of a certain server instance exceeds the preset threshold, respond to the destruction instruction to destroy part of the address information corresponding to the old server instance. Since the part of the address information corresponding to each old server instance has been updated, the part of the address information corresponding to the old server instance will occupy the local memory corresponding to each server instance. Therefore, respond to the destruction instruction to destroy part of the standard address information corresponding to the old server instance.

[0094] As can be seen from the above embodiments, destroying part of the standard address information corresponding to the old server instance and retaining the latest standard address information in the server instance can prevent the load information of the local memory corresponding to each server instance from being too high, which affects the parsing and calling of the address information of each logistics address node.

[0095] Based on any embodiment of the present application, please refer to Figure 6 , the step of determining the logistics service result corresponding to each logistics address node in each order based on the standard address information includes the following steps:

[0096] Step S401: Determine the logistics rendering map corresponding to each order according to the sender address, recipient address, and passing address in the logistics address nodes of each order.

[0097] The terminal can connect to a barcode scanner to scan the barcode carrying order information in the e-commerce platform to obtain the logistics address nodes such as the sender address, recipient address, and passing address in the order information. The terminal can also obtain the order information through the user graphical interface, and the graphical interface can include one or more of the following interfaces: the graphical interface of the e-commerce platform website, the e-commerce platform client, the logistics company website, or the logistics company client, etc. The logistics server can parse the standard address information of the sender address, recipient address, and passing address in the logistics address nodes from the local memory address library corresponding to the updated server instances in real time, generate the logistics rendering map corresponding to each order according to the parsed standard address information of the sender address, recipient address, and passing address in the logistics address nodes, and push the logistics rendering map corresponding to each order to the terminal.

[0098] Step S403: Determine the current location information of the goods corresponding to each order based on the logistics rendering map.

[0099] After determining the logistics rendering map corresponding to each order, the logistics rendering map can update multiple logistics address nodes such as the sender address, recipient address, the next address of the sender address, the previous address of the recipient address, and other transfer addresses of the order in real time. When the order reaches a certain logistics address node, the mobile terminal displays the standard address information and address language corresponding to the logistics address node of the current location of the order, and marks the standard address information and address language corresponding to the logistics address node of the current location on the logistics rendering map.

[0100] As can be seen from the above embodiments, pushing the logistics rendering map corresponding to each order to the terminal and marking the standard address information and address language corresponding to the logistics address node of the current location on the logistics rendering map greatly improves the matching performance of the address information, can significantly improve the acquisition efficiency and accuracy of the address information in the logistics order, and enables the user to master the logistics address information corresponding to the order in real time and clearly.

[0101] Based on any embodiment of the present application, please refer toFigure 7 , the step of parsing the standard address information of each logistics address node corresponding to the order address matching request from the updated local memory address library corresponding to each server instance includes the following steps:

[0102] Step S301, obtain the order address submitted by the e-commerce platform client;

[0103] Each of the server instances can obtain the order address submitted by the e-commerce platform client. The order address can be multiple logistics address nodes such as the sender address, the recipient address, and the passing address, etc. The passing address includes the transfer address or the non-transfer address, etc. The transfer address can include the next address of the sender address in the logistics address node, the previous address of the recipient address, the transfer address passed from the sender address to the recipient address, etc.

[0104] Step S303, parse the standard address information corresponding to each logistics address node corresponding to the order address matching request from the local memory corresponding to the server instance of the pricing service;

[0105] After obtaining multiple logistics address nodes such as the sender address, the recipient address, and the passing address submitted by the e-commerce platform client, the sender address, the recipient address, and the passing address in the logistics address node are relatively key information in freight calculation. Therefore, it is necessary to match the sender address, the recipient address, and the passing address in each imported order to obtain the standard address information corresponding to the sender address, the recipient address, and the passing address.

[0106] Step S305, according to the standard address information corresponding to the logistics address node in the order address, call its corresponding preset freight rule in real time;

[0107] Parse the standard address information corresponding to the sender address, the recipient address, and the passing address from the updated local memory address library corresponding to each server instance. Different logistics address nodes will generate different logistics freight. Based on the standard address information corresponding to the sender address, the recipient address, and the passing address, call the preset freight rule corresponding to the logistics address node.

[0108] Step S307, calculate the freight corresponding to each order in the e-commerce platform according to the preset freight rule.

[0109] After determining the preset freight rule corresponding to the logistics address node, based on the preset freight rule corresponding to the logistics address node to determine the logistics billing corresponding to each order passing through different countries, regions, and logistics providers, etc.

[0110] As can be seen from the above embodiments, for some logistics services with intensive calculations in the logistics background, the standard address information corresponding to each logistics address node in the logistics order is directly obtained from the local cache, and the logistics billing corresponding to each order passing through different countries, regions, logistics providers, etc. is calculated in real time and accurately according to the standard information, so that the accuracy and timeliness of the logistics billing service are greatly improved, and the matching efficiency of the address information of the logistics order is significantly improved.

[0111] Based on any embodiment of the present application, please refer to Figure 8 , the steps of parsing the standard address information of each logistics address node corresponding to the order address matching request from the local memory address library corresponding to the updated server instances include the following steps:

[0112] Step S3001: Parse the standard address information corresponding to each logistics address node corresponding to the order address matching request from the local memory address library corresponding to the server instance of the channel service;

[0113] When the order is sent to the logistics destination, it needs to be converted into a language that the logistics destination can recognize. For example, when the order is sent from China to Thailand, the imported order address may be in simplified Chinese or English, but when it finally reaches the logistics destination, it needs to be converted into Thai, etc. The recipient address in the order is matched to obtain the standard address information corresponding to the recipient address in the order, and the standard address information corresponding to the recipient address in the order is parsed from the local memory address library corresponding to the updated server instances.

[0114] Step S3003: Convert the standard address information corresponding to each logistics address node into the address language of its corresponding country or region.

[0115] After parsing the standard address information corresponding to the recipient address in the order from the local memory address library corresponding to the updated server instances, convert the standard address information corresponding to the recipient address in the order into a language that the logistics destination can recognize.

[0116] Please refer to Figure 9, An address information real-time calling device provided to meet one of the purposes of the present application, including: a driving module 1100, an address updating module 1200, a standard address determining module 1300, and a logistics service determining module 1400. Among them, the driving module 1100 is configured to respond to an address change request triggered by the management end, drive the address library central service to issue an address information update instruction to each server instance, and obtain the address information corresponding to the address change request; the address updating module 1200 is configured to update the address information corresponding to the address change request to the local memory address library corresponding to each server instance based on the address information update instruction; the standard address determining module 1300 is configured to respond to an order address matching request and parse the standard address information of each logistics address node corresponding to the order address matching request from the updated local memory address library corresponding to each server instance; the logistics service determining module 1400 is configured to determine the logistics service result corresponding to each logistics address node in each order based on the standard address information and push it to the management end.

[0117] Based on any embodiment of the present application, the address information real-time calling device of the present application further includes:

[0118] A timing monitoring unit, configured to respond to a timing monitoring event to query whether there is address information corresponding to the address change request in the address library central service; when there is no address information corresponding to the address change request in the address library central service, store the address information corresponding to the address change request in the address library central service.

[0119] Based on any embodiment of the present application, the address information real-time calling device of the present application further includes:

[0120] A request interface control unit, configured to respond to the address information update instruction pushed by the address library central service and close the order address matching request interfaces corresponding to each server instance;

[0121] A matching request detection unit, configured to detect whether there is an unprocessed order address matching request in the service request queue of each server instance. If so, process the unprocessed order address matching requests in the service request queue.

[0122] Based on any embodiment of the present application, the address updating module 1200 includes:

[0123] A load information detection unit, configured to detect the load information of the local memory corresponding to each server instance in real time;

[0124] A destruction unit, configured to determine weights of local memories corresponding to the respective server instances according to the load information, and if the weights of the local memories corresponding to the respective server instances exceed a preset threshold, respond to a destruction instruction to destroy partial address information corresponding to an old server instance.

[0125] Based on any embodiment of the present application, the logistics service determination module 1400 includes:

[0126] A rendering map determination unit, configured to determine a logistics rendering map corresponding to each order according to the sender address, the recipient address, and the passing addresses in the logistics address nodes of each order;

[0127] An order location determination unit, configured to determine current location information of the goods corresponding to each order based on the logistics rendering map.

[0128] Based on any embodiment of the present application, the standard address determination module 1300 includes:

[0129] An order address acquisition unit, configured to acquire an order address submitted by an e-commerce platform client;

[0130] A standard address parsing unit, configured to parse standard address information corresponding to each logistics address node corresponding to the order address matching request from the local memory corresponding to the server instance of the pricing service;

[0131] A freight rule invocation unit, configured to invoke a corresponding preset freight rule in real time according to the standard address information corresponding to the logistics address node in the order address;

[0132] A freight calculation unit, configured to calculate the freight corresponding to each order in the e-commerce platform according to the preset freight rule.

[0133] Based on any embodiment of the present application, the standard address determination module 1300 includes:

[0134] A standard address parsing unit, which parses standard address information corresponding to each logistics address node corresponding to the order address matching request from the local memory address library corresponding to the server instance of the channel service;

[0135] An address language conversion unit, configured to convert the standard address information corresponding to each logistics address node into the address language of its corresponding country or region.

[0136] Based on any embodiment of the present application, please refer to Figure 10 , another embodiment of the present application further provides an electronic device, which can be implemented by a computer device, such as Figure 10As shown, it is a schematic diagram of the internal structure of a computer device. The computer device includes a processor, a computer-readable storage medium, a memory, and a network interface connected through a system bus. Among them, the computer-readable storage medium of the computer device stores an operating system, a database, and computer-readable instructions. The database can store a control information sequence. When the computer-readable instructions are executed by the processor, the processor can implement a method for real-time invocation of address information. The processor of the computer device is used to provide computing and control capabilities to support the operation of the entire computer device. The memory of the computer device can store computer-readable instructions. When the computer-readable instructions are executed by the processor, the processor can execute the method for real-time invocation of address information of the present application. The network interface of the computer device is used to connect and communicate with a terminal. Those skilled in the art can understand, Figure 10 The structure shown in is only a block diagram of some structures related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine some components, or have different component arrangements.

[0137] In this embodiment, the processor is used to execute Figure 9 the specific functions of each module and its sub-modules in. The memory stores the program code and various types of data required to execute the above modules or sub-modules. The network interface is used for data transmission between the user terminal and the server. The memory in this embodiment stores the program code and data required to execute all modules / sub-modules in the address information real-time invocation device of the present application. The server can call the program code and data of the server to execute the functions of all sub-modules.

[0138] The present application also provides a storage medium storing computer-readable instructions. When the computer-readable instructions are executed by one or more processors, the one or more processors are caused to execute the steps of the method for real-time invocation of address information described in any embodiment of the present application.

[0139] The present application also provides a computer program product, including a computer program / instructions. When the computer program / instructions are executed by one or more processors, the steps of the method for real-time invocation of address information described in any embodiment of the present application are implemented.

[0140] Those of ordinary skill in the art can understand that all or part of the processes in the above-described embodiments of the method of the present application can be completed by instructing relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-described methods. Among them, the aforementioned storage medium can be a computer-readable storage medium such as a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM), etc.

[0141] The above are only some embodiments of the present application. It should be noted that for those of ordinary skill in the art of this technology, without departing from the principle of the present application, several improvements and refinements can be made, and these improvements and refinements should also be regarded as the protection scope of the present application.

[0142] In summary, for some intensive computing logistics services in the logistics background of the present application, directly obtaining the standard address information corresponding to the address information of the logistics order from the local cache greatly improves the timeliness of the logistics service, significantly improves the efficiency of matching and verifying the address information of the logistics order, and greatly enhances the performance of the logistics service.

Claims

1. A method for real-time invocation of address information, characterized in that Including the following steps: In response to an address change request triggered by the management terminal, drive the central service of the address library to issue an address information update instruction to each server instance, and obtain the address information corresponding to the address change request; Based on the address information update instruction, update the address information corresponding to the address change request to the local memory address library corresponding to each server instance, including: real-time detecting the load information of the local memory corresponding to each server instance; determining the weight of the local memory corresponding to each server instance according to the load information, and if the weight of the local memory corresponding to each server instance exceeds a preset threshold, respond to the destruction instruction to destroy part of the address information corresponding to the old server instance; In response to an order address matching request, parse the standard address information of each logistics address node corresponding to the order address matching request from the updated local memory address library corresponding to each server instance; Based on the standard address information, determine the logistics service results corresponding to each logistics address node in each order and push them to the management terminal.

2. The method for real-time invocation of address information according to claim 1, characterized in that The step of responding to the address change request triggered by the management terminal further includes the following steps: In response to the timing monitoring event, query whether there is address information corresponding to the address change request in the central service of the address library; When there is no address information corresponding to the address change request in the central service of the address library, store the address information corresponding to the address change request in the central service of the address library.

3. The method for real-time invocation of address information according to claim 1, characterized in that After the step of driving the central service of the address library to issue an address information update instruction to each server instance, the following steps are included: In response to the address information update instruction pushed by the central service of the address library, close the order address matching request interface corresponding to each server instance; Detect whether there are unprocessed order address matching requests in the service request queue of each server instance, and if so, process the unprocessed order address matching requests in the service request queue.

4. The method for real-time invocation of address information according to claim 1, characterized in that The step of determining the logistics service results corresponding to each logistics address node in each order based on the standard address information includes the following steps: Determine the logistics rendering map corresponding to each order according to the sender address, recipient address and passing address in the logistics address nodes of each order; Based on the logistics rendering map, determine the current location information of the goods corresponding to each order.

5. The method for real-time invocation of address information according to any one of claims 1 to 4, characterized in that The step of parsing the standard address information of each logistics address node corresponding to the order address matching request from the updated local memory address library corresponding to each server instance includes the following steps: Obtain the order address submitted by the e-commerce platform client; Parse the standard address information corresponding to each logistics address node corresponding to the order address matching request from the local memory corresponding to the server instance of the pricing service; According to the standard address information corresponding to the logistics address node in the order address, call the corresponding preset freight rule in real time; Calculate the freight corresponding to each order in the e-commerce platform according to the preset freight rule.

6. The method for real-time invocation of address information according to any one of claims 1 to 4, characterized in that The step of parsing the standard address information of each logistics address node corresponding to the order address matching request from the local memory address library corresponding to each updated server instance includes the following steps: Parse the standard address information corresponding to each logistics address node corresponding to the order address matching request from the local memory address library corresponding to the server instance of the channel service; Convert the standard address information corresponding to each logistics address node into the address language of its corresponding country or region.

7. An apparatus for real-time invocation of address information, characterized in that Including: A driving module, configured to respond to an address change request triggered by the management end, drive the address library central service to issue an address information update instruction to each server instance, and obtain the address information corresponding to the address change request; An address update module, configured to update the address information corresponding to the address change request to the local memory address library corresponding to each server instance based on the address information update instruction, including: real-time detecting the load information of the local memory corresponding to each server instance; determining the weight of the local memory corresponding to each server instance according to the load information, and if the weight of the local memory corresponding to each server instance exceeds a preset threshold, responding to the destruction instruction to destroy part of the address information corresponding to the old server instance; A standard address determination module, configured to respond to an order address matching request, and parse the standard address information of each logistics address node corresponding to the order address matching request from the local memory address library corresponding to each updated server instance, where the logistics address node includes the sender address, recipient address, and passing address of each order; A logistics service determination module, configured to determine the logistics service result corresponding to each logistics address node in each order based on the standard address information and push it to the management end.

8. An electronic device, comprising a central processing unit and a memory, characterized in that The central processing unit is used to call and run the computer program stored in the memory to execute the steps of the method described in any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that It stores in the form of computer-readable instructions a computer program implemented according to the method described in any one of claims 1 to 6. When the computer program is called and run by the computer, it executes the steps included in the corresponding method.

Citation Information

Patent Citations

  • A method and terminal for displaying a logistics state

    CN109359230A

  • Computerized systems and methods for address correction

    US10607179B1

  • Intelligent barcode systems

    US20100230328A1