<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Dmytro Popov</title>
    <description>The latest articles on DEV Community by Dmytro Popov (@dmytro_popov_5489ccb6623e).</description>
    <link>https://dev.to/dmytro_popov_5489ccb6623e</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3521992%2Fe43e46e0-b0d4-4da4-abfc-daf3222eab66.jpg</url>
      <title>DEV Community: Dmytro Popov</title>
      <link>https://dev.to/dmytro_popov_5489ccb6623e</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/dmytro_popov_5489ccb6623e"/>
    <language>en</language>
    <item>
      <title>Can executable business logic be designed in a Service instead of an Entity in DDD?</title>
      <dc:creator>Dmytro Popov</dc:creator>
      <pubDate>Mon, 22 Sep 2025 12:40:29 +0000</pubDate>
      <link>https://dev.to/dmytro_popov_5489ccb6623e/can-executable-business-logic-be-designed-in-a-service-instead-of-an-entity-in-ddd-38hl</link>
      <guid>https://dev.to/dmytro_popov_5489ccb6623e/can-executable-business-logic-be-designed-in-a-service-instead-of-an-entity-in-ddd-38hl</guid>
      <description>&lt;p&gt;According to Eric Evans’ book "Domain-Driven Design", it seems to me that the key concepts of DDD are Ubiquitous Language, Bounded Context, and the defined Isolation between these bounded contexts.&lt;br&gt;
Additionally, the key design elements provided are: Entity, ValueObject, and Service.&lt;/p&gt;

&lt;p&gt;My question is:&lt;br&gt;
In your opinion, is it acceptable to design business logic inside a &lt;strong&gt;Service&lt;/strong&gt; instead of an Entity?&lt;br&gt;
As a result, the Entity becomes &lt;strong&gt;anemic&lt;/strong&gt;, BUT &lt;strong&gt;it continues to be part of the product aspect&lt;/strong&gt; (as well as part of the context and the ubiquitous language) and still maintains its identity.&lt;/p&gt;

&lt;p&gt;So, in this case, it seems that the main concept of DDD is preserved, despite the described "compromise".&lt;/p&gt;

</description>
      <category>ddd</category>
      <category>architecture</category>
    </item>
  </channel>
</rss>
