Source: johnbraun.blog

Refactoring to Livewire polling

Category: Laravel

I recently started my first developer job at Enrise and my colleague Jeroen Groenendijk asked me if I wanted to participate in a side project he was planning. In this blog post I want to show how we refactored our event-driven approach using WebSockets to using Livewire's polling mechanism (see docs). Before diving in, I'd like to mention the articles by Freek Van der Herten which sparked my interest: Replacing web sockets with Livewire and Building a realtime dashboard (2020 edition).

To this extend, we've created three Livewire components: I'll highlight the changes made to the Livewire component responsible for showing the cards and saving the estimation (#3 on the list).

Why and how we refactored to Livewire polling and replaced the event-driven WebSockets approach johnbraun.blog/posts/refactor…
Newsletter

Get the latest Laravel/PHP jobs, events and curated articles straight to your inbox, once a week

Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge. Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge.
Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Shirts painstakingly handcrafted by under-caffeinated developers. Shirts painstakingly handcrafted by under-caffeinated developers.
Community Partners