Golang High performance practices in the video live platform

Source: Internet
Author: User
This is a creation in Article, where the information may have evolved or changed.

http://toutiao.com/i6256894054273909249/

Panda TV is a live video platform, the first introduction of our system operating environment, the following 6 services are just a part of our dozens of services, due to the high concurrency and importance, so become Golang small trial sledgehammer the first high-performance high concurrency services. Golang's high-performance practices (including PPT downloads) in the live video platform have been streamlined, then serviced and deployed independently, making it easier to deploy, and easy to optimize and upgrade with a single point of detail. The capabilities of most services are common, such as smooth restart, multi-engine room deployment, and so on. Golang High-performance practice in the video live platform (including ppt download) about online Services, if 10 million users online, even if every 30 seconds online http send a dot, then there are 300,000 + interface QPS per second. Golang provides HTTP server performance is very good, a general engineer if the single virtual machine to support 1w-2w per second of the volume of requests, then only 10-20 backend servers. With other non-high-performance languages, the required machine can be doubled several times, C + + performance is sufficient, but the engineers are demanding. Golang High-performance practice in the video live platform (including ppt download) room service is the main service, the need for core protection, so the room service inside the section, a fine-grained split. The content of the room information changes frequently also uses the independent storage, such as the number of people counting fields, the disadvantage is that each time to go to the room information will bring an additional number of visitors to the cost of service. This is one of the tradeoffs that architectural design requires. Golang in the video live platform of high-performance practice (including PPT download) gift system is the standard of most video live platform, the domestic gift consumption habits of local tyrants many, peak gifts of the concurrency is very large, especially a lot of local tyrants on the brush. The gift system has a slightly higher consistency requirement, so it is also an option to keep a single copy of the data to build multiple indexes, as well as to reduce the dependency on the transaction. Golang High-performance practice in video live platform (including ppt download) The interactive mode is a very good experience, more youthful, a large number of users like to interact with the host in this way. Domestic network situation is more complex, preferably according to the user location to select the nearest corresponding operator of the single-line computer room access to the bomb screen message service, so that the barrage more timely. You can also use a BGP room, but the network bandwidth price will be much more expensive than a single line. For large rooms, the message volume is particularly large, the host and users are not able to see, in the product strategy level can do some experience on the optimization. Golang High Performance practice in video live platform (including ppt download) The video live experience is the most critical point of the whole platform, video CDN is a kind of technology that allows users to obtain the required streaming media, and solve the delay, lag and other problems. From a technical point of view do not rely only on a CDN provider or line, many of the industry's video live platform has made a pull-stream line, push-stream video (transcoding, forwarding) cluster is also an optimized point, and doing this is a redundant partial push-flow resource, but the experience and high availability of optimized live streaming are obvious. Golang's high performance practice in the video live platform (including ppt download) contains the free Business logic interface Proxy service, which is a public service for many companies, which can provide the intranet service with low cost to the extranet. However, we need to consider the external network security policy, including authorization authentication, service relationship mapping, frequency limitation, business resource isolation and so on. Golang in the high-performance practice of the video live platform (including PPT download) can see the last is definitely interested in our technology and business friends, Panda TV Technical team is recruiting Golang engineers, all equipped with high-quality computer and DELL dual-screen large-screen display, and provide a challenging technology environment. Interested friends please sweep code into (also have a lot of PHP, front-end, operation, DBA and other technical posts).

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.