Skip to content

Implement worker thread for notification service#8

Draft
sulaiman2909 wants to merge 2 commits into
entgra:masterfrom
sulaiman2909:notification-11094
Draft

Implement worker thread for notification service#8
sulaiman2909 wants to merge 2 commits into
entgra:masterfrom
sulaiman2909:notification-11094

Conversation

@sulaiman2909

Copy link
Copy Markdown
Contributor

Worker Thread Implmentation for Notification Service

  • Created the NotificationWorker class to process notifications asynchronously.
  • Used a LinkedBlockingQueue to queue incoming notification tasks.
  • Set up a ThreadPoolExecutor to handle notifications concurrently.
  • Added logic to ensure that worker thread is initialized only once to minimize unnecessary runtime of the notification service from the moment of login until a notification is triggered.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant