Logo icon
    • Contents
    • Quick start
    • Concepts
    • For Database Administrators
    • For Application Developers
    • For Analysts
    • For Security Engineers
    • For Contributors
    • Reference
    • Recipes
      • Backup collections 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
      • Transfer
      • Import and export data to column tables
      • 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 various programming languages for solving 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
    • Balancing

      • Uniform random selection
      • Prefer nearest datacenter
      • Prefer availability zone
    • Retry queries

    • Set session pool size

    • Data insertion

    • Batch data insertion

    • Setting transaction execution mode

    • Configuring table TTL

    • Vector search

    • Coordination

      • Distributed locking
      • Service discovery
      • Configuration publishing
      • Leader election
    • Problem diagnostics

      • Enable logging
      • Export logs to OpenTelemetry
      • Connect metrics to Prometheus
      • Tracing with OpenTelemetry

    See also:

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

    Was the article helpful?

    Previous
    Validation and testing
    Next
    Initialize the driver