Push notification

I have a group on which a number of students are registered. Now suppose I want to send a push notification to each student. Suppose 100 students. What is the best way to send them? Should it be on a thread? Currently I am just going through the array and sending the push to each student.

What if the number of students increase to 100000. Should I be using a background job for this?