CN103546543A - Client device for electronic commerce and method and system for supplying information - Google Patents
Client device for electronic commerce and method and system for supplying information Download PDFInfo
- Publication number
- CN103546543A CN103546543A CN201310456591.9A CN201310456591A CN103546543A CN 103546543 A CN103546543 A CN 103546543A CN 201310456591 A CN201310456591 A CN 201310456591A CN 103546543 A CN103546543 A CN 103546543A
- Authority
- CN
- China
- Prior art keywords
- client
- http
- management server
- session management
- information
- Prior art date
Links
- 230000005540 biological transmission Effects 0.000 claims description 5
- 238000004891 communication Methods 0.000 abstract description 6
- 238000010586 diagrams Methods 0.000 description 12
- 238000000034 methods Methods 0.000 description 8
- 235000010384 tocopherol Nutrition 0.000 description 8
- 235000019731 tricalcium phosphate Nutrition 0.000 description 8
- 238000003860 storage Methods 0.000 description 5
- 238000004364 calculation methods Methods 0.000 description 4
- 230000004048 modification Effects 0.000 description 3
- 238000006011 modification reactions Methods 0.000 description 3
- 238000010276 construction Methods 0.000 description 2
- 238000004519 manufacturing process Methods 0.000 description 2
- 238000004140 cleaning Methods 0.000 description 1
- 230000000875 corresponding Effects 0.000 description 1
- 238000000354 decomposition reactions Methods 0.000 description 1
- 238000005516 engineering processes Methods 0.000 description 1
- 230000001360 synchronised Effects 0.000 description 1
Abstract
Description
Technical field
The present invention relates to a kind of method and system that is applied to the client terminal device of ecommerce and information is provided.
Background technology
In e-commerce field, conventionally by various computing systems collaborative work to complete the things of links in ecommerce, such as WMS, after-sale service system etc.In commodity transaction process Zhong, businessman, wish to process in time order, stock, sales promotion and the message such as after sale, for them, preferably can arrive very much in real time message.
At present in e-commerce field ,Xiang businessman, providing a kind of pattern of the system of information is client/server (C/S) pattern.The application of C/S model conventionally adopts TCP socket to connect and guarantees real-time.TCP connection advantage is very outstanding, as the promptness of two-way communication, the each loss of asking establishment connection of reduction etc.But on the one hand, TCP connects needs server and fire compartment wall opening particular port, and the fail safe that needs all concurrent connections of developer's maintenance server and guarantee to access; The customer end adopted TCP that ,Ruo businessman is used on the other hand connects, and needs with the common negotiation communication agreement of server and realizes, and processes comparatively complicated.Therefore, C/S model has increased the risk of data security, the maintenance cost of fail safe and development cost, has reduced development efficiency.
Summary of the invention
In view of this, the invention provides a kind of method and system that is applied to the client terminal device of ecommerce and information is provided, can, when taking into account fail safe and development cost, solve the problem of client and server real time communication.
For achieving the above object, according to an aspect of the present invention, provide a kind of method that information is provided that is applied to ecommerce.
The method that information is provided that is applied to ecommerce of the present invention comprises: the session management server in session management server cluster receives the HTTP logging request that client sends; In the situation that described client is successfully logined, described session management server keeps long connection of HTTP with described client, and in database, records the long state information connecting of HTTP of this client; Message management services device, after receiving the information of e-commerce system transmission, is crossed described session management server by this information exchange and is offered described client via long connection of described HTTP.
Alternatively, this information exchange is crossed to described session management server to be comprised via the long step that offers described client that connects of described HTTP: whether the long state information connecting of HTTP of inquiring about client described in described database is communicated with to determine long connection of HTTP of this client, and determines the session management server being connected with this client; In the situation that the HTTP of described client is long, connect in connection status, described message management services device sends to definite session management server to be transmitted to the long client connecting of HTTP for this session management server described this information.
Alternatively, this information exchange is crossed to described session management server to be comprised via the long step that offers described client that connects of described HTTP: whether the long state information connecting of HTTP of inquiring about client described in described database is communicated with to determine long connection of HTTP of this client, and determines the session management server being connected with this client; In the situation that the HTTP of described client is long, connect in not-connected status, described this information is saved in described database, and described this information is sent to definite session management server to be transmitted to the long client connecting of HTTP for this session management server when the HTTP of described client length connects in connection status.
Alternatively, in the situation that described client is successfully logined, the method also comprises: described session management server receive that described client sends for setting up the connection request of the short connection of HTTP, then set up short connection of HTTP with this client.
According to a further aspect in the invention, provide a kind of system that information is provided that is applied to ecommerce.
The system that information is provided that is applied to ecommerce of the present invention comprises: a plurality of session management servers, the HTTP logging request sending for receiving client, and in the situation that described client is successfully logined, keep being connected with the HTTP length of described client, and in database, record the long state information connecting of HTTP of this client; Message management services device, for after receiving the information of e-commerce system transmission, sends to described session management server by this information; Described session management server is also transmitted to described client for the described information that described message management services device is sent.
Alternatively, described session management server also for: whether the long state information connecting of HTTP of inquiring about client described in described database is communicated with to determine long connection of HTTP of this client, and definite session management server being connected with this client, and in the situation that the HTTP of described client is long, connect in connection status, described this information is sent to definite session management server.
Alternatively, described session management server also for: whether the long state information connecting of HTTP of inquiring about client described in described database is communicated with to determine long connection of HTTP of this client, and definite session management server being connected with this client, and connect in not-connected status in the situation that the HTTP of described client is long, described this information is saved in described database, and when the HTTP of described client length connects in connection status, described this information is sent to definite session management server.
Alternatively, described session management server also for: receive that described client sends for setting up the connection request of the short connection of HTTP, then set up short connection of HTTP with this client.
According to another aspect of the invention, provide a kind of client terminal device that is applied to ecommerce.
The client terminal device that is applied to ecommerce of the present invention comprises: login module, for sending HTTP logging request to session management server; Long link block, in situation about successfully logining for described client terminal device, sets up HTTP length with described session management server and is connected; Receiver module, the information that comes from e-commerce system sending for receiving described session management server.
Alternatively, also comprise sending module, for sending to described session management server for setting up the connection request of the short connection of HTTP, then set up short connection of HTTP with described session management server.
According to technical scheme of the present invention, realized and in C/S framework, applied the long mode connecting of HTTP, reduced and adopted TCP to connect risk and the complexity of bringing, also reduced the loss that the frequent establishment that adopts HTTP end connected mode to bring connects, improve the real-time of transfer of data, inherited TCP and connected the advantage being connected with HTTP, effectively evaded their shortcoming, thereby when taking into account fail safe and development cost, solved the problem of client and server real time communication.In addition, due to the characteristic of http protocol, can be easy to data to compress processing, reduce volume of transmitted data.In client, be applicable to adopting the application based on C/S model, and contribute to reduce development risk, shorten the construction cycle.
Accompanying drawing explanation
Accompanying drawing, for understanding the present invention better, does not form inappropriate limitation of the present invention.Wherein:
Fig. 1 is according to the schematic diagram of the chief component of the message handling system of the embodiment of the present invention;
Fig. 2 A is the schematic diagram of the basic step that connects according to the client of the embodiment of the present invention and session management server;
Fig. 2 B is according to the schematic diagram of the basic step of the process information of the embodiment of the present invention;
Fig. 3 is according to the schematic diagram of the prompting message window of the client ejection of the embodiment of the present invention;
Fig. 4 is the schematic diagram at the interface that arranges according to the bullet window type to client of the embodiment of the present invention;
Fig. 5 is according to the schematic diagram of the element of the client terminal device that is applied to ecommerce of the embodiment of the present invention.
Embodiment
Below in conjunction with accompanying drawing, one exemplary embodiment of the present invention is explained, comprising the various details of the embodiment of the present invention, to help understanding, they should be thought to be only exemplary.Therefore, those of ordinary skills will be appreciated that, can make various changes and modification to the embodiments described herein, and can not deviate from scope and spirit of the present invention.Equally, for clarity and conciseness, in following description, omitted the description to known function and structure.
Fig. 1 is according to the schematic diagram of the chief component of the message handling system of the embodiment of the present invention.As shown in Figure 1, message handling system is C/S model, wherein mainly comprises that message management services device 11, caching server 12, database 13, session management server cluster 14(wherein have a plurality of session management servers 140) and a plurality of client 15.
Fig. 2 A is the schematic diagram of the basic step that connects according to the client of the embodiment of the present invention and session management server.In the present embodiment, client is initiated HTML (Hypertext Markup Language) HTTP logging request (step S21) to session management server cluster, by load-balancing mechanism or other algorithms, by a session management server, receive the HTTP logging request (step S22) that client sends.In the situation that client is successfully logined, this session management server keeps long connection of HTTP with client, and in database, records the long state information (step S23) connecting of HTTP of this client.Other information of account in the time of can also recording relevant client login in database, and the information that will issue client.Thereby a plurality of clients can be logined and form the long connection of many HTTP by same account.Like this, in e-commerce field, can realize a plurality of personnel processing messages in the client of operation separately, for example, process order, a large amount of orders can be processed in time.
Connecting initially, the content record of this state information the long session management server that connects two ends of HTTP with client and record that this HTTP is long to be connected effectively, after this every 15S for example of fixing period, session management server sends heartbeat message by the long connection of this HTTP to the client connecting, and successfully represents that long connection of HTTP is still effectively if send; Otherwise think that the long connection of HTTP is invalid, the long state information connecting of HTTP of this client now recording in Update Table storehouse, connects its content representation HTTP length invalid.
E-commerce system can send information aperiodically to message management services device, these information are to e-commerce system, to be subscribed in advance by client, for example to order management system, subscribe to new order information, what therefore message management services device was received can be with the sign of client from the information in e-commerce system, and message management services device sends to session management server by this information, by the latter, by above-mentioned HTTP, grow connection and offer client.
Fig. 2 B is according to the schematic diagram of the basic step of the process information of the embodiment of the present invention.This information comes from e-commerce system.As shown in Figure 2 B, the information (step S24) that message management services device reception e-commerce system sends may be before or after client login, if afterwards, the now long connection of above-mentioned HTTP may be also connection or not be communicated with.So after step S24, whether message management services device is communicated with to determine long connection of HTTP of this client from the long state information connecting of HTTP of data base querying client, and determines the session management server (step S25) being connected with this client.If this HTTP is long, be connected to connection status, message management services device sends to session management server (step S26) by information, and this session management server sends to client (step S27) by information; If this HTTP is long, be connected to not-connected status, message management services device is saved in (step S28) in database by information, and returns to step S25, that is to say after this HTTP length is connected to connection status by the time and again this information is offered to client.
Between client and session management server, except setting up, HTTP is long to be connected, also can be according to the needs of client, to session management server transmission connection request, to set up the short connection of one or more HTTP.
Client can have the processing of various ways after receiving information.In e-commerce field, in general information type can be divided into according to function:
Service message: as order, commodity, sales promotion, the message such as after sale;
System message: as the client message etc. that need to Upgrade Now;
Notice/remind: as shop expiration of contract message etc.
The information of take is example as new order arrives message, is receiving that new order arrives after message, and client can adopt the modes such as sound or desktop bullet window to notify personnel, for example, shown in the window in Fig. 3 30.Fig. 3 is according to the schematic diagram of the prompting message window of the client ejection of the embodiment of the present invention.The type that user can play window to this go out to arrange, and as shown in Figure 4, Fig. 4 is the schematic diagram at the interface that arranges according to the bullet window type to client of the embodiment of the present invention.In interface 40 in Fig. 4, option 41 is set, option is specially:
Automatic spring message: when having new information, automatically remind frame at lower right corner Pop-up message;
Receive not prompting message: when having new information, only automatically download and receive order, lower right corner icon does not glimmer;
Prompting message does not only show number: when having new order, initiatively Pop-up message is reminded frame, only with lower right corner icon flickering display, and mouse-over display message total quantity, after double-click flashing icon, just Pop-up message is reminded frame.
Automatic spring message can be arranged by default, when selecting this, client is different according to the urgency level of current message, and there are differences in concrete alerting pattern and treatment mechanism:
Emergency message: as new order arrive, while there is the new emergency messages such as work order after sale, client, except Pop-up message prompting frame, increases language and reminds, so that user finds this emergency message in time; When user clicks this message entry, automatically jump to and in the corresponding module of client, carry out instant production and process.
Weak emergency message: user only needs this message to read processing.
Message need to mark whether processed state, when this message treated, message number under message in classification reduces respective value automatically, and this message status of client notice Session server update, so that this message status keeps synchronous in other channels.
As time goes on, the message of client will be very huge, for fear of occurring this kind of situation, the message that user can receive client is carried out this locality cleaning: client can be deleted stale messages automatically, and user also can independently delete notice/non-important messages such as prompting.Can find out that the client in the present embodiment can realize the function of very complex.Comprising multiple effective means, remind the user of businessman instant message, thereby improved the user's of businessman production efficiency, and then improved user's experience.
A kind of optional structure of client is shown in Fig. 5, and Fig. 5 is according to the schematic diagram of the element of the client terminal device that is applied to ecommerce of the embodiment of the present invention.
As shown in Figure 5, client terminal device 50 mainly comprises login module 51, long link block 52, receiver module 53.Login module 51 is for sending HTTP logging request to session management server; In the situation that long link block 52 is successfully logined for client terminal device, set up HTTP length with session management server and be connected; The information that comes from e-commerce system that receiver module 53 sends for receiving session management server.Client terminal device 50 can also comprise sending module (not shown), for sending to session management server for setting up the connection request of the short connection of HTTP, then sets up short connection of HTTP with session management server.
According to the technical scheme of the embodiment of the present invention, realized and in C/S framework, applied the long mode connecting of HTTP, reduced and adopted TCP to connect risk and the complexity of bringing, also reduced the loss that the frequent establishment that adopts HTTP end connected mode to bring connects, improve the real-time of transfer of data, inherited TCP and connected the advantage being connected with HTTP, effectively evaded their shortcoming, thereby when taking into account fail safe and development cost, solved the problem of client and server real time communication.In addition, due to the characteristic of http protocol, can be easy to data to compress processing, reduce volume of transmitted data.In client, be applicable to adopting the application based on C/S model, and contribute to reduce development risk, shorten the construction cycle.
Basic principle of the present invention has below been described in conjunction with specific embodiments, but, it is to be noted, for those of ordinary skill in the art, can understand whole or any steps or the parts of method and apparatus of the present invention, can be in the network of any calculation element (comprising processor, storage medium etc.) or calculation element, with hardware, firmware, software or their combination, realized, this is that those of ordinary skills use their basic programming skill just can realize in the situation that having read explanation of the present invention.
Therefore, object of the present invention can also realize by move a program or batch processing on any calculation element.Described calculation element can be known fexible unit.Therefore, object of the present invention also can be only by providing the program product that comprises the program code of realizing described method or device to realize.That is to say, such program product also forms the present invention, and the storage medium that stores such program product also forms the present invention.Obviously, described storage medium can be any storage medium of developing in any known storage medium or future.
Also it is pointed out that in apparatus and method of the present invention, obviously, each parts or each step can decompose and/or reconfigure.These decomposition and/or reconfigure and should be considered as equivalents of the present invention.And, carry out the step of above-mentioned series of processes and can order naturally following the instructions carry out in chronological order, but do not need necessarily according to time sequencing, to carry out.Some step can walk abreast or carry out independently of one another.
Above-mentioned embodiment, does not form limiting the scope of the invention.Those skilled in the art should be understood that, depend on designing requirement and other factors, various modifications, combination, sub-portfolio can occur and substitute.Any modification of doing within the spirit and principles in the present invention, be equal to and replace and improvement etc., within all should being included in protection range of the present invention.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310456591.9A CN103546543A (en) | 2013-09-29 | 2013-09-29 | Client device for electronic commerce and method and system for supplying information |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310456591.9A CN103546543A (en) | 2013-09-29 | 2013-09-29 | Client device for electronic commerce and method and system for supplying information |
Publications (1)
Publication Number | Publication Date |
---|---|
CN103546543A true CN103546543A (en) | 2014-01-29 |
Family
ID=49969582
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310456591.9A CN103546543A (en) | 2013-09-29 | 2013-09-29 | Client device for electronic commerce and method and system for supplying information |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103546543A (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104486291A (en) * | 2014-11-24 | 2015-04-01 | 北京奇虎科技有限公司 | Method, device and system for building connection |
CN104615430A (en) * | 2015-01-23 | 2015-05-13 | 久邦计算机技术(广州)有限公司 | Android-system-based information notification display system and implementation method of Android-system-based information notification display system |
CN105306350A (en) * | 2015-12-01 | 2016-02-03 | 深圳市乐唯科技开发有限公司 | Message interaction method, device and system |
CN106101994A (en) * | 2016-05-19 | 2016-11-09 | 广东建邦计算机软件股份有限公司 | The treating method and apparatus of warning message |
CN107730352A (en) * | 2017-09-30 | 2018-02-23 | 携程计算机技术(上海)有限公司 | Order based reminding method, system, storage medium, electronic installation and server |
CN109361778A (en) * | 2018-12-18 | 2019-02-19 | 厦门商集网络科技有限责任公司 | A kind of method and terminal managing session |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2007068717A1 (en) * | 2005-12-16 | 2007-06-21 | International Business Machines Corporation | Method and system for externalizing http security message handling with macro support |
CN102523177A (en) * | 2011-12-19 | 2012-06-27 | 北京新媒传信科技有限公司 | Method and system for realization of message push service |
CN102546794A (en) * | 2011-12-30 | 2012-07-04 | 华为技术有限公司 | Method for directly communicating browser client with back-end server as well as gateway and communication system |
-
2013
- 2013-09-29 CN CN201310456591.9A patent/CN103546543A/en not_active Application Discontinuation
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2007068717A1 (en) * | 2005-12-16 | 2007-06-21 | International Business Machines Corporation | Method and system for externalizing http security message handling with macro support |
CN102523177A (en) * | 2011-12-19 | 2012-06-27 | 北京新媒传信科技有限公司 | Method and system for realization of message push service |
CN102546794A (en) * | 2011-12-30 | 2012-07-04 | 华为技术有限公司 | Method for directly communicating browser client with back-end server as well as gateway and communication system |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104486291A (en) * | 2014-11-24 | 2015-04-01 | 北京奇虎科技有限公司 | Method, device and system for building connection |
CN104486291B (en) * | 2014-11-24 | 2018-08-17 | 北京奇安信科技有限公司 | Establish the method, apparatus and system of connection |
CN104615430A (en) * | 2015-01-23 | 2015-05-13 | 久邦计算机技术(广州)有限公司 | Android-system-based information notification display system and implementation method of Android-system-based information notification display system |
CN105306350A (en) * | 2015-12-01 | 2016-02-03 | 深圳市乐唯科技开发有限公司 | Message interaction method, device and system |
CN106101994A (en) * | 2016-05-19 | 2016-11-09 | 广东建邦计算机软件股份有限公司 | The treating method and apparatus of warning message |
CN106101994B (en) * | 2016-05-19 | 2018-07-27 | 广东建邦计算机软件股份有限公司 | The treating method and apparatus of warning message |
CN107730352A (en) * | 2017-09-30 | 2018-02-23 | 携程计算机技术(上海)有限公司 | Order based reminding method, system, storage medium, electronic installation and server |
CN109361778A (en) * | 2018-12-18 | 2019-02-19 | 厦门商集网络科技有限责任公司 | A kind of method and terminal managing session |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9276828B2 (en) | System and method for a service metering framework in a network environment | |
US10853142B2 (en) | Stateless instance backed mobile devices | |
US10439916B2 (en) | Client-side fault tolerance in a publish-subscribe system | |
CN104025078B (en) | Method and apparatus for promoting to sign electronically in the client computing device being associated with subscriber | |
CN103002010B (en) | A kind of data-updating method based on incremental data, device and system | |
CN103765423B (en) | Gathering transaction data associated with locally stored data files | |
Nakhuva et al. | Study of various internet of things platforms | |
Serrano et al. | Service-oriented architecture and legacy systems | |
CN106462577A (en) | Infrastructure for synchronization of mobile device with mobile cloud service | |
JP5535067B2 (en) | Ubiquitous presence service method and system for providing various application states based on 3A | |
US20160034876A1 (en) | Systems and Methods for Providing a Point of Sale Platform | |
CN104620222A (en) | Scaling a virtual machine instance | |
WO2014071201A2 (en) | Custom resources in a resource stack | |
CN102783129B (en) | Systems and methods to process a request received at an application program interface | |
US20100268768A1 (en) | Enterprise network system for programmable electronic displays | |
CN104769627A (en) | Peer-assisted shopping | |
CN104463450A (en) | Order processing method and device | |
CN105844450A (en) | Techniques to manage remote events | |
US20120310899A1 (en) | System and method for efficient data exchange in a multi-platform network of heterogeneous devices | |
CN104348697B (en) | The processing method of video communication information, apparatus and system | |
WO2015073385A2 (en) | Enhanced collaboration services | |
US8845337B1 (en) | Sharing demonstration information by a network connected demonstration device and system | |
CN104834582B (en) | A kind of monitor event methods of exhibiting | |
CN104954410A (en) | Message pushing method, device thereof and server | |
CN102420819A (en) | User registering method, interaction method and associated device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20140129 |