Skip to content

refactor(id): Let queue operate on IDs and controller on database#137

Merged
behinddwalls merged 1 commit into
mainfrom
sergeyb/id
Mar 11, 2026
Merged

refactor(id): Let queue operate on IDs and controller on database#137
behinddwalls merged 1 commit into
mainfrom
sergeyb/id

Conversation

@sbalabanov
Copy link
Copy Markdown
Contributor

@sbalabanov sbalabanov commented Mar 10, 2026

Summary

Instead of serializing all fo the Request or Batch entity to the queue,
only serialize the appropriate ID. Let controller to get the latest
state of the entity from the database directly. This prevents stale
entities and improves optimistic concurrency timing.

Test Plan

Issues

Stack

  1. @ refactor(id): Let queue operate on IDs and controller on database #137
  2. feat(batch): Reimplement batch controller for consistency #138

Instead of serializing all fo the Request or Batch entity to the queue,
only serialize the appropriate ID. Let controller to get the latest
state of the entity from the database directly. This prevents stale
entities and improves optimistic concurrency timing.
@sbalabanov sbalabanov marked this pull request as ready for review March 10, 2026 22:01
@sbalabanov sbalabanov requested review from a team and behinddwalls as code owners March 10, 2026 22:01
@behinddwalls behinddwalls added this pull request to the merge queue Mar 11, 2026
Merged via the queue into main with commit 92f4d63 Mar 11, 2026
11 checks passed
@behinddwalls behinddwalls deleted the sergeyb/id branch March 11, 2026 01:48
@behinddwalls behinddwalls restored the sergeyb/id branch March 11, 2026 01:49
@behinddwalls behinddwalls deleted the sergeyb/id branch March 11, 2026 01:52
@behinddwalls behinddwalls restored the sergeyb/id branch March 11, 2026 01:52
@behinddwalls behinddwalls deleted the sergeyb/id branch March 11, 2026 01:53
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.

3 participants