> ## Documentation Index
> Fetch the complete documentation index at: https://docs.baibaibot.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Tech Stack

> Technical overview of the platform.

<img noZoom src="https://mintcdn.com/baibai/Q0FEDFNQDcX1j3TO/images/separator.jpg?fit=max&auto=format&n=Q0FEDFNQDcX1j3TO&q=85&s=5350c337aa3613424b48079d872b63e6" width="721" height="5" data-path="images/separator.jpg" />

## Introduction

The following picture shows the basic architecture the BaiBai platform is built on.

<img src="https://mintcdn.com/baibai/tCpu2G57vr6ct9Lt/images/tech/tech_infrastructure.jpg?fit=max&auto=format&n=tCpu2G57vr6ct9Lt&q=85&s=307b49d12ea25c628c17678da02b39cf" width="1280" height="720" data-path="images/tech/tech_infrastructure.jpg" />

### AWS (Amazon Web Services)

We've been working with AWS services for 15+ years. That's why we have choosen to build the BaiBai platform on top of AWS services, which are reliable and scalable. Here are some of the services we are using:

* **ASG/ELB**: Auto Scaling Group and Elastic Load Balancer for high availability and scalability.
* **EC2**: Scalable servers that host the [BaiBai Site](/site/introduction), [BaiBai Trading Terminal](/terminal/introduction) as well as the backend servers for all our features.
* **RDS/DynamoDB**: Scalable databases to store most of the data.
* **S3**: Scalable long-term storage for backups.
* **CloudFront**: Content delivery network for fast delivery of static assets.
* **Redis**: Low latency, realtime Pub/Sub messaging system that connects all the services.
* **Elasticache**: In-memory data store acting as a caching layer.

#### Cloudflare

We use Cloudflare for DDoS protection and security.

<img noZoom src="https://mintcdn.com/baibai/Q0FEDFNQDcX1j3TO/images/separator-small.png?fit=max&auto=format&n=Q0FEDFNQDcX1j3TO&q=85&s=8a26d422be09963b7e375935747563ae" width="721" height="1" data-path="images/separator-small.png" />

### Workers

Workers are the core of the BaiBai platform. They are responsible for running the [bots](/site/bots), [backtests](/site/backtests) and all the realtime data processing.

<Tip>
  Our architecture is designed on a plugin system, which allows us to easily add new type of workers.
</Tip>

<img noZoom src="https://mintcdn.com/baibai/Q0FEDFNQDcX1j3TO/images/separator-small.png?fit=max&auto=format&n=Q0FEDFNQDcX1j3TO&q=85&s=8a26d422be09963b7e375935747563ae" width="721" height="1" data-path="images/separator-small.png" />

### External APIs & Services

The BaiBai platform uses a wide range of external APIs & services. Here are some of the services we are using:

