Redlock

Open-source projects categorized as Redlock

Top 5 Redlock Open-Source Projects

  • node-redlock

    A node.js redlock implementation for distributed, highly-available redis locks

  • Project mention: Build an Idempotent API in Node.js with Redis | dev.to | 2024-02-28

    async function create(req, res) { let lock; try { // Try to acquire the lock lock = await service.urlService.acquireLock( "URL:CREATE:ExclusiveLock", 100 ); const { longURL } = req.body; // Check if the mapping already exists const mapping = await service.urlService.findByLongURL(longURL); if (mapping) { return res.status(HTTP_STATUS_CODES.SUCCESS).json({ status: true, message: "Short slug created successfully", data: { slug: mapping.slug }, }); } // New long URL, generate a new and unique slug const slug = service.urlService.generateNewSlug(); // save short URL <> long URL mapping to the database await service.urlService.saveToDB(slug, longURL); // Return the newly generated short slug return res.status(HTTP_STATUS_CODES.SUCCESS).json({ status: true, message: "Short slug created successfully", data: { slug }, }); } catch (err) { return res.status(HTTP_STATUS_CODES.INTERNAL_SERVER_ERROR).json({ status: false, message: "Could not create short slug", error: err, }); } finally { /** * Manually release the lock when the operation is complete * * NOTE: Redlock's release method is not a no-op, it throws an error if you try to release an already expired lock ([more here](https://github.com/mike-marcacci/node-redlock/issues/168#issuecomment-1165700540)). Setting a small TTL usually triggers this unexpected behavior. * As a workaround, we're ignoring the errors from lock.release() */ if (lock) await lock.release().catch(() => {}); } }

  • RedLock.net

    An implementation of the Redlock algorithm in C#

  • SurveyJS

    Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.

    SurveyJS logo
  • redlock-rb

    Redlock is a redis-based distributed lock implementation in Ruby. More than 20M downloads.

  • Project mention: Redlock a Redis Distributed Lock in Ruby | news.ycombinator.com | 2023-06-20
  • Deno-Redlock

    Deno's first lightweight, secure distributed lock manager utilizing the Redlock algorithm

  • Distributed locks with Redis and ReactPHP

    :lock: Asynchronous distributed locks with Redis and ReactPHP

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020).

Redlock related posts

  • Build an Idempotent API in Node.js with Redis

    2 projects | dev.to | 28 Feb 2024
  • How should I manage replicated backend service that has hosted background service

    2 projects | /r/AskProgramming | 2 Dec 2021

Index

What are some of the best open-source Redlock projects? This list will help you:

Project Stars
1 node-redlock 1,729
2 RedLock.net 896
3 redlock-rb 658
4 Deno-Redlock 167
5 Distributed locks with Redis and ReactPHP 14

Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com