CN108737513A - A kind of universal electric power transaction system data service method - Google Patents
A kind of universal electric power transaction system data service method Download PDFInfo
- Publication number
- CN108737513A CN108737513A CN201810413925.7A CN201810413925A CN108737513A CN 108737513 A CN108737513 A CN 108737513A CN 201810413925 A CN201810413925 A CN 201810413925A CN 108737513 A CN108737513 A CN 108737513A
- Authority
- CN
- China
- Prior art keywords
- service
- noun
- data
- service instance
- manager
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/60—Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
- H04L67/63—Routing a service request depending on the request content or context
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1001—Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
- H04L67/1004—Server selection for load balancing
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The invention discloses a kind of universal electric power transaction system data service methods, include the following steps:1) data service client unifies connector transmission service request to data service, is contained in service request and services corresponding noun and relevant required parameter;2) unified connector extracts the noun in service request, and the specific service example information for obtaining and handling the service request is interacted with noun manager;3) complete service request is sent to corresponding Service Instance by unified connector;4) Service Instance returns to request results data set to unified connector, and final result is back to data service client by unified connector.Realize that data storage is decoupled with electricity transaction business module, data service is unrelated with operating system or platform, wherein data service range and performance dynamic extending, to improve enabling capabilities and extended capability to electricity transaction business.
Description
Technical field
The present invention relates to a kind of universal electric power transaction system data service methods.
Background technology
With country《Several opinions about further in-depth power system reform》The hair of (middle hair (2015) 9) text
Cloth, new round power system reform are carried out in high gear in the whole nation.Due on electricity market transaction agent quantity be continuously increased,
Transaction size is growing, and type of transaction is gradually enriched, and is gradually developed to from medium and long-term transaction, monthly transaction and day-ahead power market
In a few days transaction and real-time deal, the continuous development of power market transaction business to the service supporting capacity of electric power transaction platform, expand
Exhibition ability etc. proposes requirements at the higher level.
Existing electricity transaction system is generally realized using the monomer framework of centralization, including electricity market management, transaction
Declare, the publication of trading clearing, transaction results, electricity settlement, each module including market analysis are coupled, data flow is not
Clearly, association relies on complicated, and system function change is pulled one hair and move the whole body, and system is when cope with large-scale concurrent, performance with
Stability is insufficient.
Invention content
In view of the above-mentioned problems, the present invention provides a kind of universal electric power transaction system data service method, data storage is realized
It is decoupled with electricity transaction business module, data service is unrelated with operating system or platform, wherein data service range and performance can
Dynamic expansion, to improve enabling capabilities and extended capability to electricity transaction business.
To realize above-mentioned technical purpose and the technique effect, the invention is realized by the following technical scheme:
A kind of universal electric power transaction system data service method, includes the following steps:
1) data service client unifies connector transmission service request to data service, and clothes are contained in service request
It is engaged in corresponding noun and relevant required parameter;
2) unified connector extracts the noun in service request, and interacts acquisition with noun manager and handle the service request
Specific service example information;
3) complete service request is sent to corresponding Service Instance by unified connector;
4) Service Instance returns to request results data set to unified connector, and final result is back to by unified connector
Data service client.
It is preferred that the noun manager is stored with the mapping table between each noun and Service Instance, each noun corresponds to a kind of
Service type obtains the corresponding Service Instance of noun by inquiring mapping table.
It is preferred that the mapping table is Dynamic Maintenance, when initialization, mapping table is sky.
It is preferred that the maintenance process of noun manager is as follows:
1) when disposing the Service Instance of a new service type, noun that oneself handle by Service Instance, deployment save
It calls the roll and port reports and gives noun manager, noun manager increases a record newly in mapping table;
2) when increasing the Service Instance of an existing service type, noun that oneself handle by Service Instance, deployment save
It calls the roll and port reports and gives noun manager, noun manager increases by one in the Service Instance list that mapping table corresponds to noun
Service Instance information;
3) when Service Instance exits, the noun of oneself processing, deployment node name and port are reported and give noun manager,
Noun manager deletes the Service Instance information in the Service Instance list of corresponding noun, if the Service Instance is the correspondence
The last one Service Instance of noun then deletes this mapping table record.
It is preferred that the flow that unified connector obtains Service Instance information according to request noun is as follows:
1) unified connector extracts the noun in data service client system request, and is sent to noun manager;
2) noun manager inquires mapping table according to request noun:
If inquiry, less than the noun, returned data service error message gives unified connector;
If only there are one Service Instances in the Service Instance list inquired, the Service Instance information is returned to unified
Connector;
If there are multiple Service Instances in the Service Instance list inquired, a service is chosen using load-balancing algorithm
Example simultaneously returns to unified connector.
The beneficial effects of the invention are as follows:
The present invention can realize that data storage is decoupled with electricity transaction business module, data service and operating system or platform
It is unrelated, wherein data service range and performance dynamic extending, to improve enabling capabilities and the extension to electricity transaction business
Ability.
Description of the drawings
Fig. 1 is the block schematic illustration that a kind of universal electric power transaction system data service of the present invention is realized;
Fig. 2 is a kind of flow chart of universal electric power transaction system data service method of the present invention.
Specific implementation mode
Technical solution of the present invention is described in further detail with specific embodiment below in conjunction with the accompanying drawings, so that ability
The technical staff in domain can be better understood from the present invention and can be practiced, but illustrated embodiment is not as the limit to the present invention
It is fixed.
As illustrated in fig. 1 and 2, a kind of universal electric power transaction system data service method, includes the following steps:
1) data service client unifies connector transmission service request to data service, and clothes are contained in service request
It is engaged in corresponding noun and relevant required parameter.The electricity transaction system data services client includes but is not limited to city
Management, transaction declare, the publication of trading clearing, transaction results, electricity settlement, market analysis etc..
2) unified connector extracts the noun in service request, and interacts acquisition with noun manager and handle the service request
Specific service example information.The noun manager is stored with the mapping table between each noun and Service Instance, each noun pair
A kind of service type is answered, by inquiring mapping table, obtains the corresponding Service Instance of noun.
The service type of the electricity transaction system data services request includes but is not limited to that main market players's master data is returned
Shelves service, main market players's master data reading service, declaration data archiving services, declaration data reading service, transaction results data
Archiving services, the service of transaction results digital independent, continuous data reading service, checkout result archiving services, checkout result are read
Service, analysis statistical result archiving services, analysis statistical result reading service, data mart modeling calculate and statistical fractals, data mirror
As service etc..
3) complete service request is sent to corresponding Service Instance by unified connector;
4) Service Instance returns to request results data set to unified connector, and final result is back to by unified connector
Data service client.
What noun manager preserved is the mapping table between noun and one group of data service instance, which is Dynamic Maintenance
, the initialization of noun manager and maintenance process are as follows:
1) it is responsible for initializing noun manager when unified connector deployment, the noun that when initialization safeguards is reflected with Service Instance
Firing table is sky;
2) when disposing the Service Instance of a new service type, noun that oneself handle by Service Instance, deployment save
It calls the roll and port reports and gives noun manager, noun manager increases a record newly in mapping table;
3) when increasing the Service Instance of an existing service type, noun that oneself handle by Service Instance, deployment save
It calls the roll and port reports and gives noun manager, noun manager increases by one in the Service Instance list that mapping table corresponds to noun
Service Instance information;
4) when Service Instance exits, the noun of oneself processing, deployment node name and port are reported and give noun manager,
Noun manager deletes the Service Instance information in the Service Instance list of corresponding noun, if the Service Instance is the correspondence
The last one Service Instance of noun then deletes this mapping table record.
The flow that unified connector obtains Service Instance information according to request noun is as follows:
1) unified connector extracts the noun in data service client system request, and is sent to noun manager;
2) noun manager inquires mapping table according to request noun:
If inquiry, less than the noun, returned data service error message gives unified connector;
If only there are one Service Instances in the Service Instance list inquired, the Service Instance information is returned to unified
Connector;
If there are multiple Service Instances in the Service Instance list inquired, a service is chosen using load-balancing algorithm
Example simultaneously returns to unified connector.Wherein, load-balancing algorithm includes but is not limited to polling method (Round Robin), adds
Weigh polling method (Weighted Round Robin), Smallest connection number method (Least Connections), randomized
(Random), source address Hash method (Source Hashing) etc..
By taking Fig. 1 as an example, universal electric power transaction system data service is by unified connector, noun manager and including service
Multiple Service Instances composition including example A, Service Instance B, Service Instance C.Wherein, each Service Instance is that by
A certain electricity transaction digital independent or the isolated operation of filing and the service processes of deployment, the service type packet of Service Instance
Include but be not limited to main market players's master data archiving services, main market players's master data reading service, declaration data archiving services, Shen
Count off is according to reading service, transaction results data filing service, the service of transaction results digital independent, continuous data reading service, knot
Calculate result archiving services, checkout result reading service, analysis statistical result archiving services, analysis statistical result reading service, number
According to processing calculating and statistical fractals, data image service etc..
Unified connector, noun manager and Service Instance can be deployed on same server, can also be disposed
On different server.If be deployed on same server, the service listening port of each component cannot be the same;If
It is deployed on different server, that can use listening port in the same manner.
Noun manager is responsible for providing the enrolled for service of noun and Service Instance, and each Service Instance of each server opens
After dynamic, it can all be registered in noun manager, all available services will be stored in the mapping table of such noun manager
The information of example.
Wherein, hypertext transfer (HTTP, Hypertext transfer may be used in the service request of client
Protocol) agreement or safe hypertext shift (HTTPS, Hypertext transfer protocol over Secure
Socket Layer) agreement or socket (Socket) agreement send.The data format of service request can be JSON or
XML, it is general to recommend to use JSON data formats, because JSON data formats have better extended capability and smaller byte big
It is small.
Before the unified connector using generic data service, client obtains a variety of different electric power if necessary
Transaction data needs to initiate to ask to the Service Instance of different types of data.By using the unified connection of generic data service
Device, all clients may be by generic data service and ask various types of data service, meet complicated industry
The flexible expansion of business.Other functions can also be realized on unified connector, such as mandate, monitoring, caching, request fragment and pipe
Reason, steady-error coefficient processing etc..
The present invention can realize that data storage is decoupled with electricity transaction business module, data service and operating system or platform
It is unrelated, wherein data service range and performance dynamic extending, to improve enabling capabilities and the extension to electricity transaction business
Ability.
It these are only the preferred embodiment of the present invention, be not intended to limit the scope of the invention, it is every to utilize this hair
Equivalent structure made by bright specification and accompanying drawing content either equivalent process transformation or be directly or indirectly used in other correlation
Technical field, be included within the scope of the present invention.
Claims (7)
1. a kind of universal electric power transaction system data service method, which is characterized in that include the following steps:
1) data service client unifies connector transmission service request to data service, and service pair is contained in service request
The noun and relevant required parameter answered;
2) unified connector extracts the noun in service request, and the tool for obtaining and handling the service request is interacted with noun manager
Body Service Instance information;
3) complete service request is sent to corresponding Service Instance by unified connector;
4) Service Instance returns to request results data set to unified connector, and final result is back to data by unified connector
Service consumer system.
2. a kind of universal electric power transaction system data service method according to claim 1, which is characterized in that the noun
Manager is stored with the mapping table between each noun and Service Instance, and each noun corresponds to a kind of service type, is mapped by inquiring
Table obtains the corresponding Service Instance of noun.
3. a kind of universal electric power transaction system data service method according to claim 2, which is characterized in that the mapping
Table is Dynamic Maintenance, and when initialization, mapping table is sky.
4. a kind of universal electric power transaction system data service method according to claim 3, which is characterized in that noun management
The maintenance process of device is as follows:
1) when disposing the Service Instance of a new service type, noun that oneself handle by Service Instance disposes node name
It is reported with port and gives noun manager, noun manager increases a record newly in mapping table;
2) when increasing the Service Instance of an existing service type, noun that oneself handle by Service Instance disposes node name
It is reported with port and gives noun manager, noun manager increases a service in the Service Instance list that mapping table corresponds to noun
Example information;
3) when Service Instance exits, the noun of oneself processing, deployment node name and port are reported and gives noun manager, noun
Manager deletes the Service Instance information in the Service Instance list of corresponding noun, if the Service Instance is the correspondence noun
The last one Service Instance then deletes this mapping table record.
5. a kind of universal electric power transaction system data service method according to claim 4, which is characterized in that unified connection
The flow that device obtains Service Instance information according to request noun is as follows:
1) unified connector extracts the noun in data service client system request, and is sent to noun manager;
2) noun manager inquires mapping table according to request noun:
If inquiry, less than the noun, returned data service error message gives unified connector;
If only there are one Service Instances in the Service Instance list inquired, returns to the Service Instance information and connected to unified
Device;
If there are multiple Service Instances in the Service Instance list inquired, a Service Instance is chosen using load-balancing algorithm
And return to unified connector.
6. a kind of universal electric power transaction system data service method according to claim 5, which is characterized in that load balancing
Algorithm includes polling method, weighted polling method, Smallest connection number method, randomized and source address Hash method.
7. a kind of universal electric power transaction system data service method according to claim 2, which is characterized in that service type
It is read including main market players's master data archiving services, main market players's master data reading service, declaration data archiving services, declaration data
Service, transaction results data filing service, the service of transaction results digital independent, continuous data reading service, checkout result is taken to return
Shelves service, checkout result reading service, analysis statistical result archiving services, analysis statistical result reading service, data mart modeling meter
It calculates and statistical fractals, data image service.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810413925.7A CN108737513A (en) | 2018-05-03 | 2018-05-03 | A kind of universal electric power transaction system data service method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810413925.7A CN108737513A (en) | 2018-05-03 | 2018-05-03 | A kind of universal electric power transaction system data service method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108737513A true CN108737513A (en) | 2018-11-02 |
Family
ID=63936956
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810413925.7A Pending CN108737513A (en) | 2018-05-03 | 2018-05-03 | A kind of universal electric power transaction system data service method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108737513A (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101807816A (en) * | 2009-07-22 | 2010-08-18 | 北京科东电力控制系统有限责任公司 | Realization method and system of electric power data public access service interfaces in heterogeneous environment |
US20160217013A1 (en) * | 2013-12-04 | 2016-07-28 | Nec Europe Ltd. | Method and system for generating a virtual device resource accessible by an application |
CN107707434A (en) * | 2017-08-10 | 2018-02-16 | 国网浙江杭州市余杭区供电公司 | Communication means for Utilities Electric Co.'s intelligence community service platform |
CN107707611A (en) * | 2017-08-09 | 2018-02-16 | 南方电网科学研究院有限责任公司 | Electric power data cloud processing method, apparatus and system |
-
2018
- 2018-05-03 CN CN201810413925.7A patent/CN108737513A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101807816A (en) * | 2009-07-22 | 2010-08-18 | 北京科东电力控制系统有限责任公司 | Realization method and system of electric power data public access service interfaces in heterogeneous environment |
US20160217013A1 (en) * | 2013-12-04 | 2016-07-28 | Nec Europe Ltd. | Method and system for generating a virtual device resource accessible by an application |
CN107707611A (en) * | 2017-08-09 | 2018-02-16 | 南方电网科学研究院有限责任公司 | Electric power data cloud processing method, apparatus and system |
CN107707434A (en) * | 2017-08-10 | 2018-02-16 | 国网浙江杭州市余杭区供电公司 | Communication means for Utilities Electric Co.'s intelligence community service platform |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105162859B (en) | Server dynamic capacity-expanding system and method | |
CN110417879A (en) | A kind of message treatment method, device, equipment and storage medium | |
CN108111586A (en) | The web cluster system and method that a kind of high concurrent is supported | |
US20080046364A1 (en) | Apparatus And Method For Facilitating Account Restructuring In An Electronic Bill Payment System | |
CN103546517B (en) | Network information push system and method | |
CN101404029A (en) | DICOM image file storage method | |
CN102624916B (en) | The method of equally loaded in cloud computing system, node manager and system | |
CN103297447B (en) | A kind of resource share method and its equipment | |
CN106506701A (en) | A kind of server load balancing method and load equalizer | |
CN107566477A (en) | A kind of method and apparatus that file is obtained in distributed file system cluster | |
CN108108247A (en) | Distributed picture storage service system and method | |
CN109981757A (en) | A kind of API gateway load-balancing algorithm towards small-scale micro services framework | |
CN101771703A (en) | Information service system and method | |
CN103248636B (en) | The system and method downloaded offline | |
US20040255006A1 (en) | System and method of handling a web service call | |
CN108416601A (en) | A kind of after services of product system and method applied in difference quotient city | |
US20140181174A1 (en) | Distributed processing of stream data on an event protocol | |
CN105897865A (en) | Protocol-independent network file service management system and method | |
CN106940712A (en) | Sequence generating method and equipment | |
CN104731660B (en) | data distributing method, device and system | |
CN108076110B (en) | Electronic data exchange system and apparatus comprising an electronic data exchange system | |
CN108737513A (en) | A kind of universal electric power transaction system data service method | |
CN106060100A (en) | Distributed cloud storage server | |
CN107920104A (en) | A kind of method and system of cluster server caching load balancing | |
CN112804357B (en) | Method and device for reading data in cross-link mode based on relay equipment network |
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 |
Application publication date: 20181102 |
|
RJ01 | Rejection of invention patent application after publication |