Senior Python Backend Engineer (Part‑Time, Remote)
About Royal Service
Royal Service is a remote‑first software studio headquartered in Tehran. We move fast, building high‑quality Android and iOS apps that leverage the latest advances in artificial intelligence. Our small, friendly team enjoys tackling tough problems with cutting‑edge tools and an agile mindset.
Key Responsibilities
- Build and operate an asynchronous FastAPI service that streams Google Gemini suggestions to our Android keyboard with a p95 latency of 200 ms or less
- Create and maintain API endpoints for grammar correction, tone adjustment, and English ↔ Persian translation using Server‑Sent Events or WebSockets
- Deploy, scale, and monitor the service on Google Cloud Run, managing containers, secrets, and blue/green releases
- Instrument logs and metrics with OpenTelemetry and Cloud Logging to track latency, errors, and cost
- Design a data‑logging schema and implement Pub/Sub → BigQuery pipelines to power future personalised‑learning features
- Collaborate closely with mobile, product, and design during our four‑week MVP sprint—review prompts, profile latency, and squash bugs
Role Requirements
- Python 3.11+ — Strong async/await skills, type annotations, and tests with pytest‑asyncio
- FastAPI / Starlette — Production experience with StreamingResponse, Server‑Sent Events, and WebSockets
- Relational databases — Solid understanding of SQL, indexing, ACID, and ORM usage (e.g., SQLAlchemy)
- Containers & CI/CD — Docker, multi‑stage builds, GitHub Actions or GitLab CI, and Git best practices
- Google Gemini SDK — Building streaming calls, applying safety settings, and managing prompt versions
- Google Cloud — Deploying to Cloud Run, using Cloud Build, IAM, and Secret Manager
- Observability — OpenTelemetry traces, Cloud Logging queries, and p95/p99 latency tuning
- Security — OAuth 2 / JWT, TLS 1.3, and proactive dependency management
Time commitment: 20 hours per week for at least two months, with roughly three hours of daily overlap around UTC ± 3.
Bonus Qualifications
- Hands‑on experience with large language models, prompt engineering, or retrieval‑augmented generation
- Terraform or Pulumi for infrastructure as code on GCP
- Load‑testing with Locust or k6 and tuning Uvicorn workers
- Familiarity with Android networking, SSE, or WebSocket debugging
- BigQuery SQL or Dataflow/Beam pipelines
- Advanced security practices such as certificate pinning or SBOM generation
Why You Should Apply
- Real impact. Help launch an AI‑powered product in just one month
- Fresh codebase. Build from scratch without legacy constraints
- Fully remote. Work from anywhere with minimal meetings
- Flexible hours. Part‑time schedule that fits your life
- Modern stack. Use Google Gemini, FastAPI, and async Python every day
- Growth path. Strong performance can lead to expanded, full‑time responsibilities
How to Apply
Send us your GitHub or portfolio link and a brief note describing a project where you solved a challenging problem with asynchronous Python. We look forward to meeting you!