Skip to content

feat(tokenization): implement atomic batch operations#119

Merged
allisson merged 1 commit intomainfrom
batch-tokenize
Mar 9, 2026
Merged

feat(tokenization): implement atomic batch operations#119
allisson merged 1 commit intomainfrom
batch-tokenize

Conversation

@allisson
Copy link
Owner

@allisson allisson commented Mar 9, 2026

  • Added support for atomic batch processing in the Tokenization Engine.
  • Implemented CreateBatch and GetBatchByTokens in both PostgreSQL and MySQL repositories with optimized batch retrieval.
  • Added TokenizeBatch and DetokenizeBatch to the usecase layer, ensuring atomicity via TxManager.
  • Exposed new REST API endpoints:
    • POST /v1/tokenization/keys/:name/tokenize-batch
    • POST /v1/tokenization/detokenize-batch
  • Defined batch request/response DTOs with validation (enforcing a 100-item limit).
  • Updated the metrics decorator to track latency and operations for batch tasks.
  • Injected TxManager into the tokenization usecase through the DI container.
  • Added comprehensive unit tests for DTOs, usecases, and handlers.
  • Expanded integration flow tests to verify success and atomicity across both database engines.
  • Updated OpenAPI specification and Engine documentation with batch usage examples.

…dpoints

- Added support for atomic batch processing in the Tokenization Engine.
- Implemented CreateBatch and GetBatchByTokens in both PostgreSQL and MySQL repositories with optimized batch retrieval.
- Added TokenizeBatch and DetokenizeBatch to the usecase layer, ensuring atomicity via TxManager.
- Exposed new REST API endpoints:
    - POST /v1/tokenization/keys/:name/tokenize-batch
    - POST /v1/tokenization/detokenize-batch
- Defined batch request/response DTOs with validation (enforcing a 100-item limit).
- Updated the metrics decorator to track latency and operations for batch tasks.
- Injected TxManager into the tokenization usecase through the DI container.
- Added comprehensive unit tests for DTOs, usecases, and handlers.
- Expanded integration flow tests to verify success and atomicity across both database engines.
- Updated OpenAPI specification and Engine documentation with batch usage examples.
@allisson allisson merged commit d5316a9 into main Mar 9, 2026
3 checks passed
@allisson allisson deleted the batch-tokenize branch March 9, 2026 14:12
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.

1 participant