---
title: "Using Basic Consume for DataSync Agent"
canonical: "https://docs.perspectium.com/space/helium/2114782/Using%20Basic%20Consume%20for%20DataSync%20Agent"
format: markdown
---
The DataSync Agent has a directive to poll for messages from the Integration Mesh that provides higher reliability when faced with connection problems as well as improved throughput when communicating over AMQPS. This directive should only be used for  AMQPS  connections and is configured by setting the following attribute to the  <message_connection>  tag:  use_basic_consume="true" Example of agent.xml configuration <?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
<config>
   <agent>
      <subscribe>
          <task>
             <task_name>example_subscribe</task_name>
             <message_connection use_basic_consume="true" user="XXXX" password="XXXX">amqps://example.perspectium.net</message_connection>
             ...
             ...
             ...
          </task>
      </subscribe>
 
      <max_reads_per_connect>4000</max_reads_per_connect>
      <polling_interval>5</polling_interval>
   </agent>
</config> Can't find what you're looking for?     See  the FAQ  or browse the  Perspectium Community Forum .