We plan to move from Solr / Solr.net to Elasticsearch. We started with NEST . We have only 4 documents in the search index.
private static void Main(string[] args) { var node = new Uri("http://localhost:9200"); var settings = new ConnectionSettings( node, "my-application"); var client = new ElasticClient(settings); var stopwatch = Stopwatch.StartNew(); var sr = client.Get<Movie>(1); Console.WriteLine(stopwatch.ElapsedMilliseconds); }
The above code takes approx. 250 ms, while the same code with HttpClient and JsonSerializer takes 30-45 ms. 250 ms - too much time for just 4 documents.
Is it possible to use NEST on a high-traffic news website, or do you recommend the HttpClient + JsonSerializer combo? The search page was the most visited page on our website in 2013.
Thanks in advance.
source share