Reactive Interaction Gateway

Reactive Interaction Gateway

  • User Documentation
  • Source Documentation
  • GitHub

›Main Concepts

Getting Started

  • Intro
  • Tutorial
  • Examples
  • FAQ

Main Concepts

  • Architecture
  • Features
  • Event Format
  • Publishing Events
  • Receiving Events
  • Forwarding Requests
  • User Authorization
  • Distributed Tracing

Advanced Guides

  • API Gateway Management
  • API Gateway Synchronization
  • Avro
  • JWT Blacklisting
  • Azure Event Hubs

RIG in Production

  • Operator's Guide
  • API Documentation
  • Phoenix LiveDashboard
  • Prometheus Metrics
  • HTTPS
  • Scaling

Hacking the Source

  • Developer's Guide

Distributed Tracing

RIG is able to process distributed tracing data following the W3C Trace Contexts.

In certain conditions RIG expects the trace context to be in the (HTTP) header, and in other conditions in the event payload itself. With events, we always speak of cloudevents following the distributed tracing extension. There is one key rule when RIG expects the trace context either in the header or in the cloudevent:

  1. if we talk of messages, then RIG expects the trace context to be in the (HTTP) header
  2. if we talk of events (cloudevents), then RIG expects the trace context to be in the cloudevent

In our point of view, the difference of a message to an event is the following:

  • a message is a request from one system to another for an action to be taken. The sender expects that the message will get processed somehow
  • an event is a notification that data has been processed and some objects’ state has changed
  • thus, messages and events have a different correlation between producer and consumer:
    • messages have 1-to-1 correlation between a producer and a consumer
    • events have a 1-to-n correlation between a producer and (potentially multiple) consumers

As a concrete example how distributed tracing has been implemented, read about it in the channels-example.

← User AuthorizationAPI Gateway Management →
Docs
IntroGetting Started
Community
User ShowcaseSlackStack Overflow@KevnBadr
More
Star RIG on GitHub
Copyright © 2021 Accenture