Meet Velociradix: The 180,000 req/s C++17 Powered Web Framework for Node.js
DEV Community

Meet Velociradix: The 180,000 req/s C++17 Powered Web Framework for Node.js

Hey everyone! ๐Ÿ‘‹ I've been working on Velociradix, an ultra-fast, zero-dependency C++17 HTTP engine and Node.js web framework.

Why Velociradix?

Standard Node.js frameworks execute HTTP parsing, header validation, and routing on the single-threaded V8 loop. Velociradix moves socket handling (kqueue / epoll), zero-copy HTTP parsing, and Radix Trie routing to native multi-threaded C++ background workers.

Benchmark Highlights

500k requests, HTTP pipelining:

  • ๐ŸŽ๏ธ Pure C++ Engine: ~450,000 req/s
  • โšก JS / TS Multi-Thread: ~181,000 req/s
  • ๐Ÿƒ JS Single-Thread (1 core): ~147,000 req/s (~3.5x faster than Express)

Key Features

  • ๐Ÿ›ก๏ธ Zero Runtime Dependencies: 0 external npm dependencies.
  • ๐Ÿ”„ Express Drop-in Replacement: Run existing Express apps/routers via import express from 'velociradix/express'.
  • ๐Ÿ“ File-Based Routing: Next.js-style automatic routes (routes/users/[id].ts โž” /users/:id).
  • ๐Ÿ”‹ 36+ Built-in Middlewares: JWT auth, sliding-window rate limiter, session encryption, caching, CORS, and helmet out of the box.
  • ๐Ÿ“Š Built-in Docs & Live Metrics: Interactive Swagger UI, Postman v2.1 export, and live metrics dashboard without extra packages.
  • ๐Ÿ“˜ 100% Strict TypeScript: Zero any.

Documentation & Guides

I would love to get your feedback, hear what you think of the architecture, and answer any questions!

Read on DEV Community ↗ ← Back to News

Comments

No comments yet. Start the discussion.