<?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: Eric Ndouakulu Kiaku Mbuta</title>
    <description>The latest articles on DEV Community by Eric Ndouakulu Kiaku Mbuta (@endouakulu).</description>
    <link>https://dev.to/endouakulu</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.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F48513%2Fcbf92986-f712-444b-960e-337a2fe1fb25.png</url>
      <title>DEV Community: Eric Ndouakulu Kiaku Mbuta</title>
      <link>https://dev.to/endouakulu</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/endouakulu"/>
    <language>en</language>
    <item>
      <title>The "Service hell" and how you can avoid it</title>
      <dc:creator>Eric Ndouakulu Kiaku Mbuta</dc:creator>
      <pubDate>Sat, 10 Feb 2024 08:05:57 +0000</pubDate>
      <link>https://dev.to/endouakulu/the-service-hell-and-how-you-can-avoid-it-1ca1</link>
      <guid>https://dev.to/endouakulu/the-service-hell-and-how-you-can-avoid-it-1ca1</guid>
      <description>&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fa4t2an06jgnxfsv28tkp.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fa4t2an06jgnxfsv28tkp.jpg" alt="Image description" width="500" height="500"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In this post, I aim to shed light on the concept of "service hell" and offer strategies for circumventing such predicaments, emphasizing the critical role of service categorization for enhanced code hygiene.&lt;/p&gt;

&lt;h1&gt;
  
  
  What is "Service Hell"?
&lt;/h1&gt;

&lt;p&gt;"Service Hell" describes a scenario in which an application is burdened by an overabundance of services, often characterized by vague responsibilities. This clutter leads to code that is challenging to comprehend, maintain, and expand. A lack of structured organization can result in repeated logic across services, undermining the principle of reusability.&lt;/p&gt;

&lt;h1&gt;
  
  
  Solutions to Navigate Away from "Service Hell"
&lt;/h1&gt;

&lt;h3&gt;
  
  
  1. Refine the Definition of "Service"
&lt;/h3&gt;

&lt;p&gt;In contemporary development practices, any component that isn't an entity, repository, or a point of exposure (such as REST Controllers, GraphQL entry points, Kafka consumers, etc.) is often labeled as a service. However, this broad definition of service can be more usefully segmented into distinct categories:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Application Service: Acts as the functional gateway of our application, orchestrating and coordinating all internal components to fulfill the requested action.&lt;/li&gt;
&lt;li&gt;Infrastructure Service: Expands our system's capabilities by interfacing with external components (e.g., HTTP clients to other microservices, email dispatching, etc.).&lt;/li&gt;
&lt;li&gt;Domain Service: Augments our business model with additional functionalities that necessitate computations beyond the capabilities of the business object itself (e.g., calculating an exchange rate for an order).&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Over time, the essence of what constitutes a Service, as discussed by Martin Fowler, seems to have been diluted.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Enhance Service Cohesion
&lt;/h3&gt;

&lt;p&gt;It's crucial to ensure that each service class is assigned a clear and consistent responsibility. Adhering to the Single Responsibility Principle is advisable here.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Assess Service Granularity
&lt;/h3&gt;

&lt;p&gt;The granularity of your services warrants careful consideration. Services that are either too granular or too bulky can pose issues. Striking a balance that aligns with your application's size and complexity is key.&lt;/p&gt;

&lt;h3&gt;
  
  
  4. Improve Organizational Structure for Clarity
&lt;/h3&gt;

&lt;p&gt;Services should be organized in a manner that mirrors the business domain of your application. This organization might involve categorizing services by functionality, domain, or other logical divisions, facilitating a more intuitive understanding.&lt;/p&gt;

&lt;h1&gt;
  
  
  Your Thoughts?
&lt;/h1&gt;

&lt;p&gt;This introduction serves as a starting point for further discussion on this topic. I welcome your insights and questions in the comments below.&lt;/p&gt;

</description>
      <category>oop</category>
      <category>design</category>
      <category>codehygiene</category>
      <category>java</category>
    </item>
    <item>
      <title>My introduction</title>
      <dc:creator>Eric Ndouakulu Kiaku Mbuta</dc:creator>
      <pubDate>Sun, 17 Dec 2017 21:26:37 +0000</pubDate>
      <link>https://dev.to/endouakulu/my-introduction-cki</link>
      <guid>https://dev.to/endouakulu/my-introduction-cki</guid>
      <description>&lt;p&gt;I started coding when I was 18 years old&lt;/p&gt;

&lt;p&gt;I live near Paris.&lt;/p&gt;

&lt;p&gt;I work for &lt;a href="https://www.mirakl.fr" rel="noopener noreferrer"&gt;Mirakl&lt;/a&gt; in France.&lt;/p&gt;

&lt;p&gt;I mostly program in these languages: Java, JavaScript, Kotlin, Go&lt;/p&gt;

&lt;p&gt;Sharing is my philosophy&lt;/p&gt;

&lt;p&gt;I am currently learning more about Reactive System, Rx, functionnal programming, concurrency over parallelism, Vert.X&lt;/p&gt;

&lt;p&gt;You can find me on GitHub as &lt;a href="https://github.com/endouakulu" rel="noopener noreferrer"&gt;endouakulu&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Nice to meet you.&lt;/p&gt;

</description>
      <category>introduction</category>
    </item>
  </channel>
</rss>
