Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 3 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,9 @@ A warm auction does not call Redis or a DSP. The server ranks bids by priority,

## Design

```mermaid
flowchart LR
Admin["Admin client"] -->|"versioned bid change"| Redis[(Redis)]
Redis -->|"invalidation"| Cache["Local bid snapshot"]
Redis -.->|"reconciliation"| Cache

Client["Auction client"] -->|"POST /v1/auction"| Server["Go server"]
Cache -->|"local read"| Server
DSP["DSP endpoints"] -.->|"background refresh"| Dynamic["Local DSP cache"]
Dynamic -->|"fresh bids"| Server
Server --> Decision["winner or no_bid"]
```
![Adserver architecture showing the local auction path, Redis bid distribution, background DSP refreshes, and monitoring](docs/architecture.svg)

[Editable Excalidraw diagram](docs/architecture.excalidraw)

Redis is the source of truth for active bids. Pub/Sub invalidations tell each server to refresh a placement.

Expand Down
Loading