V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
ll5270
V2EX  ›  Python

sanic + tortoise-orm + arq 异步任务 这个组合怎么样

  •  
  •   ll5270 · 2020-05-21 17:01:00 +08:00 · 4371 次点击
    这是一个创建于 1429 天前的主题,其中的信息可能已经有所发展或是发生改变。
    异步任务想用 celery 但是调用不了异步 orm 所以找到了 arq 有没有踩过坑的?

    web 框架建议采用 sanic 还是 fastapi ?
    12 条回复    2020-07-25 22:25:48 +08:00
    ll5270
        1
    ll5270  
    OP
       2020-05-21 17:44:53 +08:00
    看来没什么人用,公司项目踩坑耽误进度可不行,算了还是采用 django 吧
    xpresslink
        2
    xpresslink  
       2020-05-21 17:58:05 +08:00
    上 django3.0 也支持异步了。
    ll5270
        3
    ll5270  
    OP
       2020-05-21 18:05:17 +08:00
    @xpresslink 3.1 才完全支持, 现在是 3.0
    jenlors
        4
    jenlors  
       2020-05-21 19:09:46 +08:00 via Android
    推荐 fastapi
    wzwwzw
        5
    wzwwzw  
       2020-05-21 20:00:48 +08:00
    推荐 fastapi 。
    youngce
        6
    youngce  
       2020-05-21 20:35:27 +08:00
    个人项目或者不需要其他人配合,进度压力也不大,没有维护压力,业务逻辑简单,不需要许多类似 django 已经非常成熟且稳定的轮子。我也推荐 fastapi
    BBCCBB
        7
    BBCCBB  
       2020-05-21 20:51:58 +08:00
    不要用 sanic 应该是对的
    pkuphy
        8
    pkuphy  
       2020-05-21 21:23:12 +08:00
    factoid
        9
    factoid  
       2020-05-22 07:11:44 +08:00 via iPhone
    celery sqlalmy 支持异步呀
    ll5270
        10
    ll5270  
    OP
       2020-05-22 10:32:08 +08:00
    @pkuphy 这个看起来还不错
    lisces
        11
    lisces  
       2020-06-11 20:42:13 +08:00
    当然推荐 fastapi 了,几乎完美的 web 开发框架。另外 databases( https://www.encode.io/databases/) + sqlalchemy 的组合可以满足你的异步 orm 。
    abersheeran
        12
    abersheeran  
       2020-07-25 22:25:48 +08:00
    如果你有分布式任务的需求,建议 django + celery + gevent 。亲测吊打任何其他框架,包括 fastapi 和我自己写的框架。Django 永远的神😀
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2683 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 15:08 · PVG 23:08 · LAX 08:08 · JFK 11:08
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.