Skip to content

feat(backend): enhance distributed concurrency control and locking for SEP-0001 Stellar Info Generator - #1597

Open
dragoncode-01 wants to merge 1 commit into
emdevelopa:mainfrom
dragoncode-01:feature/be-enhance-distributed-concurrency-control-and-locking-for-sep-0001-stellar-info-generator
Open

dragoncode-01 wants to merge 1 commit into
emdevelopa:mainfrom
dragoncode-01:feature/be-enhance-distributed-concurrency-control-and-locking-for-sep-0001-stellar-info-generator

Conversation

@dragoncode-01

Copy link
Copy Markdown

…

  • Add sep0001-toml-coordinator: per-process single-flight, Redis SET NX PX lock with owner tokens and compare-and-delete release, a shared TOML store with SHA-256 integrity checks, and generation fencing so a regeneration that races an invalidation cannot publish stale content
  • Fail open to direct generation when Redis is unavailable, errors, or is the no-op fallback client
  • Route: strict UUID validation for merchant_id, lower-case normalisation, strong ETag / If-None-Match (304)
  • Invalidate stellar.toml on merchant branding updates (route and service)
  • Document design, security notes and SEP1_TOML_* configuration
  • Add coordinator and route tests (41 new tests)

Closes #1460

…r SEP-0001 Stellar Info Generator

- Add sep0001-toml-coordinator: per-process single-flight, Redis SET NX PX
  lock with owner tokens and compare-and-delete release, a shared TOML store
  with SHA-256 integrity checks, and generation fencing so a regeneration
  that races an invalidation cannot publish stale content
- Fail open to direct generation when Redis is unavailable, errors, or is the
  no-op fallback client
- Route: strict UUID validation for merchant_id, lower-case normalisation,
  strong ETag / If-None-Match (304)
- Invalidate stellar.toml on merchant branding updates (route and service)
- Document design, security notes and SEP1_TOML_* configuration
- Add coordinator and route tests (41 new tests)

Closes emdevelopa#1460

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@vercel

vercel Bot commented Sep 29, 2026

Copy link
Copy Markdown

@Nanle-code is attempting to deploy a commit to the Emmanuel's projects Team on Vercel.

A member of the Team first needs to authorize it.

@drips-wave

drips-wave Bot commented Sep 29, 2026

Copy link
Copy Markdown

@dragoncode-01 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

This branch has not been deployed

No deployments
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.

[Backend] Enhance distributed concurrency control and locking for SEP-0001 Stellar Info Generator

2 participants