Polling vs Webhooks

Polling vs Webhooks

Sometimes, we need to notify or update another system after a certain interval or upon completing background processing jobs. In such situations, we either use webhooks or polling. Each method has its own use cases, advantages, and disadvantages. This blog post will explain the differences between polling and webhooks, along with their respective use cases, pros, and cons. What is Polling? Polling, also known as API polling, is a mechanism where the client repeatedly calls the server to check for updates or changes until it receives a response from the server....

March 13, 2024 · 4 min · 653 words · Prakash Bhandari
How to Send Slack Notification With Laravel ?

How to Send Slack Notification With Laravel?

In Laravel, each notification is represented by a single class that is typically stored in the app/Notifications directory. Don’t worry if you don’t see this directory in your application. It will be created for you when you run the below artisan command make:notification ie. php artisan make:notification TestNotification.php Laravel documentation on how to create notification https://laravel.com/docs/10.x/notifications Laravel notification can be used for many purpose as for example, sending SMS, Email etc....

May 17, 2023 · 2 min · 260 words · Prakash Bhandari