Dagu vs Windmill

Dagu vs Windmill: declarative YAML बनाम script और app platform.

दोनों self-hosted चलते हैं और दोनों तेज़ हैं. Windmill scripts को workflow, webhook और low-code apps में बदलता है और PostgreSQL इस्तेमाल करता है. Dagu एक single binary है जो आपके मौजूदा commands को declarative YAML से चलाता है, बिना किसी database के.

आपके मौजूदा commands को call करने वाला workflow
# sync-contacts.yaml
schedule: "*/30 * * * *"
 
steps:
  - id: pull_crm
    run: python scripts/pull_crm.py
    output: BATCH_FILE
 
  - id: enrich
    run: node scripts/enrich.js ${BATCH_FILE}
    depends: [pull_crm]
 
  - id: upsert
    run: ./bin/upsert-contacts ${BATCH_FILE}
    retry_policy:
      limit: 3
      interval_sec: 30
    depends: [enrich]

Execution order

pull_crmpythonenrichnodeupsert3 retries

एक single binary, बिना PostgreSQL

Workflows मौजूदा commands पर declarative YAML हैं

shell, Docker, HTTP, SSH, SQL, sub-workflows और Agent Harness steps के लिए executors

Local, queue-based या distributed चलता है

At a glance

Windmill बनाम Dagu एक नज़र में

Authoring
Dagu

आपके commands को call करने वाला declarative YAML.

Windmill

Platform में host की गई Python, TypeScript, Go, Bash या SQL scripts.

Runtime
Dagu

Single binary, file-backed state, बिना database.

Windmill

PostgreSQL queue पर टिकी Rust services और workers.

दायरा
Dagu

shell, Docker, HTTP, SSH, SQL और Agent Harness steps से orchestration.

Windmill

Workflows के साथ approval flows वाला low-code app/UI builder.

In depth

How Dagu does it

01

काम परिभाषित करने के दो तरीके

Windmill एक code-first platform है. आप Python, TypeScript, Go, Bash या SQL में scripts लिखते हैं, और यह हर एक के साथ एक webhook और generated UI जोड़ता है. Dagu workflow को YAML में रखता है और आपकी scripts तथा binaries को steps की तरह मानता है.

  • Windmill scripts को platform के अंदर store और run करता है, साथ ही input forms auto-generate करता है.
  • Dagu version-controlled YAML में graph define करता है और commands call करता है.
  • दोनों dependencies, retries, scheduling और run history देते हैं.
02

इसे चलाने के लिए क्या चाहिए

Windmill को state और job queue के लिए PostgreSQL चाहिए, और सामान्य setup उसके ऊपर server और worker containers चलाता है. Dagu एक single binary है जो state को files में रखता है, इसलिए कोई database provision, backup या upgrade करने की ज़रूरत नहीं.

  • Dagu local files पर टिके एक process के रूप में शुरू होता है.
  • Workflow model बदले बिना बाद में queue और workers जोड़ें.
  • Windmill अच्छी तरह scale करता है, पर PostgreSQL का मौजूद और managed होना मानता है.
03

Workflow में forms, approvals और integrations

Dagu का web UI typed parameters के साथ runs शुरू करता है, लोगों के लिए उन्हें रोकता है, और built-in steps तथा actions से services को call करता है.

  • Web UI से typed parameters और defaults के साथ run शुरू करें.
  • Human task में typed form से किसी व्यक्ति से input लें, या approval gate से approve और reject करें.
  • HTTP, SQL, S3, SFTP, Redis, Git और mail steps call करें, या dbt, DuckDB और GitHub CLI जैसे official actions.

FAQ

Practical questions before adopting Dagu

क्या Dagu, Windmill की जगह ले लेता है?

हाँ, workflows के लिए: scheduling, dependencies, retries, logs, approvals, typed run forms, और उन्हें edit करने और चलाने वाला web UI, एक binary से, बिना PostgreSQL. अगर आपको Dagu में app builder या Windmill का कोई और feature चाहिए, तो dagu.sh/contact पर उसका अनुरोध करें.

क्या Dagu को PostgreSQL चाहिए?

नहीं. Dagu state को local files में रखता है और single binary के रूप में चलता है, इसलिए install या manage करने के लिए कोई database नहीं. Windmill state और job queue के लिए PostgreSQL पर निर्भर है.

क्या Dagu, Python और TypeScript scripts चला सकता है?

हाँ. एक step कोई भी command चला सकता है, इसलिए Python, TypeScript, Bash या compiled binary सब चलते हैं. Scripts आपकी repository में रहती हैं और जैसी हैं वैसी ही चलती हैं.

Next step

Start with one workflow.

Install Dagu, move one fragile script or agent task into YAML, and decide from a real run history.