Skip to main content

RankDisco Architecture Diagrams

Comprehensive Mermaid diagrams for the RankDisco system architecture.


1. System Architecture​

Full system overview showing all Cloudflare bindings and external integrations.


2. Data Flow Diagram​

How data moves through the RankDisco system from entry to storage.


3. Classification Pipeline​

The 5-stage classification pipeline used for domains, URLs, and keywords.


4. Domain Onboard Sequence​

Step-by-step workflow for onboarding a new domain.


5. Queue Topology​

All queues and their relationships in the RankDisco system.


6. Storage Architecture​

D1, KV, R2, and Vectorize relationships.


7. Cost Flow Diagram​

How costs are tracked and attributed across the system.


8. Workflow State Machine​

State transitions for the main workflows.


9. V3 Taxonomy Hierarchy​

The domain classification taxonomy structure.


10. Admin Console Architecture​

The admin console UI structure and API connections.


Summary Tables​

Workflow Summary​

WorkflowBindingConsumer QueuePurpose
DomainOnboardWorkflowDOMAIN_ONBOARD_WORKFLOWdomain-onboardDomain intelligence gathering
DomainClassifyWorkflowDOMAIN_CLASSIFY_WORKFLOWdomain-classify5-stage domain classification
UrlClassifyWorkflowURL_CLASSIFY_WORKFLOWurl-classify5-stage URL classification
KeywordClassifyWorkflowKEYWORD_CLASSIFY_WORKFLOWkeyword-classify5-stage keyword classification
SerpTrackingWorkflowSERP_TRACKING_WORKFLOW-SERP position tracking
AppDetailsWorkflowAPP_DETAILS_WORKFLOWapp-info-fetchApp metadata enrichment
SubscriptionDispatchWorkflowSUBSCRIPTION_DISPATCH_WORKFLOW-Daily cron coordinator
LlmVerifyWorkflowLLM_VERIFY_WORKFLOW-Low-confidence re-verification

Storage Bindings​

BindingTypePurpose
DBD1Main database (rankfabric_db)
LOOKUP_CACHEKVURL/Domain fast lookup
BRAND_CACHEKVBrand info by root domain
PIPELINE_ACTIVITYKVReal-time DAG state
R2R2Payload storage
DFS_RAW_PAYLOADSR2Raw API responses
VECTORIZE_DOMAINSVectorizeDomain classifier
VECTORIZE_BACKLINKVectorizeURL classifier
VECTORIZE_KEYWORDSVectorizeKeyword classifier

Cost Services​

ServiceCostNotes
dataforseo_backlinks$0.02Per API call
dataforseo_keywords$0.005Per API call
dataforseo_serp$0.0035Per API call
dataforseo_instant_pages$0.000125Per URL
zenrows_basic$0.001Per request
zenrows_premium$0.01Per request
cf_workers_ai~$0.02Per LLM call
youtube_apiFREE10K units/day

Classification Thresholds​

PipelineEarly ExitLearning ThresholdStorage
Domain>= 65%>= 80%VECTORIZE_DOMAINS
URL>= 70%>= 65%VECTORIZE_BACKLINK
Keyword>= 65%>= 70%VECTORIZE_KEYWORDS