<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Gherciu Gheorghe</title>
    <description>The latest articles on DEV Community by Gherciu Gheorghe (@gherciu).</description>
    <link>https://dev.to/gherciu</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F161933%2F8a159bdb-464e-43fc-97d0-0109d2bbbe6b.png</url>
      <title>DEV Community: Gherciu Gheorghe</title>
      <link>https://dev.to/gherciu</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/gherciu"/>
    <language>en</language>
    <item>
      <title>[Boost]</title>
      <dc:creator>Gherciu Gheorghe</dc:creator>
      <pubDate>Sat, 21 Nov 2026 13:38:06 +0000</pubDate>
      <link>https://dev.to/gherciu/-3lin</link>
      <guid>https://dev.to/gherciu/-3lin</guid>
      <description>&lt;div class="ltag__link--embedded"&gt;
  &lt;div class="crayons-story "&gt;
  &lt;a href="https://dev.to/gherciu/portqueue-background-jobs-on-the-database-you-already-have-d8p" class="crayons-story__hidden-navigation-link"&gt;PortQueue: background jobs on the database you already have&lt;/a&gt;


  &lt;div class="crayons-story__body crayons-story__body-full_post"&gt;
    &lt;div class="crayons-story__top"&gt;
      &lt;div class="crayons-story__meta"&gt;
        &lt;div class="crayons-story__author-pic"&gt;

          &lt;a href="/gherciu" class="crayons-avatar  crayons-avatar--l  "&gt;
            &lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F161933%2F8a159bdb-464e-43fc-97d0-0109d2bbbe6b.png" alt="gherciu profile" class="crayons-avatar__image"&gt;
          &lt;/a&gt;
        &lt;/div&gt;
        &lt;div&gt;
          &lt;div&gt;
            &lt;a href="/gherciu" class="crayons-story__secondary fw-medium m:hidden"&gt;
              Gherciu Gheorghe
            &lt;/a&gt;
            &lt;div class="profile-preview-card relative mb-4 s:mb-0 fw-medium hidden m:inline-block"&gt;
              
                Gherciu Gheorghe
                
                
              
              &lt;div id="story-author-preview-content-5088349" class="profile-preview-card__content crayons-dropdown branded-7 p-4 pt-0"&gt;
                &lt;div class="gap-4 grid"&gt;
                  &lt;div class="-mt-4"&gt;
                    &lt;a href="/gherciu" class="flex"&gt;
                      &lt;span class="crayons-avatar crayons-avatar--xl mr-2 shrink-0"&gt;
                        &lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F161933%2F8a159bdb-464e-43fc-97d0-0109d2bbbe6b.png" class="crayons-avatar__image" alt=""&gt;
                      &lt;/span&gt;
                      &lt;span class="crayons-link crayons-subtitle-2 mt-5"&gt;Gherciu Gheorghe&lt;/span&gt;
                    &lt;/a&gt;
                  &lt;/div&gt;
                  &lt;div class="print-hidden"&gt;
                    
                      Follow
                    
                  &lt;/div&gt;
                  &lt;div class="author-preview-metadata-container"&gt;&lt;/div&gt;
                &lt;/div&gt;
              &lt;/div&gt;
            &lt;/div&gt;

          &lt;/div&gt;
          &lt;a href="https://dev.to/gherciu/portqueue-background-jobs-on-the-database-you-already-have-d8p" class="crayons-story__tertiary fs-xs"&gt;&lt;time&gt;Nov 21&lt;/time&gt;&lt;span class="time-ago-indicator-initial-placeholder"&gt;&lt;/span&gt;&lt;/a&gt;
        &lt;/div&gt;
      &lt;/div&gt;

    &lt;/div&gt;

    &lt;div class="crayons-story__indention"&gt;
      &lt;h2 class="crayons-story__title crayons-story__title-full_post"&gt;
        &lt;a href="https://dev.to/gherciu/portqueue-background-jobs-on-the-database-you-already-have-d8p" id="article-link-5088349"&gt;
          PortQueue: background jobs on the database you already have
        &lt;/a&gt;
      &lt;/h2&gt;
        &lt;div class="crayons-story__tags"&gt;
            &lt;a class="crayons-tag  crayons-tag--monochrome " href="/t/node"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;node&lt;/a&gt;
            &lt;a class="crayons-tag  crayons-tag--monochrome " href="/t/queue"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;queue&lt;/a&gt;
            &lt;a class="crayons-tag  crayons-tag--monochrome " href="/t/database"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;database&lt;/a&gt;
            &lt;a class="crayons-tag  crayons-tag--monochrome " href="/t/scalability"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;scalability&lt;/a&gt;
        &lt;/div&gt;
      &lt;div class="crayons-story__bottom"&gt;
        &lt;div class="crayons-story__details"&gt;
          &lt;a href="https://dev.to/gherciu/portqueue-background-jobs-on-the-database-you-already-have-d8p" class="crayons-btn crayons-btn--s crayons-btn--ghost crayons-btn--icon-left"&gt;
            &lt;div class="multiple_reactions_aggregate"&gt;
              &lt;span class="multiple_reactions_icons_container"&gt;
                  &lt;span class="crayons_icon_container"&gt;
                    &lt;img src="https://assets.dev.to/assets/exploding-head-daceb38d627e6ae9b730f36a1e390fca556a4289d5a41abb2c35068ad3e2c4b5.svg" width="18" height="18"&gt;
                  &lt;/span&gt;
                  &lt;span class="crayons_icon_container"&gt;
                    &lt;img src="https://assets.dev.to/assets/multi-unicorn-b44d6f8c23cdd00964192bedc38af3e82463978aa611b4365bd33a0f1f4f3e97.svg" width="18" height="18"&gt;
                  &lt;/span&gt;
                  &lt;span class="crayons_icon_container"&gt;
                    &lt;img src="https://assets.dev.to/assets/sparkle-heart-5f9bee3767e18deb1bb725290cb151c25234768a0e9a2bd39370c382d02920cf.svg" width="18" height="18"&gt;
                  &lt;/span&gt;
              &lt;/span&gt;
              &lt;span class="aggregate_reactions_counter"&gt;9&lt;span class="hidden s:inline"&gt;&amp;nbsp;reactions&lt;/span&gt;&lt;/span&gt;
            &lt;/div&gt;
          &lt;/a&gt;
            &lt;a href="https://dev.to/gherciu/portqueue-background-jobs-on-the-database-you-already-have-d8p#comments" class="crayons-btn crayons-btn--s crayons-btn--ghost crayons-btn--icon-left flex items-center"&gt;
              

              4&lt;span class="hidden s:inline"&gt;&amp;nbsp;comments&lt;/span&gt;
            &lt;/a&gt;
        &lt;/div&gt;
        &lt;div class="crayons-story__save"&gt;
          &lt;small class="crayons-story__tertiary fs-xs mr-2"&gt;
            6 min read
          &lt;/small&gt;
          
          &lt;div class="only-sidebar-menu-item trusted-visible-block print-hidden align-center"&gt;
                
                    
                
          &lt;/div&gt;

        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;