<CardGroup cols={3}>
  <Card>
    <Frame>
      <img width="180" noZoom src="https://mintcdn.com/baibai/tCpu2G57vr6ct9Lt/images/tech/aws.svg?fit=max&auto=format&n=tCpu2G57vr6ct9Lt&q=85&s=e9867010807f670ef01b7a38c51502c2" data-path="images/tech/aws.svg" />
    </Frame>
  </Card>

  <Card>
    <Frame>
      <img width="180" noZoom src="https://mintcdn.com/baibai/tCpu2G57vr6ct9Lt/images/tech/cloudflare.svg?fit=max&auto=format&n=tCpu2G57vr6ct9Lt&q=85&s=05fe446f4089da7a44bdee8d3f78d5ef" data-path="images/tech/cloudflare.svg" />
    </Frame>
  </Card>

  <Card>
    <Frame>
      <img width="60" noZoom src="https://mintcdn.com/baibai/tCpu2G57vr6ct9Lt/images/tech/socket-io.svg?fit=max&auto=format&n=tCpu2G57vr6ct9Lt&q=85&s=9ad851174bf8d371247ed20503020977" data-path="images/tech/socket-io.svg" />
    </Frame>
  </Card>

  <Card>
    <Frame>
      <img width="180" noZoom src="https://mintcdn.com/baibai/tCpu2G57vr6ct9Lt/images/tech/alchemy.png?fit=max&auto=format&n=tCpu2G57vr6ct9Lt&q=85&s=2679232bd639d5b3f4a1400254791266" data-path="images/tech/alchemy.png" />
    </Frame>
  </Card>

  <Card>
    <Frame>
      <img width="180" noZoom src="https://mintcdn.com/baibai/tCpu2G57vr6ct9Lt/images/tech/coingecko.svg?fit=max&auto=format&n=tCpu2G57vr6ct9Lt&q=85&s=cfc95d7c65e44bd1c4d7ae6b756b66d0" data-path="images/tech/coingecko.svg" />
    </Frame>
  </Card>

  <Card>
    <Frame>
      <img width="60" noZoom src="https://mintcdn.com/baibai/tCpu2G57vr6ct9Lt/images/tech/coinmarketcap.svg?fit=max&auto=format&n=tCpu2G57vr6ct9Lt&q=85&s=3984a8f53a0682705fbb28cf56c63746" data-path="images/tech/coinmarketcap.svg" />
    </Frame>
  </Card>

  <Card>
    <Frame>
      <img width="180" noZoom src="https://mintcdn.com/baibai/tCpu2G57vr6ct9Lt/images/tech/binance.svg?fit=max&auto=format&n=tCpu2G57vr6ct9Lt&q=85&s=c0e903a8cf5618bb290ef1a54326d6d2" data-path="images/tech/binance.svg" />
    </Frame>
  </Card>

  <Card>
    <Frame>
      <img width="180" noZoom src="https://mintcdn.com/baibai/tCpu2G57vr6ct9Lt/images/tech/dexscreener.png?fit=max&auto=format&n=tCpu2G57vr6ct9Lt&q=85&s=f4661c724ce0145f265aaac4029d90dc" data-path="images/tech/dexscreener.png" />
    </Frame>
  </Card>

  <Card>
    <Frame>
      <img width="60" noZoom src="https://mintcdn.com/baibai/tCpu2G57vr6ct9Lt/images/tech/dextools.svg?fit=max&auto=format&n=tCpu2G57vr6ct9Lt&q=85&s=8cbd797bfe913e12fd9b79e69c58624a" data-path="images/tech/dextools.svg" />
    </Frame>
  </Card>

  <Card>
    <Frame>
      <img width="60" noZoom src="https://mintcdn.com/baibai/tCpu2G57vr6ct9Lt/images/tech/etherscan.svg?fit=max&auto=format&n=tCpu2G57vr6ct9Lt&q=85&s=4f0b40c54b0ad27d545fec2889899bef" data-path="images/tech/etherscan.svg" />
    </Frame>
  </Card>

  <Card>
    <Frame>
      <img width="180" noZoom src="https://mintcdn.com/baibai/tCpu2G57vr6ct9Lt/images/tech/okx.png?fit=max&auto=format&n=tCpu2G57vr6ct9Lt&q=85&s=9a7504b6264260c8f1b1912be54f2a58" data-path="images/tech/okx.png" />
    </Frame>
  </Card>

  <Card>
    <Frame>
      <img width="60" noZoom src="https://mintcdn.com/baibai/tCpu2G57vr6ct9Lt/images/tech/openexchangerates.png?fit=max&auto=format&n=tCpu2G57vr6ct9Lt&q=85&s=76e7e47204531b59a5956c16a087a53b" data-path="images/tech/openexchangerates.png" />
    </Frame>
  </Card>

  <Card>
    <Frame>
      <img width="180" noZoom src="https://mintcdn.com/baibai/tCpu2G57vr6ct9Lt/images/tech/polygonio.png?fit=max&auto=format&n=tCpu2G57vr6ct9Lt&q=85&s=e75460aac92959c9968f63dd8844de9b" data-path="images/tech/polygonio.png" />
    </Frame>
  </Card>

  <Card>
    <Frame>
      <img width="60" noZoom src="https://mintcdn.com/baibai/tCpu2G57vr6ct9Lt/images/tech/x.svg?fit=max&auto=format&n=tCpu2G57vr6ct9Lt&q=85&s=67cd7a23f8d0e5b0e3f2fe714bdbf5f8" data-path="images/tech/x.svg" />
    </Frame>
  </Card>

  <Card>
    <Frame>
      <img width="180" noZoom src="https://mintcdn.com/baibai/tCpu2G57vr6ct9Lt/images/tech/discord.svg?fit=max&auto=format&n=tCpu2G57vr6ct9Lt&q=85&s=5d6b132728a06cd2f56232825534d6c5" data-path="images/tech/discord.svg" />
    </Frame>
  </Card>

  <Card>
    <Frame>
      <img width="60" noZoom src="https://mintcdn.com/baibai/tCpu2G57vr6ct9Lt/images/tech/telegram.svg?fit=max&auto=format&n=tCpu2G57vr6ct9Lt&q=85&s=22bab25ffb204f1cd71b2b7ea25d1472" data-path="images/tech/telegram.svg" />
    </Frame>
  </Card>

  <Card>
    <Frame>
      <img width="180" noZoom src="https://mintcdn.com/baibai/tCpu2G57vr6ct9Lt/images/tech/youtube.svg?fit=max&auto=format&n=tCpu2G57vr6ct9Lt&q=85&s=dd9eb2777371a4fc536f9550d46916ed" data-path="images/tech/youtube.svg" />
    </Frame>
  </Card>

  <Card>
    <Frame>
      <img width="180" noZoom src="https://mintcdn.com/baibai/tCpu2G57vr6ct9Lt/images/tech/reddit.svg?fit=max&auto=format&n=tCpu2G57vr6ct9Lt&q=85&s=5faba28c17a2aa7701bec9d14f16bca0" data-path="images/tech/reddit.svg" />
    </Frame>
  </Card>

  <Card>
    <Frame>
      <img width="180" noZoom src="https://mintcdn.com/baibai/tCpu2G57vr6ct9Lt/images/tech/slack.svg?fit=max&auto=format&n=tCpu2G57vr6ct9Lt&q=85&s=c3fa393201e636e4128d60dd8ec982f7" data-path="images/tech/slack.svg" />
    </Frame>
  </Card>
</CardGroup>

<img noZoom src="https://mintcdn.com/baibai/Q0FEDFNQDcX1j3TO/images/separator-small.png?fit=max&auto=format&n=Q0FEDFNQDcX1j3TO&q=85&s=8a26d422be09963b7e375935747563ae" width="721" height="1" data-path="images/separator-small.png" />
