Yandex Cloud
Search
Contact UsGet started
  • Blog
  • Pricing
  • Documentation
  • All Services
  • System Status
    • Featured
    • Infrastructure & Network
    • Data Platform
    • Containers
    • Developer tools
    • Serverless
    • Security
    • Monitoring & Resources
    • ML & AI
    • Business tools
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Customer Stories
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Education and Science
    • Yandex Cloud Partner program
  • Blog
  • Pricing
  • Documentation
© 2025 Direct Cursus Technology L.L.C.
Yandex Data Streams
    • All tutorials
    • Entering data into storage systems
    • Smart log processing
    • Transferring data within microservice architectures
    • Saving data to ClickHouse®
    • Replicating logs to Object Storage using Fluent Bit
    • Replicating logs to Object Storage using Data Streams
    • Migrating data to Yandex Object Storage using Yandex Data Transfer
    • Delivering data from Yandex Managed Service for Apache Kafka® using Yandex Data Transfer
    • Delivering data from an Data Streams queue to Managed Service for YDB
    • Delivering data to Yandex Managed Service for Apache Kafka® using Yandex Data Transfer
    • YDB change data capture and delivery to YDS
    • PostgreSQL change data capture and delivery to YDS
    • MySQL® change data capture and delivery to YDS
    • Streaming Yandex Cloud Postbox events to Yandex Data Streams and analyzing them using Yandex DataLens
    • Creating an interactive serverless application using WebSocket
    • Processing Audit Trails events
    • Processing CDC Debezium streams
    • Exporting audit logs to MaxPatrol SIEM
    • Searching for Yandex Cloud events in Yandex Query
  • Access management
  • Pricing policy
  • FAQ

In this article:

  • Benefits
  • Reliability
  • Different lifetime
  • Scalability
  • Comparison with Apache Kafka®
  • Setup
  1. Tutorials
  2. Transferring data within microservice architectures

Transferring data within microservice architectures

Written by
Yandex Cloud
Updated at February 10, 2025
  • Benefits
    • Reliability
    • Different lifetime
    • Scalability
  • Comparison with Apache Kafka®
  • Setup

Modern applications are migrating from monolithic to microservice architectures. A large number of interacting components appear, which are written in different programming languages and run on various devices.

Using data streaming buses for exchanging information between these components makes it easier to develop a microservice architecture and enhances its reliability and scalability.

BenefitsBenefits

ReliabilityReliability

Microservice architectures are usually distributed. Reliability is a key factor in a distributed architecture. It is difficult to support a complete failure model in each application. Therefore, fault tolerance is only built into infrastructure components, whereas other applications become fault-tolerant by drawing it from them.

Different lifetimeDifferent lifetime

In a monolithic architecture, all components are continuously available for data exchange. Components of a microservice architecture have different lifetimes and cannot rely on direct data exchange between them. Data should be either buffered or sent via a data streaming bus.

ScalabilityScalability

The efficiency of applications needs to be ensured as they grow. With data streaming buses, you can simply follow a built-in interaction scenario to make your applications scalable.

Comparison with Apache Kafka®Comparison with Apache Kafka®

In the table below, Data Streams is compared with Apache Kafka® a popular data streaming bus.

Parameter Yandex Data Streams Apache Kafka®
Supported protocol Amazon Kinesis Data Streams API Apache Kafka®
Supported SDKs HTTP, Java, C++, Go, and more HTTP, Java, C++, Go, and more
Cost A fee for using resources: speed and retention period A fee for reserving resources: VMs
Operation complexity No user administration is required The system is administered by the user, Yandex Cloud is only responsible for the infrastructure
Scaling Without service interruption (currently, the system can only be scaled up) With service interruption while restarting a cluster
Integration with Yandex Cloud High: Cloud Functions triggers, API Gateway, and so on Basic
Security Authorization using an IAM token and an access key Username and password based authorization
Reliability High, data is stored in three availability zones High, customized by the user
Message delivery time Less than a second Less than a second
Data retention period Set at creation, 1-24 hours Limited by VM disk capacity
Customizability Basic parameters High if the settings are supported in Yandex Cloud

SetupSetup

To set up data transfer between components:

  1. Create a data stream Data Streams.
  2. Configure the AWS SDK.
  3. Use SDKs:
    • Go.
    • C++.
    • Java.
    • JavaScript.
    • Python.
    • HTTP Kinesis Data Streams API.

Was the article helpful?

Previous
Smart log processing
Next
Saving data to ClickHouse®
© 2025 Direct Cursus Technology L.L.C.