I know that exists similar questions on site, but I confused because http
and xmpp
have difference limit:
this page say differences between http
and xmpp
.
first limit is [xmpp
& http
]: up to 4KB of data
second limit is:
http
: You can send out a message to 1000 users at a time. (ref)
xmpp
: For each sender ID, GCM allows 1000 connections in parallel. (ref)
You can send out a message to 1000 users at a time. so if you have more users you'll have to send the message multiple times from your server but to different users each time (ref)
third limit is:
http
: I couldn't found this limit in android developer:
There is a limit on how many messages can be stored without collapsing. That limit is currently 100. If the limit is reached, all stored messages are discarded. Then when the device is back online, it receives a special message indicating that the limit was reached. The application can then handle the situation properly, typically by requesting a full sync. (ref)
xmpp
:
Every message sent to CCS receives either an ACK or a NACK response. Messages that haven't received one of these responses are considered pending. If the pending message count reaches 100, the app server should stop sending new messages and wait for CCS to acknowledge some of the existing pending messages (ref)
my questions:
1.in second limit, if we use http method and have 2000 users, should we send message twice, every time to 1000 users?, can we do it?
2.xmpp
can not support multicast messaging, can we use topic for multicast in xmpp
?
- any limit on broadcast messaging by topics? (except ref)
4.in third limit, if i send a message to 300 users, and One hundred top users be offline, do they recieve message
or any notification
when come back and online? (note: use broadcast for http
and loop for xmpp
)
do this limit effect in topic way ?
do exists any difference in third limit between
http
andxmpp
?
7.exists other limit in http
or xmpp
?