Cache the client connection with ElasticSearch Nest so the first call to the client is fast -
i'm set suggestion search elasticsearch nest client. ideally i'd start matching of 2nd character entered. however, takes 600ms first time phone call client. every subsequent phone call more 20ms. there way cache or prepare nest client?
i've read post: elasticsearch , .net
i've read can either create new client or utilize same instance of client no repercussions.
i want client ready utilize before phone call user isn't waiting client validate itself.
for moment i'm making connection client user hits website, saving client reference in session. however, first search still slow though i've established connection. there way preload/cache connection delay occurs during page load?
the first nail cache built per appdomain. not need cache client itself. every client going instantiate after first nail going warm
.
i've opened working ticket able initiate warmup process in application startup no longer penalizing first user of scheme warmup costs.
https://github.com/elasticsearch/elasticsearch-net/issues/742
elasticsearch nest
No comments:
Post a Comment