Laravel 8 One to One messaging, any suggestions?

Hello I would like to implement a real-time one to one messaging system between the users of my application. The estimated amount of users is 10000. I don’t want to use web sockets or any other similar solution. I also use livewire for other features. I though of creating this using ajax polling and refresh the messages every 10 seconds but I assume that this way would not be efficient and may slow down my application’s performance.

Do you have any suggestions on how can I achieve a real-time one to one messaging system?

Answer

Laravel Websockets is your friend 😉