Python based asynchronous workflow modules : What is difference between celery workflow and luigi workflow?

后端 未结 2 971
借酒劲吻你
借酒劲吻你 2021-02-05 01:25

I am using django as a web framework. I need a workflow engine that can do synchronous as well as asynchronous(batch tasks) chain of tasks. I found celery and luigi as batch pro

相关标签:
2条回答
  • 2021-02-05 01:52

    Update: As Erik pointed, Celery is better choice for this case.

    Celery:

    What is Celery?

    Celery is a simple, flexible and reliable distributed system to process vast amounts of messages, while providing operations with the tools required to maintain such a system.

    Why use Celery?

    • It is simple to use & has lots of features.
    • django-celery: provides good integration with Django.
    • flower: Real-time monitor and web admin for Celery distributed task queue.
    • Active & large community(based on Stackoverflow activity, Pyvideos, tutorials, blog posts).

    Luigi

    What is Luigi?

    Luigi(Spotify's recently open sourced Python framework) is a Python package that helps you build complex pipelines of batch jobs. It handles dependency resolution, workflow management, visualization, handling failures, command line integration, and much more.

    Why use Luigi?

    • Builtin support for Hadoop.
    • Generic enough to be used for everything from simple task execution and monitoring on a local work station, to launching huge chains of processing tasks that can run in synchronization between many machines over the span of several days.
    • Lugi's visualiser: Gives a nice visual overview of dependency graph of workflow.

    Conclusion: If you need a tool just to simply schedule tasks & run them you can use Celery. If you are dealing with big data & huge processing you can go for Luigi.

    0 讨论(0)
  • 2021-02-05 02:04

    (I'm the author of Luigi)

    Luigi is not meant for synchronous low-latency framework. It's meant for large batch processes that run for hours or days. So I think for your use case, Celery might actually be slightly better

    0 讨论(0)
提交回复
热议问题