&lt;/div&gt;


&lt;/div&gt;


</description>
      <category>backend</category>
      <category>database</category>
      <category>programming</category>
    </item>
    <item>
      <title>PortQueue: background jobs on the database you already have</title>
      <dc:creator>Gherciu Gheorghe</dc:creator>
      <pubDate>Sat, 21 Nov 2026 13:32:58 +0000</pubDate>
      <link>https://dev.to/gherciu/portqueue-background-jobs-on-the-database-you-already-have-d8p</link>
      <guid>https://dev.to/gherciu/portqueue-background-jobs-on-the-database-you-already-have-d8p</guid>
      <description>&lt;p&gt;Almost every app needs to do work in the background at some point: build a sales report, resize an upload, call a slow API, send a receipt. You don't want the user waiting for any of that, so you put it on a &lt;strong&gt;queue&lt;/strong&gt; and let a worker handle it later.&lt;/p&gt;

&lt;p&gt;The usual advice is to add a separate queue server. But your data already lives in a database you're paying for and running anyway. Most databases can push changes in real time and scale well, so why add another service just for jobs?&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;a href="https://episclera.github.io/portqueue" rel="noopener noreferrer"&gt;PortQueue&lt;/a&gt;&lt;/strong&gt; takes a simpler route: &lt;strong&gt;your jobs live in the database you already run.&lt;/strong&gt; PostgreSQL, Oracle, MySQL, PGLite or SQLite all work. There's nothing extra to install on your servers, and it's free and open source (MIT).&lt;/p&gt;

