Skip to content

Commit afd9442

Browse files
chore(release): router crates and artifacts (#573)
> [!IMPORTANT] > Merging this pull request will create these releases # router 0.0.18 (2025-11-18) ## Features ### JWT claims caching for improved performance **Performance improvement:** JWT token claims are now cached for up to 5 seconds, reducing the overhead of repeated decoding and verification operations. This optimization increases throughput by approximately 75% in typical workloads. **What's changed:** - Decoded JWT payloads are cached with a 5-second time-to-live (TTL), which respects token expiration times - The cache automatically invalidates based on the token's `exp` claim, ensuring security is maintained **How it affects you:** If you're running Hive Router, you'll see significant performance improvements out of the box with no configuration needed. The 5-second cache provides an optimal balance between performance gains and cache freshness without requiring manual tuning. Co-authored-by: knope-bot[bot] <152252888+knope-bot[bot]@users.noreply.github.com>
1 parent b03d9cc commit afd9442

File tree

4 files changed

+17
-16
lines changed

4 files changed

+17
-16
lines changed

.changeset/implement_jwt_claims_caching_to_avoid_re_parsing_on_every.md

Lines changed: 0 additions & 14 deletions
This file was deleted.

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bin/router/CHANGELOG.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,21 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
116116
### Other
117117

118118
- *(deps)* update release-plz/action action to v0.5.113 ([#389](https://github.com/graphql-hive/router/pull/389))
119+
## 0.0.18 (2025-11-18)
120+
121+
### Features
122+
123+
#### JWT claims caching for improved performance
124+
125+
**Performance improvement:** JWT token claims are now cached for up to 5 seconds, reducing the overhead of repeated decoding and verification operations. This optimization increases throughput by approximately 75% in typical workloads.
126+
127+
**What's changed:**
128+
- Decoded JWT payloads are cached with a 5-second time-to-live (TTL), which respects token expiration times
129+
- The cache automatically invalidates based on the token's `exp` claim, ensuring security is maintained
130+
131+
**How it affects you:**
132+
If you're running Hive Router, you'll see significant performance improvements out of the box with no configuration needed. The 5-second cache provides an optimal balance between performance gains and cache freshness without requiring manual tuning.
133+
119134
## 0.0.17 (2025-11-04)
120135

121136
### Fixes

bin/router/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "hive-router"
3-
version = "0.0.17"
3+
version = "0.0.18"
44
edition = "2021"
55
description = "GraphQL router/gateway for Federation"
66
license = "MIT"

0 commit comments

Comments
 (0)