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

feat: add distributed locker for tus #522

Merged
merged 1 commit into from
Jul 18, 2024
Merged

feat: add distributed locker for tus #522

merged 1 commit into from
Jul 18, 2024

Conversation

mfts
Copy link
Owner

@mfts mfts commented Jul 18, 2024

No description provided.

Copy link

vercel bot commented Jul 18, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
papermark ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 18, 2024 5:38pm

Copy link

what-the-diff bot commented Jul 18, 2024

PR Summary

  • Inclusion of Redis locker in environment configuration
    Updated the .env.example file to include settings related to management of locks in a Redis key-value store.

  • Introduction of Redis lock management
    Added a new functionality in lib/files/tus-redis-locker.ts for managing locks in a Redis key-value store. This helps in better synchronization and conflict resolution during concurrent accesses and operations.

  • Expansion of Redis client capabilities
    Updated our existing Redis client (in lib/redis.ts file) to accommodate the new locker client. This extends the capabilities of our Redis integration.

  • Integrating new package dependency
    Our project now includes @tus/utils as a new dependency in the package.json and package-lock.json files. This package updates our toolset for handling file uploads, specifically in the Tus protocol.

  • Implementing Redis locker in Tus server
    We've made changes in pages/api/file/tus/[[...file]].ts to use RedisLocker (from lib/files/tus-redis-locker.ts) as the locker for the Tus server. This makes the process of handling locks on file uploads more efficient.

@mfts mfts merged commit b396b42 into main Jul 18, 2024
2 checks passed
@mfts mfts deleted the feat/locker branch September 3, 2024 12:14
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.

1 participant