{"repo":"glamboyosa/swig","free":true,"listed":false,"github":"https://github.com/glamboyosa/swig","clone":"git clone https://github.com/glamboyosa/swig.git","description":"Fast, reliable PostgreSQL backed job queue.","language":"Go","stars":15,"topics":["fumadocs","jobs","jobscheduler","nextjs","postgresql"],"license":"MIT","category":"databases-storage","readme_excerpt":"Swig Job queues as refreshing as taking a swig 🍺 Swig is a robust, PostgreSQL-backed job queue system for Go applications, designed for developers who need reliable background job processing with minimal setup. ⚠️ Alpha Status : Swig is currently in alpha and actively being developed towards v1.0.0. The API may undergo changes during this phase. For stability in production environments, we strongly recommend pinning to a specific version: import it like: Why Transactional Integrity Matters In distributed systems, especially job queues, transactional integrity is crucial. Swig offers three levels of transaction control: 1. Bring Your Own Transaction (Recommended): Use your existing database transaction: 2. Use Swig's Transaction Helper : Let Swig manage the transaction: 3. No Transaction (Simple): Just enqueue a job: Choose the approach that best fits your needs: - Use AddJobWithTx when you need to coordinate jobs with your application's data - Use WithTx when you want automatic transaction management - Use AddJob for simple, non-transactional job enqueueing Benefits of transactional job enqueueing: - No Lost Jobs : Jobs are either fully committed or not at all - Atomic Processing : Jobs are processed exactly once using PostgreSQL's SKIP LOCK - Data Consistency : Jobs can be part of your application's transactions Features - PostgreSQL-Powered : Leverages PostgreSQL's SKIP LOCK for efficient job distribution - Transactional Integrity : Jobs are processed exactly once with tra","default_branch":null,"files":null,"tree":[],"storefront":"/r/glamboyosa","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/glamboyosa/swig/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}