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.
YouTube Product Review Video Category: Content Creation, Video Ads, Video Editing, Video Post Editing, Video Production, Video Services, Video Streaming, Videography Budget: $250 - $750 AUD
23-Oct-2025 22:04 GMT
Modern Home Interior 3D Visualization Category: 3D Animation, 3D Modelling, 3D Rendering, 3D Studio Max, 3D Visualization, 3ds Max, Blender, Interior Design Budget: £20 - £250 GBP
23-Oct-2025 22:02 GMT
Steering System Go-to-Market Consulting Category: Business Consulting, Business Development, Consulting, Data Analysis, Logistics, Market Research, Marketing Strategy, Product Development, Project Management, Supplier Sourcing Budget: £250 - £750 GBP
23-Oct-2025 22:00 GMT
Veteran Story Interview Series Category: Audio Services, Video Conferencing, Video Editing, Video Hardware, Video Production, Video Services, Video Streaming Budget: $3000 - $5000 USD
23-Oct-2025 22:00 GMT
Swiss Business Lead Generation Category: Business Analysis, Data Entry, Excel, Lead Generation, Leads, Market Research, Sales, Web Search Budget: $30 - $250 USD
Ongoing STEP/CAD File Refresh and Minor Modification Category: 2D Drafting, 3D CAD, 3D Design, AutoCAD, Autodesk, Industrial Design, Industrial Engineering, Machinery, Mechanical Design, Solidworks Budget: $8 - $15 CAD
23-Oct-2025 21:58 GMT
PDF Creation with Pictures Category: Data Entry, Graphic Design, Image Processing, PDF, Photoshop, Project Management, Technical Writing, Visual Design Budget: $10 - $30 USD
23-Oct-2025 21:57 GMT
Google Sheets INDEX-MATCH Setup Category: Data Analysis, Data Management, Data Processing, Data Visualization, Excel, Google Sheets, Visual Basic Budget: $15 - $25 USD
ROK Assurances Campaign Category: Facebook Marketing, Graphic Design, Internet Marketing, Logo Design, Social Media Marketing Budget: $15 - $25 CAD
23-Oct-2025 21:48 GMT
Protein Phylogenetic Tree Construction Category: Bioinformatics, Computational Analysis, Data Analysis, Infographic And Powerpoint Slide Designing, PDF, Software Documentation Budget: $30 - $250 AUD
23-Oct-2025 21:47 GMT
SharePoint Task Automation with Power Tools Category: .NET, ASP.NET, C#, Programming, Data Visualization, Power Automate, Power BI, Project Management, Sharepoint Budget: $25 - $70 USD