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.
Discord Bot for Xbox Spamming Category: API Development, Automation, Bot Development, C#, Programming, C++, Discord API, PHP, Software Architecture Budget: $30 - $250 USD
24-Aug-2025 03:59 GMT
Secure Rolling Stone Feature Publication Category: Article Writing, Editing, Editorial Writing, Forum Posting, Marketing, Media Relations, Media Sales, Press Releases, Public Relations, Technical Writing Budget: $10 - $30 CAD
24-Aug-2025 03:58 GMT
Engaging Instagram Video Ads Category: Facebook Marketing, Instagram Marketing, Social Media Marketing, Twitter, Video Ads, Video Editing, Video Production, Video Services Budget: ₹1500 - ₹12500 INR
24-Aug-2025 03:58 GMT
Realistic Wolf Drawing with Quote Category: 2D Drawing, Art Consulting, Character Illustration, Graphic Design, Illustration, Tattoo Design Budget: $30 - $250 AUD
24-Aug-2025 03:58 GMT
Realistic Wolf Tattoo Design Category: Art Consulting, Caricature & Cartoons, Character Illustration, Drawing Artist, Fashion Design, Graphic Design, Illustration, Tattoo Design Budget: $250 - $750 AUD
Construction Project Document Review Category: Compliance, Construction, Construction Management, Contract Management, Legal, Project Management, Real Estate, Real Estate Management, Risk Management Budget: $750 - $1500 USD
24-Aug-2025 03:56 GMT
Organic SEO Specialist Needed Category: Analytics, Content Marketing, Digital Marketing, Internet Marketing, Keyword Research, Link Building, Marketing, SEO Budget: $10 - $30 USD
24-Aug-2025 03:54 GMT
Skool Group Content Scraper Category: API, Automation, Data Extraction, Data Processing, Data Scraping, PHP, Web Scraping Budget: $30 - $250 AUD
AI-Enabled Offline Transcription Android App Category: AI Development, AI Model Integration, AI Text To Speech, Android, Android App Development, Flutter, Full Stack Development, Mobile App Development Budget: $30 - $250 USD
24-Aug-2025 03:52 GMT
Crowdfunding Campaign Specialist Needed Category: Content Creation, Content Marketing, Crowdfunding, Digital Marketing, Facebook Marketing, Fundraising, Internet Marketing, Marketing, Social Media Marketing Budget: $250 - $750 USD
24-Aug-2025 03:52 GMT
Find Freelance Photography Gigs Category: Content Writing, Creative Writing, Email Marketing, Freelance, Lead Generation, Market Research, Photography, Social Media Marketing Budget: $15 - $25 USD
24-Aug-2025 03:52 GMT
Stickman Action Game Needed Category: 2D Game Art, Animation, Game Design, Game Development, Game Testing, HTML5, JavaScript, Unity 3D Budget: ₹12500 - ₹37500 INR