Asynchronous or Synchronous?

Asynchronous or Synchronous? SearchSearch
Author Message
Roshan Thapa
New member
Username: Roshan25

Post Number: 5
Registered: 11-2009
Posted on Tuesday, November 17, 2009 - 05:25 am:   

What connection mode is used by NowSMS; Synchronous or Asynchronous? Which one do you think is better and why?

I think Asynchronous is better because the ESME can still be running the other processes rather than waiting for the response. If we keep ESME waiting for the response, we are keeping the ESME idle. This time can be ustilised for running other useful processes.

What do you think? Your response are valuable.
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 1436
Registered: 08-2008
Posted on Tuesday, November 17, 2009 - 04:12 pm:   

Hi Roshan,

I assume you are talking about SMPP.

By default, NowSMS initiates a synchronous connection.

To enable asynchronous mode, you need to go into the "Properties" for the SMPP connection in the NowSMS "SMSC" list. Under "Advanced Settings", there is a configuration option to enable SMPP async mode and define a maximum window size.

Async vs. sync mode doesn't make much of a difference until you get into higher speeds.

You can get 3 to 5 messages per second without enabling async mode in most situations. (And in a lot of cases, you can go faster, but the latency of the connection between your system and the SMSC becomes an issue.)

Async mode removes latency from being an issue.

But in a lot of cases, when you use async mode, you have to be careful how fast you submit SMS messages. Most providers put a limit on your message throughput ... and what happens when you exceed this throughput can lead to unnecessary slowdowns and inability to use your max throughput. There is more discussion of this issue and configuration settings to control outbound SMSC sending speed at http://blog.nowsms.com/2008/06/smsc-speed-limits.html.

--
Des
NowSMS Support