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
        • Configuring time to live (TTL)
      • YDB CLI
      • AI
    • Troubleshooting
    • Questions and answers
    • Downloads
    1. Recipes
    2. YDB SDK
    3. Overview

    YDB SDK code recipes

    This section contains code recipes in different programming languages for a variety of tasks that are common when working with the YDB SDK.

    Table of contents:

    • Initializing the driver

    • Authentication

      • Using a token
      • Anonymous
      • Service account file
      • Metadata service
      • Using environment variables
      • Username and password based
    • Balancing

      • Random choice
      • Prefer the nearest data center
      • Prefer the availability zone
    • Running repeat queries

    • Setting the session pool size

    • Inserting data

    • Bulk upsert of data

    • Setting up the transaction execution mode

    • Configuring time to live (TTL)

    • Coordination

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

      • Enable logging
      • Enable metrics in Prometheus
      • Enable tracing in Jaeger

    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