当前位置:网站首页>How does easydss use go fastdfs distributed file servers to reduce service pressure?

How does easydss use go fastdfs distributed file servers to reduce service pressure?

2022-06-24 10:44:00 Tsingsee green rhino video

EasyDSS As RTMP Protocol video platform , In the case of multi-channel video stream access , The pressure ratio of video rotation EasyNVR、EasyGBS Much more . To slow down EasyDSS This kind of pressure , We decided to use a distributed transcoding server , At this time, you need to use a distributed file server . For this demand , We intend to adopt go-fastdfs.

go-fastdfs yes github The last one was based on http Distributed file system of protocol , Distributed deployment can be realized , Ready to use . As a very easy-to-use file server ,go-fastdfs Use pure Go Language writing , The design is very simple, which makes its operation, maintenance and expansion easier , It has high performance 、 Highly reliable 、 No center 、 Maintenance free, etc , Support multi platform installation , Include Windows,Linux,Docker Such as platform .

Git Address :https://github.com/sjqzhang/go-fastdfs

Go Code usage examples

Go The end can use http Request mode upload / Download and delete files :

Upload file example :

Download sample files :

Delete file example :

EasyDSS There is no need to install plug-ins to watch video streaming live broadcast on the video platform , Web pages can be played directly , Enter the platform through the browser to configure , For users , Convenient and controllable , There is no need to build another server , Have a great advantage .

Play a RTMP Protocol streaming media needs to go through the following steps : handshake , Set up a network connection , Set up network flow 、 Play . Only one network connection can be established between the server and the client , But based on this connection, you can create many network flows , This is also RTMP A feature of Streaming Protocol . Because many project teams have requirements for streaming , Therefore, we often encounter these situations , I will introduce you EasyDSS, That is, a streaming media server suitable for streaming platform . So if you have similar needs , Welcome to learn or test .

原网站

版权声明
本文为[Tsingsee green rhino video]所创,转载请带上原文链接,感谢
https://yzsam.com/2021/06/20210618190514482d.html