Method and apparatus for dynamically updating DNS cache by Nginx (Engine X)-RTMP (Real Time Messaging Protocol)

A dynamic update and caching technology, applied in the computer field, can solve problems such as untimely traffic switching and unavailability of live broadcast services.

Active Publication Date: 2017-12-15
WUHAN DOUYU NETWORK TECH CO LTD
View PDF14 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] Therefore, the existing technology has at least the following technical defects: the backend server IP needs to be manually reloaded to obtain the configuration file; and if the backend server updat

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
  • Method and apparatus for dynamically updating DNS cache by Nginx (Engine X)-RTMP (Real Time Messaging Protocol)
  • Method and apparatus for dynamically updating DNS cache by Nginx (Engine X)-RTMP (Real Time Messaging Protocol)
  • Method and apparatus for dynamically updating DNS cache by Nginx (Engine X)-RTMP (Real Time Messaging Protocol)

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0023] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are the Some, but not all, embodiments are invented. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0024] figure 1 The schematic flow chart of the method for Nginx-RTMP dynamic update DNS cache that the embodiment of the present invention provides, as figure 1 As shown, including: S1, after the preset DNS cache flag is turned on, obtain the current timestamp and the preset absolute timestamp recorded when the DNS cache was updated last time; S2, obtain the current t...

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 invention provides a method and an apparatus for dynamically updating a DNS cache by an Nginx (Engine X)-RTMP (Real Time Messaging Protocol). The method comprises the following steps: S1, after the DNS cache set in advance is labeled into an on state, obtaining a current timestamp as well as an absolute timestamp that is set in advance and is recorded when the DNS cache is updated at a previous time; S2, obtaining a time interval between the current timestamp and the absolute timestamp, and comparing the time interval with an overtime interval set in advance; and S3, if the time interval is greater than the overtime interval, according to a URL that is recorded in advance and is corresponding to a backend service, updating the DNS cache and storing the current timestamp as the absolute timestamp. The method and the apparatus provided by the invention determine whether to perform DNS update by adding the DNS cache in the Gginx-RTMP and judging whether the timestamp is expired; a response can be made relatively fast for a condition in which an IP is scheduled and is changed by the backend service, and the IP of the backend service is switched timely and automatically.

Description

technical field [0001] The invention relates to the field of computer technology, in particular to a method and a device for dynamically updating DNS cache by Nginx-RTMP. Background technique [0002] With the development of network communication technology and the improvement of broadband network speed, network live broadcast technology is also developing continuously, and has received more and more attention. In the prior art, the Nginx-RTMP platform is usually used to build a live broadcast environment. [0003] Nginx (engine x) is a high-performance HTTP and reverse proxy server, as well as an IMAP / POP3 / SMTP server; Nginx as a load balancing server: Nginx can directly support Rails and PHP programs to serve externally, and can also support Serve as an HTTP proxy server. [0004] RTMP is an acronym for Real Time Messaging Protocol. The protocol is based on TCP and is a protocol family, including RTMP basic protocol and various variants such as RTMPT / RTMPS / RTMPE. RTMP ...

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
IPC IPC(8): H04L29/08H04L29/12
CPCH04L61/4511H04L67/5682
Inventor 何绍富张文明陈少杰
Owner WUHAN DOUYU NETWORK TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products