c# - SqlDependency vs constant polling of a SQL Server database -
i working on email application have monitor table new record inserts , send email notification each row. right changes (inserts) @ low rate become more.
initially thinking using sql server job query every 3-5 mins , looked sqldependency not sure whether sql dependency / query notification correct option requirement.
if there's insert every minute polling table every 1 min vs every 3-5 mins. understand using sqldependency can notification instantly , send email notifications don't want become performance impact polling often. there 10k inserts within minute , not sure congestion between other job , sqldependency.
i thinking going sql server job polling @ predefined intervals. thoughts or suggestions? pretty sure should have faced same situation before. appreciate feedback. thanks
one more question during peak periods it's ok poll table every 1 minute or after query notification happens records gets inserted during processing (select/send emails/update). assuming not notified until next record gets inserted correct?
Comments
Post a Comment