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.
Modernize WP Site Category: HTML, PHP, UI / User Interface, Web Design, Web Development, WordPress Budget: $250 - $750 USD
02-Sep-2025 22:00 GMT
AI NLP Model with SQL Integration Category: Data Science, FastAPI, Machine Learning (ML), Model Deployment, MySQL, Natural Language Processing, Python, SQL, SQLite Budget: $8 - $15 USD
02-Sep-2025 22:00 GMT
Wikipedia Page Data Entry Category: Article Rewriting, Content Writing, Copy Editing, Editing, Proofreading, Research, WIKI, Wikipedia Budget: $250 - $750 USD
Interior Design for Madrid Home Category: 3D Rendering, Building Architecture, Home Design, Interior Design, Interiors, Lighting Design, Project Management Budget: €750 - €1500 EUR
02-Sep-2025 21:58 GMT
Figma to React Website Conversion Category: Animation, CSS, Figma, Frontend Development, HTML, HTML5, JavaScript, User Interface / IA, Web Design, Web Development Budget: $30 - $250 CAD
02-Sep-2025 21:57 GMT
Penerjemah Mandarin-Indonesia Jogja Category: Customer Service, Indonesian Translator, Language Tutoring, Public Speaking, Translation Budget: $250 - $750 USD
02-Sep-2025 21:56 GMT
Dropshipping Guide Article Creation Category: Afrikaans Translator, Article Writing, Content Writing, Copywriting, Dropshipping, Facebook Marketing, Instagram Marketing, Social Media Marketing, Translation, Video Services Budget: $10 - $30 USD
02-Sep-2025 21:56 GMT
Business Document text correction Category: Copy Editing, Editing, English Grammar, Microsoft Word, Proofreading, Typing Budget: £250 - £750 GBP