Skip to main content

Global File Transfer Platform

1. Executive Summary​

A global file transfer platform is an enterprise-grade system that moves large files reliably between organizations, business units, and cloud regions while satisfying security, compliance, and operational requirements that consumer file-sharing tools do not address. Typical workloads include batch data exchange with partners (B2B), internal ETL file drops, backup and disaster-recovery replication, media distribution, and regulated payloads (healthcare, financial, government) that demand encryption, audit trails, and non-repudiation.

At principal-architect level, the design problem is not "upload to object storage"—it is orchestrating multi-gigabyte transfers over unreliable networks, enforcing authorization and data residency, providing end-to-end integrity verification, supporting protocol heterogeneity (HTTPS, SFTP, AS2, S3-compatible APIs), and operating at planetary scale with predictable cost and recoverability. This chapter presents a generic reference architecture without vendor-specific or confidential implementation details, suitable for interviews and architecture reviews.

Core components include edge ingress agents, a transfer orchestration control plane, durable metadata service, chunked object storage with erasure coding or replication, workflow engine for retries and scheduling, certificate and key management, and comprehensive audit logging. Safety properties include at-least-once delivery with idempotent completion, integrity via checksums, and authorization enforced at every hop.

2. Why This Topic Matters​

File transfer remains a backbone of enterprise integration despite APIs and streaming. Principal candidates encounter this pattern when:

  • Designing data platforms that ingest partner files nightly.
  • Building multi-region DR with large blob replication.
  • Evaluating managed file transfer (MFT) vs. custom platforms.
  • Answering interviews that test resumable uploads, bandwidth fairness, and compliance.

Production failures in this domain cause missed SLAs with external partners, regulatory exposure, and multi-day recovery efforts. Architects must reason about partial uploads, clock skew in scheduling, cross-border data flows, and operator visibility into stuck transfers.

3. Problems Being Solved​

ProblemPlatform capability
Large file reliabilityChunking, resumable transfers, checkpointing
Partner protocol diversityProtocol adapters behind unified API
IntegrityPer-chunk and composite hashes; manifest
SecurityTLS/mTLS, encryption at rest, HSM-backed keys
ComplianceAudit log, retention, data residency routing
SchedulingCron, event triggers, SLA windows
Throughput at distanceParallel streams, edge caching, WAN optimization
Operational visibilityTransfer state machine, alerting, replay
Cost controlStorage tiering, lifecycle policies, egress budgeting
Failure recoveryIdempotent jobs, dead-letter queues, manual replay

4. Assumptions and System Model​

AssumptionImplication
Files are large (MB–TB)Chunked upload; avoid holding full file in app memory
Networks are lossyRetries with exponential backoff; resume tokens
Partners are heterogeneousAdapter layer; don't force single protocol
Compliance varies by tenantPolicy engine routes storage region and encryption
At-least-once deliveryIdempotent completion handlers
Partial failure is commonExplicit transfer state machine
Operators need forensicsImmutable audit trail

Failure model: Crash-stop nodes, network partitions, storage unavailability, certificate expiry—not Byzantine partners unless explicitly in scope.

5. Essential Terminology​

TermDefinition
MFTManaged File Transfer—enterprise orchestration of file movement
IngressEntry point where files enter the platform
EgressDelivery to destination (partner endpoint, bucket, filesystem)
Transfer jobUnit of work moving one logical file or batch
Chunk / partSubdivision of file for parallel or resumable upload
ManifestMetadata listing chunks, hashes, ordering
CheckpointPersisted progress enabling resume after failure
AS2Applicability Statement 2—HTTP-based B2B with signing/encryption
SFTPSSH File Transfer Protocol
Presigned URLTime-limited direct upload/download to object storage
Data residencyGeographic constraint on data storage and processing
RPO/RTORecovery point/time objectives for metadata and blobs
DLQDead-letter queue for failed jobs after max retries
mTLSMutual TLS—client and server certificate authentication

6. Core Mechanism​

6.1 Reference architecture​

Figure 1: Global file transfer platform—protocol adapters, control plane orchestration, and object storage data plane.

6.2 Transfer state machine​

States: PENDING → UPLOADING → ASSEMBLING → VERIFYING → READY → DELIVERING → COMPLETED | FAILED | CANCELLED.

Transitions are persisted; workers are stateless and claim jobs via lease. Safety: a file is marked COMPLETED only after composite hash verification and successful delivery acknowledgment (or policy-defined "landed in vault" without forward delivery).

Figure 2: Transfer job state machine—explicit states enable resume, audit, and operator intervention.

6.3 Chunked ingest with resumability​

  1. Client calls InitiateTransfer → receives transfer_id, chunk size, presigned URLs or upload session token.
  2. Client uploads chunks in parallel with per-chunk SHA-256.
  3. Client calls CompleteChunk(transfer_id, index, hash); server verifies and records in manifest.
  4. On disconnect, client calls ListCompletedChunks and resumes.
  5. On SealTransfer, workers assemble multipart object in storage (server-side compose) without streaming through orchestrator.
  6. Composite hash compared to client-supplied digest or partner contract.

Liveness: stalled uploads detected by heartbeat timeout; leases expire for worker reassignment.

6.4 Delivery paths​

Destination typeMechanism
Object storage (S3-compatible)Server-side copy or cross-region replication
Partner SFTPEgress worker with connection pooling, host key pinning
Internal filesystemMounted volume or NFS with virus scan hook
Event notificationMessage to downstream pipeline on READY

Policy engine selects region, encryption key, and allowed protocols per tenant and data classification.

7. Step-by-Step Walkthrough​

7.1 Partner uploads 50 GB file via HTTPS​

  1. Partner authenticates with API key + mTLS (tenant T1, classification PII, residency EU).
  2. Policy routes storage to eu-west bucket with CMK T1-EU.
  3. Orchestrator creates job J-9001, state PENDING.
  4. API returns 64 MB chunk size; 800 presigned URLs generated in batches.
  5. Partner uploads 800 chunks over 4 parallel TCP connections; checkpoint every 50 chunks.
  6. Network blip at chunk 412; partner resumes from 412 without re-uploading 0–411.
  7. SealTransfer triggers server-side multipart complete; manifest hash verified.
  8. State → READY; scheduled delivery to internal analytics bucket at 02:00 UTC window.
  9. Egress worker copies with storage replication; downstream event file.landed published.
  10. Audit log records actors, hashes, regions, timestamps—immutable store.

7.2 Failure: hash mismatch at verify​

  1. Composite hash ≠ expected EDI control number hash.
  2. State → FAILED; alert to operations; file quarantined.
  3. Partner notified with correlation ID; replay requires new transfer or chunk re-upload per policy.
  4. No downstream processing—safety over liveness.

8. Invariants and Guarantees​

PropertyGuaranteeMechanism
IntegrityDetected corruptionPer-chunk + composite hashing
AuthorizationOnly entitled actorsPolicy + IAM + mTLS
AuditabilityAppend-only event trailWORM or immutable log store
Idempotent completionDuplicate complete safeUnique constraint on transfer_id + state CAS
ResidencyData not stored outside regionPolicy-enforced bucket routing
DeliveryAt-least-once typicalRetries; partners must dedupe via file ID

Not guaranteed by default: exactly-once end-to-end delivery to partner systems without partner cooperation; sub-second latency for TB files.

9. Failure Scenarios​

ScenarioImpactMitigation
Orchestrator crash mid-jobStalled stateLease expiry; worker reclaim
Partial chunk uploadIncomplete manifestListCompletedChunks; garbage-collect orphans
Storage AZ outageIngest blockedMulti-AZ bucket; failover region read-only mode
Certificate expiryPartner cannot connectAutomated cert rotation; 30-day alerts
Hot tenant saturates bandwidthStarvationPer-tenant QoS; weighted fair queuing
Malicious huge file bombCost/DoSPre-auth quotas; max file size; scan hooks
Clock skew in schedulingEarly/late deliveryUTC clocks; NTP monitoring
Cross-region egress cost spikeBudget breachTransfer planning; same-region landing zones
Duplicate deliveryDownstream double processIdempotent file IDs; partner ack dedup
Metadata DB corruptionLost job stateReplicated DB; PITR; reconcile from object tags

