V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
推荐学习书目
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
0.01D
V2EX  ›  Python

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

  •  
  •   ll5270 · May 21, 2020 · 5442 views
    This topic created in 2172 days ago, the information mentioned may be changed or developed.
    异步任务想用 celery 但是调用不了异步 orm 所以找到了 arq 有没有踩过坑的?

    web 框架建议采用 sanic 还是 fastapi ?
    12 replies    2020-07-25 22:25:48 +08:00
    ll5270
        1
    ll5270  
    OP
       May 21, 2020
    看来没什么人用,公司项目踩坑耽误进度可不行,算了还是采用 django 吧
    xpresslink
        2
    xpresslink  
       May 21, 2020
    上 django3.0 也支持异步了。
    ll5270
        3
    ll5270  
    OP
       May 21, 2020
    @xpresslink 3.1 才完全支持, 现在是 3.0
    jenlors
        4
    jenlors  
       May 21, 2020 via Android
    推荐 fastapi
    wzwwzw
        5
    wzwwzw  
       May 21, 2020
    推荐 fastapi 。
    ynkkdev
        6
    ynkkdev  
       May 21, 2020
    个人项目或者不需要其他人配合,进度压力也不大,没有维护压力,业务逻辑简单,不需要许多类似 django 已经非常成熟且稳定的轮子。我也推荐 fastapi
    BBCCBB
        7
    BBCCBB  
       May 21, 2020
    不要用 sanic 应该是对的
    factoid
        9
    factoid  
       May 22, 2020 via iPhone
    celery sqlalmy 支持异步呀
    ll5270
        10
    ll5270  
    OP
       May 22, 2020
    @pkuphy 这个看起来还不错
    lisces
        11
    lisces  
       Jun 11, 2020
    当然推荐 fastapi 了,几乎完美的 web 开发框架。另外 databases( https://www.encode.io/databases/) + sqlalchemy 的组合可以满足你的异步 orm 。
    abersheeran
        12
    abersheeran  
       Jul 25, 2020
    如果你有分布式任务的需求,建议 django + celery + gevent 。亲测吊打任何其他框架,包括 fastapi 和我自己写的框架。Django 永远的神😀
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2137 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 61ms · UTC 00:32 · PVG 08:32 · LAX 17:32 · JFK 20:32
    ♥ Do have faith in what you're doing.