CN109033153A - A method of dynamically distributing sole electron Air Way Bill No. - Google Patents

A method of dynamically distributing sole electron Air Way Bill No. Download PDF

Info

Publication number
CN109033153A
CN109033153A CN201810602680.2A CN201810602680A CN109033153A CN 109033153 A CN109033153 A CN 109033153A CN 201810602680 A CN201810602680 A CN 201810602680A CN 109033153 A CN109033153 A CN 109033153A
Authority
CN
China
Prior art keywords
odd numbers
redis
caching
client
automatically
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
CN201810602680.2A
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.)
Shanghai Tunji Network Technology Co Ltd
Original Assignee
Shanghai Tunji Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Tunji Network Technology Co Ltd filed Critical Shanghai Tunji Network Technology Co Ltd
Priority to CN201810602680.2A priority Critical patent/CN109033153A/en
Publication of CN109033153A publication Critical patent/CN109033153A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/08Logistics, e.g. warehousing, loading or distribution; Inventory or stock management
    • G06Q10/083Shipping
    • G06Q10/0834Choice of carriers
    • G06Q10/08345Pricing

Landscapes

  • Business, Economics & Management (AREA)
  • Engineering & Computer Science (AREA)
  • Economics (AREA)
  • Quality & Reliability (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Human Resources & Organizations (AREA)
  • Marketing (AREA)
  • Operations Research (AREA)
  • Development Economics (AREA)
  • Strategic Management (AREA)
  • Tourism & Hospitality (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The present invention relates to a kind of methods for dynamically distributing sole electron Air Way Bill No., comprising the following steps: (1) caching client's important information to Redis caches, automatically;(2), the remaining sum of client is monitored automatically according to the average daily outbox amount and warning value of customer information, when client cache Sorry, your ticket has not enough value warning when carry out caching customer balance automatically;(3), value is cut down according to the type definition odd numbers range of odd numbers and odd numbers use, the odd numbers for generating corresponding number is put into the caching of odd numbers pond;The maximum odd numbers that the odd numbers that the quantity odd numbers daily measured of this type odd numbers is put into cache pool, and records this type has generated is automatically generated when odd numbers cache pool is lower than warning value;It is automatically reminded to when odd numbers number section has soon used;(4), odd numbers pond has used the mode of buffer queue to guarantee odd numbers first in first out, and avoids repeating to obtain odd numbers using atomic operation;The present invention provides an efficient and stable acquisition odd numbers mode, and clearly records the remaining sum variation of client.

Description

A method of dynamically distributing sole electron Air Way Bill No.
Technical field
The present invention relates to a kind of methods for distributing electronics Air Way Bill No., and in particular to a kind of efficient and stable acquisition odd numbers Mode, and the method for clearly recording the dynamic allocation sole electron Air Way Bill No. of the remaining sum variation of client.
Background technique
With logistics service informationization rapid development, traditional papery face is singly gradually replaced by electronic surface list, in face of complete The universal and aequum of net electronic surface list it is huge, odd numbers service ability is obtained to electronics waybill and forms challenge.Electronic surface list Control and distribution step by step become one technical problem of express company.
Summary of the invention
In view of the above-mentioned problems, the main purpose of the present invention is to provide a kind of efficient and stable acquisition odd numbers mode, And the method for clearly recording the dynamic allocation sole electron Air Way Bill No. of the remaining sum variation of client.
The present invention is to solve above-mentioned technical problem by following technical proposals: a kind of dynamic allocation sole electron waybill Number method, the method for dynamically distributed sole electron Air Way Bill No. includes the following steps:
(1), automatically caching client's important information to Redis caching, customer information include customer type, average daily outbox amount, Warning amount is revised as synchronizing if client-related data modification, in order to guarantee data cached accuracy, daily timing alignment one All customer informations of secondary caching;
(2), the remaining sum of client is monitored automatically according to the average daily outbox amount and warning value of customer information, when client is slow It deposits and carries out caching customer balance automatically when Sorry, your ticket has not enough value guards against;
(3), value is cut down according to the type definition odd numbers range of odd numbers and odd numbers use, the odd numbers for generating corresponding number is put into list In the caching of number pond;When odd numbers cache pool be lower than warning value when automatically generate this type odd numbers the quantity odd numbers daily measured be put into it is slow The maximum odd numbers that the odd numbers deposited pond, and record this type has generated;It is automatically reminded to when odd numbers number section has soon used, allows phase The pass new number section of personnel depaly, which matches to postpone, can automatically switch to new number section.
(4), odd numbers pond has used the mode of buffer queue to guarantee odd numbers first in first out, and avoids repeating using atomic operation Obtain odd numbers.
(5), all caching Redis we use Redis clustered deploy(ment), guarantee the High Availabitity of Redis.
In specific embodiments of the present invention, in step (1), customer information database saves portion, and Redis is also cached It is a;If Redis inquiry avoids the connection number in library from increasing while providing response efficiency less than request library is gone to again;The number of Redis According to exposure simultaneously, newly-increased, modification interface, guarantees the timely synchronization caching of DB data modification.
In specific embodiments of the present invention, in step (2), client, which needs electronic surface list remaining sum, could obtain list Number, then the electronic surface list remaining sum of client is cached, exactly a part of remaining sum is put into Redis caching;It is remaining in caching Volume is when client uses directly using the remaining sum of caching.
In specific embodiments of the present invention, in (4) step using queue obtain odd numbers mechanism read in storehouse the One odd numbers simultaneously deletes this odd numbers in storehouse, guarantees that next time, reading did not got this odd numbers again, is grasped using Redis atom Make that high concurrent is supported to read;Atomic operation is realized using Redis list and ListLeftPop attribute in (4) step.
In specific embodiments of the present invention, in step (5), Redis disposes a cluster, which is when one There is the cluster of the abnormal normal use for having no effect on Redis in Redis node.
The positive effect of the present invention is that: the present invention provides an efficient and stable acquisition odd numbers side for client Formula, and clearly record the remaining sum variation of client.
Detailed description of the invention
Fig. 1 is workflow schematic diagram of the invention.
Specific embodiment
Present pre-ferred embodiments are provided with reference to the accompanying drawing, in order to explain the technical scheme of the invention in detail.
It is embodied in a manner of remaining sum after electronic surface list purchase of the invention, site or business personnel need using electronic surface only number When, (odd numbers of certain threshold values is pre-generated in caching) is obtained from caching, and reduce corresponding remaining sum;When odd numbers is lower than warning Value, system automatically generated odd numbers deposit caching.It solves site business personnel's addressee peak period and generates odd numbers to system bring pressure Power, obtaining odd numbers high concurrent causes to obtain repetition, introduces remaining sum concept and avoids waste and subsequent recovery of face list etc. a series of Problem.
Fig. 1 is workflow schematic diagram of the invention.The present invention includes the following steps:
(1), automatically caching client's important information to Redis caching, customer information include customer type, average daily outbox amount, Warning amount is revised as synchronizing if client-related data modification, in order to guarantee data cached accuracy, daily timing alignment one All customer informations of secondary caching;In step (1), customer information database saves portion, and Redis also caches portion;If Redis inquiry avoids the connection number in library from increasing while providing response efficiency less than request library is gone to again;The data of Redis are sudden and violent simultaneously The interface that dew is newly-increased, modifies, guarantees the timely synchronization caching of DB data modification.
(2), the remaining sum of client is monitored automatically according to the average daily outbox amount and warning value of customer information, when client is slow It deposits and carries out caching customer balance automatically when Sorry, your ticket has not enough value guards against;In step (2), client needs electronic surface list remaining sum and can just obtain Odd numbers is taken, this is premise.Then we can the electronic surface list remaining sum to client cache, exactly a part of remaining sum is put into In Redis caching (a part here is determined according to the average daily outbox amount and warning value of client).Remaining sum in caching is Directly using the remaining sum of caching when client uses, avoid the problem that high concurrent changes DB real balance and data deadlock occurs.
(3), value is cut down according to the type definition odd numbers range of odd numbers and odd numbers use, the odd numbers for then generating corresponding number is put Enter in the caching of odd numbers pond;The quantity odd numbers daily measured that this type odd numbers is automatically generated when odd numbers cache pool is lower than warning value is put The maximum odd numbers that the odd numbers for entering cache pool, and recording this type has generated;It is automatically reminded to when odd numbers number section has soon used, New number section can be automatically switched to postponing by allowing related personnel to configure new number section.
(4), odd numbers pond has used the mode of buffer queue to guarantee odd numbers first in first out, and avoids repeating using atomic operation Obtain odd numbers;First odd numbers in odd numbers mechanism reading storehouse is obtained using queue in (4) step and deletes this in storehouse Odd numbers guarantees that next time, reading did not got this odd numbers again, supports high concurrent to read using Redis atomic operation;In (4) step Atomic operation is realized using Redis list and ListLeftPop attribute.
(5), all caching Redis we use Redis clustered deploy(ment), guarantee the High Availabitity of Redis.Step (5) In, Redis disposes a cluster, which is when the abnormal normal use for having no effect on Redis occurs in a Redis node Cluster.
The present invention is dynamically distributed for the particularity of logistics period and the centrality of face list usage time interval, electronics waybill It is few with principle is generated less using multi-purpose more generations, solve business and technical two fold problem, and mention for electronics waybill The odd numbers monitoring service of complete set is supplied, having flexible distribution permission, the acquisition modes of various dimensions, there are also complete automatic The schemes such as monitoring, prompting, early warning, recycling.Reduce the cost of artificial odd numbers management.
Present invention accomplishes the business odd numbers demands of express company's diversification.And the accurate recording electronic surface list of client Remaining sum variation record, guarantees that the odd numbers remaining sum of each client is that have note that can follow.
Peak period of the present invention is not in phenomena such as slow and acquisition repeats when obtaining odd numbers.One odd numbers pond pipe of odd numbers It manages clear and can be extending transversely.
The above shows and describes the basic principles and main features of the present invention and the advantages of the present invention.The technology of the industry Personnel are it should be appreciated that the present invention is not limited to the above embodiments, and the above embodiments and description only describe this The principle of invention, without departing from the spirit and scope of the present invention, various changes and improvements may be made to the invention, these changes Change and improvement all fall within the protetion scope of the claimed invention, the claimed scope of the invention by appended claims and its Equivalent thereof.

Claims (5)

1. a kind of method for dynamically distributing sole electron Air Way Bill No., it is characterised in that: dynamically distributed sole electron Air Way Bill No. Method includes the following steps:
(1), caching client's important information is cached to Redis automatically, and customer information includes customer type, average daily outbox amount, warning Amount is revised as synchronizing if client-related data modification, and in order to guarantee data cached accuracy, daily timing alignment once delays All customer informations deposited;
(2), the remaining sum of client is monitored automatically according to the average daily outbox amount and warning value of customer information, when client cache Caching customer balance is carried out automatically when warning that Sorry, your ticket has not enough value;
(3), value is cut down according to the type definition odd numbers range of odd numbers and odd numbers use, the odd numbers for generating corresponding number is put into odd numbers pond In caching;The quantity odd numbers daily measured that this type odd numbers is automatically generated when odd numbers cache pool is lower than warning value is put into caching Pond, and the maximum odd numbers that the odd numbers for recording this type has generated;It is automatically reminded to when odd numbers number section has soon used, allows correlation The new number section of personnel depaly, which matches to postpone, can automatically switch to new number section;
(4), odd numbers pond has used the mode of buffer queue to guarantee odd numbers first in first out, and avoids repeating to obtain using atomic operation Odd numbers;
(5), all caching Redis we use Redis clustered deploy(ment), guarantee the High Availabitity of Redis.
2. the method according to claim 1 for dynamically distributing sole electron Air Way Bill No., it is characterised in that:
In step (1), customer information database saves portion, and Redis also caches portion;If Redis inquiry less than going for again Library is asked, the connection number in library is avoided to increase while response efficiency being provided;The interface that the exposure simultaneously of the data of Redis is newly-increased, modifies, is protected Demonstrate,prove the timely synchronization caching of DB data modification.
3. the method according to claim 1 for dynamically distributing sole electron Air Way Bill No., it is characterised in that:
In step (2), client, which needs electronic surface list remaining sum, could obtain odd numbers, then carry out to the electronic surface list remaining sum of client Caching, exactly a part of remaining sum are put into Redis caching;Remaining sum in caching is when client uses directly using caching Remaining sum.
4. the method according to claim 1 for dynamically distributing sole electron Air Way Bill No., it is characterised in that:
In (4) step using queue obtain odd numbers mechanism read storehouse in first odd numbers and delete this odd numbers in storehouse, Guarantee that next time reads and do not get this odd numbers again, supports high concurrent to read using Redis atomic operation;Atom in (4) step Operation is realized using Redis list and ListLeftPop attribute.
5. the method according to claim 1 for dynamically distributing sole electron Air Way Bill No., it is characterised in that:
In step (5), Redis disposes a cluster, which is to have no effect on Redis when exception occurs in a Redis node Normal use cluster.
CN201810602680.2A 2018-06-12 2018-06-12 A method of dynamically distributing sole electron Air Way Bill No. Pending CN109033153A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810602680.2A CN109033153A (en) 2018-06-12 2018-06-12 A method of dynamically distributing sole electron Air Way Bill No.

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810602680.2A CN109033153A (en) 2018-06-12 2018-06-12 A method of dynamically distributing sole electron Air Way Bill No.

Publications (1)

Publication Number Publication Date
CN109033153A true CN109033153A (en) 2018-12-18

Family

ID=64612850

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810602680.2A Pending CN109033153A (en) 2018-06-12 2018-06-12 A method of dynamically distributing sole electron Air Way Bill No.

Country Status (1)

Country Link
CN (1) CN109033153A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111429060A (en) * 2020-03-20 2020-07-17 上海中通吉网络技术有限公司 Express bill payment management method and equipment
CN111694835A (en) * 2019-06-13 2020-09-22 上海寻梦信息技术有限公司 Number section access method, system, equipment and storage medium of logistics electronic bill
CN111694850A (en) * 2019-06-13 2020-09-22 上海寻梦信息技术有限公司 Method, system, equipment and storage medium for recovering single number of logistics electronic bill
CN111695847A (en) * 2019-05-17 2020-09-22 上海寻梦信息技术有限公司 Number section management method, system, equipment and storage medium for logistics electronic bill
CN111815221A (en) * 2020-04-15 2020-10-23 国泰财产保险有限责任公司 Method for rapidly acquiring logistics electronic bill
CN112925851A (en) * 2021-02-26 2021-06-08 杭州网易再顾科技有限公司 Single number processing method and device, electronic equipment and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106228329A (en) * 2016-07-26 2016-12-14 上海海豆信息科技有限公司 A kind of fast enterprise electronic surface single system construction method based on information extracting system
CN107832357A (en) * 2017-10-24 2018-03-23 深圳市丰巢科技有限公司 It is a kind of that part code distributing method and its system are posted based on express delivery cabinet

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106228329A (en) * 2016-07-26 2016-12-14 上海海豆信息科技有限公司 A kind of fast enterprise electronic surface single system construction method based on information extracting system
CN107832357A (en) * 2017-10-24 2018-03-23 深圳市丰巢科技有限公司 It is a kind of that part code distributing method and its system are posted based on express delivery cabinet

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111695847A (en) * 2019-05-17 2020-09-22 上海寻梦信息技术有限公司 Number section management method, system, equipment and storage medium for logistics electronic bill
CN111694835A (en) * 2019-06-13 2020-09-22 上海寻梦信息技术有限公司 Number section access method, system, equipment and storage medium of logistics electronic bill
CN111694850A (en) * 2019-06-13 2020-09-22 上海寻梦信息技术有限公司 Method, system, equipment and storage medium for recovering single number of logistics electronic bill
CN111694835B (en) * 2019-06-13 2021-03-30 上海寻梦信息技术有限公司 Number section access method, system, equipment and storage medium of logistics electronic bill
CN111694850B (en) * 2019-06-13 2021-08-03 上海寻梦信息技术有限公司 Method, system, equipment and storage medium for recovering single number of logistics electronic bill
CN111429060A (en) * 2020-03-20 2020-07-17 上海中通吉网络技术有限公司 Express bill payment management method and equipment
CN111429060B (en) * 2020-03-20 2024-04-09 上海中通吉网络技术有限公司 Express bill payment management method and equipment
CN111815221A (en) * 2020-04-15 2020-10-23 国泰财产保险有限责任公司 Method for rapidly acquiring logistics electronic bill
CN111815221B (en) * 2020-04-15 2022-06-24 国泰财产保险有限责任公司 Method for rapidly acquiring logistics electronic bill
CN112925851A (en) * 2021-02-26 2021-06-08 杭州网易再顾科技有限公司 Single number processing method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN109033153A (en) A method of dynamically distributing sole electron Air Way Bill No.
CN103593436B (en) file merging method and device
US11914449B2 (en) Methods and apparatus for characterizing memory devices
CN104335175B (en) The method and system of thread is identified and migrated between system node based on system performance metric
CN1936859A (en) Internal memory monitoring method
CN102819586B (en) A kind of URL sorting technique based on high-speed cache and equipment
CN106557272B (en) A kind of efficient sensor historic data archiving method
CN103020149B (en) Share data update apparatus and shared data-updating method
CN109885617A (en) The method of data synchronization and device of Distributed Heterogeneous Database system
CN101443761A (en) QOS-enabled lifecycle management for file systems
CN103336849A (en) Method and device for increasing retrieval speed in database retrieval system
CN106682077A (en) Method for storing massive time series data on basis of Hadoop technologies
CN1979483A (en) File system, storage system and method for providing file system
CN110196885A (en) A kind of cloud distributed real-time database system
CN104765661A (en) Multiple-node hot standby method of metadata service nodes in cloud storage service
CN102332004B (en) Data processing method and system for managing mass data
CN110019469A (en) Distributed data base data processing method, device, storage medium and electronic device
Kucukyilmaz et al. A machine learning approach for result caching in web search engines
CN106649869A (en) Statistical method and statistical device for big data in database
CN102111920A (en) Method and device for managing performance report
Meoni et al. Dataset popularity prediction for caching of CMS big data
Sazoglu et al. A financial cost metric for result caching
CN106383897B (en) Database volume computational methods and device
CN102855391A (en) Enhanced message service (EMS) multi-professional-data holographic storage and panoramic accident inversion method
CN105354229B (en) A kind of information processing method and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20181218