Question on authentication latency
May I know how we could optimize the authentication latency? I've measured with our server and also Tigase.im, they took around 5 to 6 seconds to complete the authentication flow and retrieve offline messages. I know that Kik is also running with Tigase, however, I've tested with it (with app force stopped, no background service is running) It took only around 1 - 1.5 seconds to login and then retrieve all offline messages.
What sever settings should I look into in order to achieve a such quick connection? Thanks!
Added by Artur Hefczyc about 4 years ago
There are many factors to take into account:
Make sure you use the same client software for testing different servers, clients themselves introduce delays which may affect the login timing results
Kik does not use the whole XMPP protocol and omits some handshaking and requests at login time
Once you are on the same page with comparing different installations, you need to trace which part of the login take most of the time, is it DB bound or network bound....
To sum it up, I think improvements are possible but usually they are individual for each installation. So some investigation should be run to find out which parts take long time and which can be reduced.