惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

L
LangChain Blog
The GitHub Blog
The GitHub Blog
Recent Announcements
Recent Announcements
MyScale Blog
MyScale Blog
P
Proofpoint News Feed
S
Security @ Cisco Blogs
N
News and Events Feed by Topic
H
Hacker News: Front Page
Attack and Defense Labs
Attack and Defense Labs
S
Secure Thoughts
Microsoft Security Blog
Microsoft Security Blog
N
Netflix TechBlog - Medium
U
Unit 42
Stack Overflow Blog
Stack Overflow Blog
T
Threat Research - Cisco Blogs
Google Online Security Blog
Google Online Security Blog
Spread Privacy
Spread Privacy
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
L
LINUX DO - 热门话题
T
Tenable Blog
博客园 - 叶小钗
D
DataBreaches.Net
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
博客园_首页
人人都是产品经理
人人都是产品经理
aimingoo的专栏
aimingoo的专栏
C
Check Point Blog
博客园 - 三生石上(FineUI控件)
量子位
P
Proofpoint News Feed
H
Help Net Security
Blog — PlanetScale
Blog — PlanetScale
宝玉的分享
宝玉的分享
Recorded Future
Recorded Future
The Register - Security
The Register - Security
F
Fortinet All Blogs
Engineering at Meta
Engineering at Meta
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Last Week in AI
Last Week in AI
S
Schneier on Security
V
Vulnerabilities – Threatpost
雷峰网
雷峰网
Microsoft Azure Blog
Microsoft Azure Blog
G
GRAHAM CLULEY
G
Google Developers Blog
月光博客
月光博客
V
V2EX
T
Troy Hunt's Blog
A
Arctic Wolf

Railway Blog

Where Railway is, and where it's going (Summer 2026) PaaS vs IaaS vs SaaS: What Each Means and Who Should Pick What in 2026 The Best Continuous Deployment Tools in 2026 The Best PaaS for Multi-Region Deployments in 2026 The Best Platforms for Monorepo Deployments in 2026 Compliance Isn't a Feature, It's a Posture What is BYOC (Bring Your Own Cloud)? A Developer's Guide for 2026 The Best Managed Kubernetes Hosting in 2026 The Best Container Registries in 2026 The Vanilla Cloud Tax: What Rolling Your Own on AWS Actually Costs What is a PaaS? A Developer's Guide for 2026 The Best Cloud Observability and Logging Tools in 2026 The Best PostgreSQL Hosting for Developers in 2026 The Best Multi-Region Hosting Platforms in 2026 The Best Platforms to Deploy AI Apps in 2026 (Not the Models, the Apps Around Them) The Agent-Native Cloud: What It Means and Why It Matters Incident Report: May 19, 2026- GCP Account Suspension Counting to 3 with a new builder processing 50M+ monthly builds Railway iOS preview now available via TestFlight Kill your onboarding: selling to 10,000+ new users a day Your AI wants to nuke your database. Guardrails fix that. Better Rails for Agents: A New Remote MCP and Railway Agent in the CLI Moving Railway's Frontend Off Next.js One command deploys, there's a Stripe APP for that From registrar to deployed: buying a domain inside Railway A letter to open source builders who deserve more Networking is a black box, we used eBPF to open it Heroku Walked So Railway Can Run Security Features Your Security Team Will Love Railway Runs Open Source, Now We're Funding It Railway raises $100M Series B to unburden the builders Deploy autoscaling services, AI Workflow automation, and LLM APIs Without Kubernetes Hosting Postgres with GeoLite2: a practical guide to IP geolocation, data loading, and updates Serverless functions vs containers: CI/CD, database connections, cron jobs, and long-running tasks Hosting Postgres with pgvector: provider tradeoffs, migrations, indexes, and tuning Introducing the Railway integration on Delve.co Secure Cloud Hosting for Compliance: A Practical Guide for Startups and Regulated Industries How G2X Unlocked Rapid Experimentation at Scale with Railway MindFort Runs 100+ AI Pen Testing Agents Without Their Previous $10k AWS Bill How Bilt's Marketing Engineering Team Delivers at Scale with Railway Railway Technology Partners: Earn Revenue on Templates You Didn't Build ~$1 Million Paid to Developers Who Built Railway Templates CI/CD for Modern Deployment: From Manual Deploys to PR Environments Kernel Powers 1,000+ AI Agents on $444/Month of Railway Infrastructure Deploy Full-Stack TypeScript Apps: Architectures, Execution Models, and Deployment Choices Railway vs Cloudflare: How Their Architectures Differ and When to Use Each Run Scheduled and Recurring Tasks with Cron Monitoring & Observability: Using Logs, Metrics, Traces, and Alerts to Understand System Failures Logs, Metrics, and Traces: What Does Each Signal Tell You? Server rendering benchmarks: Railway vs Cloudflare vs Vercel Top five Heroku alternatives Comparing top PaaS and deployment providers Pricing to Encourage Use The F in SOC2 stands for functional Deploy Together, Earn Together: Introducing Railway Partnerships How We Oops-Proofed Infrastructure Deletion on Railway Bring Back the Free Plan Railway MCP - Stateful, Serverful, Pay-per-use Infrastructure Hackathon: Winners Announced! Mark Your Calendar: Railway User Hackathon with Prizes Launching Railway's Affiliate Program Zero-Touch Bare Metal at Scale Ssh, We’re Announcing One More Thing! $1M for Open Source Introducing Central Station Speed Isn’t Just About Code, It’s About Where That Code Runs Why We’re Moving on From Nix Railway V3: Faster and Cheaper How to Migrate from Cloudflare Pages to Railway Supercharging Directus on Railway with a Static Frontend How to Migrate from AWS Lambda to Railway Deploy Triton Inference Server on Railway How to Handle Database Connection Pooling Building a NestJS App on Railway Manually Optimize Deployments on Railway Implement a GitHub Actions Testing Suite Scaling a SaaS application on Railway Building a SaaS application on Railway Deploy a Dart App on Railway, Part 2 Deploy a Dart App on Railway, Part 1 Implementing Feature Flags from Scratch Cron Jobs with Django and GitHub Actions Deploy Offen on Railway Queues on Railway Working with NX, Railway and CI/CD Automated PostgreSQL Backups Using GitLab CI/CD with Railway Migrating From Heroku To Railway Cron Jobs on Railway Deploy Beam on Railway Deploy Authorizer on Railway Deploying Monorepo Applications How to Backup and Restore Your Postgres Database How to Backup Your Redis Instance Deploy Cusdis on Railway Deploy Ghost on Railway Using Github Actions with Railway Deploy Calendso (cal.com) on Railway Self-hosted website analytics Use Notion as a CMS for your NextJS blog
One-Second Deploys? We Didn’t Believe It Either
Jared Lunde · 2025-03-05 · via Railway Blog

