Urgent.News

What's breaking now, across hundreds of outlets.

Tech

Run n8n in queue mode with a private editor

n8n is a popular workflow automation tool. With Blossom, you can run the editor and workers as separate services. That’s the part I like. You can add workers without touching the editor. We set it up in queue mode with a private editor. The main service handles the editor, triggers, and webhook entry points.- Workers pull execution jobs from Redis.- PostgreSQL holds workflows, saved credentials,…

Running n8n in queue mode with a private editor offers a flexible workflow automation solution. Blossom enables the editor and workers to operate as separate services, allowing for easy addition of workers without modifying the editor. Setting up in queue mode involves configuring the main service to handle editor, triggers, and webhook entry points.

Workers retrieve execution jobs from Redis, while PostgreSQL stores workflows, saved credentials, and execution records. It is crucial to use the same n8n release and N8N_ENCRYPTION_KEY across the main process and workers to maintain consistency, particularly for saved credentials. This setup ensures that newly deployed containers can seamlessly utilize the saved credentials.

During testing, a published webhook with Header Auth was evaluated, confirming both successful outcomes with and without the header. Subsequently, the configuration was redeployed, and the calls were repeated, verifying the results even after adjusting the worker count. When dealing with workflows that transfer files, it is essential to establish shared binary storage prior to adding more workers.

Scaling the workers increases execution capacity, enhancing overall performance. Additionally, redundancy in the editor and triggers necessitates a distinct setup. This configuration, derived from a BoltOps article, was drafted with assistance from artificial intelligence.

Rewritten by urgent.news; may contain errors — check the original.

Source: dev.to

Read the original at dev.to →

Report a problem with this story

More in Tech

Blackbox exporter: HTTP, TCP and certificate probes without instrumenting the app

Your application passes its own health checks, yet a customer cannot log in: the certificate expired overnight, or a firewall closed port 443. The blackbox exporter covers exactly this case.

  • Blackbox exporter monitors services without app instrumentation
  • Probes HTTP, HTTPS, DNS, TCP, ICMP, and gRPC protocols
  • Checks certificate validity, returns probesuccess metric

More from Friday 27 November →