Upgrade to PRO for Only $50/Year—Limited-Time Offer! 🔥
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
A description of Hono Prepared Router
Search
EdamAmex
December 20, 2024
Technology
0
76
A description of Hono Prepared Router
A description of Hono Prepared Router
EdamAmex
December 20, 2024
Tweet
Share
Other Decks in Technology
See All in Technology
障害対応訓練、その前に
coconala_engineer
0
150
_第4回__AIxIoTビジネス共創ラボ紹介資料_20251203.pdf
iotcomjpadmin
0
110
Connection-based OAuthから学ぶOAuth for AI Agents
flatt_security
0
260
Oracle Database@AWS:サービス概要のご紹介
oracle4engineer
PRO
1
360
ペアーズにおけるAIエージェント 基盤とText to SQLツールの紹介
hisamouna
2
1.4k
AI との良い付き合い方を僕らは誰も知らない
asei
0
220
なぜ あなたはそんなに re:Invent に行くのか?
miu_crescent
PRO
0
120
普段使ってるClaude Skillsの紹介(by Notebooklm)
zerebom
7
1.9k
Lookerで実現するセキュアな外部データ提供
zozotech
PRO
0
190
100以上の新規コネクタ提供を可能にしたアーキテクチャ
ooyukioo
0
220
Strands AgentsとNova 2 SonicでS2Sを実践してみた
yama3133
1
1.5k
S3を正しく理解するための内部構造の読解
nrinetcom
PRO
3
240
Featured
See All Featured
技術選定の審美眼(2025年版) / Understanding the Spiral of Technologies 2025 edition
twada
PRO
115
91k
Ten Tips & Tricks for a 🌱 transition
stuffmc
0
31
The #1 spot is gone: here's how to win anyway
tamaranovitovic
1
860
Side Projects
sachag
455
43k
エンジニアに許された特別な時間の終わり
watany
105
220k
What does AI have to do with Human Rights?
axbom
PRO
0
1.9k
Building a Scalable Design System with Sketch
lauravandoore
463
34k
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
52
5.8k
[SF Ruby Conf 2025] Rails X
palkan
0
550
SEO in 2025: How to Prepare for the Future of Search
ipullrank
3
3.3k
What Being in a Rock Band Can Teach Us About Real World SEO
427marketing
0
140
Winning Ecommerce Organic Search in an AI Era - #searchnstuff2025
aleyda
0
1.8k
Transcript
Prepared Router
Process of Build 1. Lexer Path 2. Generate Conditions 3.
Rollup and Optimize 4. Dynamic Prediction
1. Lexer Path /book/:id /book/:id/:page{\\d+} /search/* separator static dynamic regex
wildcard analyze the routing path 2. Generate Conditions pathParts is an array separated by separators. pathParts[1] = ‘book’ !!pathParts[2] ... /\d+/.test(pathParts[3]) ... pathParts.length > 2 ... And generate params
3. Rollup and Optimize if (A) { if (B) {
... } } if (C) { if (A) { ... } } optimize conditions if (A) { if (B) { ... } if (C) { ... } } if B and C are exclusive (B⊕C) if (A) { if (B) { ... }else if (C) { ... } }
4. Dynamic Prediction cache static path POST /books/list This is
static path Routing with built matcher and cache the results const results = matcher(“POST”, “/books/list”, ...) // [/books/*, /books/list] cache(“POST”, “/books/list”, results)