apple / swift-temporal-sdk
Swift SDK for Temporal
AI Architecture Analysis
This repository is indexed by RepoMind. By analyzing apple/swift-temporal-sdk in our AI interface, you can instantly generate complete architecture diagrams, visualize control flows, and perform automated security audits across the entire codebase.
Our Agentic Context Augmented Generation (Agentic CAG) engine loads full source files into context on-demand, avoiding the fragmentation of traditional RAG systems. Ask questions about the architecture, dependencies, or specific features to see it in action.
Repository Overview (README excerpt)
Crawler viewTemporal Swift SDK Temporal is a distributed, scalable, durable, and highly available orchestration engine used to execute asynchronous, long-running business logic in a scalable and resilient way. ⢠š Swift package for authoring Temporal workflows and activities ⢠š¦ Compatible with Swift Package Manager ⢠š± Supports Linux (including the static SDK), macOS, iOS ⢠š§ Built with Swift 6.2+ and Xcode 26+ š Jump to: ⢠š Overview ⢠āļø Use Cases ⢠š Getting Started ⢠š Documentation ⢠𧰠Release Info ⢠š ļø Support š Overview The Temporal Swift SDK provides a package for building distributed, durable workflows and activities using Swift's modern concurrency features. Temporal enables you to build reliable applications that recover from failures, scale dynamically, and maintain long-running business processes with confidence. **Key Features:** ⢠š **Durable Workflows**: Build fault-tolerant workflows that survive infrastructure failures ⢠šļø **Scalable Architecture**: Distribute workflow execution across multiple workers ⢠┠**Swift Concurrency**: Native integration with Swift Structured Concurrency ⢠šÆ **Type Safety**: Compile-time type checking for workflow and activity definitions ⢠š **Observability**: Built-in support for logging, metrics and tracing ⢠š§ **Macro-based APIs**: Simple and macros to avoid boilerplate ⢠𧪠**Testing Support**: Easily test your workflows and activities āļø Use Cases The Temporal Swift SDK excels in scenarios requiring reliable, long-running business processes such as: **š E-commerce & Payment Processing** ⢠Order fulfillment workflows with inventory, payment, and shipping coordination ⢠Multi-step payment processing with automatic retry and rollback capabilities ⢠Subscription billing and recurring payment management **š Data Processing & ETL** ⢠Large-scale data transformation pipelines with fault tolerance ⢠Event-driven data processing with guaranteed delivery ⢠Batch processing jobs with progress tracking and resumption **š¢ Business Process Automation** ⢠Approval workflows with human-in-the-loop interactions ⢠Multi-system integration and orchestration ⢠Document processing and compliance workflows **š Monitoring & Operations** ⢠Health check orchestration across distributed systems ⢠Automated incident response and remediation ⢠Scheduled maintenance and cleanup tasks š Getting Started Prerequisites ⢠Swift version: Swift 6.2+ To install/upgrade Swift, see https://www.swift.org/install/ Adding as a dependency To use the Swift Temporal SDK in your Swift project, add it as a dependency in your file: Running the project ⢠**Clone the repository** ⢠**Build the package** ⢠**Run tests** ⢠**Run an example** Usage Here's a simple example showing how to create a workflow and activity: š Documentation ⢠API Documentation - Complete API reference and guides ⢠Examples ⢠Sample projects demonstrating various features š§° Release Info > [!NOTE] > This SDK is currently under active development. ⢠Release Cadence: Ad-hoc whenever changes land on ⢠Version Compatibility: Swift 6.2+ and macOS 15.0+ only š ļø Support If you have any questions or need help, feel free to reach out by opening an issue.