WA9ACE / daro

A high performance Deno web server modeled after Ruby's Roda

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Daro Server

deno doc

Daro is a high performance router and web server for Deno using the optimal routing tree data structure and access lookups by utilizing what is known as a Radix Trie. Daro's development was inspired by Ruby's Roda (hence Ro-da <> Da-ro).

Daro can utilize all cores of a system as each request is handled by a WebWorker. WebWorkers in Deno are backed by a tokio runtime threadpool that produces real OS level threads that can run across all processing cores allowing your application to use all available compute resources on the host. You could think of this library as automatically handling the work that would go in to manually clustering node servers using the Cluster library from Node's standard lib.

Usage

import DaroServer from "https://wa9ace.net/deno/pkg/daro/v0.0.1/mod.ts"

const server = new DaroServer(9001)

server.listen()

Example Middleware

Benchmarks

Contributing

About

A high performance Deno web server modeled after Ruby's Roda

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:TypeScript 100.0%