330,636
Requests / Sec
0.36ms
Avg Latency
8
Worker Threads
Interactive Documentation
import app from './core/index.js'
app.setup.setPort(4100)
app.setup.setDir('public', '/public')
app.setup.setDir('private', '/secure_data')
app.routes.get('/', (req, res) => {
res.send('index.html')
})
app.routes.post('/login', (req, res) => {
app.routes.getData(req).then(data => {
res.end(JSON.stringify(data))
})
})
app.run()
Framework Inspector
Hover over the code lines to explore the Redline modules: Setup for config, Routes for logic, and Run for scaling.
Setup Module
Configures the environment. Set ports and map directories. The setDir abstraction automatically segregates public assets from secured private data.
Route Engine
High-speed request management. getData(req) uses optimized buffer pooling to process incoming data without the latency of heavy frameworks.
Worker Init
The run() call performs core-pinning, ensuring each worker has its own dedicated CPU slice to eliminate context switching.