CN113434523B - Service data updating method, device, equipment and storage medium based on big data - Google Patents

Service data updating method, device, equipment and storage medium based on big data Download PDF

Info

Publication number
CN113434523B
CN113434523B CN202110691897.7A CN202110691897A CN113434523B CN 113434523 B CN113434523 B CN 113434523B CN 202110691897 A CN202110691897 A CN 202110691897A CN 113434523 B CN113434523 B CN 113434523B
Authority
CN
China
Prior art keywords
service
channel
type information
original
target
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.)
Active
Application number
CN202110691897.7A
Other languages
Chinese (zh)
Other versions
CN113434523A (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.)
Kangjian Information Technology Shenzhen Co Ltd
Original Assignee
Kangjian Information Technology Shenzhen 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 Kangjian Information Technology Shenzhen Co Ltd filed Critical Kangjian Information Technology Shenzhen Co Ltd
Priority to CN202110691897.7A priority Critical patent/CN113434523B/en
Publication of CN113434523A publication Critical patent/CN113434523A/en
Application granted granted Critical
Publication of CN113434523B publication Critical patent/CN113434523B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/23Updating
    • G06F16/2365Ensuring data consistency and integrity
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/22Indexing; Data structures therefor; Storage structures
    • G06F16/2228Indexing structures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/546Message passing systems or structures, e.g. queues

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Computer Security & Cryptography (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention relates to the technical field of big data, and discloses a business data updating method, device, equipment and storage medium based on the big data, which are used for improving the synchronous updating efficiency of the business data and improving the maintainability of the business data. The business data updating method based on big data comprises the following steps: receiving a service data updating request, wherein the service data updating request comprises user basic information, channel type information and service type information; acquiring a target channel package corresponding to channel type information according to the channel type information, wherein the target channel package comprises an original business class; based on the adapter mode, switching the service data updating request to a target service class corresponding to the service type information through the original service class; and carrying out service data updating operation based on the user basic information and the target service class to obtain an operation result, and pushing the service message corresponding to the operation result to the terminal. In addition, the invention also relates to a blockchain technology, and an operation result can be stored in a blockchain node.

Description

Service data updating method, device, equipment and storage medium based on big data
Technical Field
The present invention relates to the field of incremental update, and in particular, to a method, apparatus, device, and storage medium for updating service data based on big data.
Background
With the development of the internet, the user quantity on the internet platform is larger and larger, and the service provided by the platform is more and more abundant and diversified, so that a huge amount of business data is brought, and the business data is generally stored in a distributed database, so that the access efficiency is higher than that of the traditional database.
The volume of service data is increased at any time, the updating logic of the service data is more and more complex, for example, when a user updates the data on the service line A, whether the data on the service line B needs to be updated or not needs to be considered, one service line is only focused on the data on the service line, if the data on other service lines are mixed on the same service line, the problems of unclear service logic and difficult maintenance are caused, and the technical problem that a large amount of service data is difficult to update synchronously is seen.
Disclosure of Invention
The invention provides a business data updating method, device and equipment based on big data and a storage medium, which are used for improving the synchronous updating efficiency of business data and improving the maintainability of business data.
The first aspect of the present invention provides a service data updating method based on big data, comprising:
receiving a service data updating request, wherein the service data updating request comprises user basic information, channel type information and service type information;
acquiring a target channel package corresponding to the channel type information according to the channel type information, wherein the target channel package comprises an original service class;
based on an adapter mode, the service data updating request is transferred to a target service class corresponding to the service type information through the original service class;
based on the user basic information and the target service class, carrying out service data updating operation to obtain an operation result;
and acquiring a pushing task corresponding to the operation result, and pushing a service message corresponding to the pushing task to the terminal.
Optionally, in a first implementation manner of the first aspect of the present invention, before the receiving a service data update request, where the service data update request includes user basic information, channel type information, and service type information, the service data update method based on big data further includes:
acquiring a plurality of original engineering files of a multi-channel source, and respectively acquiring channel information corresponding to each original engineering file;
Carrying out channel type classification processing on each original engineering file according to the channel information to obtain channel type information corresponding to each original engineering file, and generating a channel type table corresponding to the channel type information, wherein the channel type information corresponding to each original engineering file comprises a channel type identifier;
and writing channel type information corresponding to each original engineering file into configuration files corresponding to each original engineering file respectively to obtain an original channel package corresponding to each original engineering file.
Optionally, in a second implementation manner of the first aspect of the present invention, the obtaining, according to the channel type information, a target channel package corresponding to the channel type information, where the target channel package includes an original service class includes:
setting a channel type identifier in the channel type information as an index, and searching channel information corresponding to the channel type information from the channel type table according to the index;
and acquiring a target channel package corresponding to the channel type information from each original channel package according to the channel information corresponding to the channel type information, wherein the target channel package comprises an original business class.
Optionally, in a third implementation manner of the first aspect of the present invention, the transferring, based on the adapter mode, the service data update request to the target service class corresponding to the service type information through the original service class includes:
extracting an original service class corresponding to the service data update request from the target channel packet through a preset regular expression, and acquiring a target service class corresponding to the service type information according to the service type information;
based on an adapter mode, constructing an adaptation component corresponding to the target service class, wherein the adaptation component is used for switching the original service class into the target service class;
forwarding, by the adaptation component, the service data update request to the target service class.
Optionally, in a fourth implementation manner of the first aspect of the present invention, the performing a service data update operation based on the user basic information and the target service class to obtain an operation result includes:
judging whether the user basic information meets at least one preset service data updating condition or not;
if the user basic information meets at least one preset service data updating condition, calling a service data updating function in the target service class to perform service data updating operation to obtain an operation result;
And converting the operation result into a service data update message, and pushing the service data update message into a preset message queue so that the terminal can receive the service data update message in real time.
Optionally, in a fifth implementation manner of the first aspect of the present invention, the obtaining a push task corresponding to the operation result and pushing a service message corresponding to the push task to a terminal includes:
according to the target service class, reading a push task corresponding to the operation result, wherein the push task comprises a push type, push timeliness and a push mode, the push type comprises a short message type and an application type, and the push mode comprises a message queue and a push interface;
acquiring a current time and judging whether the current time is in an aging range corresponding to the push aging;
and if the current moment is within the aging range corresponding to the pushing aging, pushing the service message corresponding to the pushing task to the terminal according to the pushing type and the pushing mode.
The second aspect of the present invention provides a service data updating device based on big data, comprising:
the receiving module is used for receiving a service data updating request, wherein the service data updating request comprises user basic information, channel type information and service type information;
The acquisition module is used for acquiring a target channel package corresponding to the channel type information according to the channel type information, wherein the target channel package comprises an original service class;
the switching module is used for switching the service data updating request to a target service class corresponding to the service type information through the original service class based on an adapter mode;
the updating module is used for carrying out service data updating operation based on the user basic information and the target service class to obtain an operation result;
the pushing module is used for acquiring a pushing task corresponding to the operation result and pushing the service message corresponding to the pushing task to the terminal.
Optionally, in a first implementation manner of the second aspect of the present invention, the service data updating device based on big data further includes:
the classification module is used for acquiring a plurality of original engineering files of multi-channel sources and respectively acquiring channel information corresponding to each original engineering file; carrying out channel type classification processing on each original engineering file according to the channel information to obtain channel type information corresponding to each original engineering file, and generating a channel type table corresponding to the channel type information, wherein the channel type information corresponding to each original engineering file comprises a channel type identifier;
The generation module is used for respectively writing channel type information corresponding to each original engineering file into configuration files corresponding to each original engineering file to obtain an original channel package corresponding to each original engineering file.
Optionally, in a second implementation manner of the second aspect of the present invention, the acquiring module is specifically configured to:
setting a channel type identifier in the channel type information as an index, and searching channel information corresponding to the channel type information from the channel type table according to the index;
and acquiring a target channel package corresponding to the channel type information from each original channel package according to the channel information corresponding to the channel type information, wherein the target channel package comprises an original business class.
Optionally, in a third implementation manner of the second aspect of the present invention, the switching module is specifically configured to:
extracting an original service class corresponding to the service data update request from the target channel packet through a preset regular expression, and acquiring a target service class corresponding to the service type information according to the service type information;
based on an adapter mode, constructing an adaptation component corresponding to the target service class, wherein the adaptation component is used for switching the original service class into the target service class;
Forwarding, by the adaptation component, the service data update request to the target service class.
Optionally, in a fourth implementation manner of the second aspect of the present invention, the update module is specifically configured to:
judging whether the user basic information meets at least one preset service data updating condition or not;
if the user basic information meets at least one preset service data updating condition, calling a service data updating function in the target service class to perform service data updating operation to obtain an operation result;
and converting the operation result into a service data update message, and pushing the service data update message into a preset message queue so that the terminal can receive the service data update message in real time.
Optionally, in a fifth implementation manner of the second aspect of the present invention, the pushing module is specifically configured to:
according to the target service class, reading a push task corresponding to the operation result, wherein the push task comprises a push type, push timeliness and a push mode, the push type comprises a short message type and an application type, and the push mode comprises a message queue and a push interface;
acquiring a current time and judging whether the current time is in an aging range corresponding to the push aging;
And if the current moment is within the aging range corresponding to the pushing aging, pushing the service message corresponding to the pushing task to the terminal according to the pushing type and the pushing mode.
A third aspect of the present invention provides a service data updating apparatus based on big data, including: a memory and at least one processor, the memory having instructions stored therein; the at least one processor invokes the instructions in the memory to cause the big data based traffic data updating device to perform the big data based traffic data updating method described above.
A fourth aspect of the present invention provides a computer readable storage medium having instructions stored therein which, when run on a computer, cause the computer to perform the big data based service data updating method described above.
In the technical scheme provided by the invention, a service data updating request is received, wherein the service data updating request comprises user basic information, channel type information and service type information; acquiring a target channel package corresponding to the channel type information according to the channel type information, wherein the target channel package comprises an original service class; based on an adapter mode, the service data updating request is transferred to a target service class corresponding to the service type information through the original service class; based on the user basic information and the target service class, carrying out service data updating operation to obtain an operation result; and acquiring a pushing task corresponding to the operation result, and pushing a service message corresponding to the pushing task to the terminal. In the embodiment of the invention, the server acquires the target channel package according to the channel type information in the service data updating request, and then switches the original service class in the target channel package to the target service class based on the adapter mode, synchronously updates the service data through the target service class, and pushes the operation result of the synchronous update to the terminal. The invention can improve the synchronous updating efficiency of the service data and the maintainability of the service data.
Drawings
FIG. 1 is a schematic diagram of an embodiment of a method for updating service data based on big data in an embodiment of the present invention;
FIG. 2 is a schematic diagram of another embodiment of a method for updating service data based on big data according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of an embodiment of a big data based service data updating apparatus according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of another embodiment of a big data based service data updating apparatus according to an embodiment of the present invention;
fig. 5 is a schematic diagram of an embodiment of a service data update apparatus based on big data in an embodiment of the present invention.
Detailed Description
The embodiment of the invention provides a business data updating method, device, equipment and storage medium based on big data, which are used for improving the synchronous updating efficiency of business data and improving the maintainability of the business data.
The terms "first," "second," "third," "fourth" and the like in the description and in the claims and in the above drawings, if any, are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments described herein may be implemented in other sequences than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed or inherent to such process, method, article, or apparatus.
For easy understanding, the following describes a specific flow of an embodiment of the present invention, referring to fig. 1, and an embodiment of a service data updating method based on big data in the embodiment of the present invention includes:
101. receiving a service data updating request, wherein the service data updating request comprises user basic information, channel type information and service type information;
it can be understood that the execution body of the present invention may be a service data updating device based on big data, and may also be a terminal or a server, which is not limited herein. The embodiment of the invention is described by taking a server as an execution main body as an example.
In this embodiment, the service data update request may be sent by the terminal or may be sent by the server, which is not limited herein, for example, when the user modifies the service data on the server a, the service data on the server B needs to be updated synchronously according to the service data on the server a, and then the server a sends the service data update request to the server B, so that the server B performs the synchronous update of the service data.
In this embodiment, different channel sources correspond to different service data update requests, so that the service data update requests carry user basic information, channel type information and service type information, for example, channel type information corresponding to a service party a calling service data may be a, a service party calling service data may be a functional module in a terminal application, or may be a different terminal application, depending on an application scenario, and no further limitation is made herein, for example, a member rights viewing module, a coupon capturing module, or an application program a and an application program B.
In this embodiment, the service type information refers to a service data update type to be performed by the service data update request, for example, in a member system, when the identity of a user is changed from a general user to a member user, the member rights data corresponding to the member identity may be changed, and then the service type information may be a rights data update type, or when the integral data of the user is changed, the exchange state information of the commodity may be changed, and then the service type information may be a commodity data update type. In addition, the service type information can be obtained through a preset service type information table.
102. Acquiring a target channel package corresponding to channel type information according to the channel type information, wherein the target channel package comprises an original business class;
in this embodiment, the service data update request may be sent by different channel sources, and the server may obtain, according to channel type information carried by the service data update request, a target channel packet corresponding to the channel type information, where the target channel packet (belongs to an original channel packet) refers to a collection of original service classes with service implementation logic, so that a specific service function can be implemented. The server can identify the name of a preset original channel package or configuration file information in the original channel package through channel type information, so that a corresponding target channel package is obtained in the original channel package, wherein the original channel package comprises the target channel package.
103. Based on the adapter mode, switching the service data updating request to a target service class corresponding to the service type information through the original service class;
in this embodiment, the adapter pattern (adapter pattern) refers to transforming the interface of one class into another interface expected by the terminal, so that two classes that would not be able to work together due to the mismatch of the interfaces can work together. The working principle of the adapter mode is that the interface of the adapted class is converted into the interface of the target class, so that the server firstly creates an original service class corresponding to the service data update request, then creates a target service class corresponding to the service type information, the server creates the adapter class, namely the adapter component, according to the original service class and the target service class, and finally the server calls the service logic code of the original service class in the adapter class, thereby realizing the transfer of the interface, wherein the original service class is the service class in the target channel package.
In this embodiment, the target service class is determined by the service type information in the service data update request, that is, by the target service logic function to be implemented by the service data update request, for example, in a member system, when the member level data of the user changes, the corresponding user interest data may also change, and then the member level module forwards the service data update request to the member interest module through the adapter mode, thereby implementing the logic processing of the member interest module, and the service class in the member interest module in this example is the target service class.
104. Based on the basic information of the user and the target service class, carrying out service data updating operation to obtain an operation result;
in this embodiment, after the server switches the service data update request to the corresponding target service class, the server analyzes the service data update request, and performs multi-layer logic judgment to verify whether the user basic information carried by the service data update request meets the update condition of the target service class, if the user basic information meets any one of the service data update conditions of the target service class, the server performs synchronous update of the service data, that is, service data update operation, so as to obtain an operation result. For example, the function of the target service class is to update the exchange permission of the commodity data of the member user, and then the server needs to verify whether the grade information of the user accords with the exchange permission condition of the corresponding commodity before updating the exchange permission, if so, the server gives the exchange permission of the corresponding commodity to the corresponding user, otherwise, the server returns the prompt information that the grade information does not accord with the prompt information to the terminal.
105. And acquiring a pushing task corresponding to the operation result, and pushing a service message corresponding to the pushing task to the terminal.
In this embodiment, when the service data is changed, in order to enable the user to obtain the update message in real time, the server pushes the push data corresponding to the operation result to the terminal, for example, when the member level is changed, the corresponding member right data may also be changed, the server pushes the corresponding member right data to the terminal of the user through the push task, and after receiving the notification of updating the member right data, the user may further view the member right data, thereby improving the member experience of the user and increasing the viscosity of the user to the platform.
In this embodiment, different operation results may correspond to different pushing tasks, for example, when the operation result is that the member level data is changed, the corresponding pushing task may be a pushing task of a member commodity; when the operation result is that the identity of the user is changed, the corresponding push task may be a push task for a member to transact a promotion. The pushing task can be pushed to the terminal in a message queue mode, so that the terminal can receive the data updating message in real time.
In this embodiment, different push tasks correspond to different service messages, for example, a service message corresponding to a push task for a member to transact a promotional program may be a page for the member to transact a promotional program, a push task for a member commodity may be a purchasing link of the commodity, and a specific service message may be configured in push task configuration information corresponding to the push task. Further, the server stores the operation results in a blockchain database, which is not limited herein.
In the embodiment of the invention, the server acquires the target channel package according to the channel type information in the service data updating request, and then switches the original service class in the target channel package to the target service class based on the adapter mode, synchronously updates the service data through the target service class, and pushes the operation result of the synchronous update to the terminal. The invention can improve the synchronous updating efficiency of the service data and the maintainability of the service data.
Referring to fig. 2, another embodiment of a method for updating service data based on big data in an embodiment of the present invention includes:
201. receiving a service data updating request, wherein the service data updating request comprises user basic information, channel type information and service type information;
further, before receiving the service data update request, the service data update request includes the user basic information, the channel type information and the service type information, the service data update method based on big data further includes: the method comprises the steps that a server obtains a plurality of original engineering files of multiple channel sources, and channel information corresponding to each original engineering file is obtained respectively; the server classifies the channel types of the original engineering files according to the channel information corresponding to the original engineering files to obtain channel type information corresponding to the original engineering files, and generates a channel type table corresponding to the channel type information, wherein the channel type information comprises a channel type identifier; and the server respectively writes channel type information corresponding to each original engineering file into configuration files corresponding to each original engineering file to obtain an original channel package corresponding to each original engineering file.
In this embodiment, different channel sources correspond to different original engineering files, and the original engineering files include a plurality of original service classes, and the original service classes can implement specific service logic. In order to identify the source of the channel package, the server classifies the channel sources, including the channel source a and the channel source B, for example, and when the server classifies the channel source a and the channel source B, the server classifies the plurality of original engineering files according to channel information of different channel sources by creating a channel type table, the server assigns the channel source a with a unique channel type identifier source 1, and the server assigns the channel source B with a unique channel type identifier source 2, so as to identify the source of the channel package. It should be noted that the sources of multiple channels may be different applications, or may be different functional modules in the same application, which is not limited herein.
In this embodiment, after the server writes the channel type information into the configuration file corresponding to the corresponding original engineering file, the server compiles the original engineering files corresponding to different channel sources, so as to generate an original channel package corresponding to each original engineering file for subsequent service data processing.
202. Acquiring a target channel package corresponding to channel type information according to the channel type information, wherein the target channel package comprises an original business class;
specifically, the server sets a channel type identifier in the channel type information as an index, and searches channel information corresponding to the channel type information from the channel type table according to the index; the server acquires a target channel package corresponding to the channel type information from each original channel package according to the channel information corresponding to the channel type information, wherein the target channel package comprises the original business class.
In this embodiment, the server analyzes the request parameters in the service data update request by analyzing the service data update request, extracts channel type information, service type information and user basic information in the request parameters, searches a corresponding original channel package in a preset channel type table by using the channel type information as an index, and determines a target channel package corresponding to the channel type information in the preset original channel package.
203. Extracting an original service class corresponding to a service data update request from a target channel packet through a preset regular expression, and acquiring a target service class corresponding to service type information according to the service type information;
In this embodiment, in order to extract an original service class from a target channel packet, a server first traverses all service classes in the target channel packet by presetting a regular expression, and extracts all service classes in the target channel packet, and then extracts an original service class corresponding to a service data update request, that is, a logic processing portion to be performed by the service data update request, in all service classes, through presetting keywords in the regular expression, for example, a service data update request is to modify member point data, and then the corresponding original service class is a service class having a member point processing function. The extraction of the original service class may be implemented by dividing functions of all service classes in advance, or by identifying class names of the service classes, which are not particularly limited herein.
In this embodiment, the service type information refers to a service processing type to be performed by the service data update request, for example, member score processing, member class processing, member commodity processing, etc., where these service type information are stored in advance in the corresponding data tables, and the server can obtain the target service class corresponding to the service type information by querying the preset service type data table, so as to implement service switching.
204. Based on the adapter mode, constructing an adapting component corresponding to the target service class, wherein the adapting component is used for converting the original service class into the target service class;
in this embodiment, the server constructs an adaptation component based on the original service class and the target service class based on the adapter mode, thereby implementing service switching. Specifically, the server firstly creates an original service class corresponding to the service data update request, then creates a target service class corresponding to the service type information, creates an adapter class, namely an adapter component, according to the original service class and the target service class, and finally invokes a service logic code of the target service class in the adapter class by the server, thereby realizing the transfer of the interface.
205. Forwarding the service data update request to the target service class through the adaptation component;
in this embodiment, the server switches the service data update request to the processing logic of the target service class through the adapting component, so as to perform logic processing of the target service, for example, the member grade service class switches the service data update request to the member commodity service class, and the member commodity service class performs exchange permission update on commodity data of the member user according to the member grade information carried in the service data update request, thereby implementing synchronous update of the member data.
206. Based on the basic information of the user and the target service class, carrying out service data updating operation to obtain an operation result;
specifically, the server judges whether the user basic information meets at least one preset service data updating condition; if the user basic information meets at least one preset service data updating condition, the server calls a service data updating function in a target service class to perform service data updating operation to obtain an operation result; the server converts the operation result into service data updating information and pushes the service data updating information into a preset information queue so that the terminal can receive the service data updating information in real time.
In this embodiment, the server determines whether the user basic information meets at least one preset service data update condition, and if so, the server performs corresponding service data update on the service data based on the target service class, where the service data update condition and the service data update operation are dynamically corresponding relationships, and different service data update conditions may correspond to different service data update operations. For example, if the service data update condition is: if the level information in the user basic information meets the preset level condition, the service data updating operation may be: updating commodity exchange rights corresponding to the grade information; if the service data updating condition is: if the integral information in the user basic information meets the preset integral condition, the service data updating operation may be: updating commodity exchange quantity corresponding to the point information; if the service data updating condition is: if the user identity in the user basic information meets the preset identity condition, the service data updating operation may be: updating commodity exchange rights corresponding to the user identity; if the service data updating condition is: the current time information satisfies the preset period condition, and the purchase information in the user basic information satisfies the preset purchase condition, then the service data updating operation may be: the number of purchasable items within the periodic conditions is updated.
In this embodiment, different operation results correspond to different service data update messages, for example, when the operation result is that the user level information changes, the service data update message may be current user level information, and the server pushes the current user level information to the terminal through the message queue, so that the terminal user receives the user level update message in real time.
207. And acquiring a pushing task corresponding to the operation result, and pushing a service message corresponding to the pushing task to the terminal.
Specifically, the server reads a push task corresponding to an operation result according to a target service class, wherein the push task comprises a push type, push aging and a push mode, the push type comprises a short message type and an application type, and the push mode comprises a message queue and a push interface; the server acquires the current time and judges whether the current time is in an aging range corresponding to push aging; if the current moment is within the aging range corresponding to the pushing aging, the server pushes the service message corresponding to the pushing task to the terminal according to the pushing type and the pushing mode.
In this embodiment, the pushing task includes a pushing type, a pushing aging and a pushing manner, for example, the pushing task is a message for a pushing member to transact a promotion, and then, the server determines, through preset pushing task configuration information, the pushing type, the pushing aging and the pushing manner of the pushing task, and assumes that a pushing task of one of the pushing task configuration information is: and within 24 hours (push time), the server pushes the short message (push type) of the member handling the sales promotion to the terminal by means of a push interface (push mode).
In the embodiment of the invention, in order to synchronously update the service data, the server adopts an adapter mode to construct an adapter component of the target service class, and the original service class is transferred through the adapter component, so that the target service class executes the data synchronous update operation. The invention can improve the synchronization efficiency of the service data.
The foregoing describes a method for updating service data based on big data in the embodiment of the present invention, and the following describes a device for updating service data based on big data in the embodiment of the present invention, referring to fig. 3, one embodiment of the device for updating service data based on big data in the embodiment of the present invention includes:
a receiving module 301, configured to receive a service data update request, where the service data update request includes user basic information, channel type information, and service type information;
the obtaining module 302 is configured to obtain a target channel package corresponding to the channel type information according to the channel type information, where the target channel package includes an original service class;
a switching module 303, configured to switch, based on an adapter mode, the service data update request to a target service class corresponding to the service type information through the original service class;
An updating module 304, configured to perform a service data updating operation based on the user basic information and the target service class, to obtain an operation result;
and the pushing module 305 is configured to obtain a pushing task corresponding to the operation result, and push a service message corresponding to the pushing task to the terminal.
In the embodiment of the invention, the server acquires the target channel package according to the channel type information in the service data updating request, and then switches the original service class in the target channel package to the target service class based on the adapter mode, synchronously updates the service data through the target service class, and pushes the operation result of the synchronous update to the terminal. The invention can improve the synchronous updating efficiency of the service data and the maintainability of the service data.
Referring to fig. 4, another embodiment of the service data updating apparatus based on big data in the embodiment of the present invention includes:
a receiving module 301, configured to receive a service data update request, where the service data update request includes user basic information, channel type information, and service type information;
the obtaining module 302 is configured to obtain a target channel package corresponding to the channel type information according to the channel type information, where the target channel package includes an original service class;
A switching module 303, configured to switch, based on an adapter mode, the service data update request to a target service class corresponding to the service type information through the original service class;
an updating module 304, configured to perform a service data updating operation based on the user basic information and the target service class, to obtain an operation result;
and the pushing module 305 is configured to obtain a pushing task corresponding to the operation result, and push a service message corresponding to the pushing task to the terminal.
Optionally, the service data updating device based on big data further includes:
the classification module 306 is configured to obtain a plurality of original engineering files from multiple sources, and obtain channel information corresponding to each original engineering file respectively; carrying out channel type classification processing on each original engineering file according to the channel information to obtain channel type information corresponding to each original engineering file, and generating a channel type table corresponding to the channel type information, wherein the channel type information corresponding to each original engineering file comprises a channel type identifier;
and the generating module 307 is configured to write channel type information corresponding to each original engineering file into a configuration file corresponding to each original engineering file, so as to obtain an original channel package corresponding to each original engineering file.
Optionally, the acquiring module 302 is specifically configured to:
setting a channel type identifier in the channel type information as an index, and searching channel information corresponding to the channel type information from the channel type table according to the index;
and acquiring a target channel package corresponding to the channel type information from each original channel package according to the channel information corresponding to the channel type information, wherein the target channel package comprises an original business class.
Optionally, the adapting module 303 is specifically configured to:
extracting an original service class corresponding to the service data update request from the target channel packet through a preset regular expression, and acquiring a target service class corresponding to the service type information according to the service type information;
based on an adapter mode, constructing an adaptation component corresponding to the target service class, wherein the adaptation component is used for switching the original service class into the target service class;
forwarding, by the adaptation component, the service data update request to the target service class.
Optionally, the updating module 304 is specifically configured to:
judging whether the user basic information meets at least one preset service data updating condition or not;
If the user basic information meets at least one preset service data updating condition, calling a service data updating function in the target service class to perform service data updating operation to obtain an operation result;
and converting the operation result into a service data update message, and pushing the service data update message into a preset message queue so that the terminal can receive the service data update message in real time.
Optionally, the pushing module 305 is specifically configured to:
according to the target service class, reading a push task corresponding to the operation result, wherein the push task comprises a push type, push timeliness and a push mode, the push type comprises a short message type and an application type, and the push mode comprises a message queue and a push interface;
acquiring a current time and judging whether the current time is in an aging range corresponding to the push aging;
and if the current moment is within the aging range corresponding to the pushing aging, pushing the service message corresponding to the pushing task to the terminal according to the pushing type and the pushing mode.
In the embodiment of the invention, in order to synchronously update the service data, the server adopts an adapter mode to construct an adapter component of the target service class, and the original service class is transferred through the adapter component, so that the target service class executes the data synchronous update operation. The invention can improve the synchronization efficiency of the service data.
The big data based service data updating apparatus in the embodiment of the present invention is described in detail above in fig. 3 and fig. 4 from the point of view of the modularized functional entity, and the big data based service data updating device in the embodiment of the present invention is described in detail below from the point of view of hardware processing.
Fig. 5 is a schematic structural diagram of a big data based service data updating apparatus according to an embodiment of the present invention, where the big data based service data updating apparatus 500 may have a relatively large difference due to different configurations or performances, and may include one or more processors (central processing units, CPU) 510 (e.g., one or more processors) and a memory 520, and one or more storage media 530 (e.g., one or more mass storage devices) storing application programs 533 or data 532. Wherein memory 520 and storage medium 530 may be transitory or persistent storage. The program stored in the storage medium 530 may include one or more modules (not shown), each of which may include a series of instruction operations for the big data based service data updating apparatus 500. Still further, the processor 510 may be arranged to communicate with the storage medium 530 to perform a series of instruction operations in the storage medium 530 on the big data based traffic data updating apparatus 500.
The big data based business data updating device 500 may also include one or more power supplies 540, one or more wired or wireless network interfaces 550, one or more input output interfaces 560, and/or one or more operating systems 531, such as Windows Serve, mac OS X, unix, linux, freeBSD, etc. It will be appreciated by those skilled in the art that the big data based business data updating apparatus structure shown in fig. 5 does not constitute a limitation of the big data based business data updating apparatus, and may include more or less components than illustrated, or may combine certain components, or may be a different arrangement of components.
The invention also provides a service data updating device based on big data, the computer device comprises a memory and a processor, wherein the memory stores computer readable instructions, and the computer readable instructions, when executed by the processor, cause the processor to execute the steps of the service data updating method based on big data in the above embodiments.
The present invention also provides a computer readable storage medium, which may be a non-volatile computer readable storage medium, and may also be a volatile computer readable storage medium, in which instructions are stored which, when executed on a computer, cause the computer to perform the steps of the big data based service data updating method.
Further, the computer-readable storage medium may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function, and the like; the storage data area may store data created from the use of blockchain nodes, and the like.
The blockchain is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, consensus mechanism, encryption algorithm and the like. The Blockchain (Blockchain), which is essentially a decentralised database, is a string of data blocks that are generated by cryptographic means in association, each data block containing a batch of information of network transactions for verifying the validity of the information (anti-counterfeiting) and generating the next block. The blockchain may include a blockchain underlying platform, a platform product services layer, an application services layer, and the like.
It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described systems, apparatuses and units may refer to corresponding procedures in the foregoing method embodiments, which are not repeated herein.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied essentially or in part or all of the technical solution or in part in the form of a software product stored in a storage medium, including instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a read-only memory (ROM), a random access memory (random access memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The above embodiments are only for illustrating the technical solution of the present invention, and not for limiting the same; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims (10)

1. The business data updating method based on big data is characterized by comprising the following steps:
acquiring a plurality of original engineering files of a multi-channel source, and respectively acquiring channel information corresponding to each original engineering file;
carrying out channel type classification processing on each original engineering file according to the channel information to obtain channel type information corresponding to each original engineering file, and generating a channel type table corresponding to the channel type information, wherein the channel type information corresponding to each original engineering file comprises a channel type identifier;
writing channel type information corresponding to each original engineering file into configuration files corresponding to each original engineering file respectively to obtain an original channel package corresponding to each original engineering file;
Receiving a service data updating request, wherein the service data updating request comprises user basic information, channel type information and service type information;
acquiring a target channel package corresponding to the channel type information according to the channel type information, wherein the target channel package comprises an original service class;
based on an adapter mode, the service data updating request is transferred to a target service class corresponding to the service type information through the original service class;
based on the user basic information and the target service class, carrying out service data updating operation to obtain an operation result;
and acquiring a pushing task corresponding to the operation result, and pushing a service message corresponding to the pushing task to the terminal.
2. The method for updating business data based on big data according to claim 1, wherein the obtaining a target channel package corresponding to the channel type information according to the channel type information, the target channel package including an original business class comprises:
setting a channel type identifier in the channel type information as an index, and searching channel information corresponding to the channel type information from the channel type table according to the index;
And acquiring a target channel package corresponding to the channel type information from each original channel package according to the channel information corresponding to the channel type information, wherein the target channel package comprises an original business class.
3. The big data based service data updating method according to claim 1, wherein the transferring the service data updating request to the target service class corresponding to the service type information through the original service class based on the adapter mode includes:
extracting an original service class corresponding to the service data update request from the target channel packet through a preset regular expression, and acquiring a target service class corresponding to the service type information according to the service type information;
based on an adapter mode, constructing an adaptation component corresponding to the target service class, wherein the adaptation component is used for switching the original service class into the target service class;
forwarding, by the adaptation component, the service data update request to the target service class.
4. The method for updating service data based on big data according to claim 1, wherein the step of performing a service data updating operation based on the user basic information and the target service class to obtain an operation result includes:
Judging whether the user basic information meets at least one preset service data updating condition or not;
if the user basic information meets at least one preset service data updating condition, calling a service data updating function in the target service class to perform service data updating operation to obtain an operation result;
and converting the operation result into a service data update message, and pushing the service data update message into a preset message queue so that the terminal can receive the service data update message in real time.
5. The big data based service data updating method according to any one of claims 1 to 4, wherein the obtaining a push task corresponding to the operation result and pushing a service message corresponding to the push task to a terminal includes:
according to the target service class, reading a push task corresponding to the operation result, wherein the push task comprises a push type, push timeliness and a push mode, the push type comprises a short message type and an application type, and the push mode comprises a message queue and a push interface;
acquiring a current time and judging whether the current time is in an aging range corresponding to the push aging;
And if the current moment is within the aging range corresponding to the pushing aging, pushing the service message corresponding to the pushing task to the terminal according to the pushing type and the pushing mode.
6. A big data based service data updating apparatus, characterized in that the big data based service data updating apparatus comprises:
the classification module is used for acquiring a plurality of original engineering files of multi-channel sources and respectively acquiring channel information corresponding to each original engineering file; carrying out channel type classification processing on each original engineering file according to the channel information to obtain channel type information corresponding to each original engineering file, and generating a channel type table corresponding to the channel type information, wherein the channel type information corresponding to each original engineering file comprises a channel type identifier;
the generation module is used for respectively writing channel type information corresponding to each original engineering file into configuration files corresponding to each original engineering file to obtain an original channel package corresponding to each original engineering file;
the receiving module is used for receiving a service data updating request, wherein the service data updating request comprises user basic information, channel type information and service type information;
The acquisition module is used for acquiring a target channel package corresponding to the channel type information according to the channel type information, wherein the target channel package comprises an original service class;
the switching module is used for switching the service data updating request to a target service class corresponding to the service type information through the original service class based on an adapter mode;
the updating module is used for carrying out service data updating operation based on the user basic information and the target service class to obtain an operation result;
the pushing module is used for acquiring a pushing task corresponding to the operation result and pushing the service message corresponding to the pushing task to the terminal.
7. The big data based service data updating apparatus according to claim 6, wherein the switching module is specifically configured to:
extracting an original service class corresponding to the service data update request from the target channel packet through a preset regular expression, and acquiring a target service class corresponding to the service type information according to the service type information;
based on an adapter mode, constructing an adaptation component corresponding to the target service class, wherein the adaptation component is used for switching the original service class into the target service class;
Forwarding, by the adaptation component, the service data update request to the target service class.
8. The big data based service data updating apparatus according to claim 6, wherein the obtaining module is specifically configured to:
setting a channel type identifier in the channel type information as an index, and searching channel information corresponding to the channel type information from the channel type table according to the index;
and acquiring a target channel package corresponding to the channel type information from each original channel package according to the channel information corresponding to the channel type information, wherein the target channel package comprises an original business class.
9. A big data based service data updating apparatus, characterized in that the big data based service data updating apparatus comprises: a memory and at least one processor, the memory having instructions stored therein;
the at least one processor invoking the instructions in the memory to cause the big data based traffic data updating apparatus to perform the big data based traffic data updating method according to any of claims 1-5.
10. A computer readable storage medium having instructions stored thereon, which when executed by a processor, implement the big data based business data updating method of any of claims 1-5.
CN202110691897.7A 2021-06-22 2021-06-22 Service data updating method, device, equipment and storage medium based on big data Active CN113434523B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110691897.7A CN113434523B (en) 2021-06-22 2021-06-22 Service data updating method, device, equipment and storage medium based on big data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110691897.7A CN113434523B (en) 2021-06-22 2021-06-22 Service data updating method, device, equipment and storage medium based on big data

Publications (2)

Publication Number Publication Date
CN113434523A CN113434523A (en) 2021-09-24
CN113434523B true CN113434523B (en) 2023-10-20

Family

ID=77756922

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110691897.7A Active CN113434523B (en) 2021-06-22 2021-06-22 Service data updating method, device, equipment and storage medium based on big data

Country Status (1)

Country Link
CN (1) CN113434523B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103714479A (en) * 2012-10-09 2014-04-09 四川欧润特软件科技有限公司 Intelligent centralized monitor method and system for bank personal business fraudulent conducts
CN111240763A (en) * 2020-01-13 2020-06-05 广州虎牙科技有限公司 Configuration updating method, device, equipment and storage medium
CN111680199A (en) * 2020-05-21 2020-09-18 宁波金匮信息技术有限公司 File management system and operation process
CN112102068A (en) * 2020-09-16 2020-12-18 中国建设银行股份有限公司 ETC business handling method and system
CN112463968A (en) * 2020-12-11 2021-03-09 中国工商银行股份有限公司 Text classification method and device and electronic equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103714479A (en) * 2012-10-09 2014-04-09 四川欧润特软件科技有限公司 Intelligent centralized monitor method and system for bank personal business fraudulent conducts
CN111240763A (en) * 2020-01-13 2020-06-05 广州虎牙科技有限公司 Configuration updating method, device, equipment and storage medium
CN111680199A (en) * 2020-05-21 2020-09-18 宁波金匮信息技术有限公司 File management system and operation process
CN112102068A (en) * 2020-09-16 2020-12-18 中国建设银行股份有限公司 ETC business handling method and system
CN112463968A (en) * 2020-12-11 2021-03-09 中国工商银行股份有限公司 Text classification method and device and electronic equipment

Also Published As

Publication number Publication date
CN113434523A (en) 2021-09-24

Similar Documents

Publication Publication Date Title
CN107515878B (en) Data index management method and device
CN103927314B (en) A kind of method and apparatus of batch data processing
US8825750B2 (en) Application server management system, application server management method, management apparatus, application server and computer program
CN106959965A (en) A kind of information processing method and server
CN109213758B (en) Data access method, device, equipment and computer readable storage medium
CN107220376B (en) Data query method and device
CN103106585A (en) Real-time duplication eliminating method and device of product information
CN109923847A (en) Call discovery method, apparatus, equipment and the storage medium of link
CN111858760B (en) Data processing method and device for heterogeneous database
CN107464151A (en) The order data processing method and processing device of high concurrent business
US20190012362A1 (en) Method and apparatus for processing information
CN110688828A (en) File processing method and device, file processing system and computer equipment
CN109146523A (en) A kind of commodity counterfeit prevention verification system and method based on block chain
CN101888404A (en) Data updating method and device for mobile equipment
CN110825919B (en) ID data processing method and device
CN113434523B (en) Service data updating method, device, equipment and storage medium based on big data
CN109410063A (en) Transaction processing method, device and storage medium based on block chain
CN115576998B (en) Power distribution network data integration method and system based on multi-dimensional information fusion
CN113761565A (en) Data desensitization method and apparatus
CN105574037A (en) Information processing method and device
CN112347383A (en) Sharing link generation method and device and electronic equipment
CN107679096B (en) Method and device for sharing indexes among data marts
CN105046561A (en) Method capable of adapting to various bank transaction message formats
CN107786661B (en) Information synchronization method
CN114997108A (en) Order number generation method, device, equipment and storage medium

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