I have 100,000 users and they suscribe for the alerts . I created a webpart , and created code where a user can suscribe for alerts and it sets the alert on the document library .
My requirement is i need to pull alerts and display top 5 suscribed alerts for a list item for particular user by creation date. What is efficent code example where i can pull alerts easily without much delay ? (Assume all 100,000 users have suscribed for alerts ) Is rest api , CSOM or server side best ? I am not sure if we have apis for alerts.