Skip to content

skynet-dealer

Dealer is the Skynet backend that accepts ad and campaign actions over HTTP, enqueues them on RabbitMQ, and executes them through provider-specific workers (Taboola, Facebook, Pinterest, Google Ads, and others). A parallel tasks consumer handles automation jobs (email, SMS, S3, DB, ChatGPT, dealer queries).

Stack

Layer Technology
Runtime Python 3.8
HTTP Bottle + gevent WSGI
Queues RabbitMQ (gevent-pika)
Data MySQL (snh_remote_user), Redis (single-node or cluster)
Providers skynet-provider-api (spapi)
Config AWS Secrets Manager + SSM via fs_config
Deploy EC2 + CodeDeploy + supervisor (run_server.sh)

Documentation map

Page What it covers
Local development Venv, ENVIRONMENT=local, run without Docker
Architecture Server entry, stacks, import-time consumers
HTTP API /health, /put, permissions
Workers & tasks Provider registry and task handlers
Configuration & secrets ENVIRONMENT, queue names, env vars
Secrets reference Full AWS path layout (AISD-14)

Task lineage

  • AISD-131 — org documentation portal at docs.skyneto.com
  • AISD-142 — this documentation package
  • AISD-14 / AISD-24 — secrets consolidation and provisioning

Build these docs locally

cd skynet-dealer
python3.8 -m venv .venv_docs && source .venv_docs/bin/activate
pip install -r requirements-docs.txt
mkdocs build --strict
mkdocs serve   # http://127.0.0.1:8000/

Quick start (server)

export ENVIRONMENT=local
export PYTHONPATH="$(pwd)/src"
python src/dealer/server.py --port 5001
curl -s localhost:5001/health

See Local development for full setup.