Let me introduce you to someone: they just released a new app, they started to tell people about it, and now they find themselves checking their Postgres database every 15 minutes to see if anyone has signed up. The thought of setting up Zapier or Mixpanel for a few simple product alerts puts them in physical agony.

That was me just a few months ago.

Alright, I thought: I’ll write a script, upload it to a Lambda function, and set up an EventBridge schedule to run it every hour.

After over two hours of writing CDK, debugging permissions, waiting in the slow CloudFormation loop, and setting up a package to deploy, I finally received a Discord notification.

Wahooo!!…? Not really.

Because that’s how I spent my entire Saturday morning.

Look at this code:

import { DiscordNotification } from "@penseapp/discord-notification";

const notify = new DiscordNotification(
  "Product Alerts (Hourly)",
  import.meta.env.DISCORD_WEBHOOK_URL
);

const users = await Bun.sql`
  SELECT COUNT(*) as total FROM users WHERE created_at >= NOW() - INTERVAL '1 hour';
`;

if (users[0].total > 0) {
	await notify
	  .infoMessage()
	  .addUsername("hypebot")
	  .addTitle("Engagement")
	  .addField({ name: "New Users", value: users[0].total })
	  .sendMessage();
}

How is it possible that with the simplicity of a cloud, the magic of IaC, and the truly crisp API of the Bun runtime — a mere 20 lines took over two hours to ship?

That couldn't be right. There had to be a better way.

Spoiler alert: There was a better way.

We built it and added it to Railway.

That's what we're announcing today.

Allow me to show you how to deploy that same code in a secure Railway environment in 45 seconds:

No package manager, no GitHub repo, no IaC, no container builds. Just code to deploy.

We're calling this feature Railway Functions, and it's available today in GA.

It’s now possible to create a Function anywhere on the Railway canvas
It’s now possible to create a Function anywhere on the Railway canvas

Let's get into how it works.

How it works

With Functions, we aim to cut out every step that isn’t absolutely necessary for running native code in a container and deploy it in under 5 seconds.

Behind the curtain, Functions run on the same infraless compute that Services do, which means you can still use volumes, variables, and other features you know and love.

Here's what's happens when Railway runs a Function:

1. Parse and analyze: We first parse your source code into an AST, determine its dependencies, then generate a package.json file on-the-fly. Our analyzer allows you to pin versions of packages without the need for a lockfile or package.json.

import pkg from 'pkg@6.2.0'
import pkg from 'pkg@^6.2.0'
import pkg from 'pkg@~6.2.0'
import pkg from 'pkg@next'
import pkg from 'pkg' // evaluates to @latest
const pkg = await import("pkg")

2. Install dependencies: Dependencies are then installed at the beginning of each deploy using bun install. We tested every package manager under the sun and found Bun consistently outperformed the competition by up to 10x. With Bun, our entire deploy step takes less time to finish than npm install fastify did.

Package ManagerTime to install fastify
npm/pnpm/yarn without lockfile generation>6s
bun500ms

3. Run your code: Bun allows you to execute TypeScript/JavaScript without transpiling first. Once we’ve stripped the version strings from your imports, we can then run your code as is without a bundler and Bun will strip the types.

Start deploying. Instantly.

Shortening the feedback loop to seconds isn't a marginal improvement — it fundamentally changes how you work. When you can deploy in 1 second, you're free to experiment, iterate, and ship while staying in flow.

A real Function that took 00:01 seconds to deploy
A real Function that took 00:01 seconds to deploy

Today Functions offers support out of the box for TypeScript, but in the future we'll be adding more language support.

To get started, head over to Railway, open up the canvas, and add a new Function service. We provide a few code examples out of the box, including a REST API, a landing page in JSX, and a cron utility.

If you're curious about other use cases, you can also check out the docs.

Either way, let us know what you want to see next in the Functions thread in Help Station.

Happy shipping.