title: Pushing events greater then 256KB to Azure EventHub
body: <p>I am using <strong>Azure Event Hub</strong>. I am planning to send events and use <strong>SendBatchAsync</strong>. I see that Event Hub has a limit of <strong>256KB</strong> <em>(whether sending individually or in Batch)</em> </p>
  
  <p>So, if my <strong>data is > 256KB</strong>, what is the <strong>best practice</strong> to handle this? Should we instead send message individually (which will guarantee that it is &lt; 256KB) ?</p>
  
  <p>Also, how would one split the event in 256KB chunks and send to Event Hub? 
  I looked at Azure documentation and see they recommend to use <strong>EventHubClient.CreateBatch</strong> but I don't see enough examples. Can someone provide with some mockups or sample or steps needed  in how we would end up splitting into 256KB and SendBatchAsync</p>
  
  <p>Here is what I do (but dont factor for 256KB limit)</p>
  
  <pre><code>await myEventHubClient.SendBatchAsync(
      events.Select( 
          iEvent =&gt;
              new EventData(
                  Encoding.UTF8.GetBytes(JsonConvert.SerializeObject( iEvent ) ) ) ) );
  </code></pre>