# cryp70n-13/rabbitmq-streams architecture

> Architecture diagram of the GitHub repository cryp70n-13/rabbitmq-streams, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-09-02). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/cryp70n-13/rabbitmq-streams
- Repository: https://github.com/cryp70n-13/rabbitmq-streams

## Overview

##### Project type and purpose
- This is a small Go-based, event-driven messaging demo that exercises RabbitMQ Streams.
- It provides three separate executables: a producer, a consumer, and a custom plugin for RabbitMQ Streams.

##### File structure
- Top level
- .github/workflows/go.yml – CI for building/testing your Go code
- go.mod / go.sum – Go module definitions
- Directories
- producer/main.go – publishes messages to a RabbitMQ Stream
- producer_plugin/main.go – builds a RabbitMQ Streams plugin (to be deployed in the broker)
- consumer/main.go – subscribes to and consumes messages from the Stream

##### README for additional insights
- The README title (“RabbitMQ streams with GoLang”) confirms that the focus is on demonstrating stream-based pub/sub using RabbitMQ and Go.
- No further architectural details are provided, so we infer a simple three-component flow: producer → RabbitMQ (with plugin) → consumer.

## Diagram (Mermaid)

```mermaid
flowchart TD
    subgraph "Codebase (Repository)"
        CI["CI Workflow"]:::code
        Mod["Go Modules"]:::code
        Docs["Project Docs"]:::code
    end

    subgraph "Runtime Architecture"
        Producer["Producer Service"]:::producer
        Broker["RabbitMQ Broker"]:::broker
        Plugin["Streams Plugin"]:::plugin
        Consumer["Consumer Service"]:::consumer
    end

    %% Message flows
    Producer -->|"publish (AMQP/Streams)"| Broker
    Broker -->|"deliver messages"| Consumer
    Plugin -.->|"deployed plugin"| Broker

    %% Click Events
    click Producer "https://github.com/cryp70n-13/rabbitmq-streams/blob/main/producer/main.go"
    click Consumer "https://github.com/cryp70n-13/rabbitmq-streams/blob/main/consumer/main.go"
    click Plugin "https://github.com/cryp70n-13/rabbitmq-streams/blob/main/producer_plugin/main.go"
    click CI "https://github.com/cryp70n-13/rabbitmq-streams/blob/main/.github/workflows/go.yml"
    click Mod "https://github.com/cryp70n-13/rabbitmq-streams/blob/main/go.mod"
    click Mod "https://github.com/cryp70n-13/rabbitmq-streams/blob/main/go.sum"
    click Docs "https://github.com/cryp70n-13/rabbitmq-streams/blob/main/README.md"
    click Docs "https://github.com/cryp70n-13/rabbitmq-streams/blob/main/.gitignore"

    %% Styles
    classDef producer fill:#a2f5a2,stroke:#333,stroke-width:1px;
    classDef broker fill:#a2d4f7,stroke:#333,stroke-width:1px;
    classDef plugin fill:#d4b2f7,stroke:#333,stroke-width:1px;
    classDef consumer fill:#f5c2a2,stroke:#333,stroke-width:1px;
    classDef code fill:#f0f0f0,stroke:#999,stroke-width:1px;
```
