feat: resolve #386 #387 #388 #400 — Redis eviction, HTTP/2 push, WS p…#424
Open
STX-Boot wants to merge 1 commit into
Open
feat: resolve #386 #387 #388 #400 — Redis eviction, HTTP/2 push, WS p…#424STX-Boot wants to merge 1 commit into
STX-Boot wants to merge 1 commit into
Conversation
…vs17#400 — Redis eviction, HTTP/2 push, WS protobuf, internal signing Issue Smartdevs17#386 — Redis cache eviction policy - Implement real ioredis connection in RedisCache (was a stub) - Set maxmemory-policy allkeys-lru and configurable maxmemory on connect - Add TTL to every cache entry via setex; add getMemoryInfo() for monitoring Issue Smartdevs17#387 — HTTP/2 server push and connection multiplexing - Add Link preload headers for critical fonts and CSS in next.config.ts so HTTP/2-aware proxies issue PUSH_PROMISE frames before HTML is parsed - Add custom_headers to aws_amplify_app in infra/main.tf to propagate server push hints through CloudFront (HTTP/2 enabled by default on Amplify) Issue Smartdevs17#388 — WebSocket binary protocol via Protocol Buffers - Add packages/types/src/websocket.proto — canonical schema for WireMessage, WireMessageBatch, and ClientMessage - backend/src/websocket/codec.ts — zero-dependency protobuf-compatible binary encoder (encodeWireMessage, encodeBatch) and ClientMessage decoder - managedConnection.ts — store WireMessage objects in queue; encode as binary protobuf (WireMessageBatch) or JSON text at flush time based on useBinary flag - server.ts — detect ?proto=1 query param; pass useBinary to ManagedConnection - frontend/lib/websocket/codec.ts — browser-native protobuf decoder (decodeServerBinary) using TextDecoder; zero deps - pool.ts — set binaryType='arraybuffer' when proto=1 in URL; decode binary frames with codec and re-serialize for existing ordered-delivery logic Fallback to JSON text frames for clients without ?proto=1 Issue Smartdevs17#400 — HMAC request signing for API-to-API communication - backend/src/middleware/internalSignature.ts — HMAC-SHA256 signing with: - 5-minute timestamp replay-protection window - Key rotation via in-memory store (loaded from INTERNAL_API_SIGNING_KEYS env) - signRequest() helper for outbound internal calls - verifyInternalSignature() Express middleware for inbound calls - Audit logging for all auth successes and failures Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
@devjayy43 is attempting to deploy a commit to the smartdevs17's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
@STX-Boot 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.
…rotobuf, internal signing
Closes #386 — Redis cache eviction policy
Closes #387 — HTTP/2 server push and connection multiplexing
Closes #388 — WebSocket binary protocol via Protocol Buffers
Closes #400 — HMAC request signing for API-to-API communication
What this PR does
Changes
Why
How to test
Notes