&lt;h2&gt;
  
  
  What it looks like
&lt;/h2&gt;

&lt;p&gt;You set up your queue and say what to do with each job, then add jobs from anywhere in your app:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nc"&gt;PortQueue&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="s1"&gt;'@portqueue/core'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nc"&gt;PostgresqlDriver&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="s1"&gt;'@portqueue/core/drivers/postgresql'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;pq&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;PortQueue&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;driver&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;PostgresqlDriver&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;connectionString&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;process&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;env&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="no"&gt;DATABASE_URL&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;pq&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;init&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="c1"&gt;// What should happen to each job on the "reports" queue.&lt;/span&gt;
&lt;span class="n"&gt;pq&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;createQueue&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'reports'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;handler&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="k"&gt;async&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;job&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nf"&gt;buildReport&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;job&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="c1"&gt;// Somewhere in your app: "build the sales report when you can".&lt;/span&gt;
&lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;pq&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;addJob&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;queue&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'reports'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;kind&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'sales'&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That's all it takes to get started. Here's what you get on top of it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Is it fast?
&lt;/h2&gt;

&lt;p&gt;Yes, and that's checked continuously. Every change to PortQueue runs a head-to-head benchmark before it ships. Here it is against &lt;a href="https://github.com/timgit/pg-boss" rel="noopener noreferrer"&gt;pg-boss&lt;/a&gt;, a popular PostgreSQL-based queue, on the same database (PGLite, Apple M1 Max, Node 24, median of 3 runs):&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;What we measured&lt;/th&gt;
&lt;th&gt;PortQueue&lt;/th&gt;
&lt;th&gt;pg-boss&lt;/th&gt;
&lt;th&gt;&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Adding jobs one at a time&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;2,294 jobs/s&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;1,141 jobs/s&lt;/td&gt;
&lt;td&gt;~2× faster&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Adding jobs in batches&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;76,938 jobs/s&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;41,952 jobs/s&lt;/td&gt;
&lt;td&gt;~1.8× faster&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Processing jobs&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;20,131 jobs/s&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;17,441 jobs/s&lt;/td&gt;
&lt;td&gt;~15% faster&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Time until a new job starts (median)&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;1.2 ms&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;2.3 ms&lt;/td&gt;
&lt;td&gt;~2× quicker&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;In plain terms, a single server can take in tens of thousands of jobs a second, and a new job usually starts about a millisecond after you add it.&lt;/p&gt;

&lt;p&gt;The scenarios are open and you can run them yourself. The &lt;a href="https://episclera.github.io/portqueue/docs/benchmarks" rel="noopener noreferrer"&gt;benchmarks page&lt;/a&gt; explains exactly how each one is measured.&lt;/p&gt;

&lt;h2&gt;
  
  
  Features
&lt;/h2&gt;

&lt;h3&gt;
  
  
  🗄️ Works with the database you already have
&lt;/h3&gt;

