Z
Z
zvonok13372019-02-14 07:57:24
Mobile development
zvonok1337, 2019-02-14 07:57:24

How to update the chat in the mobile app?

Greetings
There is an application with dialogs between users 1 on 1. How can I update the dialog with a minimum expenditure of server resources when the chat tab is open?
For example, like in VK, the dialog is open and updates in the dialog come immediately (well, almost, a couple of seconds delay)
Can I use longpoll? maybe a websocket?
Maybe there is something else that I missed?
Maybe there is some ready-made solution?
How to distribute the load if there are many connections? (theoretically assume 100.000 - 1.000.000 active customers)
I won't go into details, I'll just be extremely grateful for your opinion on how you would organize the update of new messages and changing the status of sent

Answer the question

In order to leave comments, you need to log in

2 answer(s)
O
Oleg, 2019-02-14
@zvonok1337

Telegram sources are open

D
davidnum95, 2019-02-14
@davidnum95

For mobile phones, fcm is enough

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question