How Shree Maruti Integrated Logistic Limited (SMILe) Uses Temporal to Orchestrate Multi-Channel Logistics Workflows

SMILE-logo

Industry

Logistics

Use Case

Logistics orchestration

Company Size

250-2000

SDK

Go

Temporal

Self-Hosted


Shree Maruti Integrated Logistic Limited (SMILe) operates a complex logistics platform where no two bookings are quite alike. Depending on the shipment, the customer, and destination, a booking might flow through a courier network, a hyperlocal delivery service, or an eCommerce fulfillment path. Temporal serves as the orchestration layer that makes this work reliably at scale, managing stateful workflows from the moment a booking comes in through to final execution.

The Challenge

Every incoming booking at SMILe is effectively a routing problem with several moving parts. Before a shipment can be assigned to a fulfillment path, the platform needs to evaluate:

  • Pincode-level serviceability
  • Partner availability in that location
  • Package type and shipment characteristics
  • SLA commitments
  • Cost optimization
  • Vehicle type required vs. available

The hard part is doing all of this quickly, reliably, and across a web of internal systems and external partner APIs. Before adopting Temporal, orchestrating these workflows required distributed coordination across services, making the system harder to maintain and more vulnerable to partial failures. Retry handling, state tracking, and long-running processes introduced significant engineering overhead.

The Solution

SMILe implemented Temporal as a durable workflow orchestration layer to manage booking lifecycles end-to-end. Each booking, triggered via API calls or booking events, initiates a Temporal Workflow that acts as the single source of truth for execution.

At a high level, each Workflow:

  • Ingests and validates booking requests
  • Evaluates routing logic based on serviceability, partner availability, SLA, cost, and vehicle constraints
  • Dynamically selects the appropriate fulfillment path (courier, hyperlocal, eCommerce, or others)
  • Orchestrates interactions across internal services, partner APIs, and tracking systems
  • Maintains state across long-running operations
  • Handles retries and failures without losing its place

The engineering team at SMILe now models orchestration logic as code, and Temporal handles the infrastructure concerns underneath.

Architectural Approach

SMILe's implementation draws a clean line between orchestration and execution. Workflows own the decision-making and sequencing logic. Activities handle the actual integrations, including calls to internal services, partner APIs, and tracking systems, each with their own retry policies and controlled execution behavior.

Signals and events allow Workflows to respond to real-time updates asynchronously, such as a status change from a delivery partner or an external confirmation, without blocking or polling. The result is a system where the orchestration layer stays deterministic and resilient, while all external interactions are safely encapsulated in Activities that can fail, retry, and recover without corrupting Workflow state.

The Outcome

By adopting Temporal, SMILe now has a unified orchestration layer capable of handling diverse logistics flows with the reliability and scalability the business demands.

Result Detail
Unified framework Courier, hyperlocal, and eCommerce flows all run through the same orchestration layer with no parallel systems or duplicate logic.
Resilience by default Built-in retries and durable state management mean transient failures no longer cascade into lost bookings or manual recovery work.
Reduced engineering overhead Custom state machines, retry logic, and recovery mechanisms are gone. That complexity now lives in the platform.
Full lifecycle visibility Every booking's journey is traceable within its Workflow, making debugging and observability dramatically simpler.
Faster onboarding New routing rules and delivery partner integrations slot into the existing orchestration layer without requiring a redesign from scratch.

Conclusion

Temporal has become a foundational component in SMILe's logistics platform, enabling the company to reliably orchestrate complex, multi-parameter booking workflows across diverse fulfillment networks. By centralizing orchestration and leveraging Temporal's Durable Execution model, SMILe has transformed a traditionally fragile, distributed process into a scalable, resilient, and extensible system capable of adapting to evolving logistics demands while maintaining operational consistency.

Build invincible apps

Ready to learn why companies like Netflix, Doordash, and Stripe trust Temporal as their secure and scalable way to build and innovate?