<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Ramón Bailén on Medium]]></title>
        <description><![CDATA[Stories by Ramón Bailén on Medium]]></description>
        <link>https://medium.com/@ramonbailen?source=rss-e1c4e8c2c8ac------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*0lDS14wn-BADJIgPgkgHXg.jpeg</url>
            <title>Stories by Ramón Bailén on Medium</title>
            <link>https://medium.com/@ramonbailen?source=rss-e1c4e8c2c8ac------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 11:27:47 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ramonbailen/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Life Hacks in Bits #5: What’s stopping you from earning the money you deserve?]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/write-a-catalyst/life-hacks-in-bits-5-whats-stopping-you-from-earning-the-money-you-deserve-3ca483f259a8?source=rss-e1c4e8c2c8ac------2"><img src="https://cdn-images-1.medium.com/max/2600/0*PC03WP2MqDP4CYLz" width="4728"></a></p><p class="medium-feed-snippet">Why hard work alone isn&#x2019;t the solution and how to unlock your earning potential today</p><p class="medium-feed-link"><a href="https://medium.com/write-a-catalyst/life-hacks-in-bits-5-whats-stopping-you-from-earning-the-money-you-deserve-3ca483f259a8?source=rss-e1c4e8c2c8ac------2">Continue reading on Write A Catalyst »</a></p></div>]]></description>
            <link>https://medium.com/write-a-catalyst/life-hacks-in-bits-5-whats-stopping-you-from-earning-the-money-you-deserve-3ca483f259a8?source=rss-e1c4e8c2c8ac------2</link>
            <guid isPermaLink="false">https://medium.com/p/3ca483f259a8</guid>
            <category><![CDATA[write-a-catalyst]]></category>
            <category><![CDATA[money]]></category>
            <category><![CDATA[growth]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[time]]></category>
            <dc:creator><![CDATA[Ramón Bailén]]></dc:creator>
            <pubDate>Wed, 22 Jan 2025 13:04:14 GMT</pubDate>
            <atom:updated>2025-01-22T13:04:14.302Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Life Hacks in Bits #4: Why treating your time like money could be the secret to unlimited growth]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/write-a-catalyst/life-hacks-in-bits-4-why-treating-your-time-like-money-could-be-the-secret-to-unlimited-growth-da5d8c78d47a?source=rss-e1c4e8c2c8ac------2"><img src="https://cdn-images-1.medium.com/max/2600/0*HjjInUOPPvl4QIkx" width="6000"></a></p><p class="medium-feed-snippet">Unlock exponential growth by treating your time as your most valuable asset</p><p class="medium-feed-link"><a href="https://medium.com/write-a-catalyst/life-hacks-in-bits-4-why-treating-your-time-like-money-could-be-the-secret-to-unlimited-growth-da5d8c78d47a?source=rss-e1c4e8c2c8ac------2">Continue reading on Write A Catalyst »</a></p></div>]]></description>
            <link>https://medium.com/write-a-catalyst/life-hacks-in-bits-4-why-treating-your-time-like-money-could-be-the-secret-to-unlimited-growth-da5d8c78d47a?source=rss-e1c4e8c2c8ac------2</link>
            <guid isPermaLink="false">https://medium.com/p/da5d8c78d47a</guid>
            <category><![CDATA[time]]></category>
            <category><![CDATA[write-a-catalyst]]></category>
            <category><![CDATA[money]]></category>
            <category><![CDATA[growth]]></category>
            <category><![CDATA[productivity]]></category>
            <dc:creator><![CDATA[Ramón Bailén]]></dc:creator>
            <pubDate>Sat, 18 Jan 2025 15:59:00 GMT</pubDate>
            <atom:updated>2025-01-18T15:59:00.147Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Life Hacks in Bits #3: Small talk no longer works for me]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/write-a-catalyst/life-hacks-in-bits-3-small-talk-no-longer-works-for-me-d91ed5976cc2?source=rss-e1c4e8c2c8ac------2"><img src="https://cdn-images-1.medium.com/max/2600/0*DBXv5pbZXM1CCSru" width="3840"></a></p><p class="medium-feed-snippet">Evolving interests and the search for meaningful conversations are transforming our social interactions</p><p class="medium-feed-link"><a href="https://medium.com/write-a-catalyst/life-hacks-in-bits-3-small-talk-no-longer-works-for-me-d91ed5976cc2?source=rss-e1c4e8c2c8ac------2">Continue reading on Write A Catalyst »</a></p></div>]]></description>
            <link>https://medium.com/write-a-catalyst/life-hacks-in-bits-3-small-talk-no-longer-works-for-me-d91ed5976cc2?source=rss-e1c4e8c2c8ac------2</link>
            <guid isPermaLink="false">https://medium.com/p/d91ed5976cc2</guid>
            <category><![CDATA[write-a-catalyst]]></category>
            <category><![CDATA[productivity]]></category>
            <category><![CDATA[connection]]></category>
            <category><![CDATA[conversations]]></category>
            <category><![CDATA[growth]]></category>
            <dc:creator><![CDATA[Ramón Bailén]]></dc:creator>
            <pubDate>Mon, 21 Oct 2024 00:42:58 GMT</pubDate>
            <atom:updated>2024-10-21T00:42:58.303Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Life Hacks in Bits #2: Hard work vs. smart work]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/practice-in-public/life-hacks-in-bits-2-hard-work-vs-smart-work-d476d8749feb?source=rss-e1c4e8c2c8ac------2"><img src="https://cdn-images-1.medium.com/max/2600/1*W1BBECvrfcm-e32Zsl9--Q.jpeg" width="5418"></a></p><p class="medium-feed-snippet">Which is truly more effective: working harder or working smarter?</p><p class="medium-feed-link"><a href="https://medium.com/practice-in-public/life-hacks-in-bits-2-hard-work-vs-smart-work-d476d8749feb?source=rss-e1c4e8c2c8ac------2">Continue reading on Practice in Public »</a></p></div>]]></description>
            <link>https://medium.com/practice-in-public/life-hacks-in-bits-2-hard-work-vs-smart-work-d476d8749feb?source=rss-e1c4e8c2c8ac------2</link>
            <guid isPermaLink="false">https://medium.com/p/d476d8749feb</guid>
            <category><![CDATA[work]]></category>
            <category><![CDATA[writing]]></category>
            <category><![CDATA[balance]]></category>
            <category><![CDATA[productivity]]></category>
            <category><![CDATA[efficiency]]></category>
            <dc:creator><![CDATA[Ramón Bailén]]></dc:creator>
            <pubDate>Mon, 14 Oct 2024 10:19:12 GMT</pubDate>
            <atom:updated>2024-10-14T10:19:12.318Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Life Hacks in Bits #1: Maintaining your fitness routine when traveling]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/practice-in-public/life-hacks-in-bits-1-maintaining-your-fitness-routine-when-traveling-ea7cec75d54e?source=rss-e1c4e8c2c8ac------2"><img src="https://cdn-images-1.medium.com/max/2265/1*J1pdJ5MLYrlv2comoacyAQ.jpeg" width="2265"></a></p><p class="medium-feed-snippet">How to stay fit no matter the destination</p><p class="medium-feed-link"><a href="https://medium.com/practice-in-public/life-hacks-in-bits-1-maintaining-your-fitness-routine-when-traveling-ea7cec75d54e?source=rss-e1c4e8c2c8ac------2">Continue reading on Practice in Public »</a></p></div>]]></description>
            <link>https://medium.com/practice-in-public/life-hacks-in-bits-1-maintaining-your-fitness-routine-when-traveling-ea7cec75d54e?source=rss-e1c4e8c2c8ac------2</link>
            <guid isPermaLink="false">https://medium.com/p/ea7cec75d54e</guid>
            <category><![CDATA[fitness]]></category>
            <category><![CDATA[travel]]></category>
            <category><![CDATA[writing]]></category>
            <category><![CDATA[productivity]]></category>
            <category><![CDATA[life]]></category>
            <dc:creator><![CDATA[Ramón Bailén]]></dc:creator>
            <pubDate>Sat, 12 Oct 2024 12:41:06 GMT</pubDate>
            <atom:updated>2024-10-12T12:41:06.511Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Understanding Hexagonal Architecture With a Spring Boot Implementation]]></title>
            <link>https://medium.com/better-programming/hexagonal-architecture-with-spring-boot-74e93030eba3?source=rss-e1c4e8c2c8ac------2</link>
            <guid isPermaLink="false">https://medium.com/p/74e93030eba3</guid>
            <category><![CDATA[design-patterns]]></category>
            <category><![CDATA[java]]></category>
            <category><![CDATA[software-architecture]]></category>
            <category><![CDATA[spring-boot]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Ramón Bailén]]></dc:creator>
            <pubDate>Sun, 19 Jun 2022 10:35:23 GMT</pubDate>
            <atom:updated>2024-10-05T11:41:21.475Z</atom:updated>
            <content:encoded><![CDATA[<h4>An example using Spring Boot to detail the different layers of the application</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*OEPZo1ohCyQHkTBU" /><figcaption>Photo by <a href="https://unsplash.com/@dotnny?utm_source=medium&amp;utm_medium=referral">Donny Jiang</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Hexagonal Architecture was proposed in 2005 by <a href="https://alistair.cockburn.us/hexagonal-architecture/">Alistair Cockburn</a>.</p><p>The main idea behind this architecture is to isolate domain logic from external components when designing software applications.</p><p>Access to domain logic from the outside is available through ports and adapters.</p><p>A port is just an interface to be implemented by an adapter. There are two types of ports: input and output. We implement the first ones in the application layer, while the infrastructure module will contain the implementation of the second ones.</p><p>With this approach, you will have well-defined interfaces to communicate in and out of the domain layer without depending on implementation details.</p><h3><strong>Example</strong></h3><p>Let’s consider a simple Product REST Service to understand this architecture. Resources of the product service are:</p><ul><li>Create a Product</li><li>Get the Product by Id</li></ul><p>We start creating the three layers: application, infrastructure, and domain.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/716/1*uKEK0CPyehTp8wvViIgeUg.png" /></figure><h4><strong><em>Application</em></strong></h4><p>The application layer will contain the ports, which are interfaces that allow inbound or outbound flow, and the services, which act as intermediaries between the domain layer and the infrastructure layer.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/566/1*2H4kvrPYfEioWwqvlK7IHA.png" /></figure><p>We created use cases inside the input package, defining what the user would like to do in the application. In our example, create new products and get them by Id.</p><p>We use the output package to connect to some external components.</p><p>In our example, ProductOutputPort will get data from the database, while ProductEventPublisher will publish an event when a product has been created.</p><p>On the other hand, the ProductService is a crucial component inside the application, as it implements the input ports and uses the output interfaces implemented by the output adapters to return the result to the input adapters.</p><h4><strong><em>Infrastructure</em></strong></h4><p>The infrastructure layer represents the outer part of the hexagonal architecture through adapters.</p><p>Adapters interact with the core application only by using the inbound and outbound ports.</p><p>We divide the infrastructure.adapter package into three new ones:</p><ol><li>config: it contains the beans of the application</li><li>input: it drives the application by invoking the corresponding use case (input port)</li><li>output: it provides an implementation of the output ports like databases or messaging queues</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/608/1*BPfvtkswmicGe1lX8V-AKg.png" /></figure><h4><strong><em>Domain</em></strong></h4><p>The domain layer is the center of the system. It handles the business logic and represents the application core.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/560/1*dY6ToqVDcpiqBVJAgrZ3Hg.png" /></figure><p>The domain layer is wholly decoupled from application and infrastructure layers, so changes in the other layers have no impact on the Product domain object unless there is a change in the business requirements.</p><p>Domain exceptions are thrown in this layer and managed in the infrastructure one (CustomizedExceptionAdapter).</p><h3><strong>Conclusion</strong></h3><p>In this article, we saw through a practical example how to separate the logic related to our application into three specific layers: domain, application and infrastructure.</p><p>I recommend using a mapper library, like MapStruct, to convert objects between the different layers.</p><p>No two Hexagonal Architectures are the same, as you can find different proposed names for layers and ways to structure your application. All possible solutions should make the application easier to test, which is the real goal.</p><p>The code for this example is available on <a href="https://github.com/rbailen/Hexagonal-Architecture">GitHub</a>.</p><pre><strong>Want to Connect?</strong></pre><pre><a href="https://linktr.ee/ramonbailen">Linktree</a></pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=74e93030eba3" width="1" height="1" alt=""><hr><p><a href="https://medium.com/better-programming/hexagonal-architecture-with-spring-boot-74e93030eba3">Understanding Hexagonal Architecture With a Spring Boot Implementation</a> was originally published in <a href="https://betterprogramming.pub/">Better Programming</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>