Yandex Cloud
Search
Contact UsGet started
  • Pricing
  • Customer Stories
  • Documentation
  • Blog
  • All Services
  • System Status
    • Featured
    • Infrastructure & Network
    • Data Platform
    • Containers
    • Developer tools
    • Serverless
    • Security
    • Monitoring & Resources
    • AI for business
    • Business tools
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Start testing with double trial credits
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Center for Technologies and Society
    • Yandex Cloud Partner program
  • Pricing
  • Customer Stories
  • Documentation
  • Blog
© 2025 Direct Cursus Technology L.L.C.
Yandex Serverless Integrations
  • Comparison with other Yandex Cloud services
    • Overview
      • Bus
      • Connector
      • Rule
      • Sending events to the bus
    • Cron expressions
    • Quotas and limits
  • Pricing policy
  • Terraform reference
  • Monitoring metrics
  • Public materials
  • Release notes

In this article:

  • Filter
  • Target
  1. Concepts
  2. EventRouter
  3. Rule

Rule

Written by
Yandex Cloud
Updated at February 7, 2025
  • Filter
  • Target

Rule is a routing component that consists of a filter and one to five targets. A bus may have a number of rules associated with it. Each event entering a bus is filtered using all the bus rules. Before a rule is triggered, the event is checked against the conditions specified in the filter. If the conditions are met, the rule is triggered and the event is forwarded to all the targets specified in the rule.

FilterFilter

A filter is an expression in jq format which applies to every event in a bus. A filter returns a Boolean response and determines whether or not to send an event to the targets specified in the rule, e.g., .firstName == "Ivan". If the filter is empty, the rule is considered triggered and events are forwarded to all targets. If the event cannot be parsed or its body does not satisfy the conditions specified in the filter, the rule is not triggered.

TargetTarget

Target is the consumer of an event. Supported targets:

  • WebSocket connections connected to the API Gateway API gateway.
  • Cloud Functions functions.
  • Cloud Logging log groups.
  • Data Streams streams.
  • Message Queue queues.
  • Serverless Containers containers.
  • Workflows workflows.

EventRouter supports the At least once delivery guarantee. If unable either to deliver an event or get a delivery confirmation, EventRouter will be retrying to send the event before the event lifetime expires. The number of retries and the maximum event lifetime are set in the target settings. An event that could not be processed is moved to the dead-letter queue specified by the client.

For optimization purposes, EventRouter allows you to specify event grouping settings for some types of targets. In a target, a jq pattern may be set, to transform events based on it before forwarding them to the target.

Was the article helpful?

Previous
Connector
Next
Sending events to the bus
© 2025 Direct Cursus Technology L.L.C.