title: Elasticsearch and .NET
body: <p>We're considering to switch from Solr/Solr.net to Elasticsearch. We started with <a href="http://nest.azurewebsites.net/" rel="noreferrer">NEST</a>. We have only 4 documents in search index.</p>
  <pre><code>private static void Main(string[] args)
  {
      var node = new Uri(&quot;http://localhost:9200&quot;);
      var settings = new ConnectionSettings(
          node, &quot;my-application&quot;);
  
      var client = new ElasticClient(settings);
  
      var stopwatch = Stopwatch.StartNew();
      var sr = client.Get&lt;Movie&gt;(1);
  
      Console.WriteLine(stopwatch.ElapsedMilliseconds);
  }
  </code></pre>
  <p>The code above takes approx. 250ms, while the same code with <code>HttpClient</code> and <code>JsonSerializer</code> takes 30-45ms. 250ms is too much time for just 4 documents.</p>
  <p>Can NEST be used on high-traffic news website, or do you recommend <code>HttpClient</code> + <code>JsonSerializer</code> combo? The search page was the most visited page on our website in 2013.</p>
  <p>Thanks in advance.</p>