&lt;p&gt;PortQueue runs on &lt;strong&gt;PostgreSQL, Oracle, MySQL, PGLite and SQLite&lt;/strong&gt;, and your code is the same on all of them. Moving from SQLite on your laptop to PostgreSQL in production means changing one line.&lt;/p&gt;

&lt;p&gt;Your queue also gets everything your database already has: backups, monitoring, access control. If you want to know what's stuck, it's just a table you can look at.&lt;/p&gt;

&lt;h3&gt;
  
  
  🔒 Jobs are saved together with your data
&lt;/h3&gt;

&lt;p&gt;This one saves you from a whole class of quiet bugs. Imagine a customer places an order and you queue a "send receipt" job. If your app crashes in between, you end up with an order and no receipt, or a receipt for an order that never got saved.&lt;/p&gt;

&lt;p&gt;Because PortQueue lives in your database, the job can be saved &lt;strong&gt;in the same step&lt;/strong&gt; as the order. Either both are saved or neither is. It plugs into the tools you probably use already: Prisma, Drizzle, Knex, Kysely, TypeORM, Sequelize and MikroORM.&lt;/p&gt;

&lt;h3&gt;
  
  
  📈 Scale by adding servers
&lt;/h3&gt;

&lt;p&gt;More work coming in? &lt;strong&gt;Start another copy of your app.&lt;/strong&gt; That's the whole scaling story. There's no setup and no "main" server to keep alive, and two servers never run the same job twice.&lt;/p&gt;

&lt;p&gt;Some jobs need a particular kind of machine, like a video export that wants lots of memory. You can label your servers by what they have (&lt;code&gt;ram-8gb&lt;/code&gt;, &lt;code&gt;gpu&lt;/code&gt;, a region) and send those jobs only to matching servers. If one of those machines goes away, any other server with the same label picks up the work.&lt;/p&gt;

&lt;h3&gt;
  
  
  🔁 Retries when things fail
&lt;/h3&gt;

&lt;p&gt;APIs time out and networks blip. When a job fails, PortQueue tries again, waiting a bit longer each time, up to a limit you choose. If a server crashes in the middle of a job, another one notices and picks the job back up, so nothing quietly gets lost.&lt;/p&gt;

&lt;h3&gt;
  
  
  ⏰ Delayed jobs, repeating jobs and cron
&lt;/h3&gt;

&lt;p&gt;The same &lt;code&gt;addJob&lt;/code&gt; call handles timing too:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;"Do this in 24 hours"&lt;/strong&gt;, for things like a report that should wait until the day's numbers are in.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;"Do this every 30 seconds"&lt;/strong&gt;, for things like health checks.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;"Every weekday at 8:00 New York time"&lt;/strong&gt;, using cron. Time zones and daylight saving are handled for you.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If your app was down when a scheduled job was due, it runs once when you're back. It doesn't fire a burst of missed runs all at once.&lt;/p&gt;

&lt;h3&gt;
  
  
  🚦 Control how fast work happens
&lt;/h3&gt;

&lt;p&gt;You can set how many jobs a server runs at once, cap how many run per minute (handy when a third-party API has rate limits), and have a server pause taking new work when it's running low on CPU or memory.&lt;/p&gt;

&lt;h3&gt;
  
  
  🧹 Cancel, dedupe and clean up
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Cancel a job that's no longer needed.&lt;/li&gt;
&lt;li&gt;Add the same job twice by accident? Give it a key and PortQueue keeps just one.&lt;/li&gt;
&lt;li&gt;Set how long finished jobs are kept and PortQueue deletes old ones for you, so the table doesn't grow forever.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  📊 A dashboard you host yourself
&lt;/h3&gt;

&lt;p&gt;&lt;code&gt;@portqueue/dashboard&lt;/code&gt; adds a dashboard to the web server you already have (Express, Fastify, Koa, NestJS or plain Node). You can see every queue, find any job, retry or cancel it, and keep an eye on your servers. Your data never goes to a third-party service.&lt;/p&gt;

