<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
    <channel>
      <title>Yorafa&#039;s Blog</title>
      <link>https://blog.yorafa.com</link>
      <description>Last 10 notes on Yorafa&#039;s Blog</description>
      <generator>Quartz -- quartz.jzhao.xyz</generator>
      <item>
    <title>App Server</title>
    <link>https://blog.yorafa.com/Architecture/App-Server</link>
    <guid>https://blog.yorafa.com/Architecture/App-Server</guid>
    <description><![CDATA[ TL;DR 在一个应用中，完整的层级如下： 网络层 &amp; 协议层（Network &amp; HTTP Parsing） 抽象层（Request / Response / Context） 调度层（Router / Middleware） 业务层（Handler） 表现层（Response Rendering，如：HTML / JSON / File） build from scratch 极简server 一个最简易app server需要什么呢？ 设置好一个server socket，并监听某个端口，例如3000 接受client的连接 读取请求并处理 就是这么简单，我们已经可以通过... ]]></description>
    <pubDate>Mon, 20 Apr 2026 22:05:34 GMT</pubDate>
  </item><item>
    <title>HTTP</title>
    <link>https://blog.yorafa.com/Architecture/HTTP</link>
    <guid>https://blog.yorafa.com/Architecture/HTTP</guid>
    <description><![CDATA[  ]]></description>
    <pubDate>Mon, 20 Apr 2026 22:05:34 GMT</pubDate>
  </item><item>
    <title>Web</title>
    <link>https://blog.yorafa.com/Architecture/Web</link>
    <guid>https://blog.yorafa.com/Architecture/Web</guid>
    <description><![CDATA[ Web 现代web框架的架构通常如下： [Client] 浏览器 → [CDN] 内容分发网络 → [Reverse Proxy]（如 Nginx）反向代理 → [App Server] → [DB] 数据库/缓存/微服务. ]]></description>
    <pubDate>Mon, 20 Apr 2026 22:05:34 GMT</pubDate>
  </item><item>
    <title>Architecture</title>
    <link>https://blog.yorafa.com/Architecture/</link>
    <guid>https://blog.yorafa.com/Architecture/</guid>
    <description><![CDATA[ 记一下乱七八糟的架构知识. ]]></description>
    <pubDate>Mon, 20 Apr 2026 22:05:34 GMT</pubDate>
  </item><item>
    <title>Shortest Path</title>
    <link>https://blog.yorafa.com/DSA/Graph/Shortest-Path/</link>
    <guid>https://blog.yorafa.com/DSA/Graph/Shortest-Path/</guid>
    <description><![CDATA[ 常见最短路算法有: Dijkstra Bellman-Ford Floyd . ]]></description>
    <pubDate>Sat, 18 Apr 2026 01:19:22 GMT</pubDate>
  </item><item>
    <title>Authentication Method</title>
    <link>https://blog.yorafa.com/Architecture/Authentication-Method</link>
    <guid>https://blog.yorafa.com/Architecture/Authentication-Method</guid>
    <description><![CDATA[ 最基础的的auth method有: Basic: 在每次request时附上自己的credentials，一般来说时经过base64加密。也因此不再被经常使用了 Digest: 与Basic类似，不过经过MD5 hash，但也一样不再被经常使用了 Api Keys: client生成unique的api key，然后接下来的每次请求都会使用这个api key . ]]></description>
    <pubDate>Sat, 18 Apr 2026 01:02:11 GMT</pubDate>
  </item><item>
    <title>Authentication Session Management</title>
    <link>https://blog.yorafa.com/Architecture/Authentication-Session-Management</link>
    <guid>https://blog.yorafa.com/Architecture/Authentication-Session-Management</guid>
    <description><![CDATA[ 目前主流的session management有两种 cookie: 在登录之后建立session，服务端会生成session id，记录并设置好session cookie(一般来说会使用redis等memory based数据库以防止服务器崩溃而导致的信息丢失)。 token: 在登录之后，服务端会生成token，客户端保存然后请求带 Authorization: Bearer TOKEN。 . ]]></description>
    <pubDate>Sat, 18 Apr 2026 01:02:11 GMT</pubDate>
  </item><item>
    <title>Authentication</title>
    <link>https://blog.yorafa.com/Architecture/Authentication</link>
    <guid>https://blog.yorafa.com/Architecture/Authentication</guid>
    <description><![CDATA[ Authentication顾名思义是验证 “谁是用户，用户是谁”的一套逻辑。返回的也自然是: 如果不是用户或用户不是被授权的，那则是identity not confirmed，也就是401 unauthorized 如果通过了，则可以继续请求 所以其基本逻辑是 通过不同的Authentication Method，进行验证拿到凭证 使用获得的凭证进行Authentication Session Management . ]]></description>
    <pubDate>Sat, 18 Apr 2026 01:02:11 GMT</pubDate>
  </item><item>
    <title>Flow Example</title>
    <link>https://blog.yorafa.com/Computer-Network/Flow-Example</link>
    <guid>https://blog.yorafa.com/Computer-Network/Flow-Example</guid>
    <description><![CDATA[ 用户点击网页： L7：发送HTTPS请求, 根据HTTPS构造请求内容，包括 URL、Headers、Cookies 等 L6：根据TLS进行加密，压缩 L5：建立TLS 会话，管理连接状态 L4：使用TCP建立连接，将数据分成多个 TCP segments, 添加源端口 / 目标端口，序号、ACK、窗口大小等控制信息 L3：将 TCP segment 封装成 IP packet, 添加源 IP 和目标 IP, 选择路由路径 L2：- 将 IP packet 封装成 Ethernet frame, 添加源 MAC 和目标 MAC 地址, 在局域网内通过交换机转发 L1：- 将 Ethernet... ]]></description>
    <pubDate>Sat, 18 Apr 2026 01:02:11 GMT</pubDate>
  </item><item>
    <title>OSI Model</title>
    <link>https://blog.yorafa.com/Computer-Network/OSI-Model</link>
    <guid>https://blog.yorafa.com/Computer-Network/OSI-Model</guid>
    <description><![CDATA[ Open System Interconnection (OSI) model, the standard of computer network L7 Application Layer L7 directly interacts with the data (i.e. ]]></description>
    <pubDate>Sat, 18 Apr 2026 01:02:11 GMT</pubDate>
  </item>
    </channel>
  </rss>