Skip to content

Conversation

@gabrielmatau79
Copy link
Contributor

This PR introduces a new capability to filter message retrieval by size in the PostgresMessagePickupRepository. This allows services to avoid loading large payloads beyond a configurable byte threshold.

What's New

  • Adds maxReceiveBytes to PostgresMessagePickupRepositoryConfig
  • Adds new DB column: encrypted_message_byte_count
  • Includes database migration script for column addition
  • Enhances addMessage to calculate and store message size
  • Updates takeFromQueue to support size-based filtering

Signed-off-by: Gabriel Mata <gabrielmatau@gmail.com>
…using byte accumulation

Signed-off-by: Gabriel Mata <gabrielmatau@gmail.com>
@gabrielmatau79 gabrielmatau79 self-assigned this May 6, 2025
@gabrielmatau79 gabrielmatau79 changed the title Feat/add maxreceivebytes mode feat: Add maxReceiveBytes filter to takeFromQueue May 6, 2025
Signed-off-by: Gabriel Mata <gabrielmatau@gmail.com>
@gabrielmatau79 gabrielmatau79 marked this pull request as ready for review May 6, 2025 20:45
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.

2 participants