GithubHelp home page GithubHelp logo

新人咨询 about funboost HOT 3 CLOSED

xnzhao196 avatar xnzhao196 commented on June 16, 2024
新人咨询

from funboost.

Comments (3)

ydf0509 avatar ydf0509 commented on June 16, 2024

1 .函数加上https://github.com/boost 以后,自身函数的逻辑是否还有存在的必要?
我没搞懂这事什么意思?自身函数的逻辑是否有必要,指的是什么?

qps是规定一秒钟运行几次函数,默认就是不限制啊,比如你爬虫,希望每秒爬取完成7个网页,那就设置qps=7,qps不是必传参数

2 不支持这种*操作,从配置中指定消费第几条消息,队列就是先进先出结构,这事常识

3 支持消息自动过期丢弃的,文档反复提及了很多次支持消息过期,你没看文档吧.

from funboost.

xnzhao196 avatar xnzhao196 commented on June 16, 2024

@boost("test_insteda_thread_queue", broker_kind=BrokerEnum.MEMORY_QUEUE, concurrent_num=10)
def f(x):
time.sleep(3)
print(x)

if name == 'main':
for i in range(100):
f.push(i)

针对f.push 发布的数值到 test_insteda_thread_queue这个队列中,可以另外再定义:
@boost("test_insteda_thread_queue", broker_kind=BrokerEnum.MEMORY_QUEUE, concurrent_num=10)
def g(x):
time.sleep(3)
print(x)

g函数可以共享 test_insteda_thread_queue 这个队列吗

from funboost.

ydf0509 avatar ydf0509 commented on June 16, 2024

@boost("test_insteda_thread_queue", broker_kind=BrokerEnum.MEMORY_QUEUE, concurrent_num=10) def f(x): time.sleep(3) print(x)

if name == 'main': for i in range(100): f.push(i)

针对f.push 发布的数值到 test_insteda_thread_queue这个队列中,可以另外再定义: @boost("test_insteda_thread_queue", broker_kind=BrokerEnum.MEMORY_QUEUE, concurrent_num=10) def g(x): time.sleep(3) print(x)

g函数可以共享 test_insteda_thread_queue 这个队列吗

一个函数用一个唯一的队列名,

from funboost.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.