AiDerm Cliniq
100% AI analysis availability
AiDerm Cliniq is a production-grade AI-powered dermatology clinical backend platform built to make expert skin diagnostics universally accessible. With multi-provider LLM routing, adaptive diagnostic pipelines, and enterprise-grade fault tolerance, it delivers 100% analysis availability even through provider outages.
1 / 3100% analysis availability via multi-provider failover
Zero task loss with late-ACK crash recovery
24-hour Redis result persistence
SnapshotAt a glance
AI/ML Engineer & Backend Architect
Ongoing
100% analysis availability via multi-provider failover
Zero task loss with late-ACK crash recovery
24-hour Redis result persistence
10+ typed clinical audit events logged
Up to 3 automatic retries per failed task
Technologies Used
10 Technologies Integrated
Impact
Key Features
Feature Implementation
Project Vision
Build a clinical-grade AI platform that remains available and accurate even during provider outages.
Core Process
The process of Developing it.
Architected multi-provider LLM routing, adaptive diagnostic pipelines, and fault-tolerant Celery task queues on GCP.
Build notesWhat I built
05Multi-Provider AI Routing with Automatic Failover
Architected an LLM router across Gemini 2.0 Flash, OpenAI GPT-4o, and DeepSeek with priority-ordered failover on rate limits or provider outages, achieving 100% analysis availability with runtime provider switching via Redis-backed model registry.
Adaptive AI Diagnostic Pipeline
Built a 3-round conversational diagnostic engine processing patient-uploaded skin images and structured symptom history to generate differential diagnoses, red flag detection, and personalised treatment plans via multi-stage Celery task chains.
Crash Recovery and Offline Data Sync
Engineered a fault-tolerant task queue with late-ACK acknowledgment, per-task retry policies (up to 3 retries), and 24-hour Redis result persistence, guaranteeing zero task loss on worker crash and enabling seamless Flutter client state recovery.
Runtime AI Prompt Registry with Version Control
Designed a Redis-backed prompt management system supporting runtime overrides, full version history, and one-click rollback across all AI modules without redeployment, with append-before-write versioning ensuring zero silent data loss.
Clinical Workflow, Audit Trail and Secure Authentication
Delivered QR-based doctor assignment, append-only audit logging (10+ typed clinical events), FCM push notifications, automated xhtml2pdf report generation, and stateless JWT-RBAC authentication secured by SHA-256 OTP email verification and Google OAuth 2.0.
Democratizing expert dermatology diagnostics through production-grade AI with zero downtime.
Features
- Multi-provider LLM routing with automatic failover
- Adaptive 3-round conversational diagnostic engine
- Crash recovery and offline data sync
- Runtime AI prompt registry with version control
- QR-based doctor assignment
- Append-only clinical audit trail (10+ event types)
- JWT-RBAC + Google OAuth 2.0 authentication
- Automated xhtml2pdf report generation
- Firebase FCM push notifications
Challenges
- Ensuring 100% AI availability across provider outages
- Fault-tolerant task processing with crash recovery
- Managing prompt versions without redeployment
