About the project:
We are creating a licensed self-hosted product (SaaS) for automation, routing, and validation of traffic in highly competitive verticals (Fintech, iGaming, Crypto). Essentially, this is a high-speed Traffic Distribution System (TDS) with modules for auto-login, cascading routing, and fingerprint simulation (Spoofing).
Team situation:
We already have a strong Middle/Senior product developer (Ilya) who effectively handles tasks related to business logic: dashboards, roles (SuperAdmin, Owner, Buyer), integration of external broker APIs, and interfaces.
I need a Tech Lead / Architect who will build a high-load foundation for him, take on the server infrastructure, and become the absolute "gatekeeper" of code quality.
🎯 Your first task (Milestone 1): Basic architecture of the gateway and CI/CD
Before we start developing product features and migrating old code, we need to lay the right foundation.
Core tech stack:
* Framework: Litestar + msgspec (for maximum speed of DTO serialization).
* Web server: Granian (Rust-based ASGI worker).
* DBMS and Cache: PostgreSQL (asyncpg + SQLAlchemy 2.0), Redis.
* Infrastructure: Docker, GitHub Actions.
What specifically needs to be done in the first phase:
* Designing a clean architecture on GitHub:
* Implement a layered project structure (API, Domain, Services, Infrastructure) specifically for the future migration of business logic by a second developer.
* Set up basic hierarchical routing in Litestar and DTO templates.
* Containerization (Docker):
* Write a Dockerfile to build a lightweight image with Granian.
* Prepare docker-compose.yml for local launch of the stack: App + PostgreSQL + Redis.
* Gatekeeping and CI/CD:
* Set up Branch Protection for the main branch: prohibit direct pushes.
* Write a GitHub Actions pipeline for Pull Requests (linter Ruff, MyPy typing, basic Pytest tests). The pipeline should block Merge on errors. All code from the product developer will go through your Code Review.
* Developer Experience (DX):
* Create a detailed README.md with instructions for the team (how to deploy the project, how to run tests, coding rules in the new stack).
✅ Acceptance criteria (Definition of Done) for the first phase:
* The architecture is uploaded to the provided private GitHub repository.
* The project starts locally without errors via docker-compose up.
* A test /health endpoint is available, with a response from the Granian server.
* When creating a Pull Request with a linter or typing error — GitHub Actions correctly catches this and does not allow Merge.
To respond:
Please briefly describe your experience with High-Load systems or in the AdTech/Arbitrage niches, and provide your estimate for the timeline and budget for implementing this first Milestone.