@intervention Real time doesn’t have to be real time. A message doesn’t need to be in User B’s chat the exact nanosecond User A presses the send button. User B doesn’t know the exact nanosecond the message was sent; they just get a notification, read the message, reply, and so on.
An Issue Related to A Real-time Chat App in Laravel
I'm currently developing a real-time Android chat application with Java (front-end) and Laravel (back-end). As this app is expected to have real-time features in terms of chatting, I don't expect any delay for transferring messages between users. As a rule, in my app, users have to verify their account tokens first in order to send messages in real-time, and besides that, messages should also be saved to the database. However, due to the delay of database operations in this process (for instance, verifying tokens), there'll be some delay in transferring messages in real-time. What can be a suitable approach for this issue? Will it be a correct approach to allow sending messages directly without verifying tokens? In short, I don't want any delay or want very little delay for my real-time chat app; what can be a solution for my issue? Thanks...
Please or to participate in this conversation.