European. Self-hosted. Runs on PostgreSQL.

Your workflows. Your infrastructure. Your data.

Durable execution for workflows and AI agents. Self-hosted on PostgreSQL and NATS—no US cloud dependency.

Python TypeScript Kotlin Rust
View on GitHub
order_workflow.py
@workflow(name="order-processing")
class OrderWorkflow:
    async def run(self, ctx: WorkflowContext, input: OrderInput) -> OrderOutput:
        # Schedule payment task (string-based task reference)
        payment = await ctx.execute_task("payment-task", {
            "amount": input.amount,
            "currency": input.currency
        })

        # Schedule inventory task
        inventory = await ctx.execute_task("inventory-task", {"items": input.items})
        if inventory["out_of_stock"]:
            await ctx.run("refund", lambda: refund_payment(payment["transaction_id"]))
            raise NonRetryableError("Inventory unavailable")

        return OrderOutput(order_id=input.order_id, status="completed")

Core Capabilities

Everything you need to build reliable distributed workflows

Code-first Workflows

Write workflows in Python, TypeScript, Kotlin, or Rust with a simple WorkflowContext API. Event sourcing ensures deterministic replay.

AI Agent Execution

Resume agent loops at any point without losing state. Stream LLM tokens in real-time. Time-travel debugging lets you replay executions.

Event Sourcing

Complete audit trail of all executions. Replay workflows from any point. Understand exactly what happened and why.

Built-in Resilience

Automatic retries, compensation logic, and failure handling. Focus on business logic, not infrastructure complexity.

Production-Grade

Multi-tenancy, quota enforcement, rate limiting, and data retention. gRPC communication protocol. Deploy on your infrastructure with full control.

What You Can Build

Flovyn handles the complexity of distributed workflows so you can focus on business logic

E-commerce

Order Processing with Automatic Compensation

Process orders across payment, inventory, and fulfillment with automatic compensation on failures. If delivery fails after payment, Flovyn automatically triggers refunds and inventory restoration.

Saga PatternCompensationDistributed Transactions
Billing

Subscription Billing with Payment Recovery

Handle failed payments with scheduled retries, notification escalation, and support team handoff. Ensures reminders aren't duplicated and maintains exact billing state for compliance.

Retry LogicState ManagementAudit Trail
AI Agents

Multi-step Research Agents

Agent loops that search web, analyze results, decide next steps, and compile reports. If the agent crashes mid-research, Flovyn resumes exactly where it left off without losing context.

AI ExecutionState PersistenceToken Streaming
Integration

Webhook Processing

Receive webhooks from payment providers, validate signatures, enrich with database context, update downstream systems. Guarantees exactly-once processing despite webhook retries.

Exactly-onceDeduplicationEvent Processing
Batch

Batch Processing with Fan-out/Fan-in

Process thousands of documents in parallel (OCR, ML inference, validation), aggregate results, handle partial failures by retrying specific items.

Parallel ExecutionPartial FailureAggregation
Enterprise

Multi-tenant Workflows

Build SaaS products with complete tenant isolation, quota enforcement, rate limiting, and team-based access control. Built-in multi-tenancy and RBAC.

Multi-tenancyRBACQuotas

Why Flovyn?

Stop reinventing distributed systems primitives. Focus on business logic.

Without Flovyn

  • Manual retry loops with exponential backoff
  • Database polling for timeouts
  • Custom state serialization
  • Distributed transaction coordination
  • Random UUID breaks replay

With Flovyn

  • ctx.schedule() with automatic retries
  • ctx.sleep(Duration.hours(1))
  • ctx.setState('key', value)
  • Saga pattern with ctx.run() compensation
  • ctx.randomUUID() deterministic on replay
Standard Infrastructure

Operational simplicity with PostgreSQL + NATS

No custom storage to learn. No proprietary protocols. Your team already knows how to backup, monitor, and scale these systems.

PostgreSQL for Durability

Workflow state in Postgres. Use pg_dump, your existing monitoring, and proven scaling patterns.

NATS for Messaging

High-performance task distribution. No proprietary protocol—standard NATS tooling works.

Zero New Runbooks

Your on-call team already knows these systems. No 3am debugging of custom storage engines.

SQL-Queryable State

SELECT * FROM workflows. Debug issues with tools you know. No black-box storage layer.

Temporal
Custom persistence layer
Restate
Custom Raft log + RocksDB
Flovyn
PostgreSQL + NATS
Made in Europe

A European alternative to US workflow platforms

For organizations that need workflow orchestration without sending data to US clouds.

European Origin

Designed and built in Europe by a European team. Not a US company with an EU subsidiary.

Data Sovereignty

Your workflow data stays on your infrastructure. No data routing through US servers.

GDPR by Design

Built with European privacy regulations in mind. Full audit trails for compliance.

No US Cloud Lock-in

Self-hosted on any infrastructure. No mandatory AWS, Azure, or GCP dependencies.

🦀Built with Rust

Engineered for reliability

The Flovyn server is written in Rust. No JVM, no interpreter, no garbage collector surprises.

Predictable Performance

No garbage collection pauses. Consistent low-latency workflow execution under load.

Memory Safety

Compile-time guarantees prevent null pointer crashes and memory leaks in production.

Low Resource Usage

Efficient memory footprint. Run thousands of workflows on modest hardware.

Single Binary Deploy

One executable + PostgreSQL. No JVM, no containers required, no runtime dependencies.

Stop building retry logic. Start building products.

Deploy on your infrastructure with PostgreSQL and NATS. European sovereignty. No US cloud dependency.