<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>katsube</author_name>
  <author_url>https://blog.hatena.ne.jp/katsube/</author_url>
  <blog_title>ねこの足跡R</blog_title>
  <blog_url>https://blog.katsubemakito.net/</blog_url>
  <categories>
    <anon>Node.js</anon>
    <anon>express</anon>
    <anon>JavaScript</anon>
    <anon>専門学校の課題用</anon>
    <anon>Webサーバ</anon>
  </categories>
  <description>※この記事は専門学校の講義用に作成されたものです Node.js+expressでHTTPサーバを作成する第2段。今回は「罠」にも「武器」にもなるポイントについてお話します。 PHPでサーバサイドを実装する際には、Webサーバとしての機能はApacheが受け持つパターンが多いわけですが、この場合PHPはリクエストがある度に起動と終了を繰り返します。つまり起動時に前回の処理結果などを気にする必要は基本的にありません。ところがexpressでサーバを作っている場合には1つのプログラムが起動しっぱなしであることを意識する必要があるのです。</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.katsubemakito.net%2Fnodejs%2Fhttp-server-built-with-express2&quot; title=&quot; [Node.js] expressで作るHTTPサーバ - 入門編 その2「グローバル変数の生存戦略編」 - ねこの足跡R&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn-ak.f.st-hatena.com/images/fotolife/k/katsube/20231125/20231125050214.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2020-07-05 16:10:32</published>
  <title> [Node.js] expressで作るHTTPサーバ - 入門編 その2「グローバル変数の生存戦略編」</title>
  <type>rich</type>
  <url>https://blog.katsubemakito.net/nodejs/http-server-built-with-express2</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
