Skip to content

[dbal] consumption improvements. #605

Closed
@makasim

Description

@makasim

The consumption logic could be made even simpler and at the same time more performant (still to be proved) cuz there would be fewer round trips, fewer locks.

  • The first select returns an array of 100 message ids. No transaction, no pessimistic lock.
  • Then we walk through the array and try to catch one free message. We can do it with an `UPDATE ... SET deliveryId=ourUniqueId WHERE id=currentMessageId AND deliveryId IS NULL.
  • Check whether we succeeded in previous step or not

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions