MDCB Components

Last updated: 3 minutes read.

Overview

Here we will give an overview of the main elements of a Tyk Multi Data Center (distributed) solution, clarifying the terminology used by Tyk.

A Tyk Multi Data Center Bridge deployment

Tyk Gateway

  • The workhorse of any deployment, Tyk’s lightweight Open Source API gateway that exposes your APIs for consumption by your users. It is a reverse proxy that secures your APIs, manages session and policies, monitors, caches and manipulates requests/responses when needed before/after it proxies them to and from the upstream.

Tyk Dashboard

  • Tyk’s management platform used to control the creation of API configurations, policies and keys in a persistent manner. It provides analytic information on the traffic the Gateways have processed which includes aggregated API usage and detailed information per transaction.

Tyk Multi Data Center Bridge (MDCB)

  • The backbone of the distributed Tyk deployment, connecting the distributed Data Plane deployments back to the Control Plane.

Tyk Pump

  • Tyk’s open source analytics purger that can be used to export transaction logs from the Tyk deployment to the visualisation tool or other data store of your choice

Tyk Developer Portal

  • The access point for your API Consumers where you publish your API catalog(s) and they obtain API keys.

Redis

  • An in-memory data store used as a database, cache and message broker. We use it as pub/sub broker for inter-Gateway communication, and as a cache for API configurations, keys, certificates, and temporary store for analytics records.

MongoDB/SQL

  • A persistent data store for API configurations, policies, analytics and aggregated analytics, Dashboard organizations, configurations, dashboard users, portal developers and configuration.

Control Plane

The Tyk Control Plane

The Control Plane must consist of the following elements:

  • Tyk Dashboard (used to configure and control the whole Tyk installation)
  • Tyk Gateway (used for creation of keys and certificates, this does not service API requests; it is important to ensure there is no public access to it and it must not be sharded (tagged) as it “belongs” to the whole Tyk installation)
  • Tyk MDCB
  • Redis (high availability Redis data store that should be backed up in case of failure; this document gives recommendation on Redis persistency)
  • MongoDB or SQL (a persistent data store that should be deployed and set up for redundancy and high availability)

To improve resilience and availability, multiple instances of each Tyk component should be deployed and load balanced within the Control Plane.

Optional Components

  • One or more Tyk Pumps can be deployed within the Control Plane to export analytics data (request/response logs) to your data sink of choice for further analytics and visualisation.
  • A Tyk Developer Portal can be added to enhance the end-user experience when accessing your APIs.

Data Plane

The Tyk Data Plane

The Data Plane deployment must consist of the following elements:

  • Tyk Gateway (one or more Gateways specifically configured as Workers)
  • Redis (a single Redis data store shared by all Gateways in the cluster)

To provide resilience and availability, multiple Gateways should be deployed and load balanced within the cluster. If you want this Data Plane deployment to be resilient, available, and independent from the Control Plane during a disconnection event, it is advised to make the Redis data store persistent.

Optional Components

  • A Tyk Pump specifically configured as a Hybrid Pump can be deployed with the Data Plane gateways to export analytics data (request/response logs) to your data sink of choice for further analytics and visualisation.

Next Steps