Queues on Railway
Railway has no first-party queue service, but a job queue can be deployed with a language-level library. The example template uses BullMQ backed by Redis, with a Fastify server that exposes an /add-job endpoint and serves a bull-board dashboard for watching, retrying and cleaning jobs. Code walks through envsafe-validated Redis connection variables, creating a WelcomeEmailQueue, wiring the dashboard through FastifyAdapter, and a dummy worker that reports progress and fails at random so the retry flow can be tried out.
Related posts
- Announcing Deno Queues
Deno mediumAdeptDeno Queues adds two APIs to Deno KV, `enqueue()` and `listenQueue()`, for offloading or delaying background work with no infrastructure to configure. They are backed by SQLite locally and FoundationDB on Deno Deploy, where V8 isolates spin up on demand to process messages. Delivery is at-least-once, failed handlers retry up to 5 times before the message is dropped, and enqueues can join KV atomic transactions so messages are only sent if the transaction commits. Nonce checks inside those transactions give idempotent processing, and billing is per KV write plus one Deploy request per received message.
- Slack Overflow: How We Scaled Slack to Support 1000s of Developers
Railway mediumAdeptRailway built a two-way bridge between Slack Connect channels and its in-house Help Station support tool, auto-creating channels when customers hit growth thresholds. Early assumptions failed: external Slack Connect users can't invoke the host's slash commands, a "!support" workaround went unused, and Socket Mode silently stopped delivering messages after deploys. The fix was to thread every message by default, classify intent as sales or support with GPT-4o-mini, let employees impersonate so replies come from real people, switch Bolt to HTTP routes, and run message processing through Temporal workflows with idempotent activities so crashes don't lose messages. Railway credits Slack with 50x better engagement and 8x faster response times than email, and is opening Slack Connect to all Pro teams.
- Building a SaaS application on Railway
Railway mediumAdeptA step-by-step tutorial for building a job board SaaS MVP with Remix, PostgreSQL via Drizzle ORM, Clerk authentication and shadcn/ui, then deploying it to Railway. It covers the data model, routes for job seekers and hiring managers, resume uploads stored on disk, and a resource route for downloads. Deployment steps include a custom start command that runs migrations, attaching a persistent volume for resumes, provisioning Postgres with reference variables, and fronting the app with a Cloudflare custom domain for DDoS protection and caching.
- High Availability by Offloading Work Into the Background
Shopify Engineering mediumAdeptMoving slow, resource-heavy or error-prone work such as emails, image processing, webhooks and imports out of the request-response cycle into queued background jobs keeps application servers available and responsive. At Shopify that means tens of thousands of jobs per second and traffic spikes up to 170k requests per second. Task queues provide spike buffering, retries, parallelism, prioritization and scheduling, but they bring their own problems: breaking changes to job parameters during deploys, no exactly-once delivery (so jobs should be idempotent), non-transactional queuing (handled with the outbox pattern), local transactions and ordering (handled with SAGA), and long-running jobs that conflict with frequent deploys. Shopify addresses the last one with interruptible, resumable Active Job iteration that checkpoints progress.
- Asynchronous computing at Meta: Overview and learnings
Meta Engineering mediumAdeptMeta re-architected Async tier, its serverless asynchronous computing platform running multi-trillion workloads per day, by splitting an overloaded Dispatcher into data-source-specific "tailers" and a source-agnostic scheduler. Tailers now push work to the scheduler over RPC instead of the scheduler pulling from the FOQS queue. This removed redundant copying into FOQS, improved end-to-end latency and cross-region load balancing, and made streams, warehouses and pub/sub first-class sources, at the cost of being a poor fit for long-running workloads. Queues offer lease-based granular retries and flexible ordering at moderate cost, while streams are cheaper for high-volume sequential access but clog on failed items. A separate controlled-delay service, backed by a priority queue or chained fixed-delay streams, preserves at-least-once delivery without blocking the stream.