19 Comments
User's avatar
Jade Wilson's avatar

I love how you tie the different user's into this, it makes for a great read. Thanks for sharing🙏🙌

Neo Kim's avatar

thanks, Jade.

Osinachi Okpara's avatar

Basically, the algorithm of...love! 😅

Neo Kim's avatar

that's one way to say it.

Duke's avatar

Can you talk more or link an article that discusses deeper into how the Likes Cache works? Like a bit into what kind of data the Likes Cache store, thank you!

Neo Kim's avatar

I think Likes cache would have a hash set data structure to store the profiles liked by a specific person. So it's easy to find a match when both people like each other in real time.

Sid's avatar

Isn't 20 billion matches a lot per day? The math doesn't add up there

Neo Kim's avatar

I think you're right, looks like I misinterpreted the numbers - it might be 20b matches a week or a month.

Anand's avatar

Hi, is tinder not storing the disliked (left swiped) information ? Otherwise, how will tinder know to not show the profile again to the user ?

Neo Kim's avatar

They do put the disliked profiles in S3 storage for extra data analysis. It's possible they store it in a cache or a data structure to prevent showing the same profile twice.

Anand's avatar

Won't that require too much storage ? Storing all the pairs of likes and dislikes ? That is order of O(n^2). That's too much memory required ? How is tinder solving for that ?

Neo Kim's avatar

I'd assume they store the 'profile ID' in a hash data structure on the cache server.

Or it could also be a probabilistic data structure like bloom filter.

Yet I don't think the space complexity is O(n^2), probably each person dislikes a limited number of people compared to the total users of Tinder.

Fran Soto's avatar

Great one, it was interesting to see a data-centric perspective of processing the multiple flows: Swipes, matches, location indexing...

Neo Kim's avatar

thanks, Fran.

Sanyam's avatar

1.6Billion daily swipes are a lot.....like 16M DAU?

Petr K's avatar

I would love to send one-time money to you, how do I do that? I see only recurring payments :-)

Neo Kim's avatar

currently everything is free, you could pledge a recurring payment to show support though.

Petr K's avatar

I see. Though like I said - I would like to send money once or be able to customize recurring payment. None it is currently possible unfortunately :-)

User's avatar
Comment deleted
Mar 19, 2024
Comment deleted
Neo Kim's avatar

thank you for the feedback, Cesar.