<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kaminashi-developer</author_name>
  <author_url>https://blog.hatena.ne.jp/kaminashi-developer/</author_url>
  <blog_title>カミナシ エンジニアブログ</blog_title>
  <blog_url>https://kaminashi-developer.hatenablog.jp/</blog_url>
  <categories>
  </categories>
  <description>こんにちは、ソフトウェアエンジニアの渡邉（匠）です。「カミナシ 設備保全」の開発に携わっています。ゴールデンウィークが明けて1ヶ月ほどが経過し、休暇モードからやっと仕事モードに戻ってきました。 このプロダクトは開発開始から約2年が経ちました。バックエンドは長いあいだ presentation / domain / repository の3層で書いてきましたが、最近これにユースケース層を加えた4層へと再構成しました。 この記事では、なぜ最初から4層にしなかったのか、そしてなぜ今になって構成を取り直したのか、を書きます。 シンプルに始めた 当初のバックエンドは presentation / do…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkaminashi-developer.hatenablog.jp%2Fentry%2Fyagni-layered-architecture&quot; title=&quot;必要になるまで作らず、必要になったら切り出す — バックエンド3層から4層への再構成 - カミナシ エンジニアブログ&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/kaminashi-developer/20260603/20260603181003.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2026-06-04 08:00:00</published>
  <title>必要になるまで作らず、必要になったら切り出す — バックエンド3層から4層への再構成</title>
  <type>rich</type>
  <url>https://kaminashi-developer.hatenablog.jp/entry/yagni-layered-architecture</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
