<?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 Narayana Rallabandi on Medium]]></title>
        <description><![CDATA[Stories by Narayana Rallabandi on Medium]]></description>
        <link>https://medium.com/@narayanaa?source=rss-4f5b8296e490------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*Wlfg8boJB56M2o0b.</url>
            <title>Stories by Narayana Rallabandi on Medium</title>
            <link>https://medium.com/@narayanaa?source=rss-4f5b8296e490------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 00:03:03 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@narayanaa/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[Understanding Mule — Systems perspective]]></title>
            <link>https://medium.com/@narayanaa/understanding-mule-systems-perspective-24abb5b75597?source=rss-4f5b8296e490------2</link>
            <guid isPermaLink="false">https://medium.com/p/24abb5b75597</guid>
            <category><![CDATA[systems-thinking]]></category>
            <category><![CDATA[mulesoft-training]]></category>
            <category><![CDATA[mulesoft]]></category>
            <category><![CDATA[operating-systems]]></category>
            <category><![CDATA[dataweave]]></category>
            <dc:creator><![CDATA[Narayana Rallabandi]]></dc:creator>
            <pubDate>Fri, 26 Aug 2022 15:41:14 GMT</pubDate>
            <atom:updated>2022-08-26T15:41:14.724Z</atom:updated>
            <content:encoded><![CDATA[<h3>Understanding Mule — Systems perspective</h3><p>Remembering is a burden. When being questioned about something like “What all goes onto a private flow via flow reference? variables, attributes, and/or payload” or “I have a Global Error Handler with On-Error Propagate and the main flow as well have another Error Handler with On-Error Continue, which one would get invoked?”, would always confuse.</p><p>Let’s try to answer these questions from a systems(Operating System, Network) standpoint.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*gz4nGgJKuWmRG13A" /><figcaption>Photo by <a href="https://unsplash.com/@deepmind?utm_source=medium&amp;utm_medium=referral">DeepMind</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Since Mule runtime launches as a process, let’s peek into Intra-Process and Inter-Process Communication and see how can we correlate this to Mule flows, and flow-refs of private/sub-flows.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Bp_Ngo--Nky_xWW-T3mX3Q.png" /><figcaption>Intra-Process Communication on <a href="https://ops-class.org/slides/2017-02-03-processes/">ops-class</a></figcaption></figure><p>In the case of Intra-Process, the communication happens within the Process and the threads or program flow share the global variables and other constructs at the global level. Flow-ref w.r.t. private/sub-flow is like this or method call in the program.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*r9eXVUiZ09heAUdIQ7jqrA.png" /><figcaption>Inter-Process Communication on <a href="https://ops-class.org/slides/2017-02-03-processes/">ops-class</a></figcaption></figure><p>Any call to either file system or other h/w interface requires a system call. And if a process needs to talk to another process running within the operating system requires Operating system constructs like shared memory or pipes. Whenever there is a system call or reference to Operating system constructs the data transfer (payload) is the one that gets transferred and Attributes a.k.a. properties governing different processes would be different.</p><p>We have 2 kinds of protocols:</p><p><strong>Data Protocols</strong>: Data protocols are the ones that are understood by specific systems for example</p><ul><li>in the case of Databases, it’s SQL, in the case of JMS it’s either String Message or object message, or in the case of any CRM like Salesforce or SAP it&#39;s specific to that object that they are carrying, and Markup Languages like XML/HTML/JSON/CSV with different data formats;</li><li>All these systems which accept and respond with specific data formats support a set of CRUD operations and a set of other characteristics w.r.t. data like the ACID properties at different levels applicable to these systems.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hnDl3BLl2S541jQsMxSuVg.png" /><figcaption>Data Protocol representation in Database and JMS Contexts</figcaption></figure><p><strong>Transport Protocols</strong>: These are the protocols that transfer the data over the network, with different communication characteristics; Since business systems require characteristics like reliability, sequencing, acknowledgment, etc.</p><ul><li>The most fundamental one is TCP which comes as part of the TCP/IP stack within the operating system. A lot of the data systems ride over this stack for example databases/JMS etc.</li><li>These are abstracted as drivers for the systems example JDBC driver for Database JMS Client and RFC client for SAP etc. Then comes another set of transport protocols at the Application layer the most popular one is the HTTP;</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GxsBC7tabuycJieJinBexg.png" /><figcaption>Transport Protocols — structure</figcaption></figure><p>And each protocol comes with a set of status codes for example in the case of HTTP:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/677/1*kntF53tu52r3Rqpx7gKTjg.jpeg" /><figcaption>HTTP Status Codes</figcaption></figure><p>From the above, we can infer that transport protocols help in transporting the payload/data from the data protocols across to different systems with proper status codes which help in knowing the status of the request.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eG1b6xTgfHVTIphycHjnDw.png" /><figcaption>Mule Message extrapolated with Transport and Data Protocols</figcaption></figure><p>The above diagram combines the above to extrapolate a <em>Mule Message</em> which is part of the <em>Mule Event</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JyTq3Nig5GaFA-GK3CfWKA.png" /><figcaption>Mule Event Generators in Action on <a href="https://docs.mulesoft.com/mule-runtime/4.4/about-mule-event">MuleSoft</a></figcaption></figure><p>We can compare either Mule flows (that are independent like in the case of schedulers, File Adapter, etc.) that interface with the Operating System with OS calls or the Transport Adapters like HTTP/FTP(s)/JMS/JDBC listeners as <em>Event Generators</em> they fundamentally transform the Attributes on which they transport and can’t carry the Variables which are specific to the flow as the process context would be different.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wdaWHDdjYwEU2APsQ9vHHQ.png" /><figcaption>Mule Runtime with a deployed application</figcaption></figure><p>The above diagram clearly depicts the boundaries with the <em>Event Generators</em> (either the System calls for File System or the Network interface calls for HTTP(s)/FTP(s)/SMTP/TCP etc.) A <em>Completely New Event</em> would be generated based on the characteristics of <em>the Mule Event Generator. </em>Hence the previous variables/attributes would have no relevance. The payload also gets transformed based on the context like ‘application/json’ or “application/octat-stream”;</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*c5TJ9YnuKyDbFkkIOB9Fwg.png" /><figcaption>Mule Event Transformation across components</figcaption></figure><ul><li>MF refers to Mule Flow</li><li>Proto refers to Protocol</li></ul><p>The above table can be easily inferred after going through the above concepts. I shall talk about a few other topics on Mule Error Handling / Scopes / Async in my next edition from System Standpoint which probably gives a new perspective on understanding Mule.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=24abb5b75597" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Generating Self-Signed Certificate for Mule HTTP connector using OpenSSL]]></title>
            <link>https://medium.com/@narayanaa/generating-self-signed-certificate-for-mule-http-connector-using-openssl-8d0c73728ce5?source=rss-4f5b8296e490------2</link>
            <guid isPermaLink="false">https://medium.com/p/8d0c73728ce5</guid>
            <category><![CDATA[mulesoft]]></category>
            <category><![CDATA[openssl]]></category>
            <category><![CDATA[self-signed-certificate]]></category>
            <category><![CDATA[mulesoft-training]]></category>
            <dc:creator><![CDATA[Narayana Rallabandi]]></dc:creator>
            <pubDate>Tue, 23 Aug 2022 03:08:19 GMT</pubDate>
            <atom:updated>2022-08-23T03:08:19.801Z</atom:updated>
            <content:encoded><![CDATA[<p>There is always a need while developing an application for generating a self-signed certificate that can be used in a Mule Application using HTTP Connector. We need to mimic a proper Certification Authority to create a chain of trust since if we just generate a certificate that wouldn’t always be trusted.</p><p>The entities involved are Certification Authority, Organization whose Public Key needs to be certified by the CA, and the Application Server that uses the generated certificate in some format like JKS or PKCS 12 that’s used by it.</p><figure><img alt="Self-Signed Certificate Generation Process" src="https://cdn-images-1.medium.com/max/728/1*Gd37IZTZIkgQtMQePbM_zQ.png" /></figure><p>A configuration File is one that talks about the organization details and the other constraints that we put on while generating the certificate.</p><pre>[ req ]</pre><pre>default_bits = 4096</pre><pre>default_keyfile = &lt;server&gt;.key</pre><pre>distinguished_name = req_distinguished_name</pre><pre>req_extensions = v3_req</pre><pre>prompt = no</pre><pre>[ req_distinguished_name ]</pre><pre>C = &lt;country&gt;</pre><pre>ST = &lt;state&gt;</pre><pre>L = &lt;location&gt;</pre><pre>O = &lt;organization&gt;</pre><pre>OU = &lt;organization unit&gt;</pre><pre>CN= &lt;myserver.mydomain.com&gt; </pre><pre>emailAddress = admin@mydomain.com</pre><pre>[v3_ca]</pre><pre>subjectKeyIdentifier=hash</pre><pre>authorityKeyIdentifier=keyid:always,issuer:always</pre><pre>basicConstraints = CA:true</pre><pre>[v3_req]</pre><pre># Extensions to add to a certificate request</pre><pre>basicConstraints = CA:FALSE</pre><pre>keyUsage = nonRepudiation, digitalSignature, keyEncipherment</pre><p>Once you have the above file ready you using OpenSSL you can generate your own CA Authority, the server certificate, and import the key, the certificate along with the root certificate of your CA into your server’s jks with the following steps.</p><ol><li>Generate Key for the Certification Authority: <strong>openssl genrsa -out ca.key 4096</strong></li><li>Create a PEM file for the Certification Authority using which it can sign: <strong>req -x509 -new -nodes -key ca.key -days 3650 -config &lt;server&gt;.cfg -out ca.pem </strong>here nodes are like if you want to use this in any cluster else you can skip that option</li><li>Generate Key for the Server: <strong>openssl genrsa -out &lt;server&gt;.key 4096 </strong>// this would create a key pair in pem format during the certificate generation the public key would be used for the certificate generation (if you need the public key you can use openssl rsa -in &lt;server&gt;.key -pubout &gt; &lt;server&gt;.pub)</li><li>Generate Certification Request for the Key that’s generated: <strong>openssl req -new -key &lt;server&gt;.key -out &lt;server&gt;.csr -config &lt;server&gt;.cfg</strong></li><li>Sign the CSR generated above, with the Key of the Certification Authority and the PEM file of the Authority (here the key that would be used is the private key of the CA since the key generated in step 1 is in the PEM format containing both the process would automatically pick up the relevant key for the process): <strong>openssl x509 -req -in &lt;server&gt;.csr -CA ca.pem -CAkey ca.key -CAcreateserial -out &lt;server&gt;.crt -days 365</strong></li><li>Generate a PKCS 12 file out of the server key, server certificate, and the root certificate(PEM) of the Certificate Authority: <strong>openssl pkcs12 -export -in &lt;server&gt;.crt -inkey &lt;server&gt;.key -name &lt;server&gt; -certfile ca.pem -out &lt;server&gt;.pfx</strong></li><li>Import the pfx file generated above into JKS: <strong>keytool -importkeystore -srckeystore &lt;server&gt;.pfx -srcstoretype pkcs12 -destkeystore &lt;server&gt;.jks -deststoretype JKS</strong></li></ol><p>In step 7 you can either create a new JKS or an existing jks.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8d0c73728ce5" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>