Logo icon
    • Contents
    • Quick start
    • Concepts
    • Cluster Administration
    • For Application Developers
    • For Analysts
    • For Security Engineers
    • For Contributors
    • Reference
    • Recipes
      • Backup recipes
        • Overview
        • Driver initialization
        • Retry queries
        • Set session pool size
        • Data insertion
        • Batch data insertion
        • Setting up the transaction execution mode
        • TTL configuration
        • Vector search
      • YDB CLI
      • Vector search
      • Fulltext search
      • JSON search
      • Local indexes
      • Transfer
      • Streaming queries
    • Troubleshooting
    • Questions and answers
    • Downloads
    1. Recipes
    2. YDB SDK
    3. Overview

    Code recipes using YDB SDK and frameworks

    This section contains code recipes in different programming languages for solving various common practical tasks using the YDB SDK.

    Contents:

    • Driver initialization

    • Authentication

      • Using a token
      • Anonymous
      • Service account file
      • Metadata service
      • Using environment variables
      • Using login and password
    • Load balancing

      • Uniform random selection
      • Prefer nearest datacenter
      • Prefer availability zone
    • Retry query execution

    • Set session pool size

    • Data insert

    • Batch data insert

    • Setting transaction execution mode

    • Configuring table TTL (Time to Live)

    • Vector search

    • Coordination

      • Distributed lock
      • Service discovery
      • Configuration publishing
      • Leader election

    Connecting YDB SDK diagnostics — logging, metrics, and distributed tracing — is described in Observability in YDB SDK.

    See also:

    • YDB for Application Developers / Software Engineers
    • Example applications working with YDB
    • Reference for YDB SDK

    Was the article helpful?

    Previous
    Backup to NFS
    Next
    Driver initialization