10. Performance Characteristics​

DimensionTypical target (illustrative)Drivers
ThroughputLine-rate bounded by WANParallelism, chunk size, TCP window
Latency to first byteSeconds (API)Auth, policy, presign generation
Time to complete 100 GBMinutes–hours1 Gbps ≈ 13 min theoretical; overhead 2–4×
Metadata opsThousands of state updates/secSharded job store
Audit writeAsync batchDon't block data path

Tune chunk size: larger chunks reduce metadata overhead; smaller improve resume granularity and parallelism on lossy links.

11. Scalability Limits​

LimitCauseMitigation
Metadata DB write rateOne row per chunk completeBatch updates; coarser checkpoints
Presigned URL explosionHuge chunk countsSession-based upload proxy for small chunks
Orchestrator queue depthTraffic spikesHorizontal workers; priority queues
Object listing for GCOrphan chunk cleanupLifecycle rules; prefix sharding by date
Cross-region replication lagWAN distanceAccept async DR; sync only for critical tier
SFTP connection countStateful protocolConnection pools; dedicated egress pools per partner

Horizontal scale applies to stateless workers; metadata and policy stores require sharding by tenant_id or transfer_id hash.

11.1 Multi-region deployment pattern​

Most enterprises adopt regional landing zones rather than a single global control plane streaming all bytes. Metadata may be global or federated per region depending on latency and compliance tradeoffs.

Figure 3: Regional landing zones with federated audit—data residency enforced at routing layer; cross-region replication only when policy permits.

Active-active for the same file across regions is rare; active-passive DR with async replication is more common for cost and conflict reasons.

12. Operational Considerations​

  • Dashboards: transfers in flight, bytes/sec per region, failure rate by protocol, p95 time-to-complete.
  • Alerting: SLO burn on stuck UPLOADING > N hours; DLQ depth; cert expiry.
  • Runbooks: replay failed delivery; quarantine malicious file; drain region.
  • Capacity: storage growth forecasting; egress budget alarms.
  • Upgrades: blue/green adapters; backward-compatible API versions.
  • Support tooling: operator search by transfer_id, partner ID, hash.

Principal architects define SLOs such as 99.9% of scheduled transfers complete within window W.

13. Security Considerations​

  • Perimeter: WAF on HTTPS; rate limits; geo-blocking where legal.
  • Identity: Federation with enterprise IdP; per-partner credentials rotation.
  • Encryption: TLS 1.2+ in transit; SSE-KMS or CSE at rest; optional client-side encryption for zero-knowledge tiers.
  • Secrets: Vault/HSM; no long-lived keys in config repos.
  • Malware: Optional ClamAV or commercial scan on READY before forward.
  • Least privilege: Workers get scoped IAM to specific bucket prefixes.
  • Audit: Tamper-evident logs for compliance (SOX, HIPAA, GDPR artifacts).

Threat model STRIDE on partner-facing adapters and presigned URL leakage (short TTL, single-use where possible).

Partner credential lifecycle deserves explicit design: rotate API keys on schedule, support overlapping validity windows, and audit every authentication failure with correlation to transfer jobs. For high-assurance partners, prefer mTLS with short-lived certificates issued from an internal PKI rather than long-lived shared secrets embedded in scripts.

14. Cost Considerations​

Cost driverControl lever
Storage GB-monthsLifecycle to IA/Glacier; delete after retention
Cross-region egressLand in-region; compress; schedule off-peak
API operationsBatch metadata; server-side compose
Compute for workersAutoscale on queue depth; spot for batch egress
Managed MFT licenseBuild vs. buy when differentiation low

Unit economics: $/GB transferred and $/1000 files—compare to partner SLA penalties.

15. Production Implementations​

CategoryExamples (generic)
Commercial MFTIBM Sterling, GoAnywhere, Axway—protocol breadth, governance
Cloud nativeAWS Transfer Family, Azure Logic Apps + SFTP, GCP Storage transfer
Open source building blocksMinIO, rclone, Apache NiFi, Airflow for orchestration
CDN-style large deliveryOrigin pull from object storage with signed URLs

Implementation choice: buy MFT when compliance certifications and protocol support dominate; build when deep integration with internal data platform and custom policy is strategic.

16. Alternatives and Tradeoffs​

OptionProsCons
Direct S3 cross-accountSimple, cheapWeak workflow, audit, partner SFTP
SFTP-only gatewayFamiliar to partnersScaling connections; limited orchestration
Message bus with attachmentsUnified eventsPoor for multi-GB payloads
Peer-to-peer (WeTransfer model)Low infraEnterprise control weak
Full custom platformTailored policyHigh build/ops cost
Sync (rsync)Efficient deltaNot partner-friendly; firewall pain

17. Common Misconceptions​

MisconceptionReality
"S3 multipart is enough"Missing orchestration, audit, partner protocols
"Checksum optional"Silent corruption destroys trust
"One region is fine"Residency and DR often mandate multi-region
"SFTP is secure by default"Weak ciphers, credential sprawl without governance
"Exactly-once is free"Requires idempotent partners or transactional outbox
"Bigger chunks always faster"Resume cost and memory on mobile clients

18. Principal Architect Perspective​

  • Separate control plane from data plane—orchestrator never streams file bytes.
  • Treat transfer_id as idempotency key across initiate/complete.
  • Policy as code for residency and retention—avoid hardcoded routing.
  • Design for operator intervention—stuck jobs are inevitable at scale.
  • Negotiate SLAs with partners on retry semantics and duplicate handling.
  • Measure end-to-end, not just upload API latency.

19. Architecture Review Exercise​

Scenario: Team proposes streaming all files through a single Kubernetes service that buffers to disk before uploading to object storage. Peak: 20 Gbps aggregate, files up to 500 GB.

Review:

  1. Identify bottleneck (disk I/O, pod network, memory).
  2. Propose presigned direct-to-storage upload with metadata-only control plane.
  3. Define state machine and failure recovery.
  4. Estimate cost difference (double network hop eliminated).
  5. Security: can presigned URLs leak? TTL and scope?

20. Whiteboard Explanation​

"Partners connect through protocol adapters into a transfer API. The orchestrator creates a durable job with a state machine—uploading, verifying, delivering. Files are chunked and uploaded directly to regional object storage using presigned URLs so we don't proxy bytes through the control plane. Each chunk is hashed; on completion we verify the composite hash before marking ready. Policy routes storage by tenant residency and encryption requirements. Egress workers deliver to partner endpoints or internal pipelines with retries and dead-letter queues. Audit logs capture who sent what, when, and where. The design prioritizes resumability, integrity, and compliance over raw simplicity."

21. Interview Questions​

  1. Design global file transfer for 10K partners. — Adapters, orchestration, storage, policy.
  2. How resume a 100 GB failed upload? — Chunk manifest, ListCompleted, presigned resume.
  3. Ensure file integrity? — Per-chunk hash, composite, optional PGP signing.
  4. Multi-region active-active? — Metadata replication complexity; often active-passive per file.
  5. Handle SFTP at scale? — Connection pools, dedicated pools, horizontal egress.
  6. Data residency enforcement? — Policy engine, bucket routing, no cross-region copy.
  7. Idempotent transfer completion? — CAS on state; unique transfer_id.
  8. Cost optimize cross-region? — Land in-region, lifecycle, compress, schedule.
  9. Audit for compliance? — Immutable log, correlation IDs, retention.
  10. Detect stuck transfers? — Heartbeat, lease timeout, alerting.
  11. AS2 vs. SFTP tradeoffs? — HTTP firewalls, non-repudiation vs. simplicity.
  12. Build vs. buy MFT? — Compliance, differentiation, TCO, time-to-market.

22. Interview Follow-Ups​

  1. Partner claims they didn't receive file but you show COMPLETED. — Ack semantics, MDN (AS2), audit trail.
  2. Encrypt end-to-end with keys partner holds. — Client-side encryption; you never see plaintext.
  3. 10× file volume next year. — Shard metadata, autoscale workers, storage lifecycle.
  4. Ransomware on partner upload. — Scan hooks, immutable backups, isolation bucket.
  5. Exactly-once to data warehouse. — Landing zone + dedup on file_id in loader.

23. Strong Answer Example​

Question: "How would you design resumable uploads for very large files?"

Answer this as a 45-minute design discussion using the PRACTICE framework. Below is how a strong student sounds aloud—chunk + persisted manifest + direct-to-storage, not “stream the whole file through the API.”

Figure A: PRACTICE map — walk the board in this order; resumability lives in Capacity → Topology → Invariants.


Student interview script (PRACTICE)​

P — Problem framing​

"Very large files—tens of GB to TB—fail mid-upload all the time: laptop sleep, WAN blips, proxy timeouts, client crashes. A single PUT that must restart from byte zero is unusable.

Resumable upload means: after a disconnect, the client continues from the last durable checkpoint, not from the beginning. That requires a transfer job with persisted state, fixed-size chunks (except the last), an idempotent chunk-complete API, and a seal that assembles the object server-side in object storage so the control plane never proxies terabytes.

Short answer: Initiate → upload chunks with per-chunk hashes (presigned / session) → record completed indices in a manifest → on failure ListCompletedChunks and resume → Seal + composite hash → only then READY. Chunk size trades metadata overhead vs resume granularity—I'd start 32–128 MB on datacenter links."

Step-by-step flow:

StepPathInterview words
1NaiveWastes hours and partner SLA
2ResumableManifest tells client which indices exist

R — Requirements​

TypeRequirement
FRUpload files up to multi-GB/TB; pause/resume; report progress
FRIntegrity: detect corruption before marking ready
NFRResume within seconds of reconnect; no full re-transfer
NFRControl plane stays thin—bytes go client → object store
SafetyDuplicate CompleteChunk is a no-op; seal is idempotent
OpsAbandoned uploads TTL / GC; stuck-job alerts

"I'd ask: max file size? Client type (browser, SDK, SFTP adapter)? WAN or same-region? Do they need encryption in transit only or also checksum contracts with partners?"

A — Assumptions (state aloud)​

AssumptionWhy it matters
Object storage supports multipart / composeServer-side assemble without app proxy
Client can compute SHA-256 (or MD5/ETag) per partIntegrity + resume verification
Metadata DB is source of truth for progressStorage alone isn't enough for UX/ops
At-least-once CompleteChunkMust be idempotent on (transfer_id, index)
Orchestrator never holds file bytesScale + cost + blast radius
Last chunk may be shortProtocol must allow

"If they say 'buffer on the API pod then upload to S3,' I'd push back—500 GB through Kubernetes disk is a non-starter."

C — Capacity (back-of-envelope)​

Example: 100 GB file, 64 MB chunks
Parts → 100×1024/64 ≈ 1,600 chunks
Manifest rows → ~1,600 CompleteChunk records
Parallelism (4 streams) → ~4× throughput vs serial
Metadata write rate → 1 row per completed chunk (batched OK)
Resume after fail at 90% → re-upload ~10% ≈ 160 chunks — not 1,600
Abandoned multipart GC → lifecycle / AbortMultipart after TTL (e.g. 7d)

1 TB file @ 64 MB → ~16,000 parts — still fine if batch status API
Too-small chunks (1 MB) on 1 TB → ~1M metadata ops — avoid
Too-large chunks (1 GB) on flaky WAN → painful resume granularity

"I'd say the number out loud: 100 GB ÷ 64 MB ≈ 1,600 parts—that's the whiteboard proof I sized the manifest."

T — Topology (draw this)​

Step-by-step flow:

StepActionExplanation
1–2InitiateCreate job PENDING→UPLOADING; return chunk size + upload tokens
3Direct PUTBytes never traverse the API tier
4CompleteChunkIdempotent upsert on (transfer_id, part_index)
5ListCompletedResume set = missing indices
6–8SealAssemble + verify → READY or FAILED

Happy path + resume sequence:

State machine (say + draw):

APIIdempotent?Notes
InitiateTransferOptional client keySame intent → same transfer_id
CompleteChunk(i)YesKeyed by (transfer_id, i)
ListCompletedChunksRead-onlyResume driver
SealTransferYesSecond seal returns same outcome
AbortTransferYesAbort multipart + mark CANCELLED

I — Invariants (safety)​

"Non-negotiable on the board:

  1. Bytes bypass the control plane — API stores metadata only.
  2. Progress is durable in the manifest before the client forgets a part.
  3. CompleteChunk is idempotent — retries don't corrupt the part list.
  4. Seal only when all indices [0..N-1] are present (or sparse protocol with explicit length).
  5. READY only after composite integrity check — never trust client alone.
  6. Abandoned uploads are GC'd — multipart + manifest TTL.
  7. transfer_id is the correlation / idempotency spine for the whole job."

C — Constraints (second C)​

ConstraintDesign response
Flaky mobile / WANSmaller chunks; more parallelism with fairness; longer session TTL
Browser memoryStream parts; don't hold whole file
Presigned URL leakageShort TTL; scoped to part key; optional single-use
App-tier proxy temptationHard rule + capacity math (egress ×2)
Hash mismatch at sealFAILED + quarantine; don't deliver downstream
SFTP partners (no SDK)Adapter does chunking server-side into same manifest model
Hot tenant saturates linksPer-tenant QoS / weighted fair upload slots

E — Evolution (prove it)​

Phased delivery:

PhaseDeliverable
M1Initiate / CompleteChunk / List / Seal against one region bucket
M2Presigned multipart; remove byte proxy path
M3Per-chunk + composite hashing; FAILED quarantine
M4TTL GC for abandoned multipart + orphan parts
M5Parallel part upload + per-tenant concurrency caps
M6Chaos: kill client at 50%/90%; assert resume bytes ≪ full size
M7Partner SFTP adapter writing the same manifest

Failure modes:

FailureMitigation
Client crash mid-fileListCompleted → resume
CompleteChunk timeout (ambiguous)Retry same (transfer_id, i)
Seal hash mismatchFAILED; no downstream
Stuck UPLOADINGHeartbeat / lease; alert; abort after SLA
Orphan multipart costLifecycle AbortIncompleteMultipartUpload
Duplicate SealReturn prior READY

Observability: parts completed / total, bytes remaining, time-since-last-part, seal latency, hash-fail rate, abandoned-upload count, resume-to-complete ratio.


Closing line (interview)​

"For very large files, I wouldn't stream through the app. I'd create a durable transfer job, split into 64 MB-class chunks, upload direct to object storage, record each part in an idempotent manifest, and on failure list completed parts and resume. Seal does server-side multipart complete and composite hash verify before READY. That gives resumability, integrity, and a control plane that scales—chunk size is the main knob between metadata chatter and resume waste."

Scoring signals​

StrongWeak / red flag
Manifest + ListCompleted resume"Just use a bigger timeout"
Direct-to-storage / presignedProxy all bytes via API/K8s
Idempotent CompleteChunk + SealBlind re-upload whole file
Composite hash before READY"Checksum optional"
Chunk size BOENo numbers
TTL GC for abandoned multipartIgnore orphan storage cost
State machine vocabularyOnly "S3 multipart" with no job/ops story

Compact outline (if time-boxed to 2 minutes)​

"Initiate job → chunk 32–128 MB → client uploads parts direct to object store with hashes → CompleteChunk idempotent into manifest → on disconnect ListCompleted and resume → Seal multipart + verify composite → READY. GC abandoned uploads. Control plane never streams the file."

