CN113434523A - 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
CN113434523A
CN113434523A CN202110691897.7A CN202110691897A CN113434523A CN 113434523 A CN113434523 A CN 113434523A CN 202110691897 A CN202110691897 A CN 202110691897A CN 113434523 A CN113434523 A CN 113434523A
Authority
CN
China
Prior art keywords
service
data updating
service data
type information
channel
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202110691897.7A
Other languages
Chinese (zh)
Other versions
CN113434523B (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

Images

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, a device, equipment and a 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 service 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 the channel type information according to the channel type information, wherein the target channel package comprises an original service class; based on the adapter mode, the service data updating request is switched to a target service class corresponding to the service type information through the original service class; and performing service data updating operation based on the user basic information and the target service class to obtain an operation result, and pushing a service message corresponding to the operation result to the terminal. In addition, the invention also relates to a block chain technology, and the operation result can be stored in the block chain 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 updating, and in particular, to a service data updating method, apparatus, device, and storage medium based on big data.
Background
With the development of the internet, the number of users on an internet platform is larger and larger, services provided by the platform are richer and more diversified, and a huge amount of business data is brought, and the business data are generally stored in a distributed database and have higher access efficiency than the traditional database.
For example, when a user updates data on a service line a, whether the data on a service line B needs to be updated needs to be considered, and one service line usually focuses only on the data on the service line, if data on other service lines are mixed on the same service line, the service logic is confused and is difficult to maintain, and thus, a large amount of service data has a technical problem that the synchronous updating is difficult.
Disclosure of Invention
The invention provides a service data updating method, a device, equipment and a storage medium based on big data, which are used for improving the synchronous updating efficiency of service data and improving the maintainability of the service data.
The first aspect of the present invention provides a service data updating method based on big data, including:
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;
performing service data updating operation based on the user basic information and the target service class to obtain an operation result;
and acquiring a push task corresponding to the operation result, and pushing a service message corresponding to the push task to a 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 method for updating service data based on big data further includes:
acquiring a plurality of original project files of a multi-channel source, and respectively acquiring channel information corresponding to each original project file;
performing channel type classification processing on the original project files according to the channel information to obtain channel type information corresponding to the original project files and generate a channel type table corresponding to the channel type information, wherein the channel type information corresponding to the original project files comprises channel type identifiers;
and respectively writing the channel type information corresponding to each original project file into the configuration file corresponding to each original project file to obtain an original channel package corresponding to each original project 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 service class.
Optionally, in a third implementation manner of the first aspect of the present invention, the forwarding, 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 updating 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;
and forwarding the service data updating request to the target service class through the adaptation component.
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;
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 updating message, and pushing the service data updating message into a preset message queue so that the terminal can receive the service data updating 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:
reading a push task corresponding to the operation result according to the target service class, wherein the push task comprises a push type, a 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 the current moment, and judging whether the current moment is in an aging range corresponding to the pushed aging;
and if the current moment is within the time efficiency range corresponding to the push time efficiency, pushing the service message corresponding to the push task to a terminal according to the push type and the push mode.
The second aspect of the present invention provides a service data updating apparatus based on big data, including:
the system comprises a receiving module, a processing module and a processing module, wherein the receiving module is used for receiving a service data updating request, and 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;
and 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 big data based service data updating apparatus further includes:
the classification module is used for acquiring a plurality of original project files of a multi-channel source and respectively acquiring channel information corresponding to each original project file; performing channel type classification processing on the original project files according to the channel information to obtain channel type information corresponding to the original project files and generate a channel type table corresponding to the channel type information, wherein the channel type information corresponding to the original project files comprises channel type identifiers;
and the generating module is used for respectively writing the channel type information corresponding to each original engineering file into the configuration file corresponding to each original engineering file to obtain the original channel package corresponding to each original engineering file.
Optionally, in a second implementation manner of the second aspect of the present invention, 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 service 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 updating 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;
and forwarding the service data updating request to the target service class through the adaptation component.
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;
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 updating message, and pushing the service data updating message into a preset message queue so that the terminal can receive the service data updating 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:
reading a push task corresponding to the operation result according to the target service class, wherein the push task comprises a push type, a 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 the current moment, and judging whether the current moment is in an aging range corresponding to the pushed aging;
and if the current moment is within the time efficiency range corresponding to the push time efficiency, pushing the service message corresponding to the push task to a terminal according to the push type and the push mode.
A third aspect of the present invention provides a service data updating device based on big data, including: a memory and at least one processor, the memory having instructions stored therein; the at least one processor calls the instructions in the memory to enable the big data based service data updating device to execute the big data based service data updating method.
A fourth aspect of the present invention provides a computer-readable storage medium, which stores instructions that, when executed on a computer, cause the computer to execute the above-mentioned big data based service data updating method.
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; performing service data updating operation based on the user basic information and the target service class to obtain an operation result; and acquiring a push task corresponding to the operation result, and pushing a service message corresponding to the push task to a terminal. In the embodiment of the invention, the server acquires the target channel packet according to the channel type information in the service data updating request, the server switches the original service class in the target channel packet 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 updating to the terminal. The invention can improve the synchronous updating efficiency of the service data and improve the maintainability of the service data.
Drawings
Fig. 1 is a schematic diagram of an embodiment of a big data-based service data updating method according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of another embodiment of a big data-based service data updating method 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 big data based service data updating device in the embodiment of the present invention.
Detailed Description
The embodiment of the invention provides a service data updating method, a device, equipment and a storage medium based on big data, which are used for improving the synchronous updating efficiency of service data and improving the maintainability of the service data.
The terms "first," "second," "third," "fourth," and the like in the description and in the claims, as well as in the drawings, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that the embodiments described herein may be practiced otherwise than as specifically illustrated or described herein. Furthermore, the terms "comprises," "comprising," or "having," and any variations thereof, are intended to cover non-exclusive inclusions, 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, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
For convenience of understanding, a specific flow of the embodiment of the present invention is described below, and referring to fig. 1, 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 is to be understood that the executing subject of the present invention may be a service data updating apparatus based on big data, and may also be a terminal or a server, which is not limited herein. The embodiment of the present invention is described by taking a server as an execution subject.
In this embodiment, the service data update request may be sent by a terminal or a server, which is not specifically limited herein, for example, when a user modifies service data on the server a and the service data on the server B needs to be updated synchronously according to the service data on the server a, the server a sends the service data update request to the server B, so that the server B performs synchronous update on the service data.
In this embodiment, different channel sources correspond to different service data update requests, and therefore, the service data update request carries user basic information, channel type information, and service type information, for example, the channel type information corresponding to a service party a that calls service data may be a, and the service party that calls service data may be one function module in a terminal application or may be different terminal applications, which depends on an application scenario and is not further limited herein, for example, a membership rights and interests viewing module, a coupon 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 required by a service data update request, for example, in a member system, when the user identity is changed from a common user to a member user, the member rights and interests data corresponding to the member identity may be changed, and then the service type information may be a rights and interests data update type, or when the point data of the user is changed, the exchange state information of a commodity may also 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 the channel type information according to the channel type information, wherein the target channel package comprises an original service class;
in this embodiment, the service data update request may be sent from different channel sources, and the server may obtain a target channel packet corresponding to the channel type information according to the channel type information carried in the service data update request, where the target channel packet (belonging to an original channel packet) is a collection of original service classes having a service implementation logic, and is capable of implementing a specific service function. The server can identify the name of a preset original channel package or the configuration file information in the original channel package through the channel type information, so as to obtain a corresponding target channel package from the original channel package, wherein the original channel package comprises the target channel package.
103. Based on the adapter mode, the service data updating request is switched to a target service class corresponding to the service type information through the original service class;
in this embodiment, adapter pattern (adapter pattern) refers to converting an interface of one class into another interface expected by a terminal, so that two classes that cannot work together due to interface mismatch can work together. The working principle of the adapter mode is to convert the interface of the adapted class into the interface of the target class, therefore, the server firstly creates an original service class corresponding to the service data updating request, then creates a target service class corresponding to the service type information, the server creates an adapter class, namely an adapting 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 switching of the interface, wherein the original service class is the service class in the target channel packet.
In this embodiment, the target service class is determined by the service type information in the service data update request, that is, the target service logic function to be implemented by the service data update request, for example, in a member system, when member level data of a user changes, corresponding user right data may also change, and then, the member level module forwards the service data update request to the member right module through an adapter mode, so as to implement the logic processing of the member right module, where the service class in the member right module in this example is the target service class.
104. Performing service data updating operation based on the user basic information and the target service class to obtain an operation result;
in this embodiment, after the server transfers the service data update request to the corresponding target service class, the server parses the service data update request, and performs multi-layer logic determination to verify whether the user basic information carried by the service data update request conforms to the update condition of the target service class, and if the user basic information conforms to any one service data update condition of the target service class, the server performs synchronous update of the service data, that is, service data update operation, to obtain an operation result. For example, the function of the target service class is to update the exchange authority of the commodity data of the member user, then before updating the exchange authority, the server needs to verify whether the grade information of the user meets the exchange authority condition of the corresponding commodity, if so, the server gives the exchange authority of the corresponding commodity to the corresponding user, otherwise, the server returns prompt information that the grade information does not meet to the terminal.
105. And acquiring a push task corresponding to the operation result, and pushing a service message corresponding to the push task to the terminal.
In this embodiment, when the service data changes, in order to enable the user to obtain an 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 changes, the corresponding member rights and interests data may also change, the server pushes the corresponding member rights and interests data to the terminal of the user through a push task, and after receiving a notification of updating the member rights and interests data, the user may further view the member rights and interests 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 push tasks, for example, when the operation result is that the member level data changes, the corresponding push task may be a push task of a member commodity; when the operation result is that the user identity is changed, the corresponding pushing task may be a pushing task for the member to transact the promotion. The push 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 pushing tasks correspond to different service messages, for example, a service message corresponding to a pushing task for a member to transact a promotion activity may be a page for the member to transact the promotion activity, a pushing task for a member commodity may be a purchase link of the commodity, and a specific service message may be configured in pushing task configuration information corresponding to the pushing task. Further, the server stores the operation result in the blockchain database, which is not limited herein.
In the embodiment of the invention, the server acquires the target channel packet according to the channel type information in the service data updating request, the server switches the original service class in the target channel packet 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 updating to the terminal. The invention can improve the synchronous updating efficiency of the service data and improve the maintainability of the service data.
Referring to fig. 2, another embodiment of a service data updating method based on big data according to 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 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: the method comprises the steps that a server obtains a plurality of original project files of multiple channel sources and respectively obtains channel information corresponding to each original project file; the server classifies the channel types of the original project files according to the channel information corresponding to the original project files to obtain the channel type information corresponding to the original project files and generates a channel type table corresponding to the channel type information, wherein the channel type information comprises channel type identifiers; and respectively writing the channel type information corresponding to each original project file into the configuration file corresponding to each original project file by the server to obtain the original channel package corresponding to each original project file.
In this embodiment, different channel sources correspond to different original engineering files, each original engineering file includes 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, for example, the channel source a and the channel source B, and then when the server classifies the channel types of the channel source a and the channel source B, the server classifies a plurality of original project files according to channel information of different channel sources by creating a channel type table, the server assigns a unique channel type identifier source 1 to the channel source a, and assigns a unique channel type identifier source 2 to the channel source B, so as to identify the source of the channel package. It should be noted that the multi-channel source may be different applications, or may be different functional modules in the same application, and 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, thereby generating an original channel packet corresponding to each original engineering file for subsequent service data processing.
202. 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;
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 a channel type table according to the index; and 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 service class.
In this embodiment, the server parses the service data update request, decomposes the request parameter in the service data update request, and extracts the channel type information, the service type information, and the user basic information in the request parameter, and then the server looks up the corresponding original channel package in the preset channel type table by using the channel type information as an index, and determines the target channel package corresponding to the channel type information in the preset original channel package.
203. Extracting an original service class corresponding to the service data updating 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;
in this embodiment, in order to extract an original service class from a target channel package, a server first traverses all service classes in the target channel package and extracts all service classes in the target channel package by presetting a regular expression, and the server extracts, by presetting a keyword in the regular expression, the original service class corresponding to a service data update request in all service classes, that is, a part of logic processing to be performed by the service data update request, for example, a member point data is to be modified by the service data update request, 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 pre-dividing functions of all service classes, or by identifying class names of the service classes, which is not specifically limited herein.
In this embodiment, the service type information refers to a service processing type to be performed by the service data update request, such as member point processing, member level processing, member commodity processing, and the like, and these service type information are stored in a corresponding data table in advance, and the server can obtain a target service class corresponding to the service type information by querying a preset service type data table, thereby implementing service switching.
204. Based on the 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;
in this embodiment, the server constructs an adaptation component based on the adapter mode on the basis of the original service class and the target service class, thereby implementing the service switching. Specifically, the server firstly creates an original service class corresponding to the service data updating request, then creates a target service class corresponding to the service type information, the server creates an adapter class, namely an adaptation component, according to the original service class and the target service class, and finally the server calls a service logic code of the target service class in the adapter class, so that the switching of the interface is realized.
205. Forwarding the service data updating request to a target service class through an adaptation component;
in this embodiment, the server switches the service data update request to processing logic of a target service class through the adaptation component, so as to perform logic processing of the target service, for example, the member class service switches the service data update request to the member commodity service class, and the member commodity service class updates the exchange authority of commodity data of the member user according to member class information carried in the service data update request, thereby implementing synchronous update of the member data.
206. Performing service data updating operation based on the user basic information and the target service class to obtain an operation result;
specifically, the server judges whether the basic information of the user meets at least one preset service data updating condition; if the basic information of the user meets at least one preset service data updating condition, the server calls a service data updating function in the target service class to perform service data updating operation to obtain an operation result; and the server converts the operation result into a service data updating message and pushes the service data updating message into a preset message queue so that the terminal can receive the service data updating message in real time.
In this embodiment, whether the basic information of the user meets at least one preset service data update condition is determined by the server, and if yes, 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 in a dynamic corresponding relationship, 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 satisfies the preset level condition, the service data updating operation may be: updating commodity exchange authority corresponding to the grade information; if the service data updating condition is as follows: if the point information in the user basic information satisfies the preset point condition, the service data updating operation may be: updating the commodity exchange number corresponding to the point information; if the service data updating condition is as follows: if the user identity in the user basic information meets the preset identity condition, the service data updating operation may be: updating commodity exchange authority corresponding to the user identity; if the service data updating condition is as follows: the current time information satisfies the preset periodic condition, and the purchase information in the user basic information satisfies the preset purchase condition, then, the service data update operation may be: the number of purchasable items within the periodic condition is updated.
In this embodiment, different operation results correspond to different service data update messages, for example, when the operation result is that the level information of the user changes, the service data update message may be the 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 push task corresponding to the operation result, and pushing a service message corresponding to the push task to the terminal.
Specifically, the server reads a push task corresponding to the operation result according to the target service class, wherein the push task comprises a push type, a 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; the server acquires the current time and judges whether the current time is in an aging range corresponding to the pushed aging; and if the current moment is within the time efficiency range corresponding to the pushing time efficiency, 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 push task includes a push type, a push timeliness and a push manner, for example, the push task is a message for a push member to transact a promotion activity, then, the server determines the push type, the push timeliness and the push manner of the push task through preset push task configuration information, and it is assumed that the push task of one of the push task configuration information is: within 24 hours (push timeliness) of the current moment, the server pushes a short message (push type) for a member to transact a promotion activity to the terminal in 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, constructs the adaptation component of the target service class and switches the original service class through the adaptation component, so that the target service class executes the data synchronous updating operation. The invention can improve the synchronization efficiency of the service data.
In the above description of the service data updating method based on big data in the embodiment of the present invention, a service data updating apparatus based on big data in the embodiment of the present invention is described below, please refer to fig. 3, and an 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 basic user information, channel type information, and service type information;
an obtaining module 302, configured to obtain, 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;
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;
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 packet according to the channel type information in the service data updating request, the server switches the original service class in the target channel packet 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 updating to the terminal. The invention can improve the synchronous updating efficiency of the service data and improve the maintainability of the service data.
Referring to fig. 4, another embodiment of the big data based service data updating apparatus according to 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 basic user information, channel type information, and service type information;
an obtaining module 302, configured to obtain, 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;
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;
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 apparatus based on big data further includes:
the classification module 306 is configured to obtain multiple original project files from multiple channels, and obtain channel information corresponding to each original project file; performing channel type classification processing on the original project files according to the channel information to obtain channel type information corresponding to the original project files and generate a channel type table corresponding to the channel type information, wherein the channel type information corresponding to the original project files comprises channel type identifiers;
the generating module 307 is configured to write the channel type information corresponding to each original engineering file into the configuration file corresponding to each original engineering file, so as to obtain an original channel package corresponding to each original engineering file.
Optionally, the obtaining 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 service class.
Optionally, the switching module 303 is specifically configured to:
extracting an original service class corresponding to the service data updating 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;
and forwarding the service data updating request to the target service class through the adaptation component.
Optionally, the update module 304 is specifically configured to:
judging 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, 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 updating message, and pushing the service data updating message into a preset message queue so that the terminal can receive the service data updating message in real time.
Optionally, the pushing module 305 is specifically configured to:
reading a push task corresponding to the operation result according to the target service class, wherein the push task comprises a push type, a 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 the current moment, and judging whether the current moment is in an aging range corresponding to the pushed aging;
and if the current moment is within the time efficiency range corresponding to the push time efficiency, pushing the service message corresponding to the push task to a terminal according to the push type and the push mode.
In the embodiment of the invention, in order to synchronously update the service data, the server adopts an adapter mode, constructs the adaptation component of the target service class and switches the original service class through the adaptation component, so that the target service class executes the data synchronous updating operation. The invention can improve the synchronization efficiency of the service data.
Fig. 3 and fig. 4 describe the service data updating apparatus based on big data in the embodiment of the present invention in detail from the perspective of the modular functional entity, and the service data updating apparatus based on big data in the embodiment of the present invention is described in detail from the perspective 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 generate relatively large differences due to different configurations or performances, and may include one or more processors (CPUs) 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 applications 533 or data 532. Memory 520 and storage media 530 may be, among other things, transient or persistent storage. The program stored in the storage medium 530 may include one or more modules (not shown), and each module may include a series of instruction operations for the big data based service data updating apparatus 500. Still further, the processor 510 may be configured to communicate with the storage medium 530, and execute a series of instruction operations in the storage medium 530 on the big data based service data updating apparatus 500.
Big data based business data update apparatus 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 Server, Mac OS X, Unix, Linux, FreeBSD, and the like. Those skilled in the art will appreciate 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 those shown, or combine some components, or arrange different components.
The invention also provides a service data updating device based on big data, where the computer device includes a memory and a processor, and the memory stores computer readable instructions, and when the computer readable instructions are executed by the processor, the processor executes 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, where instructions are stored, and when the instructions are executed on a computer, the instructions cause the computer to execute 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 according to the use of the blockchain node, and the like.
The block chain is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, a consensus mechanism, an encryption algorithm and the like. A block chain (Blockchain), which is essentially a decentralized database, is a series of data blocks associated by using a cryptographic method, and each data block contains information of a batch of network transactions, so as to verify the validity (anti-counterfeiting) of the information and generate a next block. The blockchain may include a blockchain underlying platform, a platform product service layer, an application service layer, and the like.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a read-only memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present 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 solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. A service data updating method based on big data is characterized in that the service 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 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;
performing service data updating operation based on the user basic information and the target service class to obtain an operation result;
and acquiring a push task corresponding to the operation result, and pushing a service message corresponding to the push task to a terminal.
2. The big data based service data updating method according to claim 1, wherein before said receiving a service data updating request, said service data updating request including user basic information, channel type information and service type information, said big data based service data updating method further comprises:
acquiring a plurality of original project files of a multi-channel source, and respectively acquiring channel information corresponding to each original project file;
performing channel type classification processing on the original project files according to the channel information to obtain channel type information corresponding to the original project files and generate a channel type table corresponding to the channel type information, wherein the channel type information corresponding to the original project files comprises channel type identifiers;
and respectively writing the channel type information corresponding to each original project file into the configuration file corresponding to each original project file to obtain an original channel package corresponding to each original project file.
3. The big data based service data updating method according to claim 2, 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 service 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 service class.
4. The big data based service data updating method according to claim 1, wherein the forwarding 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 comprises:
extracting an original service class corresponding to the service data updating 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;
and forwarding the service data updating request to the target service class through the adaptation component.
5. The big data based service data updating method according to claim 1, wherein the performing a service data updating operation based on the user basic information and the target service class to obtain an operation result comprises:
judging 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, 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 updating message, and pushing the service data updating message into a preset message queue so that the terminal can receive the service data updating message in real time.
6. The big data-based service data updating method according to any one of claims 1 to 5, wherein the obtaining of the push task corresponding to the operation result and the pushing of the service message corresponding to the push task to the terminal includes:
reading a push task corresponding to the operation result according to the target service class, wherein the push task comprises a push type, a 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 the current moment, and judging whether the current moment is in an aging range corresponding to the pushed aging;
and if the current moment is within the time efficiency range corresponding to the push time efficiency, pushing the service message corresponding to the push task to a terminal according to the push type and the push mode.
7. A big data based service data updating apparatus, wherein the big data based service data updating apparatus comprises:
the system comprises a receiving module, a processing module and a processing module, wherein the receiving module is used for receiving a service data updating request, and 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;
and 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.
8. The big-data-based service data updating device according to claim 7, wherein the forwarding module is specifically configured to:
extracting an original service class corresponding to the service data updating 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;
and forwarding the service data updating request to the target service class through the adaptation component.
9. A big data based service data updating device, wherein the big data based service data updating device comprises: a memory and at least one processor, the memory having instructions stored therein;
the at least one processor calls the instructions in the memory to cause the big data based business data updating apparatus to execute the big data based business data updating method according to any one of claims 1 to 6.
10. A computer-readable storage medium having instructions stored thereon, wherein the instructions, when executed by a processor, implement the big data based service data updating method according to any one of claims 1 to 6.
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 true CN113434523A (en) 2021-09-24
CN113434523B 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
CN113434523B (en) 2023-10-20

Similar Documents

Publication Publication Date Title
CN107515878B (en) Data index management method and device
CN102375837B (en) Data acquiring system and method
US8825750B2 (en) Application server management system, application server management method, management apparatus, application server and computer program
CN106528289B (en) Resource operation processing method and device
CN110119292A (en) System operational parameters querying method, matching process, device and node device
CN113422732A (en) Version updating method, device, equipment and storage medium based on total station gray scale
CN113434311B (en) Service data interaction method, device, equipment and storage medium
CN114936254A (en) Food safety big data sharing management method and system under cloud chain fusion mechanism
CN116668191B (en) Internet of things application virtual gateway with data encryption convergence function
CN112445861B (en) Information processing method, device, system and storage medium
CN116974948A (en) Service system testing method, system, equipment and medium
CN113434523A (en) Service data updating method, device, equipment and storage medium based on big data
CN111814020A (en) Data acquisition method and device
CN107786661B (en) Information synchronization method
CN106936643B (en) Equipment linkage method and terminal equipment
CN112559472B (en) File transmission method, device, computer equipment and storage medium
CN115526586A (en) Business process processing method based on intelligent operation
CN110677497B (en) Network medium distribution method and device
CN113360558A (en) Data processing method, data processing device, electronic device, and storage medium
CN113269538A (en) Method, device and equipment for forwarding parallel approval nodes and storage medium
CN112003736A (en) Multi-node configuration information determining method, device and storage medium
CN108696549B (en) Load balancing method, device and system
CN111506646A (en) Data synchronization method, device, system, storage medium and processor
CN111061719A (en) Data collection method, device, equipment and storage medium
CN112114915A (en) Multi-language version software updating method and system

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