Logo icon
    • Contents
    • Quick start
    • Concepts
    • For DevOps
    • For Developers
    • For Analysts
    • For Security Engineers
    • For Contributors
    • Reference
    • Recipes
        • Overview
        • Initialize the driver
        • Running repeat queries
        • Setting the session pool size
        • Upserting data
        • Bulk-upserting data
        • Setting up the transaction execution mode
        • Vector search
        • Configuring time to live (TTL)
        • Vector search
      • YDB CLI
      • AI
      • Transfer
      • Import and export data to column tables
      • Streaming queries
    • Troubleshooting
    • Questions and answers
    • Downloads
    1. Recipes
    2. YDB SDK and frameworks
    3. Overview

    Code recipes using YDB SDK and frameworks

    This section contains code recipes in various programming languages for solving common practical tasks using 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 the nearest data center
      • Prefer the availability zone
    • Retrying requests

    • Setting the session pool size

    • Inserting data

    • Batch data insertion

    • Setting the transaction execution mode

    • Configuring table row time-to-live (TTL)

    • Vector search

    • Coordination

      • Distributed locking
      • Service discovery
      • Configuration publication
      • Leader election
    • Troubleshooting

      • Enable logging
      • 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
    Recipes
    Next
    Initialize the driver