Skip to content

Latest commit

 

History

History
34 lines (24 loc) · 1.2 KB

README.md

File metadata and controls

34 lines (24 loc) · 1.2 KB

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