Frequency of notifications and grouping on web

I have questions around the logic of grouping notifications.

How does Medium or Facebook treat large amounts of likes and comments?

How does it work if a user gets 100 likes in a specific timeframe?

What's the standard practice with dealing with these?