Skip to content

feat: support shoryuken processing groups#111

Merged
fdotoliveira merged 1 commit into
masterfrom
feature/shoryuken-groups
Apr 28, 2026
Merged

feat: support shoryuken processing groups#111
fdotoliveira merged 1 commit into
masterfrom
feature/shoryuken-groups

Conversation

@fdotoliveira

@fdotoliveira fdotoliveira commented Apr 24, 2026

Copy link
Copy Markdown
Contributor

Contexto

Adiciona suporte a Processing Groups do Shoryuken, pollers independentes com configuração própria para um subconjunto de queues. É o mecanismo recomendado para isolar workers que não podem interferir no restante, como jobs batch longos, integrações lentas com terceiros ou qualquer queue que precise de concorrência dedicada.

O que muda

Grupos são declarados diretamente no YAML do aws-sqs-configurator, espelhando o formato nativo do Shoryuken:

queues:
  - name: batch_stock_update
    metadata:
      priority: 1

groups:
  batch_critical:
    concurrency: 1
    delay: 10
    polling_strategy: WeightedRoundRobin # Default, declaration optional
    queues:
      - batch_stock_update

Turtle.shoryuken_groups retorna um JSON string pronto para o bloco groups: do shoryuken.yml.
Turtle.shoryuken_queues_priorities passa a omitir queues agrupadas, que pertencem a groups: e não a queues:.

Uso

config/shoryuken.yml

queues: <%= Turtle.shoryuken_queues_priorities %>
groups: <%= Turtle.shoryuken_groups %>

Compatibilidade

Projetos sem seção groups: no YAML de configuração não são afetados.

@fdotoliveira fdotoliveira self-assigned this Apr 24, 2026
@fdotoliveira fdotoliveira force-pushed the feature/shoryuken-groups branch 11 times, most recently from f524335 to 7523607 Compare April 27, 2026 13:22
@fdotoliveira fdotoliveira changed the title WIPfeat: support shoryuken processing groups feat: support shoryuken processing groups Apr 27, 2026
@fdotoliveira fdotoliveira marked this pull request as ready for review April 27, 2026 13:26
@fdotoliveira fdotoliveira force-pushed the feature/shoryuken-groups branch from ca4548b to b5509c5 Compare April 27, 2026 13:38
rafaelsevla
rafaelsevla previously approved these changes Apr 27, 2026
Comment thread lib/turtle/group.rb
Comment thread lib/aws/sqs/configurator/queue.rb
@fdotoliveira fdotoliveira merged commit 6c49706 into master Apr 28, 2026
1 check passed
@fdotoliveira fdotoliveira deleted the feature/shoryuken-groups branch April 28, 2026 12:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants