CN108596709A - A kind of real-time pressure monitoring system for taking out order - Google Patents

A kind of real-time pressure monitoring system for taking out order Download PDF

Info

Publication number
CN108596709A
CN108596709A CN201810263810.4A CN201810263810A CN108596709A CN 108596709 A CN108596709 A CN 108596709A CN 201810263810 A CN201810263810 A CN 201810263810A CN 108596709 A CN108596709 A CN 108596709A
Authority
CN
China
Prior art keywords
order
grid
clusters
real
pressure
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201810263810.4A
Other languages
Chinese (zh)
Other versions
CN108596709B (en
Inventor
赵剑锋
王威威
张黎明
宋海英
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhejiang Millennium Network Technology Co Ltd
Original Assignee
Zhejiang Millennium 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 Zhejiang Millennium Network Technology Co Ltd filed Critical Zhejiang Millennium Network Technology Co Ltd
Priority to CN201810263810.4A priority Critical patent/CN108596709B/en
Publication of CN108596709A publication Critical patent/CN108596709A/en
Application granted granted Critical
Publication of CN108596709B publication Critical patent/CN108596709B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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
    • G06Q30/00Commerce
    • G06Q30/06Buying, selling or leasing transactions
    • G06Q30/0601Electronic shopping [e-shopping]
    • G06Q30/0633Lists, e.g. purchase orders, compilation or processing
    • G06Q30/0635Processing of requisition or of purchase orders

Abstract

The invention discloses a kind of real-time pressure monitoring systems for taking out order, including mobile client, order center, data center and business platform.The present invention wishes that specific job and businessman that Urban Operation manager can be directly found by pressure monitor figure in relevant pressure grid make transport power be optimal configuration according to jockey's load factor near pressure grid to allocate jockey;Behind the selected city and region being responsible for of City Operation Manager, from three businessman, jockey, order dimensions, the pressure state under different dimensions is illustrated, according to the real-time condition of pressure grid:Order volume is more, and jockey is less, needs to allocate transport power to the region, provides corresponding support;High pressure order is more (not sending for a long time), needs to match suitable jockey's order.

Description

A kind of real-time pressure monitoring system for taking out order
Technical field
The invention belongs to technical field of network information, and in particular to a kind of real-time pressure monitoring system for taking out order.
Background technology
As instant logistics platform, on the one hand provides to the user and punctual, very fast, reliable be sent to service, it is desirable to will order It is single rapidly to send, avoid order bulk deposition;On the other hand, as the career development platform of 300,000,000 blue collars, receipts are provided for jockey Enter, the chance of career development and promotion, them is helped to realize more good days.
It takes out in industry, most of orders are concentrated at noon with two peak periods at night, and a large amount of heaps of order how are avoided On the one hand product will more accurately control the real-time status of order, and the stabilization of reading is kept when peak period is largely written; Still further aspect is wanted to allocate transport power more scientificly and be taken the whole situation into account, and the dispatching efficiency of final lifting system.
In order to more accurately control the real-time status of order, we only focus on and retain the last state of order, it is desirable to It can be inserted into record in a covered manner, same order (being in storage the identical record of O/No.) successor states (such as Turn single state after worksheet processing, complete after turning list) covering forerunner's state, the relevant database being commonly used cannot The primary mode for reaching covering is inserted into new record, if to achieve the goal, needs after first deleting original record, is inserted into new note Record, the read-write pressure that storage can be significantly increased frequently is deleted in peak period;Or first label original record failure, it is inserted into new note Record causes a large amount of extra record, while also increasing development difficulty.
For the dispatching efficiency of lifting system, then need to introduce pressure monitor system;Current pressure monitor is with thermodynamic chart Form displaying, by gradation of color, carry out reaction pressure size, can only compare and general feel from visual perception By, cannot be accurate to as unit of grid, can not quantify reaction wherein really do not send quantity on order, details and pressure value The loading condition of size, businessman's pressure and neighbouring jockey.
Invention content
In view of above-mentioned, the present invention provides a kind of real-time pressure monitoring systems for taking out order, Urban Operation can be made to pass through Reason more rapid can view the bigger grid of order pressure, and the specific order and businessman found in the grid is according to tune With jockey, reaches transport capacity resource balance, so that transport power is performed to optimal.
A kind of real-time pressure monitoring system for taking out order, including mobile client, order center, data center and industry Business platform;Wherein:The mobile client is used to generate the order of user and sends it to order center;The order center For receiving order and being written into Mysql (Relational DBMS);The data center is for passing through monitoring Daily record in Mysql and by corresponding Information encapsulation at Kafka (a kind of the distributed post of high-throughput subscribe to message system) After the message of form be written ScyllaDB (height handle up, low latency, have excellent performance row storage NoSQL (non-relational database), Can be primary reach is inserted into new record with coverage mode) in;The business platform is by reading a period of time in ScyllaDB Interior order data carries out gridding division to city, high pressure order, the height in each grid block is counted by order data Pressure businessman, jockey load and calculate grid pressure value, and then transmit these information to City Operation Manager and user's movement Client is shown.
Further, the order center is made of Java EE server clusters, is responsible for order storage.
Further, the data center includes DTS clusters, Storm clusters, Kafka clusters, Spark Streaming Cluster and ScyllaDB clusters;Wherein:The DTS clusters pass through DTS (Data Transformation Service, SQL In Data Conversion Service) technology monitor Mysql in Binlog (binary log file) variation;(one is opened the Storm The distributed real time computation system in source, is commonly referred to as streaming computing frame) cluster is used to monitor DTS message in DTS clusters, into And DTS message is packaged into Kafka message and is written in Kafka clusters;The Spark Streaming are (for large-scale data Processing and design Universal-purpose quick computing engines) cluster be used for from Kafka clusters read Kafka message and by its with covering (same order has multiple states, the record in latter batch to cover the shape of previous batch in pattern write-in ScyllaDB clusters State).
Further, the value of data line in database name, table name and table, Storm clusters are had recorded in the DTS message The row record in order table is obtained according to the configuration extraction of database name and table name, row record is then written to corresponding theme In Kafka message.
Further, the business platform carries out gridding division, and then basis with the block size of 1km × 1km to city Following below scheme calculates the grid pressure value of each grid block:
(1) it for any grid block, counts in the grid block and does not send order numbers N into worksheet processing time window, and then calculate It obtains For the function that rounds up;
(2) calculate generated in first 10 minutes in the grid block and current time have been enter into worksheet processing time window order it is flat Equal worksheet processing duration L;
(3) V2 is calculated:If V1 < 60 seconds,If V1 >=60 second,
(4) so that the result that V1 × V2 is obtained is made comparisons with 1, take grid pressure value of the smaller value as the grid block.
Further, the business platform is that each grid block assigns same color and its transparency, i.e., by grid pressure Force value is divided into four sections:[0,0.25], (0.25,0.5], (0.5,0.75], (0.75,1], transparency have fourth gear and by It is shallow to be corresponding in turn to aforementioned four section to deep, and then the corresponding transparency of grid block is determined according to section where grid pressure value.
Further, corresponding APP is installed in the mobile client, which is using React Native technologies Operated on two platforms of iOS and Android using what consistent development technique constructed with React based on Javascript Application program, greatly saved development cost;Continuous deduplication structure application program, browsing are not needed in development process Effect greatly improves development efficiency as long as having a line js code updates, app that can automatically update.React Native reduce The renewal frequency of version if being updated if not primary code, can pass through the newer mode of heat, update buddle texts Part, without downloading entire APP installations.
The present invention wishes to the last state for only retaining order in storage, and is kept in a large amount of write-ins of peak period The stabilization of reading, while user not only experiences loading condition subjective, while it is specific and detailed that user can be allowed to obtain Data be used as decision-making foundation to reach pressure balance (pressure ratio of supply and demand).The pressure balance of instant logistics can then arrive It is specific, including each shops, jockey, order its pressure value are how many, then rely on this pressure value de-regulation entire Transport power market, system worksheet processing decision can also consider order pressure, by system call transport power, finally realize the equilibrium of supply and demand.
Two-dimensional longitude and latitude is converted into character string, each character string represents certain by the present invention by introducing GeoHash One rectangular area grid, all point (latitude and longitude coordinates) GeoHash character strings all having the same in this rectangular area, Character string is longer, and the range of expression is more accurate (GeoHash that can be used 7), the square that map partitioning is multiple same sizes Shape area grid, based on these grids, to calculate its specific pressure value, user is according to the actual pressure of each grid Value, to allocate jockey.
In addition, the real-time status of order (including order, is turned single, group by the present invention using Spark Streaming tasks It is single, complete etc.) be synchronized to ScyllaDB, be condition according to city, channel, city operations area of interest, the worksheet processing time is Ordering rule (positive sequence is to push away single order earlier should first be sent) obtains the order list in the rectangular area grid, so Afterwards the order pressure of this grid is calculated according to the conditions such as the worksheet processing state, blanket order quantity of each order, businessman in order list Force value.The ends jockey APP upload the real-time position information of jockey, real-time position information of the Spark Streaming tasks jockey It is synchronized in Elasticsearch, Urban Operation is handled to obtain the allotment that arrives further according in net region jockey's loading condition coming Transport power.
The present invention wishes that Urban Operation manager directly can find specifically ordering in relevant pressure grid by pressure monitor figure List and businessman make transport power be optimal configuration according to jockey's load factor near pressure grid to allocate jockey;City Operation Manager selects Behind the fixed city and region being responsible for, from three businessman, jockey, order dimensions, the pressure state under different dimensions, root are illustrated According to the real-time condition of pressure grid:Order volume is more, and jockey is less, needs to allocate transport power to the region, provides corresponding support; High pressure order is more (not sending for a long time), needs to match suitable jockey's order.
Therefore the present invention can help City Operation Manager more preferably to hold real-time transport power, to reach the mesh for alleviating areal pressure 's;Using monitoring system of the present invention, has the following advantages:1. Urban Operation can be monitored intuitively specific to grid order pressure Power;2. quickly navigating to the businessman of high pressure order by the grid;3. the jockey near high pressure grid is checked is negative Load rate;Transport power is set to balance 4. the relatively low jockey of Urban Operation allotment load factor rushes for high pressure grid block, to reach fortune The allocation optimum of power.
Description of the drawings
Fig. 1 is the structural schematic diagram of pressure monitoring system of the present invention.
Specific implementation mode
In order to more specifically describe the present invention, below in conjunction with the accompanying drawings and specific implementation mode is to technical scheme of the present invention It is described in detail.
As shown in Figure 1, the present invention is for the real-time pressure monitoring system for taking out order, by order center, business platform, big Data center, the ends mobile app composition;Wherein, order center is made of Java EE server-side clusters, is mainly responsible for order storage; Large data center is made of Storm, Kafka, Spark Streaming, ScyllaDB cluster, is mainly responsible for order center Scylladb clusters are written in order;Business platform forms inquiry ScyllaDB by Java EE server-side clusters, and inquiry, which is not sent, to be ordered Single, high pressure order and the pressure value for calculating pressure grid;Mobile app divides android and ios platforms in end, receives business platform Order, high pressure order and the pressure value for calculating pressure grid are not sent in http restful requests, displaying.
The detailed process of monitoring system processing high pressure order of the present invention is as follows:
(1) after order center receives upstream bill, Mysql databases are written to.
(2) DTS clusters monitor the variation of binary log Binlog in the libraries Mysql.
(3) in Storm tasks, DTS message is monitored, database name, table name and data line are had recorded in DTS message Value is got the row in order table according to the configuration of database name and table name and is recorded, every row record is then written to some topic Kafka message in.
(4) Spark Streaming tasks read the message of Kafka in the topic, are written with append patterns In ScyllaDB (same order has multiple states, the record in the latter batch to cover the state of previous batch).
(5) business platform is that partition key read a period of time in ScyllaDB according to city, region and channel Data the worksheet processing time is answered to calculate grid pressure value, realization process includes according to lower single time of order:The range in region Division, the judgement of pressure mesh generation, high pressure order calculate each pressure network in a region according to the real-time status of order The order pressure value of lattice is distinguished, real-time tracing pressure grid according to the color depth that the order pressure value of pressure grid is rendered to Data in neighbouring jockey and jockey's load, increment real-time synchronization Mysql and ScyllaDB.
Specifically, business platform reads the record in a period of time in ScyllaDB, according to the worksheet processing state of order, calculates (pressure grid shares a kind of color to grid pressure value, and 4 kinds of transparencies are shown (subject to UI figures), and pressing force value divides 4 sections corresponding: [0,0.25], (0.25,0.50], (0.50,0.75], (0.75,1], transparency is from shallow to deep), high pressure order is (when answering worksheet processing Between after 10 minutes orders that do not send also), high pressure businessman (businessman for possessing more than one high pressure order), jockey load (number of the order/order upper limit).
Grid pressure value calculation is as follows, in the big grids of 1km × 1km:
(i.e. current time is more than and should send for the first time the 5.1 interior entrance worksheet processing time windows of the statistics grid (grid where businessman) Single time) non-worksheet processing quantity on order divided by 3 be multiplied by 0.1, rounding then up obtains value V1.
5.2 count order that (grid where businessman) first 10 minutes generates in the grid, and current time Into the average worksheet processing duration L (unit is the second) of worksheet processing time window, specific logic is to meet (the order worksheet processing of above-mentioned condition order When m- answer the worksheet processing time) summation, divided by meet the sum of above-mentioned condition order.
5.3 calculate V2, if V1<60 seconds, L divided by 15 rounded up, and was then multiplied by 0.1, then add 1;If V1>=60 Second, L divided by 300 rounds up, and is then multiplied by 0.1, then add 1.8.
5.4 make V1 be multiplied by the value of V2, are compared with 1, obtain smaller being recorded as grid pressure value.
(6) behind the selected cities and region being responsible for AM, from three businessman, jockey, order dimensions, different dimensions are illustrated Under pressure state, according to the real-time condition of pressure grid:Order volume is more, and jockey is less, needs to allocate transport power to the region, Corresponding support is provided;High pressure order is more (not sending for a long time), needs to match suitable jockey's order, finally helps AM Real-time transport power is more preferably held, to achieve the purpose that alleviate areal pressure.
The above-mentioned description to embodiment can be understood and applied the invention for ease of those skilled in the art. Person skilled in the art obviously easily can make various modifications to above-described embodiment, and described herein general Principle is applied in other embodiment without having to go through creative labor.Therefore, the present invention is not limited to the above embodiments, ability Field technique personnel announcement according to the present invention, the improvement made for the present invention and modification all should be in protection scope of the present invention Within.

Claims (7)

1. a kind of real-time pressure monitoring system for taking out order, it is characterised in that:Including mobile client, order center, data Center and business platform;Wherein:The mobile client is used to generate the order of user and sends it to order center;Institute Order center is stated for receiving order and being written into Mysql;The data center is used for by monitoring the daily record in Mysql And corresponding Information encapsulation is written at after the message of Kafka forms in ScyllaDB;The business platform passes through reading Order data in ScyllaDB in a period of time carries out gridding division to city, each grid is counted by order data High pressure order, high pressure businessman in block, jockey load and calculate grid pressure value, and then transmit these information to fortune Battalion manager and user's mobile client are shown.
2. real-time pressure monitoring system according to claim 1, it is characterised in that:The order center is taken by Java EE Business device cluster composition, is responsible for order storage.
3. real-time pressure monitoring system according to claim 1, it is characterised in that:The data center include DTS clusters, Storm clusters, Kafka clusters, Spark Streaming clusters and ScyllaDB clusters;Wherein:The DTS clusters pass through DTS technologies monitor the variation of Binlog in Mysql;The Storm clusters are used to monitor the DTS message in DTS clusters, and then handle DTS message is packaged into Kafka message and is written in Kafka clusters;The Spark Streaming clusters are used for from Kafka collection Kafka message is read in group and it is written with covering pattern in ScyllaDB clusters.
4. real-time pressure monitoring system according to claim 3, it is characterised in that:Data are had recorded in the DTS message The value of data line in library name, table name and table, Storm clusters are obtained according to the configuration extraction of database name and table name in order table Row record, then row record be written in the Kafka message of corresponding theme.
5. real-time pressure monitoring system according to claim 1, it is characterised in that:The business platform is with 1km × 1km's Block size carries out gridding division to city, and then the grid pressure value of each grid block is calculated according to following below scheme:
(1) it for any grid block, counts in the grid block and does not send order numbers N into worksheet processing time window, and then be calculated For the function that rounds up;
(2) the average group that generated in first 10 minutes in the grid block and current time has been enter into the order of worksheet processing time window is calculated Single duration L;
(3) V2 is calculated:If V1 < 60 seconds,If V1 >=60 second,
(4) so that the result that V1 × V2 is obtained is made comparisons with 1, take grid pressure value of the smaller value as the grid block.
6. real-time pressure monitoring system according to claim 1, it is characterised in that:The business platform is each grid block Same color and its transparency are assigned, i.e., grid pressure value is divided into four sections:[0,0.25], (0.25,0.5], (0.5,0.75], (0.75,1], transparency has fourth gear and is corresponding in turn to aforementioned four section from shallow to deep, and then according to grid Section where pressure value determines the corresponding transparency of grid block.
7. real-time pressure monitoring system according to claim 1, it is characterised in that:Phase is installed in the mobile client The APP answered, the APP are to use consistent development technique with React based on Javascript using React Native technologies That constructs operates in the application program on two platforms of iOS and Android.
CN201810263810.4A 2018-03-28 2018-03-28 Real-time pressure monitoring system for take-out orders Active CN108596709B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810263810.4A CN108596709B (en) 2018-03-28 2018-03-28 Real-time pressure monitoring system for take-out orders

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810263810.4A CN108596709B (en) 2018-03-28 2018-03-28 Real-time pressure monitoring system for take-out orders

Publications (2)

Publication Number Publication Date
CN108596709A true CN108596709A (en) 2018-09-28
CN108596709B CN108596709B (en) 2021-06-18

Family

ID=63623829

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810263810.4A Active CN108596709B (en) 2018-03-28 2018-03-28 Real-time pressure monitoring system for take-out orders

Country Status (1)

Country Link
CN (1) CN108596709B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110020925A (en) * 2019-04-15 2019-07-16 北京闪送科技有限公司 Order processing method, apparatus, equipment and storage medium
CN112651681A (en) * 2019-10-12 2021-04-13 沈思远 Method and system for realizing management and screening of takeout orders by users based on computer equipment

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140305407A1 (en) * 2013-04-12 2014-10-16 Elwha Llc Systems, methods, and apparatuses related to the use of gas clathrates
CN104851006A (en) * 2015-05-21 2015-08-19 北京京东尚科信息技术有限公司 Dispersing scope determination method and apparatus
CN105719109A (en) * 2015-05-22 2016-06-29 北京小度信息科技有限公司 Order monitoring method and device
CN106327287A (en) * 2016-08-09 2017-01-11 北京创锐文化传媒有限公司 Order processing method and device
CN106447470A (en) * 2016-11-30 2017-02-22 北京小度信息科技有限公司 Delivery order distribution method and delivery order distribution device
CN107093123A (en) * 2017-01-12 2017-08-25 北京小度信息科技有限公司 Data processing method and device
CN107092974A (en) * 2016-11-29 2017-08-25 北京小度信息科技有限公司 Dispense pressure prediction method and device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140305407A1 (en) * 2013-04-12 2014-10-16 Elwha Llc Systems, methods, and apparatuses related to the use of gas clathrates
CN104851006A (en) * 2015-05-21 2015-08-19 北京京东尚科信息技术有限公司 Dispersing scope determination method and apparatus
CN105719109A (en) * 2015-05-22 2016-06-29 北京小度信息科技有限公司 Order monitoring method and device
CN106327287A (en) * 2016-08-09 2017-01-11 北京创锐文化传媒有限公司 Order processing method and device
CN107092974A (en) * 2016-11-29 2017-08-25 北京小度信息科技有限公司 Dispense pressure prediction method and device
CN106447470A (en) * 2016-11-30 2017-02-22 北京小度信息科技有限公司 Delivery order distribution method and delivery order distribution device
CN107093123A (en) * 2017-01-12 2017-08-25 北京小度信息科技有限公司 Data processing method and device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110020925A (en) * 2019-04-15 2019-07-16 北京闪送科技有限公司 Order processing method, apparatus, equipment and storage medium
CN112651681A (en) * 2019-10-12 2021-04-13 沈思远 Method and system for realizing management and screening of takeout orders by users based on computer equipment

Also Published As

Publication number Publication date
CN108596709B (en) 2021-06-18

Similar Documents

Publication Publication Date Title
CN108446293A (en) A method of based on urban multi-source isomeric data structure city portrait
US20200336883A1 (en) Intelligent terminal emergency command system
Wan et al. A cloud-based global flood disaster community cyber-infrastructure: Development and demonstration
CN102521716B (en) Integrative specialized weather service integrated system
CN105786942B (en) A kind of geography information storage system based on cloud platform
CN110168529A (en) Date storage method, device and storage medium
Potts et al. The Last Glacial Maximum distribution of South African subtropical thicket inferred from community distribution modelling
CN102147807A (en) Mass lightning data space-time analysis method based on GIS
CN110647512B (en) Data storage and analysis method, device, equipment and readable medium
WO2019161778A1 (en) Systems and methods for data storage and querying
CN104317800A (en) Hybrid storage system and method for mass intelligent power utilization data
CN107451150B (en) Geographic data presentation method and device
CN105608886A (en) Method and device for scheduling traffic tools
CN109299298A (en) Construction method, device, application method and the system of image fusion model
CN107247799A (en) Data processing method, system and its modeling method of compatible a variety of big data storages
CN104462222A (en) Distributed storage method and system for checkpoint vehicle pass data
CN103310362A (en) Intelligent broadcast and television marketing assisting method and system based on GPS (globe positioning system) positioning
CN108268569A (en) The acquisition of water resource monitoring data and analysis system and method based on big data technology
Ceci et al. Big data techniques for supporting accurate predictions of energy production from renewable sources
Preisler et al. Near-term probabilistic forecast of significant wildfire events for the Western United States
CN108596709A (en) A kind of real-time pressure monitoring system for taking out order
CN112867989A (en) Flow-based composition and monitoring server system and method
CN111538745A (en) Special data POI retrieval system and retrieval method for emergency field
CN107276854B (en) MOLAP statistical analysis method under big data
CN108509495A (en) The processing method and processing device of seismic data, storage medium, processor

Legal Events

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