Skip to content

SearchClient Lifetime Guidance #869

@HeyJoel

Description

@HeyJoel

I'm trying to work out what the recommended lifetime of an SearchClient instance is, but can't find it in the docs or issues anywhere. It looks like internally there is a new instance of HttpClient created per SearchClient, so given the MS guidance on HttpClient lifetime management it looks like the best option is to use a singleton / static SearchClient instance. Is that correct?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions