However, when we made improvements to our hot spots, we were able to make a huge difference. If we tried to optimize sections of the code that weren’t run many times, we didn’t make much of an impact in our latency. What we learned is that our code base had some hot spots in it: some sections of the code were run over 50 times per Blend generation, while other sections of the code were only run once. We spent a lot of time trying to make the service as fast as possible. Once we were happy with Blend quality, and started to think about scaling the service, we realized how bad our latency had gotten while iterating on the algorithm. When we tried to come up with the best algorithm, we weren’t so concerned about our latency. We needed an approach that worked for both types of pairs, while also taking into consideration how any changes to the Blend algorithm impacts all combinations of users.īetween fetching data for both users in the Blend, and trying to come up with the ideal sequence balancing for all of our attributes, creating a Blend is a pretty heavy process. However, if we have two users with no common music listening history, it’s significantly more difficult to create a perfect Blend. It’s a bit simpler to create a Blend with users with similar taste since they listen to a lot of the same music. This decision was made based on feedback from employees and our data curation team. Our solution is more about maximizing the joy, where we try to select the songs that are most personally relevant to a user. “Maximize the joy” values relevance over democratic and coherent attributes. In other words, is it better to pick everyone’s favorite tracks, even if other people in the group wouldn’t like them, or is it better to pick the tracks that everyone is likely to like, even if their favorite songs never get selected? “Minimize the misery” is valuing democratic and coherent attributes over relevance. One of the core decisions we made for this product was whether it was better to “minimize the misery” or “maximize the joy”.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |