Logo icon
    • Contents
    • Quick start
    • Concepts
    • Cluster Administration
    • For Application Developers
    • For Analysts
    • For Security Engineers
    • For Contributors
    • Reference
    • Recipes
      • Backup collections recipes
      • System tablet backup recipes
        • Overview
        • Initialize the driver
        • Running repeat queries
        • Setting the session pool size
        • Upserting data
        • Bulk-upserting data
        • Setting up the transaction execution mode
        • Configuring time to live (TTL)
        • Vector search
      • YDB CLI
      • Vector search
      • Fulltext search
      • Local indexes
      • Transfer
      • Backup to NFS
      • Import and export data to column tables
      • Streaming queries
      • JSON search
      • JSON search
    • 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
    Recovery
    Next
    Initialize the driver