Home
Sign Up
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
V2EX
›
Python
请教一个场景该使用啥技术搭配实现
zoranz
·
Mar 10, 2023
· 2151 views
This topic created in 1334 days ago, the information mentioned may be changed or developed.
需求:给用户启动一个服务长时间监听用户状态和根据监听内容执行操作 目前使用 rabbitmq ,多个消费者等着任务,那么有多少任务就得准备多少消费者,感觉治标不治本
监听
rabbitmq
治标不治本
任务
3 replies
•
2023-03-15 15:27:56 +08:00
v2yllhwa
Mar 10, 2023 via Android
1
任务是有状态的吗,为什么一个用户就要启动一个消费者?固定的消费者进行消费不行吗。
zoranz
OP
Mar 14, 2023
2
任务可以说有状态,执行时长不定,任务里用了异步协程,你的意思是固定消费者作为单独进程,起多线程吗?因为是我的盲区,所以可能表述有点问题。
zoranz
OP
Mar 15, 2023
3
理想状态 怎么用一个消费者实现来一个任务就启动一个不确定时长的脚本。
About
·
Help
·
Advertise
·
Blog
·
API
·
FAQ
·
Privacy
·
Solana
·
4484 Online
Highest 6679
·
Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 26ms ·
UTC 05:46
·
PVG 13:46
·
LAX 21:46
·
JFK 00:46
♥ Do have faith in what you're doing.
❯