Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. React Native
  3. react-native-queue

react-native-queue

MITJavaScript

A persistent, at-least-once priority job queue for React Native, backed by Realm storage and designed for background processing.

GitHubGitHub
798 stars161 forks0 contributors

What is react-native-queue?

React Native Queue is a persistent, at-least-once priority job queue library for React Native applications. It solves the problem of managing long-running or complex tasks by providing durable job processing that survives app restarts and integrates with background services. Jobs are stored in Realm, ensuring they are processed even if the user closes and reopens the app.

Target Audience

React Native developers who need reliable background job processing for tasks like media processing, API calls, cache warming, or offline content downloading. It's ideal for apps requiring durable task execution across app sessions.

Value Proposition

Developers choose React Native Queue for its simplicity, persistence, and seamless integration with OS background tasks and worker threads. Unlike basic async solutions, it offers job durability, priority handling, retry logic, and lifecycle callbacks out of the box.

Overview

A React Native Job Queue

Use Cases

Best For

  • Processing durable API calls that must succeed even if the app restarts
  • Handling media processing or file downloads in the background
  • Managing complex job chains with dependent steps
  • Offloading CPU-intensive tasks to worker threads
  • Ensuring critical tasks complete via OS background services
  • Warming caches or preloading content for offline access

Not Ideal For

  • Projects using Expo or managed React Native workflows where native dependencies are problematic
  • Applications needing only temporary, in-memory job queues without persistence requirements
  • Server-side job processing that requires horizontal scaling across multiple instances
  • Tasks where job duplication is unacceptable and idempotency cannot be guaranteed

Pros & Cons

Pros

Persistent Job Storage

Jobs are stored in Realm, ensuring they survive app restarts and are processed until completion or failure, as highlighted in the persistent storage feature.

Background Task Integration

Seamlessly integrates with OS background tasks like React Native Background Task, enabling job processing even when the app is closed, demonstrated in the advanced usage examples.

Worker Thread Support

Compatible with React Native Workers for offloading CPU-intensive tasks to dedicated threads, improving performance for complex operations.

Flexible Configuration

Offers configurable options for timeouts, retries, priority, and lifecycle callbacks, providing granular control over job behavior as detailed in the options section.

Simple API Design

With just two primary methods (addWorker and createJob), developers can quickly set up and manage jobs, making it accessible for common use cases.

Cons

Native Dependency Complexity

Requires linking Realm, a native module, which adds setup steps and can cause issues in managed environments or during updates, as noted in the installation instructions.

Idempotency Limitation

The README explicitly states jobs must be idempotent, restricting use cases where duplicate job execution could lead to data corruption or unintended side-effects.

React Native Exclusive

Built specifically for React Native, it cannot be used in other JavaScript environments or for server-side job processing, limiting its applicability.

Performance Trade-offs

Persistence with Realm introduces overhead compared to in-memory queues, potentially affecting performance for high-frequency or low-latency job processing.

Frequently Asked Questions

Quick Stats

Stars798
Forks161
Contributors0
Open Issues30
Last commit3 years ago
CreatedSince 2017

Tags

#task-queue#background-services#background-processing#react-native#priority-queue#persistent-storage#realm#worker-threads#job-queue

Built With

J
JavaScript
R
Realm
R
React Native

Included in

React Native35.6k
Auto-fetched 18 hours ago

Related Projects

React Native FirebaseReact Native Firebase

🔥 A well-tested feature-rich modular Firebase implementation for React Native. Supports both iOS & Android platforms for all Firebase services.

Stars12,292
Forks2,322
Last commit18 hours ago
react-native-push-notificationreact-native-push-notification

React Native Local and Remote Notifications

Stars6,791
Forks2,010
Last commit2 years ago
react-native-device-inforeact-native-device-info

Device Information for React Native iOS and Android

Stars6,663
Forks1,461
Last commit6 days ago
react-native-fsreact-native-fs

Native filesystem access for react-native

Stars5,045
Forks1,011
Last commit2 years ago
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub