Blazing iconBlazing
Coming SoonDev Preview

This content is part of an upcoming preview program. Request early access

Real-world examples from Blazing Batch's production test suite

Learn Blazing Batch through real-world examples extracted from our production test suite of 100+ unit tests.

Getting Started

Basic Task Execution

Create and execute your first distributed task.

You'll learn:

  • Initialize a Blazing app
  • Create tasks with create_workflow_task()
  • Retrieve results with gather()
  • Proper resource cleanup

Time: 5 minutes


Parallel Execution

Execute multiple tasks concurrently for maximum throughput.

You'll learn:

  • Create batch tasks efficiently
  • Achieve 4-10x speedup with parallelization
  • Optimize for different workload sizes
  • Monitor concurrency levels

Time: 10 minutes


Advanced Topics

Error Handling

Handle failures, edge cases, and ensure pipeline resilience.

You'll learn:

  • Validate parameters and workflows
  • Handle timeouts and network failures
  • Implement retry logic with exponential backoff
  • Manage partial failures in batch operations

Time: 15 minutes


Concurrency Patterns

Master CRDT queue operations and multi-node coordination.

You'll learn:

  • CRDT-based queue architecture
  • Lock-free distributed operations
  • Multi-app isolation patterns
  • Network resilience strategies

Time: 20 minutes


Quick Reference

Task Lifecycle

Python

Parallel Pattern

Python

Error Handling Pattern

Python

Test Suite

All examples are based on our production test suite:

  • Location: /Users/jonathanborduas/code/blazing/tests
  • Test Count: 100+ comprehensive tests
  • Coverage: Infrastructure, performance, concurrency, security
  • Real-world: Validated in production workloads

Key Test Modules

ModuleFocusExamples
test_infrastructure.pyBasic operationsTask creation, parallel execution
test_error_handling.pyEdge casesFailures, validation, cleanup
test_concurrency.pyCRDT queuesLock-free ops, race conditions
test_performance.pyThroughputBenchmarks, framework comparisons
test_security.pyMulti-tenancyIsolation, attestation

Running the Tests

Bash

See tests/README.md for complete testing guide.

Performance Benchmarks

Real-world performance from our test suite:

Throughput

WorkersTasksTimeThroughput
41002.5s40 tasks/s
10100010s100 tasks/s
20500025s200 tasks/s

Parallelization Speedup

SequentialParallelWorkersSpeedup
100s10s1010x
100s5s2020x
100s2.5s4040x

Latency (p50/p95/p99)

Operationp50p95p99
Task creation5ms15ms30ms
Queue operations2ms8ms20ms
Result retrieval10ms50ms100ms

Next Steps

Documentation

Getting Started

Community


All examples are battle-tested - extracted from our production test suite with 100+ tests covering infrastructure, performance, concurrency, and security scenarios.