CN108696598B - A method and device for transparently transmitting messages received by a stateless service through a long connection under a microservice architecture - Google Patents
A method and device for transparently transmitting messages received by a stateless service through a long connection under a microservice architecture Download PDFInfo
- Publication number
- CN108696598B CN108696598B CN201810834418.0A CN201810834418A CN108696598B CN 108696598 B CN108696598 B CN 108696598B CN 201810834418 A CN201810834418 A CN 201810834418A CN 108696598 B CN108696598 B CN 108696598B
- Authority
- CN
- China
- Prior art keywords
- message
- server
- transparent transmission
- transmission server
- cache
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1001—Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
- H04L67/1004—Server selection for load balancing
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/14—Session management
- H04L67/141—Setup of application sessions
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/56—Provisioning of proxy services
- H04L67/568—Storing data temporarily at an intermediate stage, e.g. caching
- H04L67/5682—Policies or rules for updating, deleting or replacing the stored data
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/16—Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
- H04L69/161—Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields
- H04L69/162—Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields involving adaptations of sockets based mechanisms
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
- Computer And Data Communications (AREA)
Abstract
本发明公开了一种微服务架构下将无状态服务接收到的消息通过长连接透传的方法和装置,所述方法包括:透传服务器收到消息后根据协议内容判断本条消息是否是本次通信的第一条消息;如果是第一条消息,透传服务器与目标服务器建立长连接并将连接句柄缓存至当前透传服务器内存中;将当前透传服务器的地址信息缓存至缓存服务器;透传服务器通过长连接向目标服务器发送消息数据,以便目标服务器向终端回复消息。通过将透传服务独立出来,在首次建立长连接时将当前透传服务地址信息缓存至外部服务器,当应用服务器准备透传时,可以根据缓存服务器找到对应的透传服务器地址,并在该透传服务器内找到句柄,从而实现消息的透传。
The invention discloses a method and a device for transparently transmitting a message received by a stateless service through a long connection under a micro-service architecture. The first message of communication; if it is the first message, the transparent transmission server establishes a long connection with the target server and caches the connection handle in the memory of the current transparent transmission server; caches the address information of the current transparent transmission server to the cache server; The transmission server sends message data to the target server through a persistent connection, so that the target server can reply the message to the terminal. By separating the transparent transmission service, the current transparent transmission service address information is cached to the external server when a persistent connection is established for the first time. The handle is found in the transmission server, so as to realize the transparent transmission of the message.
Description
Claims (6)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201810834418.0A CN108696598B (en) | 2018-07-26 | 2018-07-26 | A method and device for transparently transmitting messages received by a stateless service through a long connection under a microservice architecture |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201810834418.0A CN108696598B (en) | 2018-07-26 | 2018-07-26 | A method and device for transparently transmitting messages received by a stateless service through a long connection under a microservice architecture |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN108696598A CN108696598A (en) | 2018-10-23 |
| CN108696598B true CN108696598B (en) | 2021-04-13 |
Family
ID=63850877
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201810834418.0A Active CN108696598B (en) | 2018-07-26 | 2018-07-26 | A method and device for transparently transmitting messages received by a stateless service through a long connection under a microservice architecture |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN108696598B (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN114024972B (en) * | 2021-10-28 | 2023-11-03 | 平安科技(深圳)有限公司 | Long connection communication method, system, device, equipment and storage medium |
Citations (9)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102904903A (en) * | 2012-11-02 | 2013-01-30 | 北京奇虎科技有限公司 | Communication system and communication method |
| CN102932352A (en) * | 2012-11-02 | 2013-02-13 | 北京奇虎科技有限公司 | The method of communicating with the client and the server |
| CN103124267A (en) * | 2013-02-07 | 2013-05-29 | 百度在线网络技术(北京)有限公司 | Method, system and cloud server for login/registration through mobile terminal |
| CN105635280A (en) * | 2015-12-30 | 2016-06-01 | 东软集团股份有限公司 | Method and apparatus for improving message push efficiency, and push server |
| CN105991689A (en) * | 2015-02-03 | 2016-10-05 | 阿里巴巴集团控股有限公司 | HTTP message processing method, system, HTTP client and server |
| CN106850611A (en) * | 2017-01-25 | 2017-06-13 | 辽宁中科信科技有限公司 | A kind of cross-system Internet of Things safety communication technological service platform method |
| CN107403112A (en) * | 2017-07-31 | 2017-11-28 | 北京京东尚科信息技术有限公司 | Data verification method and its equipment |
| CN107547601A (en) * | 2016-06-29 | 2018-01-05 | 上海连尚网络科技有限公司 | The method and routing device, server, system sent for message |
| CN107659492A (en) * | 2017-10-31 | 2018-02-02 | 珠海信达九州科技有限公司 | A kind of high reliability instant communicating system |
Family Cites Families (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US11323508B2 (en) * | 2009-05-22 | 2022-05-03 | Comcast Interactive Media, Llc | Web service system and method |
| US10735394B2 (en) * | 2016-08-05 | 2020-08-04 | Oracle International Corporation | Caching framework for a multi-tenant identity and data security management cloud service |
-
2018
- 2018-07-26 CN CN201810834418.0A patent/CN108696598B/en active Active
Patent Citations (9)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102904903A (en) * | 2012-11-02 | 2013-01-30 | 北京奇虎科技有限公司 | Communication system and communication method |
| CN102932352A (en) * | 2012-11-02 | 2013-02-13 | 北京奇虎科技有限公司 | The method of communicating with the client and the server |
| CN103124267A (en) * | 2013-02-07 | 2013-05-29 | 百度在线网络技术(北京)有限公司 | Method, system and cloud server for login/registration through mobile terminal |
| CN105991689A (en) * | 2015-02-03 | 2016-10-05 | 阿里巴巴集团控股有限公司 | HTTP message processing method, system, HTTP client and server |
| CN105635280A (en) * | 2015-12-30 | 2016-06-01 | 东软集团股份有限公司 | Method and apparatus for improving message push efficiency, and push server |
| CN107547601A (en) * | 2016-06-29 | 2018-01-05 | 上海连尚网络科技有限公司 | The method and routing device, server, system sent for message |
| CN106850611A (en) * | 2017-01-25 | 2017-06-13 | 辽宁中科信科技有限公司 | A kind of cross-system Internet of Things safety communication technological service platform method |
| CN107403112A (en) * | 2017-07-31 | 2017-11-28 | 北京京东尚科信息技术有限公司 | Data verification method and its equipment |
| CN107659492A (en) * | 2017-10-31 | 2018-02-02 | 珠海信达九州科技有限公司 | A kind of high reliability instant communicating system |
Also Published As
| Publication number | Publication date |
|---|---|
| CN108696598A (en) | 2018-10-23 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US9361126B1 (en) | Device driver aggregation in operating system deployment | |
| CN111414208B (en) | Application program starting method, device and equipment | |
| CN111294415B (en) | Domain name resolution method and device | |
| CN113259479B (en) | Data processing method and equipment | |
| US20170126789A1 (en) | Automatic Software Controller Configuration based on Application and Network Data | |
| CN111212156B (en) | A kind of network connection method and device | |
| WO2023030417A1 (en) | Packet processing method and device, storage medium, and computer program product | |
| CN106330610A (en) | A load balancing processing system and method | |
| CN105472291A (en) | Digital video recorder with multiprocessor cluster and realization method of digital video recorder | |
| WO2019011142A1 (en) | Network link switching method and system | |
| US10067862B2 (en) | Tracking asynchronous entry points for an application | |
| CN114301872B (en) | Domain name based access method and device, electronic equipment and storage medium | |
| CN108696598B (en) | A method and device for transparently transmitting messages received by a stateless service through a long connection under a microservice architecture | |
| CN115277506B (en) | Load balancing equipment testing method and system | |
| CN103957252A (en) | Method and system for obtaining log of cloud storage system | |
| CN114443267A (en) | Resource acquisition method, system, device and storage medium | |
| CN111416852A (en) | Method for session synchronization among multiple load balancers and load balancer | |
| CN110650215A (en) | Function execution method and device of edge network | |
| CN109768897B (en) | Server deployment method and device | |
| CN117597953A (en) | Bluetooth communication method, device, electronic equipment and medium supporting multi-protocol stack | |
| EP2930883A1 (en) | Method for the implementation of network functions virtualization of a telecommunications network providing communication services to subscribers, telecommunications network, program and computer program product | |
| Murata et al. | Development of high-performance and flexible protocol handler for international web accesses | |
| US12182564B2 (en) | Method and system to improve the turnaround time for providing upgrades | |
| CN116260855B (en) | Communication method, communication device, electronic equipment and storage medium | |
| CN115776489B (en) | Information collection method, device, electronic device and computer readable storage medium |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| CB02 | Change of applicant information |
Address after: 065001 hill 0387, 118 Huaxiang Road, Langfang Economic and Technological Development Zone, Hebei Province Applicant after: Langfang Xinao Intelligent Technology Co.,Ltd. Address before: 065001 Langfang City Development Zone of Hebei province Huaxiang No. 106 New Austrian Gas Equipment Co Ltd R & D department Applicant before: LANGFANG ENN GAS EQUITPMENT Co.,Ltd. |
|
| CB02 | Change of applicant information | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant | ||
| TR01 | Transfer of patent right |
Effective date of registration: 20250917 Address after: Room 601, Building 3, No. 50 Haitai Innovation Street, Huayuan Industrial Zone (Huanwai), Binhai High tech Zone, Binhai New Area, Tianjin, 300392 Patentee after: Tianjin Xinzhi Perception Technology Co.,Ltd. Country or region after: China Address before: 065001 hill 0387, 118 Huaxiang Road, Langfang Economic and Technological Development Zone, Hebei Province Patentee before: Langfang Xinao Intelligent Technology Co.,Ltd. Country or region before: China |