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.
Word Report Formatting Needed Category: Editing, Microsoft Office, Microsoft Word, Proofreading, Report Writing, Typography, Visual Design, Word Budget: $15 - $25 USD
01-Aug-2025 16:03 GMT
Create an Educational Intro Video Category: Animation, Content Creation, Digital Marketing, Video Conferencing, Video Editing, Video Production, Video Services, Voice Over Budget: $10 - $50 USD
01-Aug-2025 16:03 GMT
A platform where you can get quick writing gigs Category: IPhone, Mobile App Development, Payment Processing, PHP, UI / User Interface, User Experience Research, Web Development, Web Design Budget: $30 - $250 CAD
01-Aug-2025 16:02 GMT
Creative Logo Design Specialist Category: Adobe Illustrator, Photoshop, Advertisement Design, Art Consulting, Branding, Creative Design, Graphic Design, Illustration, Logo Design Budget: $30 - $250 USD
01-Aug-2025 16:00 GMT
Personal Finance Excel Tracker Category: Accounting, Data Analysis, Data Management, Data Visualization, Excel, Finance, Financial Analysis, Financial Planning Budget: $12 - $30 SGD
Fast API Expert for Video Processing Category: After Effects, C++, Programming, FastAPI, OpenCV, Python, Video Processing, Video Production, Video Services Budget: ₹600 - ₹1500 INR
01-Aug-2025 15:57 GMT
UGC Video Editor for Social Media Category: Adobe Premiere Pro, Content Creation, Final Cut Pro, Social Media Marketing, Video Ads, Video Editing, Video Post Editing, Video Production, Video Services, Videography Budget: $250 - $750 USD
01-Aug-2025 15:57 GMT
Logo Animation Category: 2D Animation, Animation, Digital Art, Graphic Design, Logo Animation, Motion Graphics, Sound Effects, Video Editing Budget: $250 - $750 USD
01-Aug-2025 15:56 GMT
AI Talking Head Video Editor Category: Adobe Premiere Pro, After Effects, Explainer Videos, Facebook Marketing, HeyGen, Motion Graphics, Social Media Marketing, Video Editing, Video Production, Video Services Budget: $10 - $30 USD
01-Aug-2025 15:56 GMT
YouTube Video Editing Needed Category: Adobe Premiere Pro, Final Cut Pro, Video Editing, Video Post Editing, Video Production, Video Services, Videography, YouTube Budget: €12 - €18 EUR