<?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 Mohamed Mostafa Saber on Medium]]></title>
        <description><![CDATA[Stories by Mohamed Mostafa Saber on Medium]]></description>
        <link>https://medium.com/@mohamedmsaber2?source=rss-4fcaf8e3d0af------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*ueRr7rt2bE7AqC59</url>
            <title>Stories by Mohamed Mostafa Saber on Medium</title>
            <link>https://medium.com/@mohamedmsaber2?source=rss-4fcaf8e3d0af------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 03:15:47 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@mohamedmsaber2/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[Designing a Maintainable Enterprise Integration with Oracle Integration Cloud]]></title>
            <link>https://medium.com/@mohamedmsaber2/designing-a-maintainable-enterprise-integration-with-oracle-integration-cloud-6988b2563b25?source=rss-4fcaf8e3d0af------2</link>
            <guid isPermaLink="false">https://medium.com/p/6988b2563b25</guid>
            <category><![CDATA[oracle-integration-cloud]]></category>
            <dc:creator><![CDATA[Mohamed Mostafa Saber]]></dc:creator>
            <pubDate>Thu, 08 Oct 2026 12:31:04 GMT</pubDate>
            <atom:updated>2026-10-08T12:31:56.980Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kZmMVivKgEextB09b0TUhQ.jpeg" /></figure><p>One of the most important things I have learned while working on enterprise integrations is that integration design is not simply about connecting System A to System B.</p><p>The real challenge begins when you have multiple datasets, each with its own processing logic and REST endpoint, while still needing to keep the integration maintainable, observable, and easy to troubleshoot.</p><p>In one of the integrations projects, I worked on using <strong>Oracle Integration Cloud (OIC)</strong>, the integration was designed to receive multiple input files from an FTP/SFTP server. Each file represented a different dataset, and the processed data had to be sent to its corresponding REST service.</p><p>At the beginning, one of the main architectural questions was:</p><blockquote><em>Should we create a separate integration for each dataset, or should we build one common integration capable of handling all datasets?</em></blockquote><p>I chose a <strong>Common Integration Architecture</strong> based on dataset-driven routing.</p><p>Instead of creating completely independent integrations, the solution was designed around a common processing flow, with dataset-specific logic where required.</p><p>The high-level processing flow was:</p><pre>FTP/SFTP<br>    ↓<br>File Detection &amp; Validation<br>    ↓<br>Common OIC Integration<br>    ↓<br>Dataset-Based Routing<br>    ↓<br>Dataset-Specific Processing<br>    ↓<br>REST API Invocation<br>    ↓<br>Response Handling<br>    ↓<br>Logging &amp; Notifications</pre><p>However, designing the core flow was only part of the solution.</p><p>For a production-ready integration, I also had to consider several scenarios that could occur during execution, including:</p><ul><li>Missing input files</li><li>Missing required datasets</li><li>API failures</li><li>Authentication and business errors</li><li>Partial record failures</li><li>Duplicate or outdated files</li><li>Monitoring and troubleshooting requirements</li></ul><p>This led to the design of several supporting components around the core processing flow.</p><h3>Latest File Processing</h3><p>One requirement was to avoid processing old files repeatedly.</p><p>Instead of processing every file available on the FTP server during each execution, the integration identifies the latest available file for each dataset and processes only the required files.</p><p>This helps reduce unnecessary processing and prevents outdated data from being sent to downstream services.</p><h3>Fault Handling and Retry</h3><p>API failures cannot all be treated in the same way.</p><p>The integration distinguishes between <strong>retriable and non-retriable errors</strong> and applies a retry mechanism for temporary failures such as:</p><ul><li>HTTP 500</li><li>HTTP 502</li><li>HTTP 503</li><li>HTTP 504</li></ul><p>On the other hand, authentication errors and business-related errors may require a different handling strategy rather than simply retrying the request.</p><p>This distinction is important because blindly retrying every failure can create additional load and make troubleshooting more difficult.</p><h3>Structured Logging</h3><p>Another important part of the design was improving the logging approach.</p><p>Instead of generating generic messages such as:</p><pre>Error occurred while processing the request.</pre><p>the logs were designed to provide useful context around the processing stage, including information such as:</p><pre>File Name<br>Dataset<br>Error Code<br>Reason<br>Detail</pre><p>This makes the integration easier to troubleshoot and provides better traceability when investigating failed records or executions.</p><h3>Execution Notifications</h3><p>Operational visibility was also considered as part of the integration design.</p><p>The integration provides processing summaries that include:</p><ul><li>Total Records</li><li>Successful Records</li><li>Failed Records</li></ul><p>This gives the support team a quick overview of the execution without requiring them to manually inspect the integration runtime.</p><h3>Designing for Production</h3><p>One of the main lessons I took from this experience is that the happy path is usually the easiest part of an integration.</p><p>The real complexity appears when you start asking:</p><p>What happens if the file is missing?</p><p>What happens if one required dataset is not available?</p><p>What happens if the API is temporarily unavailable?</p><p>What happens if only some records fail?</p><p>How can we identify exactly what went wrong?</p><p>And perhaps most importantly:</p><p><strong>How can someone troubleshoot and maintain the integration after it has been deployed to production?</strong></p><p>These questions significantly influence the architecture.</p><p>An integration should not only be designed to successfully move data from one system to another. It should also be designed to be <strong>reliable, maintainable, observable, and resilient to expected failures</strong>.</p><p>Working on this integration reinforced the importance of thinking beyond the happy path and considering <strong>Integration Architecture, Error Handling, Observability, and Operational Reliability</strong> from the beginning of the design process.</p><p>This is one of the areas where I believe Oracle Integration Cloud becomes much more interesting than simply building mappings and connecting REST endpoints.</p><p>#OracleIntegrationCloud #OIC #OracleFusion #IntegrationArchitecture #EnterpriseIntegration #RESTAPI #OracleCloud #CloudIntegration</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6988b2563b25" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[DRY (Don’t Repeat Yourself) Principle]]></title>
            <link>https://medium.com/@mohamedmsaber2/dry-dont-repeat-yourself-principle-3d47a61c01ec?source=rss-4fcaf8e3d0af------2</link>
            <guid isPermaLink="false">https://medium.com/p/3d47a61c01ec</guid>
            <category><![CDATA[dry-principle]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[Mohamed Mostafa Saber]]></dc:creator>
            <pubDate>Sat, 04 Mar 2023 14:35:26 GMT</pubDate>
            <atom:updated>2023-03-04T14:35:26.383Z</atom:updated>
            <content:encoded><![CDATA[<p>DRY is an approach, a principle of software development. <strong>DRY </strong>stands for <strong>Don’t Repeat Yourself</strong>, which means don’t write the same code repeatedly.<br>If you have the same code more than once in your program, that means that you do not follow the DRY way; because you are repeating the same code in different places in the program like this.</p><h3><strong>Illustration 1</strong></h3><blockquote><em>Consider the scenario of the college student system. The college contains many departments. So each department has different people, but the college name is the same. So no need to specify the college name for each department by writing the code for the display of the college name.</em></blockquote><pre>// Java Program without DRY approach<br>public class GFG {<br><br>    // Method 1 For cse department<br>    public void CSE()<br>    {<br>        System.out.println(&quot;This is computer science&quot;);<br>    }<br><br>    // Method 2 For cse dept. college 1<br>    public void college1()<br>    {<br>        System.out.println(&quot;IIT - Madras&quot;);<br>    }<br><br>    // Method 3 ece dept method<br>    public void ECE()<br>    {<br>        System.out.println(&quot;This is electronics&quot;);<br>    }<br> <br>    // Method 4 For ece dept college 2<br>    public void college2()<br>    {<br>        System.out.println(&quot;IIT - Madras&quot;);<br>    }<br>    // Method 5 For IT dept<br>    public void IT()<br>    {<br>        System.out.println(<br>            &quot;This is Information Technology&quot;);<br>    }<br> <br>    // Method 6 For IT dept college 3<br>    public void college3()<br>    {<br>        System.out.println(&quot;IIT - Madras&quot;);<br>    }<br> <br>    public static void main(String[] args)<br>    {<br>        // Creating object of class in main() method<br>        GFG s = new GFG();<br> <br>        // Calling above methods one by one<br>        s.CSE();<br>        s.college1();<br>        s.ECE();<br>        s.college2();<br>        s.IT();<br>        s.college3();<br>    }<br>}</pre><h3>Illustration 2</h3><blockquote>we noticed that we are writing the same code of the college( ) function 3 times for each department.<br>What is the solution in this case?<br>the solution is to follow the DRY Principle and create one method called college, then call it in each department like this.</blockquote><pre>// Java Program with Use of DRY Concept<br>import java.util.*;<br><br>public class GFG {<br><br> // Method 1 For cse department<br> public void CSE()<br> {<br>  // Print statement<br>  System.out.println(&quot;This is computer science&quot;);<br><br>  // Calling method<br>  college();<br> }<br><br> // Method 2 ece department<br> public void ECE()<br> {<br>  // Print statement<br>  System.out.println(&quot;This is electronics&quot;);<br><br>  // Calling method <br>  college();<br> }<br><br>// Method 3For IT dept department<br> public void IT()<br> {<br>  // Print statement<br>  System.out.println(<br>   &quot;This is Information Technology&quot;);<br><br>  // Callling method<br>  college();<br> }<br><br> // Method 4 For college dept<br> public void college()<br> {<br>  // Print statement<br>  System.out.println(&quot;IIT - Madras&quot;);<br> }<br><br> <br> public static void main(String[] args)<br> {<br><br>  // Creating object of class in main() method<br>  GFG s = new GFG();<br><br>  s.CSE();<br>  s.ECE();<br>  s.IT();<br> }<br>}</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3d47a61c01ec" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>