title: Best pratice ro handle Indy TCP Server execute in Delphi Xe3
body: <p>When receiving data from a indy TCPServers execute method i generally handle it by reading the data by doing the following:</p>
  
  <pre><code>AContext.Connection.IOHandler.ReadLn;
  </code></pre>
  
  <p>and then process the data in the execute method. Most of the data that comes through are small JSon strings.</p>
  
  <p>In the future i will need to handle larger data chunks and was wondering what the best pratice is to do so?</p>
  
  <p>Is it a good idea to add the incoming data to a TidContext class and process it using some worker thread? Any thoughts or code samples would be appreciated. I use Indy 10 and Delphi XE3</p>