Overview
How Pipelogiq fits into your application
Pipelogiq is workflow orchestration software you deploy in your own infrastructure. It coordinates background work in your application. Instead of directly calling several functions in a request, you submit those operations as a workflow. Your own worker executes the functions; Pipelogiq stores each step's state and decides what runs next.
What Pipelogiq includes
- API: accepts workflows from your application and exposes their state and results.
- Orchestration worker: decides which steps are ready, dispatches work, processes results and schedules retries. It does not run your business code.
- Web dashboard: shows runs, step status, logs and data reported by your workers, with controls to investigate and recover failed work.
These are the Pipelogiq components you deploy in your infrastructure. Your application and its business code run alongside them.
What you need to run it
- PostgreSQL stores workflow state and execution history.
- RabbitMQ carries jobs and results between Pipelogiq's services.
For the supplied local setup, you need Docker Engine or Docker Desktop, with Docker Compose v2. The supplied Compose setup starts Pipelogiq, PostgreSQL and RabbitMQ in containers. You do not need to install the database or broker separately on your computer.
When connecting to an existing Pipelogiq deployment, you need its API URL and an application API key. Dashboard access lets you inspect the results. The deployment guide covers persistent environments and production configuration.
How your code connects
The Pipelogiq SDK is added to your .NET or Java project. Your application uses it to submit workflow definitions and input data. Your application worker uses it to receive assigned steps, call your registered handlers and report their results.
The first-run examples use .NET 8 or JDK 17 or 21. With their HTTP transport, your code connects to the Pipelogiq API; PostgreSQL and RabbitMQ remain dependencies of the Pipelogiq deployment.
Your application and its worker can share one process or run as separate services. The application worker executes your handlers; Pipelogiq's orchestration worker coordinates when they run. Pipelogiq receives handler names and input data, not your source code.
Example: save an order, then update the CRM
Suppose your request handler currently calls two functions in sequence:
await orders.SaveOrderAsync(order);
await crm.SyncCrmAsync(order);With Pipelogiq, the request submits these operations as a workflow and a worker executes them. The .NET excerpts below illustrate the change to existing code; OrderInput, OrderService and CrmService are your application's types. Package setup and a complete runnable project are in the .NET first-run guide.
Handlers call your existing functions
sealed class SaveOrderHandler(OrderService orders) : IStageHandler<OrderInput>
{
public async Task<IStageResult> ExecuteAsync(
OrderInput order, IStageContext? context = null)
{
await orders.SaveOrderAsync(order); // Your existing function
return StageResult.Success("Order saved");
}
}The example assumes these functions throw on failure. If yours returns a business error, report that failure instead of returning success.
Your worker registers the handlers
In the configured HTTP worker, the SDK maps handler names to your code. The worker loop receives work for those handlers:
// In your configured HTTP worker, before starting its loop:
runner.RegisterHandler("SaveOrderHandler", typeof(SaveOrderHandler));
runner.RegisterHandler("SyncCrmHandler", typeof(SyncCrmHandler));
await runner.StartAsync(stoppingToken);Your application submits the workflow
A pipeline is one run of these steps; each step is a stage. The handler names below match the worker registrations above.
using var pipeline = PipelineBuilder.Create("save-order-and-sync", options)
.WithIdempotencyKey($"order-{order.OrderId}")
.WithAction("save-order", "SaveOrderHandler", order)
.WithAction("sync-crm", "SyncCrmHandler", order,
new StageOptions { MaxRetries = 3, RetryInterval = 10 });
var created = await pipeline.SendAsync(ct);
Console.WriteLine(created.Id); // The run ID, not the finished orderThe call now submits background work. SendAsync returns a run ID; saving the order may still be pending. Your application can return that ID and check status through the SDK/API. If the caller needs the finished result, it must wait for completion separately.
What happens after you submit it
Pipelogiq sends save-order to a registered application worker. Its handler calls your save function and reports the result. After that stage succeeds, Pipelogiq dispatches sync-crm. Both stages appear under the returned run ID in the dashboard.
- Save orderCompleted
- Sync CRMFailed attempt · error recorded
For a retryable failure, these settings schedule up to three CRM retries, each after a 10-second delay, unless a server retry policy overrides them. The completed save stage stays completed. If the CRM stage ends in Failed, an operator can investigate and rerun it after fixing the cause.
Make external writes safe to repeat. A handler can execute again after a failure or recovery; the pipeline's creation key does not deduplicate writes to your CRM or database. Handlers can also report logs and shared values called context, such as an order ID or a result needed by a later stage.
The same pattern separates a successful payment from a failed CRM update. See payment and reconciliation for those integration boundaries.
Other ways to connect
Java: the Java SDK follows the same model: define steps, register handlers and run a worker. Other languages: submit workflows through the API and implement the HTTP worker protocol to receive and report work.
AI agents: the optional agent SDK adds a model that chooses calls to tools you register. Planning and tool calls become pipeline stages; your application supplies the model credentials, allowed tools, authorization and any approval interface. An ordinary workflow like the order example does not need an AI model.
Pipelogiq only coordinates work you submit to it. Deploying Pipelogiq or adding an SDK does not automatically discover existing jobs, CRM integrations or agents.