Notifications: Performance issues at scale?

Avatar

Avatar

Gdubz-57m2mu

Avatar

Gdubz-57m2mu

Gdubz-57m2mu

30-01-2017

Did some local testing and noticed that if, for example, 3 people are following a blog post and someone leaves a comment, there are 5 Mongo documents created:

  • 1x Comment
  • 1x Activity, for the user who commented
  • 3x Notifications, for each user following this blog post

What happens if we had, again just for example, 15,000 users following a blog post...!

  1. Would that generate 15,002 Mongo documents each time a comment was posted?
  2. Would this slow down the time it takes to post each comment?
  3. Couldn't this quickly get out of hand, if you had a large number of blog posts that users were actively following and commenting on?

Version: AEM 6.2 with Communities FP1 & FP2
SRP Config: Mongo DB SRP (MSRP)

View Entire Topic

Avatar

Avatar

Gdubz-57m2mu

Avatar

Gdubz-57m2mu

Gdubz-57m2mu

31-01-2017

Thank you so much for the reply, Dan. Makes a bit more sense after reading a couple articles on it.

For anyone else that may come across this post in the future, this is the article I found, and the links that it contains: