educative.io

Push notifications vs long polling

How can we efficiently implement the Notification service? We can either use HTTP long polling or push notifications. This is what has been written. However push notifications is not any technology and it can be implemented using long polling or web sockets. So is this an error the way it has been phrased?

Hey Pramod_Kankure!
It means we can implement the notification service using pull or push notifications.
In HTTP Long Polling, the server responds only if any new message is available or a timeout threshold is reached.
In push notification, the request is initiated without the client asked for it.
Thank you for asking the question. We hope Educative has inspired you to further your learning.