[Translator's Note] adult sites tend to be large Internet traffic, typical of high concurrency, thus improving its performance is very critical. Before translated article\u003e 'adult website performance up to 20 times the experience to talk about,' also talked about the adult sites through clever use RTMP protocol, epoll Air Jordan 12 mechanism and improve some of the Python language performance practice performance, this article focuses on the use Redis as back-end data storage to improve the operational efficiency of web development case. Two articles are a student editor Bole online after seeing the HN Tell me, have to say, it really is editor classmates eyes, presumably he has a deep knowledge of research for adult sites. I expect the next time he'll find some information on how to hack adult site VIP account of articles for the benefit of our readers, please readers a lot of support editing students work. The following is a translation: (Company YouPorn and adult sites like Pornhub behind) RedisToGo Justin (Justin) recently Manwin Group IT Director Eric (Eric Pickup) do an interview. In the interview, Eric tells them to Redis migration process, why should such a migration, as well as the effectiveness of post-migration. For Redis interested friends can look at his 'Building a Web site is easy to expand the size' (Youtube) video. The following is an interview with Eric Justin. Justin: Can you talk about why you want to transition to Redis? Eric: basically this: about two years ago, we acquired the site (YouPorn). When it is written in Perl, which is why I was one of the reasons to recruit them. Although I've worked with Perl live, but we soon found using it maintains this site is not feasible. Perl developers inadequate, especially less ability of senior developers. So, if we continue to use Perl to maintain it, Nike shoes online it can only become a stagnant website, which is obviously we do not want to do. Soon, we decided to reconstruct the site and Air Jordan 10 began to research different technologies. In fact, our first reaction is PHP, but we do not want to limit myself to dwell too early, so we investigated the Java-based solutions. After the internal test we've done a lot of research and analysis techniques, we decided to stick with PHP. Previously, we have experimented with Redis, Varnish and other technologies. Some of our internal sites have begun to use Redis, mainly used for caching solution. But we also want to know whether we can use it as a real data storage platform to use. We did some early tests, and the performance as Air Max for Men a major factor in the decision, because it is (or 180-159220 Nike LeBron 7 VII Soldier White Black Running Shoes now) at the time one of our big problems. Our overall performance was very shocked Redis, after some discussion, we decided to use as the primary database Redis website. Prior to the site using traditional LAMP architecture Prepared. It uses Linux, Perl, MySQL and Memcached. Obviously there are some transition process difficult. Implementation process have a compromise: We reserve the MySQL in the schema, and afterwards I am really glad we did. Our site does not go directly to read the MySQL database, but we can do with it is similar to a new list or hash things like filling, and we do not foresee some of the features. We are more used 2013 Air Jordan 4 (IV) Retro to implement the existing MySQL data query, Redis is used sites. We started using it shortly after doing development, we soon think we made the right decision. Then after about a month of time to develop, we are ready to re-examine our decision, but soon felt no problem. It really is a very suitable for our application cases of technology. Justin: Why? In assessing whether it is a good decision on the issue, and you see what the main factors? Eric: Obviously, ease of development is a major factor, especially when you're like this, when the reconstruction of the entire project. Fortunately, Redis data structures and we are doing the job well matched. YouPorn fundamentally, the main is a list of videos and objects, whether comments, like, the most critically acclaimed films, or most viewed videos. These are lists and objects, apparently easily mapped to the hash table. We Nike Shoes Global also use some Air Max for Women other data type, but I have to say, we use about 90% will fall into an ordered set or hash structure. Justin: After the decision to use Redis, how long it takes to implement and bring into force a real place? Eric: To be honest, at that time we still improve team skills. Like I said, this is a new project, so in the initial stage is mainly just me and another person. I have to say, in about four weeks, we will make a considerable part of the website prototype. We do the home, all the main pages, as well as most of the video page. You can also view the comment - although at that time you can not increase the comment - a lot of things just two people to complete in just four weeks. The schedule also includes learning new framework (at that time with the Symphony), so that we are up and running quickly. Justin: Redis instance that you are using How many? Eric: I do not have specific numbers, but it should be less than 10. Justin: It's really impressive. How you do it with only so little? Eric: Over time, we continue to add features, Redis is also increasing the number of instances, but in general, we do a lot of caching Redis work. We first launched the site, we did not do caching. We just rely Air Jordan 1 on Redis itself. Over time, we found that our standards overburdened server running, so we started adding some level of caching. We deployed a second Redis node on the site, it is a very short time to handle the most popular cache page view. You must also understand that we also use the Varnish, which is located in the front-end Web server, so the page itself is also a considerable amount of cache, so we will not be cached on each page by Redis. Justin: You do making framework on time, you can talk about how you decide where to use Redis, there is no fix your decisions in the implementation process as well? Eric: I would say Redis is one we know they will use the popular technology. Varnish it and decided to use all of our early. Our test results are quite good, like I said, just before they used our company, so they are not unknown 2012 Cheap Nike Air Jordan 1 High Heels For Sale Beige Pink to us something. What say we amend it, the biggest change is the addition of Redis secondary cache layer. This reduces the Air Jordan 13 number of queries per second on the server, and make our network more secure. Justin: Do you think that after the implementation of what is the biggest benefit is? Eric: First, I would say that Redis brings the ability to quickly create powerful new features. In fact, I mean, not just Redis, but a complete development framework brought about, but we've written a very nice library Redis based on the above basic library, which enables us to quickly put new features into together. This is definitely the biggest advantage we have ever seen. (Compiled added: February 2012, YouPorn technician Eric Pickup declare their sites in Google Groups Redis DB Kang Zhu after the switch to 100 million page views per day PV, 300,000 requests per second, has insisted for two weeks.) Justin: What are some of the obstacles or difficulties in this migration is? Is there any customized stuff, then you have to figure out yourself to do it? Eric: I have to think about this. Caching layer took some time. Like I said, at that time a heavy burden on the server, and we do not want to put this question more and more servers, so to build a solution that took some time. The other is the need to spend time pondering some of the problems themselves. Today, Lebron James Shoes most use the Linux system to build the sites use MySQL as data storage. MySQL does have a huge advantage, it has a large number of documents. If you encounter a problem, maybe someone has already solved before that, Air Jordans Men's you will find a bunch of websites provide Nike Shoes appropriate information and advice. Redis is simply no such community. If you want to see other people that have been set to write things, such as what they learned, what settings they use, what their experience is, you will find very few such information. Difficult because only a few hints and tips, so the learning curve to overcome even more. Compared MySQL, Redis much less documentation, so look to seek solutions to the problems, or other simple things, such as setting to copy the disk, you need a little more time. However, due to the growing popularity of Redis, documentation and community are beginning to form. Justin: Do you have any tips or tricks would like our audience share? Eric: I want to say is the most valuable Air Jordan 11 experience in some of the most important, but I know not many. I'm not a system administrator, and most importantly, many of the basic system management are a class of things. I would say it is easy to miss a trick, when you set up to copy the disk, if your disk is a master-slave cluster, you should ensure that there is sufficient time difference between each instance, so you will not run into all instances are exactly the same time decided to write disk situation. This can easily be overlooked. When we start the server are operating normally, but later, when we add more servers, we keep the default settings, but later had to be repaired. This is one of a lot of people can benefit from the experience. I am a software developer, I would say that most real lesson is in the system management level. I do not have enough information to really explore these issues in depth. Justin: Great. Thank you for giving us such a great interview, I hope everything goes well Manwin Group! Eric: Thank you for the interview for me.adult website YouPorn experience Redis's talk