&lt;p&gt;The overview shows what's running, waiting, failed and done across all your queues:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fgk0t7l3ay2f93jlhx37h.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fgk0t7l3ay2f93jlhx37h.png" alt="PortQueue dashboard overview: activity cards above a table of queues with per-status counts" width="800" height="424"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Click into a queue to search its jobs and retry, cancel or remove them, one at a time or in bulk. You can also add a job straight from the browser:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fjpcd1dmxybnt17chg4uu.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fjpcd1dmxybnt17chg4uu.png" alt="A queue's detail page: status cards above the paged, searchable jobs table" width="800" height="426"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Open any job to see exactly what happened: what it was given, what it returned, why it failed and when each step took place:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F2u6o9lx5g5z1vz90owdm.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F2u6o9lx5g5z1vz90owdm.png" alt="A job's detail page: the full record, its payload and return value, and the lifecycle timeline" width="800" height="424"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Your repeating jobs are all in one list, with when each runs next and a switch to turn it off:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fr92cbnarl6arbquzmlva.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fr92cbnarl6arbquzmlva.png" alt="The schedules page: every recurring schedule with its pattern and next run" width="800" height="425"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The servers page shows each of your servers, how busy it is, and lets you pause any one of them without touching the rest:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fp6ze9u3mi8fst5ur7dnl.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fp6ze9u3mi8fst5ur7dnl.png" alt="The instances page: every keyed server with its heartbeat, CPU and heap usage" width="800" height="425"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  💻 A command-line tool too
&lt;/h3&gt;

&lt;p&gt;Like the terminal better? &lt;code&gt;@portqueue/cli&lt;/code&gt; gives you the same controls: live stats, retrying a job, setting up the database, and even serving the dashboard without changing your app:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;portqueue stats --watch --connection-string &lt;span class="s2"&gt;"$DATABASE_URL"&lt;/span&gt;
portqueue dashboard --root-user admin --root-password &lt;span class="s2"&gt;"$DASH_PASSWORD"&lt;/span&gt; --connection-string &lt;span class="s2"&gt;"$DATABASE_URL"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  🧩 Fits your TypeScript code
&lt;/h3&gt;

&lt;p&gt;It's written in TypeScript, so your job data keeps its type from the moment you add a job to the moment it's processed. It also has events and hooks if you want to send metrics or traces to your monitoring tools.&lt;/p&gt;

&lt;h2&gt;
  
  
  Get started
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npm install @portqueue/core pg   &lt;span class="c"&gt;# or: oracledb, mysql2, @electric-sql/pglite, better-sqlite3&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;📚 &lt;strong&gt;Docs:&lt;/strong&gt; &lt;a href="https://episclera.github.io/portqueue/" rel="noopener noreferrer"&gt;episclera.github.io/portqueue&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;🚀 &lt;strong&gt;Your first queue in 5 minutes:&lt;/strong&gt; &lt;a href="https://episclera.github.io/portqueue/docs/getting-started" rel="noopener noreferrer"&gt;Getting started&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;📈 &lt;strong&gt;Running on many servers:&lt;/strong&gt; &lt;a href="https://episclera.github.io/portqueue/docs/scale-horizontally" rel="noopener noreferrer"&gt;Scale horizontally&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;⭐ &lt;strong&gt;GitHub:&lt;/strong&gt; &lt;a href="https://github.com/episclera/portqueue" rel="noopener noreferrer"&gt;github.com/episclera/portqueue&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you've ever added Redis to your stack just to build reports in the background, give PortQueue a try. Issues, ideas and PRs are all welcome. Which database would you run it on? Let me know in the comments 👇&lt;/p&gt;

</description>
      <category>node</category>
      <category>queue</category>
      <category>database</category>
      <category>scalability</category>
    </item>
  </channel>
</rss>
