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

推荐订阅源

B
Blog
D
Docker
J
Java Code Geeks
腾讯CDC
Blog — PlanetScale
Blog — PlanetScale
G
Google Developers Blog
M
MIT News - Artificial intelligence
L
LangChain Blog
T
The Blog of Author Tim Ferriss
P
Proofpoint News Feed
MyScale Blog
MyScale Blog
博客园 - Franky
GbyAI
GbyAI
Hugging Face - Blog
Hugging Face - Blog
aimingoo的专栏
aimingoo的专栏
Last Week in AI
Last Week in AI
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
博客园 - 聂微东
N
Netflix TechBlog - Medium
B
Blog RSS Feed
Y
Y Combinator Blog
阮一峰的网络日志
阮一峰的网络日志
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Google DeepMind News
Google DeepMind News

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
3- AWS Serverless: REST API vs. HTTP API
Hamid Shoja · 2026-06-15 · via DEV Community
Cover image for 3- AWS Serverless: REST API vs. HTTP API

Hamid Shoja

There is common point of confusion. what's the different between REST API vs. HTTP API in AWS and what's the different between them and a traditional Rest API you write with e.g express in node

in the broader software world, a "REST API" is just an architectural pattern built on top of HTTP requests.

The confusion comes entirely from AWS-specific marketing terminology.

When you are inside the AWS ecosystem, Amazon API Gateway is a specific managed service, and AWS chose to split that service into two different flavors (or software products): one called "REST API" and one called "HTTP API."

Here is exactly how they work under the hood, how they differ internally, and how it compares to traditional servers.


1. How It Works: REST API vs. HTTP API (AWS Architecture)

Think of Amazon API Gateway as a reverse proxy or a "front door" that sits in front of your Lambda functions.

AWS REST API (The Heavyweight)

When a request hits an AWS REST API, AWS passes that request through a massive feature pipeline before it ever touches your Lambda code.

[Client Request] ──> [Authentication (Cognito/IAM)] ──> [Request Validation] ──> [Data Transformation (VTL)] ──> [Your Lambda]

  • What happens: AWS decrypts the request, validates the JSON schema, checks API keys, runs any custom request transformations using a complex mapping language called VTL, and then invokes your Lambda function.
  • Why it costs more: You are paying AWS for all that computing power happening inside the API Gateway layer itself.

AWS HTTP API (The Express Lane)

When a request hits an AWS HTTP API, AWS strips out almost the entire middle pipeline.

[Client Request] ──> [JWT/OAuth2 Authorization Only] ──> [Your Lambda]

  • What happens: The HTTP API acts as a lightning-fast router. It optionally checks a standard JWT token, converts the incoming HTTP request directly into a clean JSON object, and throws it straight into your Lambda function.
  • Why it costs less: Because AWS is doing almost zero processing or data manipulation. Your TypeScript Lambda function handles the validation and logic instead.

2. The Traditional Service Comparison (Express.js / NestJS)

In a traditional application (like a Node.js/Express app running on a virtual server or Docker container), you don't have this artificial split. You just write a "REST API."

Here is how the architecture looks side-by-side:

Traditional Server (Express.js on EC2/Docker)

In a traditional setup, one single server handles everything.

  1. The server listens for an HTTP request.
  2. Your Express middleware handles routing (app.get('/hello')).
  3. Your Express middleware handles authorization and data validation.
  4. Your controller executes the business logic.

AWS Serverless (HTTP API + Lambda)

In AWS Serverless, the responsibilities are decoupled into completely separate services:

  1. AWS HTTP API handles the networking, SSL certificates, and basic routing (GET /hello).
  2. AWS Lambda acts as the isolated execution container that runs your TypeScript code to handle the business logic.

Summary: Unmixing the Terms

  • In the Real World: A REST API is a conceptual design pattern. An HTTP request is the underlying protocol. A traditional Node.js backend handles both of these inside the application code.
  • In AWS Language: "REST API" and "HTTP API" are just two different pricing and feature tiers of the Amazon API Gateway service.

If you don't need AWS to do complex request manipulation before your code runs, you choose the HTTP API tier to save 70% on your infrastructure bill and let your TypeScript code do the heavy lifting!

I hope you find it useful
HASH