<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<tt>Hello all,<br>
<br>
I'm glad to let you know that a new feature is now available in
OpenSIPS 2.1 devel : the ability to perform, from script level,
various operations in the <b>asynchronous</b> mode.<br>
<br>
That's it: bye, bye I/O blocking !! Now you can run DB queries,
REST queries or external scripts without the blocking penalty !<br>
<br>
The OpenSIPS config file allows you to use certain functions in
async way (via a dedicated statement). The suspending and resuming
is done at script level. A detailed description of how the async
support works in 2.1 is available here:<br>
<a class="moz-txt-link-freetext" href="http://www.opensips.org/Documentation/Script-Async-2-1">http://www.opensips.org/Documentation/Script-Async-2-1</a><br>
<br>
The async scripting support is just the tip of the iceberg (when
comes to the work which has been done). To make this possible,
radical changes were implemented in OpenSIPS 2.1 (most of them
imported from OpenSIPS experimental branch):<br>
- per-process I/O reactors<br>
- timer jobs dispatched across all SIP workers (versus dedicated
timer procs)<br>
- updatable transactions in TM (to be able to use the
transactions as contexts for the async jump)<br>
- transaction based async support in TM module<br>
- processing context (to make it easier to suspend and resume
the script execution)<br>
<br>
And finally, the first modules providing async functions:<br>
- avpops for DB queries<br>
- exec for script execution<br>
- rest_client for REST queries<br>
<br>
Step by step, we will migrate all the functions performing I/O ops
to the async support.<br>
<br>
The async support is still in beta, it still needs to be heavily
tested, so any feedback and help from your side will be greatly
appreciated.<br>
<br>
In the meanwhile, welcome to the OpenSIPS Async World :)<br>
<br>
Best regards,<br>
</tt>
<pre class="moz-signature" cols="72">--
Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a></pre>
</body>
</html>