Feature/issues 1009 998 986 984 - #1062
Merged
Smartdevs17 merged 4 commits intoAug 28, 2026
Merged
Conversation
added 4 commits
August 28, 2026 03:06
|
@UG001 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! 🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
feat: implement API key rotation, rate limiting, ES connection pooling, and typed event bus
Implement API key rotation with grace period #1009 — API key rotation with grace period
Add ApiKeyRotationService with dual-key acceptance window, automatic
expiry, rotation history, domain event emission, and Prometheus metrics.
Portal facade maps internal types to developer-portal ApiKey type.
Implement rate limiting with token bucket algorithm #998 — Rate limiting with token bucket algorithm
Add Express/Fastify rateLimitMiddleware wrapping RateLimitingService.
Sets X-RateLimit-* headers, handles per-key and per-user windows,
returns 429 with Retry-After, supports bypass list and IP fallback.
Implement database connection pooling with optimization #986 — Database connection pooling with optimization
Add ElasticsearchConnectionPool: fixed-size pool, acquire/release with
timeout, idle teardown, leak detection, DNS cache with TTL, round-robin
read-replica routing, tuning recommendations, and Prometheus metrics.
Extend ElasticsearchConfig with pool settings and env var wiring.
Refactor event system to use typed event bus with domain events #984 — Typed event bus with domain events
Add eventBusIntegration.ts wiring backend services to the shared
EventBus. Domain publishers for subscription, billing, analytics, and
contract events. DomainEventRouter for cross-domain routing rules.
Unit tests cover publish/subscribe, wildcard, predicate filters,
event sourcing replay, SpyEventBus, and EventCollector.
closes Implement rate limiting with token bucket algorithm #998
closes Implement database connection pooling with optimization #986
closes Refactor event system to use typed event bus with domain events #984
closes Implement API key rotation with grace period #1009