Unlock instant, AI-driven research and patent intelligence for your innovation.

A real-time long connection method and device based on a Go language

A long connection and language technology, applied in the field of data processing, can solve the problems of reducing the real-time push performance of data streams, space and time are difficult to find, etc.

Inactive Publication Date: 2019-05-10
BEIJING BYTEDANCE NETWORK TECH CO LTD
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The introduction of locks will inevitably reduce the real-time push performance of the entire data stream, and the market speed of the stock app is the most important indicator for the competition of various commodities. It can only be fast but not slow, so it is difficult to find a good one in terms of space and time. balance

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A real-time long connection method and device based on a Go language
  • A real-time long connection method and device based on a Go language
  • A real-time long connection method and device based on a Go language

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0042] Embodiments of the present disclosure will be described in detail below in conjunction with the accompanying drawings.

[0043] Embodiments of the present disclosure are described below through specific examples, and those skilled in the art can easily understand other advantages and effects of the present disclosure from the contents disclosed in this specification. Apparently, the described embodiments are only some of the embodiments of the present disclosure, not all of them. The present disclosure can also be implemented or applied through different specific implementation modes, and various modifications or changes can be made to the details in this specification based on different viewpoints and applications without departing from the spirit of the present disclosure. It should be noted that the following embodiments and features in the embodiments may be combined with each other under the condition of no conflict. Based on the embodiments in the present disclos...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The embodiment of the invention provides a real-time long connection method and device based on a Go language and electronic equipment, and belongs to the technical field of data processing, and the method comprises the steps: setting a connection object, a channel object and a pool object related to a long connection request service in a connection layer; initializing the channel object and the pool object based on the starting of the long connection service, and applying an address space with a preset length for the pool object in a memory based on the number of the long connection request objects; establishing an index mapped to a corresponding channel for the request object based on the code of the long connection request object, the index being stored in an address space of a preset length applied for the pool object; and in each channel, carrying out concurrent control on data requests from the request object in an atomic variable manner. Through the scheme of the invention, thelong connection efficiency is improved.

Description

technical field [0001] The present disclosure relates to the technical field of data processing, in particular to a Go language-based real-time persistent connection method, device and electronic equipment. Background technique [0002] The network is the carrier of the Internet. The network is composed of countless nodes. There are two communication modes between nodes: one is the short connection mode, one end initiates a request to establish a connection, and the other end receives the request, and the interaction is completed after a question and an answer Release the connection; the other is the long connection mode. After the request is established between the end and the end, a connection link is maintained through the heartbeat, and the two ends exchange data at any time. [0003] Real-time stock quotes have the characteristics of large amount of data and high requirements for real-time performance. In order to pursue the effectiveness of market data, real-time quote...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/52G06F9/54
Inventor 宋增宽吴英强
Owner BEIJING BYTEDANCE NETWORK TECH CO LTD