Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace the old redis cache implementation #858

Merged
merged 1 commit into from
Oct 10, 2024

Conversation

azisaka
Copy link
Contributor

@azisaka azisaka commented Oct 7, 2024

I created a new version of the Redis cache engine.

Currently it supports the put, match and delete methods. The connection and methods will not block the load of the pages.

It was made to also support reconnection on failure; and even during a failure the website will keep running until the connection gets healthy again.

When an error occurs, the connection will be halted on purpose. Just like a open circuit breaker. The idea is to not fall into a reconnection loop. Once the website tries to cache again, the engine will try to reconnect.

Copy link
Contributor

github-actions bot commented Oct 7, 2024

Tagging Options

Should a new tag be published when this PR is merged?

  • 👍 for Patch 1.104.3 update
  • 🎉 for Minor 1.105.0 update
  • 🚀 for Major 2.0.0 update

@azisaka azisaka force-pushed the feat/redis-cache branch 2 times, most recently from 05c046a to 44a55a5 Compare October 7, 2024 12:23
runtime/caches/redis.ts Outdated Show resolved Hide resolved
runtime/caches/redis.ts Outdated Show resolved Hide resolved
runtime/caches/redis.ts Outdated Show resolved Hide resolved
runtime/caches/redis.ts Outdated Show resolved Hide resolved
runtime/caches/redis.ts Outdated Show resolved Hide resolved
runtime/caches/redis.ts Outdated Show resolved Hide resolved
runtime/caches/redis.ts Outdated Show resolved Hide resolved
runtime/caches/redis.ts Outdated Show resolved Hide resolved
runtime/caches/redis.ts Outdated Show resolved Hide resolved
runtime/caches/redis.ts Outdated Show resolved Hide resolved
runtime/caches/redis.ts Outdated Show resolved Hide resolved
runtime/caches/redis.ts Outdated Show resolved Hide resolved
runtime/caches/redis.ts Outdated Show resolved Hide resolved
@azisaka azisaka marked this pull request as ready for review October 9, 2024 21:53
runtime/caches/redis.ts Outdated Show resolved Hide resolved
I created a new version of the Redis cache engine.

Currently it supports the put, match and delete methods. The connection and methods will not block the load of the pages.

It was made to also support reconnection on failure; and even during a failure the website will keep running until the connection gets healthy again.

When an error occurs, the connection will be halted on purpose. Just like a open circuit breaker. The idea is to not fall into a reconnection loop. Once the website tries to cache again, the engine will try to reconnect.

Co-authored-by: Marcos Candeia <[email protected]>
@mcandeia mcandeia merged commit ea0d44f into deco-cx:main Oct 10, 2024
2 checks passed
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.

2 participants