Skip to content

Document recommended usage patterns for creating and reusing CDP SDK clients #530

@simmer-rulers

Description

@simmer-rulers

Overview

The CDP SDK requires creating a client instance, but the documentation does not clearly explain how that client should be managed across different application lifecycles.

Problem Description

Developers may be unsure whether a single client instance should be reused, recreated per request, or scoped to a specific environment. This uncertainty can lead to inefficient patterns or unnecessary complexity in real-world applications.

Expected Behavior

The documentation should clearly outline recommended client usage patterns for common environments such as long-lived services and request-based runtimes.

Proposed Solution

Add a concise documentation section describing how and when to reuse CDP SDK client instances, including basic guidance for concurrency and environment separation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions