I am developing a website using laravel 11 and would like to add to it the capability to send server-to-browser real time notifications or updates based on certain events.
The server sent event (sse) should, as much as possible, follow these criteria:
1- be based on laravel's real-time mechanisms (event broadcasting, controllers, redis, etc). 2- Public message to be sent to all authenticated users. 3- Private messages to be sent to users based on their $id. 4- The connection should be persistent, re-connects itself if it gets lost for any reason. 5- Favor "ShouldBroadcast" over "ShouldQueue", a worker should dispatch notifications every 60 seconds. 6- The front-end script to display a flash message upon message reception showing the message text. 7- No addition of livewire, alpine, vuejs, react or anything not strictly needed for SSE to work. 8- MOST importantly, the SSE structure should be robust enough to handle 30000 connected users. This includes (only if absolutely necessary) fine tuning nginx and php config settings.
To facilitate working on the project, and since I am using sqlite, I wrapped the whole thing in *.rar that can be downloaded from this link:
https://srv866294.hstgr.cloud/storage/sse.rar
The login page as well as the form to send notifications are already populated with existing users so that you can pick from when you login or after login, test public or private messages. The landing page form (which appears after login) to be used to simulate event triggering. I attach below some pics to give you an idea how it should look like.
Final note: the form in the landing page simulates event triggering by posting the variables to a controller, which would then use "event(new", "broadcast(new" or any applicable method.
Instagram Growth & Engagement Strategist Category: Content Creation, Content Marketing, Content Strategy, Digital Marketing, Facebook Marketing, Instagram Marketing, Internet Marketing, Social Media Management, Social Media Marketing, Twitter Budget: $10 - $30 USD
18 Aug 2025 16:01 GMT
Odoo Install on Google Cloud Category: Cloud Computing, Debian, Linux, Odoo, Python, System Admin, System Administration, Ubuntu Budget: $10 - $30 USD
18 Aug 2025 16:01 GMT
Engaging Social Media Content Pack Category: Photoshop, Content Creation, Copywriting, Graphic Design, Illustration, Photoshop Design, Social Media Management, Social Media Marketing, Video Editing Budget: £10 - £200 GBP
18 Aug 2025 16:00 GMT
Friendly Food & Kitchen Blog Articles Category: Article Writing, Blog, Blog Writing, Content Writing, Creative Writing, Ghostwriting, Research, SEO Writing Budget: $250 - $750 AUD
18 Aug 2025 16:00 GMT
MySQL Data Cleaning Specialist Category: Data Analysis, Data Entry, Data Management, Data Processing, Database Administration, Database Programming, MySQL, PHP, Python Budget: ₹1500 - ₹12500 INR
18 Aug 2025 16:00 GMT
Retro Radio Logo Design Category: Adobe Illustrator, Branding, Creative Design, Graphic Design, Illustration, Logo Design, Photoshop Budget: $10 - $30 USD
18 Aug 2025 15:58 GMT
Logo to DXF Conversion Category: 2D Drafting, 3D Design, 3D Modelling, 3D Rendering, AutoCAD, CAD / CAM, Graphic Design, Solidworks Budget: $10 - $30 USD
18 Aug 2025 15:57 GMT
Technical SEO for Product Pages Category: Internet Marketing, Link Building, Marketing, Search Engine Marketing (SEM), SEO, SEO Auditing, Website Analytics, Website Optimization Budget: $30 - $250 USD
Virtual Assistant Needed for Simple Tasks Category: Admin Support, Customer Service, Customer Support, Data Entry, Data Management, Excel, Typing, Virtual Assistant Budget: ₹12500 - ₹37500 INR
18 Aug 2025 15:56 GMT
Business Startup Blueprint Category: Business Analysis, Business Consulting, Business Development, Business Plan Writing, Business Plans, Market Research, Marketing, Marketing Strategy Budget: min $100000 USD