Slow Messaging

I’ve noticed that messaging is slow. I have an iOS application that updates an object in the database, and then an event handler that captures this update event and then sends out a message to all clients registered on a specific messaging channel. This entire process sometimes takes up to 5-6 seconds from point of starting the update request to receiving the message.

I localised the messaging portion by sending a message from the backendless messaging console and seeing how long it takes a client to receive it. It appears to take 2-3 seconds.

Is this normal or expected?

Matthew,

The current implementation is based on polling. For a message to arrive to a client, it polls to grab the latest messages, this adds some extra latency in processing. You might consider using silent push notifications for faster message delivery.

Regards,
Mark

Ok, that makes sense, thanks for the quick response. We will be sending a lot of messages so I don’t think push notifications would be a good idea. I think we’ll look into using Firebase in conjunction with the event handler.