百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
D

dynein

> 编程语言
开源

Airbnb 的开源分布式延迟作业队列系统

393 stars0 点赞1 次浏览
访问官网GitHub

工具介绍

Airbnb 的开源分布式延迟作业队列系统

Dynein

Dynein is Airbnb's Open-source Distributed Delayed Job Queueing System. Learn more about Dynein in this blog post: Dynein: Building an Open-source Distributed Delayed Job Queueing System.

Example

Dynein's components are structured as Managed objects in Dropwizard. We have prepared an example application to demonstrate how to integrate Dynein in your service in ./example.

To run this example, follow the following steps:

  1. Setup localstack. The following steps will be using the default ports of localstack.

  2. Run this command to create the necessary SQS queues:

    bash
    aws sqs create-queue --endpoint-url http://localhost:4576 --queue-name example --region us-east-1
    aws sqs create-queue --endpoint-url http://localhost:4576 --queue-name inbound --region us-east-1
  3. Run this command to create the DynamoDB table:

    bash
    aws dynamodb create-table --table-name dynein_schedules \
      --attribute-definitions AttributeName=shard_id,AttributeType=S AttributeName=date_token,AttributeType=S \
      --key-schema AttributeName=shard_id,KeyType=HASH AttributeName=date_token,KeyType=RANGE \
      --billing-mode PAY_PER_REQUEST --endpoint-url http://localhost:4569 --region us-east-1
  4. cd example && gradle run --args='server example.yml'

  5. In another terminal, use curl to schedule jobs. The following endpoints are available, which maps to scheduled, immediate, and sqs-delayed jobs:

    1. curl 'localhost:28080/schedule/scheduled'
    2. curl 'localhost:28080/schedule/immediate'
    3. curl 'localhost:28080/schedule/sqs-delayed'

    Each endpoint supports optional parameters delaySeconds and name. For example: curl 'localhost:28080/schedule/scheduled?name=testing-name&delaySeconds=15'

  6. In the original terminal where the example is started, at the scheduled time, the following log lines will be printed:

    INFO  [2019-12-10 01:59:04,785] com.airbnb.dynein.example.ExampleJob: Running job with name: "testing-name"
    INFO  [2019-12-10 01:59:04,800] com.airbnb.dynein.example.worker.ManagedWorker: Successfully consumed job from queue

Configuration

Here's an example from ./example/example.yml. We will use inline comments to explain what each option does.

…

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Java

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言