Case study · ByteDance · 2022-01 — 2023-11
CDN Vendor Allocation
Traffic allocation across CDN vendors using forecast and performance signals.
Role · Python / Go engineer
- Go
- Python
- CDN
- RBAC
- Multi-tenancy
01
Overview
- Context
- Video products depended on multiple CDN providers and needed structured procurement, reporting, incident, and allocation workflows.
- My contribution
- Developed workflow features, implemented allocation logic, and extended RBAC multi-tenancy.
- Technology
- Go, Python, CDN systems, RBAC, and multi-tenant backend services.
- Result
- Supported quarterly procurement allocation across multiple CDN providers.
02
The Problem
Quarterly traffic allocation had to account for forecast demand and vendor performance while fitting existing multi-tenant operational and procurement workflows.
03
My Role
Python / Go engineer
- Developed backend features across the Go-based CDN vendor management workflow.
- Implemented a traffic-allocation algorithm for quarterly procurement planning.
- Extended RBAC multi-tenancy for an in-house CDN.
04
Architecture
A focused map of the components and responsibility boundaries that matter to this project.
Architecture
Allocation and operations boundaries
- 01Planning inputs
Forecast demand and performance context
- 02Vendor workflow
Planning, reporting, and operations
- 03Allocation engine
Quarterly decision support
- 04Procurement plan
Reviewed vendor allocation
- 05Vendor destinations
Multiple CDN providers
- 06Access boundary
RBAC multi-tenant controls
- 07Monitoring
Operational and performance context
Planning inputsVendor workflowcontextVendor workflowAllocation engineplanAllocation engineProcurement planproposeProcurement planVendor destinationsallocateAccess boundaryVendor workflowauthorizeVendor destinationsMonitoringobserveMonitoringVendor workflowfeedback
Planning inputs enter the vendor management workflow, where allocation logic supports procurement planning across CDN destinations. RBAC constrains tenant access, while monitoring returns operational context to the workflow. - 01Planning inputs
05
How It Works
The primary sequence that moves work or data through the system.
Flow
Quarterly allocation workflow
- 01Forecast
Expected traffic demand
- 02Performance
Vendor operating context
- 03Allocation
Quarterly vendor proposal
- 04Review
Operational and procurement review
- 05Distribution
Allocation across CDN vendors
- 06Monitoring
Performance context for future planning
ForecastAllocationdemandPerformanceAllocationcontextAllocationReviewproposeReviewDistributionapproveDistributionMonitoringobserveMonitoringPerformancenext cycle
Forecast demand and vendor-performance context feed an allocation proposal. The proposal moves through review and procurement planning before traffic is distributed across vendors, with monitoring informing the next planning cycle. - 01Forecast
06
Key Technical Decisions
- Problem
- An isolated allocation calculation would separate decisions from the workflow and inputs used to operate them.
- Choice
- Keep allocation inside the established vendor management and procurement workflow.
- Why
- This kept forecasts, vendor performance context, operational use, and allocation decisions connected.
- Trade-off
- The allocation implementation had to respect existing workflow boundaries and domain constraints.
- Problem
- The in-house CDN needed tenant-aware access without creating another permissions model.
- Choice
- Extend the existing RBAC multi-tenant model.
- Why
- Reusing the established authorization boundary avoided a parallel access path and kept permissions consistent.
- Trade-off
- New CDN capabilities had to fit the semantics and migration constraints of the existing model.
07
Challenges
- Connecting forecast demand and vendor-performance context to decisions inside an established operational workflow.
- Extending access controls without fragmenting the multi-tenant authorization model.
08
Outcome
- Supported quarterly procurement allocation for ByteDance video products across multiple CDN providers.
- Kept allocation decisions, operational workflows, and multi-tenant access controls within one backend system boundary.
09
What I Learned
- Learned
- Allocation software is useful only when its inputs, permissions, and operating workflow are understandable to the people using it.
- Reflection
- The system-level story is how allocation decisions stay connected to operational workflows and access boundaries across each planning cycle.
This was an employer-owned production system. Architecture and implementation details shown here are simplified to protect confidential information.