A distributed analytics platform for submitting Python jobs, orchestrating execution, and serving artifacts through a full-stack control plane.
Go • PostgreSQL • Kafka • Redis • MinIO • Kubernetes • React • Prometheus • OpenTelemetry
Mini Databricks is a production-style distributed systems project that accepts dataset uploads, schedules partitioned compute jobs, executes Python workloads across workers, and returns artifacts through a REST API, Python SDK, and React dashboard.
The goal of the project is not notebook UX. It is the platform layer behind data products: orchestration, reliability, storage, scheduling, observability, and multi-service coordination.
- Event-driven backend design with Go services, Kafka, PostgreSQL, Redis, and MinIO
- Distributed job execution with task sharding, leasing, heartbeats, timeouts, and cleanup
- Reliability patterns such as transactional outbox publishing, idempotent job submission, and dead-letter handling
- Full-stack delivery across API design, infrastructure, Python SDK development, and frontend implementation
- Operational maturity through metrics, health endpoints, admin stats, and trace propagation
flowchart LR
A["React Dashboard / Python SDK"] --> B["API Gateway"]
B --> C[("PostgreSQL")]
B --> D[("Redis")]
B --> E[("MinIO")]
B --> F["Outbox Dispatcher"]
F --> G[("Kafka")]
G --> H["Scheduler"]
H --> C
H --> I["Kubernetes Controller"]
C --> J["Worker Runtime"]
J --> E
J --> G
K["Prometheus / Grafana"] -.-> B
K -.-> H
K -.-> J
- A client registers a dataset and uploads it directly to MinIO using a signed URL.
- A job submission is persisted to PostgreSQL and mirrored into an outbox record in the same transaction.
- The dispatcher publishes the job event to Kafka.
- The scheduler creates a run, shards the workload into tasks, and prepares execution.
- Workers lease tasks, execute Python code on partitions, upload artifacts, and update progress.
- The API, SDK, and dashboard expose status, progress, and downloadable results.
| Concern | Implementation |
|---|---|
| Reliable event publishing | Transactional outbox between API writes and Kafka publication |
| Safe retries | Idempotency keys on job creation |
| Concurrent task claims | Postgres task leasing with FOR UPDATE SKIP LOCKED |
| Failure handling | Worker heartbeats, task timeouts, dead tasks, cleanup jobs, dead-letter topic |
| Storage pipeline | Signed MinIO upload and download URLs with artifact registration |
| Operational visibility | Prometheus metrics, /health, /ready, /admin/stats, OpenTelemetry trace propagation |
| Platform isolation hooks | Workspace-scoped auth plus Kubernetes namespace, quota, and network-policy hooks |
| Service | Responsibility |
|---|---|
| API Gateway | Authentication, workspace APIs, dataset registration, job submission, progress, artifact access |
| Scheduler | Consumes job events, creates runs and tasks, coordinates execution |
| Worker | Leases tasks, runs Python workloads, writes artifacts, reports status |
| Autoscaler | Adjusts worker replicas based on queue depth |
| Cleanup | Removes dead tasks and delivered outbox records |
| Frontend | React dashboard for job visibility and interaction |
| Python SDK | Developer-facing client for submitting and monitoring jobs |
| Layer | Technologies |
|---|---|
| Backend | Go, Gin, pgx, sqlc |
| Data & Messaging | PostgreSQL, Kafka, Redis, MinIO |
| Execution | Python 3.11, Pandas, PyArrow |
| Frontend | React 19, TypeScript, Vite |
| Infrastructure | Docker Compose, Kubernetes, Kind |
| Observability | Prometheus, Grafana, OpenTelemetry |
- Docker
- Go 1.25
- Node.js with
pnpm - Python 3.11 with Poetry
golang-migrate
Update the root .env file with your local database, Redis, Kafka, MinIO, JWT, and Python runner settings.
make docker-up
make migrate-upThis provisions PostgreSQL, Redis, Kafka, MinIO, Prometheus, and Grafana.
Start each service in a separate terminal:
go run ./services/api-gateway/cmd/
go run ./services/scheduler/cmd/
go run ./services/worker/cmd/
go run ./services/autoscaler/cmd/
go run ./services/cleanup/cmd/make lint
make testWith the API Gateway and supporting services running, use the built-in Make targets to validate auth and workspace flows:
make smoke-apiThis runs:
make register
make login
make me
make create-workspace
make list-workspacesIf the default test account already exists, rerun with a different email:
make smoke-api TEST_EMAIL=another-user@test.comThere are also parameterized helpers for dataset and job endpoints:
make initiate-dataset WORKSPACE_ID=<workspace-id>
make list-datasets WORKSPACE_ID=<workspace-id>
make create-job WORKSPACE_ID=<workspace-id> DATASET_ID=<dataset-id>
make list-jobs WORKSPACE_ID=<workspace-id>cd frontend
pnpm install
pnpm devcd sdk/python
poetry install
poetry run python example.py| Surface | URL / Path |
|---|---|
| API | http://localhost:8080/api/v1 |
| Frontend | http://localhost:5173 |
| Prometheus | http://localhost:9090 |
| Grafana | http://localhost:3001 |
| MinIO Console | http://localhost:9001 |
| API Reference | docs/api.md |
| Python Example | sdk/python/example.py |
services/
api-gateway/ REST API, auth, dataset and job endpoints
scheduler/ Kafka consumer and run/task creation
worker/ Task leasing and Python execution runtime
autoscaler/ Worker replica scaling logic
cleanup/ Background maintenance jobs
internal/
db/ Migrations, SQL queries, generated models
kafka/ Producer, consumer, outbox dispatcher
k8s/ Kubernetes orchestration and isolation hooks
storage/ MinIO integration
telemetry/ OpenTelemetry setup
frontend/ React dashboard
sdk/python/ Python client SDK and example jobs
deployments/ Docker and Kubernetes manifests
docs/ API documentation
The repository includes Dockerfiles, Docker Compose infrastructure, Kind bootstrap scripts, and Kubernetes manifests for services, secrets, migrations, and ingress. For cluster-based experimentation, use:
make kind-setupMini Databricks shows the kind of engineering depth recruiters look for in backend and platform candidates: asynchronous workflows, distributed task execution, storage pipelines, operational visibility, and infrastructure-aware design shipped as a cohesive product rather than isolated demos.