Whiteboard checklist (student self-score)​

  • Drew control plane vs data plane
  • Named Initiate / CompleteChunk / ListCompleted / Seal
  • Showed resume path after mid-file failure
  • Gave chunk-size math for a 100 GB example
  • Said idempotent chunk complete
  • Said hash verify before READY
  • Mentioned abandoned multipart GC

24. Weak Answer Example​

Question: "How would you design resumable uploads for very large files?"

"I'd put a load balancer in front of some upload servers and store files on S3. If it fails, the client retries. We can scale the upload pods horizontally. Multipart upload is enabled."

Why weak / red flags: No chunk manifest or resume protocol; implies re-upload from scratch; no integrity story; no control-vs-data plane; "scale pods" doesn't fix WAN failure; name-drops S3 multipart without job state, idempotency, seal, or GC.

25. Hands-On Exercise​

  1. Implement a minimal transfer API: Initiate, UploadChunk (simulate), Complete, Status.
  2. Add SQLite manifest with state machine transitions.
  3. Simulate failure at random chunk; verify resume works.
  4. Add per-chunk SHA-256 verification.
  5. Document BOE: 1 TB/day ingress, metadata rows per chunk, storage cost.
  6. Write threat model for presigned URL leakage.

26. Knowledge Check​

  1. Why separate control and data planes for file transfer?
  2. Name five transfer states in the reference state machine.
  3. What is a manifest in chunked upload?
  4. How enforce data residency?
  5. At-least-once vs. exactly-once delivery—typical choice?
  6. What triggers transition from VERIFYING to FAILED?
  7. Name two partner protocols and one tradeoff.
  8. How detect orphaned chunks?
  9. What belongs in an immutable audit log entry?
  10. Why presigned URLs vs. proxy upload?
  11. What is weighted fair queuing used for?
  12. RPO for metadata vs. blobs—often different?

27. Flashcards​

FrontBack
MFTManaged File Transfer—enterprise orchestrated file movement
Chunked uploadSplit file for parallelism and resume
Presigned URLTime-limited direct access to object storage
Transfer state machinePENDING → UPLOADING → … → COMPLETED/FAILED
Composite hashVerify entire file from chunk hashes
Data residencyStore/process only in approved geography
At-least-once deliveryRetries may duplicate; idempotency required
AS2HTTP B2B protocol with signing/encryption
DLQHolds jobs failed after max retries
Server-side composeAssemble multipart object without app proxying bytes
mTLSMutual certificate authentication
Quarantine bucketIsolation for failed verification or malware

28. Cheat Sheet​

ARCHITECTURE
Adapters (SFTP/HTTPS/AS2) → API → Orchestrator
Metadata DB + Audit (control plane)
Ingest/Egress workers → Object Storage (data plane)

STATE MACHINE
PENDING → UPLOADING → ASSEMBLING → VERIFYING → READY → DELIVERING → COMPLETED

RESUME
Initiate → upload chunks with hash → CompleteChunk (idempotent)
→ ListCompleted on failure → resume → Seal → verify composite

SECURITY
mTLS, presigned TTL, SSE-KMS, policy routing, immutable audit

SCALE
shard metadata by tenant_id; autoscale workers; per-tenant QoS

30. References​

Standards and specifications​

  • RFC 4130 — MIME-based secure B2B data exchange (AS2 foundation)
  • IETF SFTP specifications — SSH file transfer
  • NIST SP 800-57 — Key management guidance

Industry and academic​

  • Kleppmann, M. (2017). Designing Data-Intensive Applications. O'Reilly. [Object storage, batch processing]
  • Amazon S3 multipart upload documentation — server-side compose patterns (implementation reference)

Distinction​

  • Formal guarantees — Integrity via cryptographic hashes; TLS confidentiality on wire.
  • Implementation choices — Commercial MFT vs. cloud-native vs. custom orchestration.
  • Operational experience — Chunk size and timeout tuning vary by network; verify with partner pilots.