Tutorial¶
This tutorial will guide you through using Routilux step by step, from creating your first routine to building complex workflows with error handling, concurrent execution, and advanced patterns.
The tutorial is designed to be hands-on. Each chapter includes working code examples that you can run and experiment with. We recommend following the chapters in order, as each builds upon concepts introduced in previous chapters.
Learning Path¶
The tutorial is organized into progressive chapters:
Getting Started - Create your first routine and flow
Connecting Routines - Learn how to connect routines and understand event flow
Data Flow and Parameters - Understand how data flows between routines
State Management - Track execution state and statistics
Error Handling - Build resilient workflows with error handling strategies
Concurrent Execution - Execute independent routines in parallel
Advanced Patterns - Learn aggregation patterns, conditional routing, and more
Serialization and Persistence - Save and restore workflow state
Each chapter includes:
Learning Objectives: What you’ll learn by the end of the chapter
Step-by-step examples: Progressive code examples with explanations
Expected Output: Verified output from running the examples
Key Points: Important concepts and best practices
Common Pitfalls: Mistakes to avoid and how to fix them
Best Practices: Recommended approaches for production code
- Getting Started
- Connecting Routines
- Data Flow and Parameters
- State Management
- Error Handling
- Learning Objectives
- Step 1: Understanding Error Strategies
- Step 2: Using CONTINUE Strategy
- Step 3: Using RETRY Strategy
- Step 4: Using SKIP Strategy
- Step 5: Routine-Level Error Handlers
- Step 6: Critical and Optional Routines
- Step 7: Complete Example - Resilient Workflow
- Common Pitfalls
- Best Practices
- Next Steps
- Concurrent Execution
- Advanced Patterns
- Serialization and Persistence
- Learning Objectives
- Step 1: Basic Flow Serialization
- Step 2: Deserializing Flows
- Step 3: Serialization Requirements
- Step 4: Saving and Loading JobState
- Step 5: Understanding Multiple Executions
- Step 6: Complete Example - Cross-Host Execution Recovery
- Common Pitfalls
- Best Practices
- Understanding Multiple Executions
- Next Steps