send out 10,000 msg takes how long?

514 views
Skip to first unread message

Simon sim

unread,
Oct 7, 2011, 2:49:48 AM10/7/11
to apns-php
i need to send out 10k of msg within 1 minute, but i took more than 15
mins. have anyone tested to send out 10,000 msg with APNS-PHP? how
long it takes?

Aldo Armiento

unread,
Oct 7, 2011, 11:41:47 AM10/7/11
to apns-php
It's very strange, apns-php is usually very fast.

Please, try sample_push_many.php. On my test it took about 16 seconds
to send out 10k messages.

This is an extract of the log:

ri, 07 Oct 2011 17:37:48 +0200 ApnsPHP[3372]: INFO: Trying
ssl://gateway.sandbox.push.apple.com:2195...
Fri, 07 Oct 2011 17:37:48 +0200 ApnsPHP[3372]: INFO: Connected to
ssl://gateway.sandbox.push.apple.com:2195.
Fri, 07 Oct 2011 17:37:49 +0200 ApnsPHP[3372]: INFO: Sending messages
queue, run #1: 10000 message(s) left in queue.
Fri, 07 Oct 2011 17:37:49 +0200 ApnsPHP[3372]: STATUS: Sending message
ID 1 [custom identifier: Message-Badge-001] (1/3): 64 bytes.
Fri, 07 Oct 2011 17:37:49 +0200 ApnsPHP[3372]: STATUS: Sending message
ID 2 [custom identifier: Message-Badge-002] (1/3): 64 bytes.
Fri, 07 Oct 2011 17:37:49 +0200 ApnsPHP[3372]: STATUS: Sending message
ID 3 [custom identifier: Message-Badge-003] (1/3): 64 bytes.
[...]
Fri, 07 Oct 2011 17:38:03 +0200 ApnsPHP[3372]: STATUS: Sending message
ID 9998 [custom identifier: Message-Badge-9998] (1/3): 67 bytes.
Fri, 07 Oct 2011 17:38:03 +0200 ApnsPHP[3372]: STATUS: Sending message
ID 9999 [custom identifier: Message-Badge-9999] (1/3): 67 bytes.
Fri, 07 Oct 2011 17:38:03 +0200 ApnsPHP[3372]: STATUS: Sending message
ID 10000 [custom identifier: Message-Badge-10000] (1/3): 68 bytes.
Fri, 07 Oct 2011 17:38:04 +0200 ApnsPHP[3372]: INFO: Disconnected.
Reply all
Reply to author
Forward
0 new messages