# How to set asynchronous communication in DSLite

**URL:** <https://datashield.discourse.group/t/how-to-set-asynchronous-communication-in-dslite/542>\
**Category:** Developer support\
**Created:** [14 April 2022 11:03 UTC](https://datashield.discourse.group/t/how-to-set-asynchronous-communication-in-dslite/542 "2022-04-14T11:03:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![HankCao](https://avatars.discourse-cdn.com/v4/letter/h/b782af/32.png) [@HankCao](https://datashield.discourse.group/u/HankCao)\
**Post date:** [14 April 2022 11:03 UTC](https://datashield.discourse.group/t/how-to-set-asynchronous-communication-in-dslite/542/1 "2022-04-14T11:03:18Z")

</div>

Dear all,

I was testing the time consumption of a method running with 1~10 servers with DSLite. Since DataSHIELD client received the replies in an asynchronous way, so I imagine the time spent is “log shape”. However, it is very linear. see below

![image](https://global.discourse-cdn.com/free1/uploads/datashield1/original/1X/d2c03a7c637380f55989a2199ba9509685941b71.png)

After checking, the number of network access for a given number of servers is constant, this implied that DataSHIELD received the replies in order, not really asynchronous…

Does this mean DSLite does not have the ability to simulate the real network latency? How can I use the asynchronous option in DSLite?

Regards, hank

---

<div class="post-metadata">

**Author:** ![yannick](https://yyz2.discourse-cdn.com/free1/user_avatar/datashield.discourse.group/yannick/32/19_2.png) [@yannick](https://datashield.discourse.group/u/yannick)\
**Post date:** [14 April 2022 11:39 UTC](https://datashield.discourse.group/t/how-to-set-asynchronous-communication-in-dslite/542/2 "2022-04-14T11:39:50Z")

</div>

Hi,

DSLite is the only DS backend that **does not support async** execution, because plain R is single threaded. Whether a DS backend supports async is implementation specific and higher level DSI functions (datashield.aggregate and datashield.assign) will adapt their behavior to this.

Regards  
Yannick
