<?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 Madhu on Medium]]></title>
        <description><![CDATA[Stories by Madhu on Medium]]></description>
        <link>https://medium.com/@madhuba07?source=rss-934409593f42------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*AybXk98ZXQ80cppmfizq5Q.jpeg</url>
            <title>Stories by Madhu on Medium</title>
            <link>https://medium.com/@madhuba07?source=rss-934409593f42------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 16:15:41 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@madhuba07/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[Not All Crypto Expires at Once: Prioritising PQC on z/OS]]></title>
            <link>https://medium.com/@madhuba07/not-all-crypto-expires-at-once-prioritising-pqc-on-z-os-062b15fbd071?source=rss-934409593f42------2</link>
            <guid isPermaLink="false">https://medium.com/p/062b15fbd071</guid>
            <category><![CDATA[migration]]></category>
            <category><![CDATA[pqc]]></category>
            <category><![CDATA[oz]]></category>
            <category><![CDATA[mainframe]]></category>
            <dc:creator><![CDATA[Madhu]]></dc:creator>
            <pubDate>Fri, 13 Nov 2026 13:02:29 GMT</pubDate>
            <atom:updated>2026-11-13T13:02:29.146Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>Introduction: Two Clocks on the Mainframe</strong></h3><p>Over the last two posts, we’ve looked at the two pillars of a post-quantum transition: protecting the <em>session</em> with hybrid key exchange and protecting <em>trust</em> with dual-key certificates. That leaves the question every enterprise architect eventually asks: with limited budget, change windows and people, which one do we fix first?</p><p>It’s tempting to treat post-quantum migration as a single deadline, the day a cryptographically relevant quantum computer arrives. In reality, there are two clocks, and they started at different times.</p><p>The confidentiality clock started the moment an adversary began recording your network traffic. Anything captured today can be decrypted later, so for data that must stay secret for years, the deadline may already be behind us. The authentication clock is different. A forged signature is only useful in a live connection, so no one can retroactively impersonate a server in a session that ended years ago. That deadline is still ahead of us.</p><p>Nowhere does this distinction matter more than on the mainframe. IBM Z platforms hold banking, insurance and government records that stay sensitive for decades, and they move that data in bulk. Nightly file transfers, continuous replication and synchronization to cloud platforms can each carry millions of records in a single session.</p><p>In this blog, I’ll explain why key exchange has to move before certificates, and highlight a few cases where authentication quietly turns into a confidentiality problem.</p><h3><strong>The network traffic that’s already being recorded</strong></h3><p>The adversary’s clock for confidentiality started the day the traffic was recorded, not the day the quantum computer arrives.</p><p>A nightly Connect:Direct transfer sends a customer master file from the primary data centre to the DR site or to a partner bank. Someone on the path captures it. Today it’s unreadable, and it doesn’t need to be readable today. It only needs to become readable while the data still matters, and on a mainframe that can be a decade or more.</p><p>The confidentiality deadline may already be in the past; the authentication deadline is still ahead. Use Mosca’s inequality as the framework:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/542/1*Wm-6I8pNFj6U4NrtWPcEsQ.png" /></figure><p>X = how long the data must stay secret, Y = how long your migration takes, Z = time until a cryptographically relevant quantum computer (CRQC) exists.</p><p><strong>Clock 1, confidentiality (key exchange)</strong></p><ul><li>The ECDHE or RSA key exchange in a recorded handshake can be broken <em>later</em> with Shor’s algorithm. That exposes the session key and every byte of the session.</li><li>Deadline = today minus X. For long-retention data, that point has arguably already passed.</li></ul><p><strong>Clock 2, authentication (signatures)</strong></p><ul><li>A forged signature only helps an attacker <em>during</em> a live handshake. Nobody can go back and impersonate a server in a session that ended years ago.</li><li>Deadline = Z minus the time needed to roll out PQC certificates across every trust store. Demanding, but a future date.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*rhU2UH4Vl27kjzjN7YOzfg.png" /></figure><p>Clock 1’s migration had to finish before today’s traffic was recorded; Clock 2’s only has to finish before a CRQC exists.</p><h3><strong>Why the mainframe is the worst case for Clock 1</strong></h3><p>Mainframe data has the longest X and the biggest payload per captured session.</p><ul><li><strong>Retention horizons:</strong> Banking, insurance, pension, tax and government records carry long statutory retention and stay sensitive for decades. A life insurance policy or a citizen identity record outlives the transaction by years.</li><li><strong>Bulk over chatty:</strong> Mainframe traffic is often batch-oriented. One recorded file transfer can hold millions of records, so the attacker’s payoff per session is far higher than for web traffic.</li><li><strong>Encryption at rest is not the issue:</strong> z/OS data set encryption uses AES-256, which is considered quantum-safe. The exposure is the same data <em>in motion</em>: replication, DR, partner feeds and distributed queries. The transparent-TLS point from post 1 lands well here.</li></ul><h3><strong>The twist: when authentication is confidentiality</strong></h3><p>“Signatures can wait” applies only to live, ephemeral authentication, not to everything with a signature. This section sets the post apart from generic HNDL articles.</p><p><strong>TLS 1.2 RSA key transport</strong></p><p>Many long-standing z/OS partner connections still negotiate cipher suites like TLS_RSA_WITH_AES_256_GCM_SHA384. The client encrypts the premaster secret under the server certificate’s RSA key, with no ephemeral exchange.</p><ul><li>Breaking that one certificate key decrypts <em>every recorded session</em> that used it, for the certificate’s whole lifetime.</li><li>The certificate has effectively moved onto Clock 1.</li><li><strong>Step zero, before any PQC work:</strong> eliminate RSA key transport, move to ECDHE (forward secrecy), then to hybrid ML-KEM. No new algorithms needed, so this can start today.</li></ul><p><strong>Other places signatures run on Clock 1 (or close to it)</strong></p><ul><li><strong>Long-lived roots of trust:</strong> Internal root CAs, including those in RACF key rings and PKI Services hierarchies, often run 15–25 years, making Y &gt; Z as the primary threat vector. Replacement takes so long that planning must start now.</li><li><strong>Non-repudiation over time:</strong> Signed payment instructions, audit trails and legal records must stay verifiable for years. If a CRQC can forge those signatures later, their evidential value is lost.</li></ul><h3><strong>Turning this into a priority list</strong></h3><p>Measure first, score each flow, then fix in four waves.</p><ol><li><strong>Measure what you actually negotiate.</strong> zERT records (SMF 119) capture protocol version, key exchange and cipher per connection. Filter them for RSA key transport and TLS 1.2.</li><li><strong>Score each flow</strong> on data shelf life (X) × payload size × partner migration effort (Y).</li><li><strong>Fix in this order:</strong></li></ol><p><strong><em>a. Now:</em></strong><em> Kill RSA key transport, enforce ECDHE, and move to TLS 1.3 where subsystems support it.</em></p><p><strong><em>b. </em></strong><em>Next: Enable hybrid ML-KEM key exchange as System SSL, MQ and Secure Plus support it, starting with Connect:Direct and MQ flows carrying long-retention data.</em></p><p><strong><em>c. Planned:</em></strong><em> Design the PQC certificate hierarchy (post 2’s dual-key approach), starting with the CAs that have the longest validity.</em></p><p><strong><em>d. Later: </em></strong><em>Migrate end-entity certificates for live authentication.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=062b15fbd071" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Bridging the Gap: Dual-Key Certificates and Modern PKI Architecture]]></title>
            <link>https://medium.com/@madhuba07/bridging-the-gap-dual-key-certificates-and-modern-pki-architecture-4e6e11c75bb9?source=rss-934409593f42------2</link>
            <guid isPermaLink="false">https://medium.com/p/4e6e11c75bb9</guid>
            <category><![CDATA[certificate]]></category>
            <category><![CDATA[crypto]]></category>
            <category><![CDATA[pqc]]></category>
            <dc:creator><![CDATA[Madhu]]></dc:creator>
            <pubDate>Mon, 22 Jun 2026 10:22:34 GMT</pubDate>
            <atom:updated>2026-06-22T10:22:34.012Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction</h3><p>During a recent complex certificate migration and renewal project for an enterprise application, the reality of managing legacy and modern clients simultaneously became very clear. When upgrading infrastructure to withstand quantum attacks, you cannot simply flip a switch and replace all classical certificates with post-quantum ones. If an internal Certificate Authority (CA) starts issuing purely post-quantum certificates, older clients that haven’t been patched will fail to parse the massive lattice-based signature and immediately drop the TLS connection. In this blog, I’ll explore how dual-key (composite) certificates solve this backward compatibility challenge.</p><h3>Anatomy of a Dual-Key Certificate</h3><p>In the modern PQC (Post-Quantum Cryptography) era, a dual-key certificate binds two distinct cryptographic algorithms into a single X.509 certificate. To avoid breaking existing X.509 parsers, it structures the payload cleverly using standard X.509 v3 extensions.</p><p>· The Primary Layer (Classical): The main body looks exactly like a standard legacy certificate, containing a classical public key (e.g., ECDSA P-256) and a classical CA signature.</p><p>· The Alternate Layer (Post-Quantum): A custom X.509 v3 extension (often marked as non-critical) is added, hosting the post-quantum public key (e.g., ML-DSA-65) and a second CA signature using the post-quantum algorithm.</p><p>Below is an infographic illustrating how these extensions are mapped:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zoqArOTpwihefeDii05Ovg.png" /></figure><h3>Real-World Example — Enterprise Migration</h3><p>Imagine you are managing a backend enterprise application that secures its inbound API traffic using certificates issued by an internal enterprise CA.</p><p>· Generation: The system administrator configures the application to generate a single Certificate Signing Request (CSR) that includes both an ECDSA and an ML-DSA public key.</p><p>· Issuance: The internal CA validates the identity and signs the certificate twice: once with its classical private key and once with its post-quantum private key.</p><p>· Deployment: The dual-key certificate is securely installed in the keystore mapped to the application.</p><p>When clients connect, the server presents this single unified certificate, triggering two possible reactions:</p><p>· Legacy Clients: Parse the primary ECDSA key, ignore the unrecognized non-critical PQC extension, validate the classical signature, and establish a connection with no downtime.</p><p>· Modernized Clients: Recognize the ML-DSA OID in the extension, extract both keys, validate the ML-DSA signature, and proceed to execute a <a href="https://medium.com/@madhuba07/surviving-the-quantum-threat-crypto-agility-and-hybrid-key-exchange-c434a3704a48">quantum-safe hybrid key exchange</a>.</p><p>The primary trade-off to this approach is certificate bloat; embedding both keys and signatures creates a massive payload that increases network bandwidth consumption.</p><h3>Key Architectural Considerations</h3><p>When planning a transition to dual-key certificates, organizations must look beyond simply generating the certificate and address several critical architectural factors across their infrastructure:</p><p>· Payload Size and Latency Management: As noted, dual-key certificates are significantly larger. Architects must actively evaluate the impact of this bloat on network latency, particularly for high-volume API gateways, microservices, or constrained edge devices that perform frequent TLS handshakes.</p><p>· Hardware Security Module (HSM) Compatibility: Modernizing the PKI infrastructure requires ensuring that backend HSMs fully support post-quantum algorithms (like ML-DSA). Not all legacy hardware can handle the necessary cryptographic operations or accommodate the newer key storage formats.</p><p>· Observability and Traffic Analysis: It is vital to implement network monitoring solutions that track which clients are negotiating classical connections versus quantum-safe connections. This visibility is essential for calculating risks and planning the eventual deprecation of the classical keys.</p><h3>Conclusion: Engineering Crypto Agility</h3><p>Achieving true crypto agility means anticipating the quantum computing threat without sacrificing the reliability and uptime of your existing infrastructure. Dual-key certificates provide that critical bridge, allowing legacy systems to operate uninterrupted using classical math, while empowering modernized clients to establish fully quantum-safe connections.</p><p>While we wait for native composite signing capabilities to mature across all enterprise secret management tools, pragmatic architectural patterns offer a highly secure and robust solution today. The post-quantum transition is undeniably complex, but by implementing deliberate, hybrid PKI strategies, your enterprise can navigate the shift safely and systematically.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4e6e11c75bb9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Surviving the Quantum Threat: Crypto Agility and Hybrid Key Exchange]]></title>
            <link>https://medium.com/@madhuba07/surviving-the-quantum-threat-crypto-agility-and-hybrid-key-exchange-c434a3704a48?source=rss-934409593f42------2</link>
            <guid isPermaLink="false">https://medium.com/p/c434a3704a48</guid>
            <category><![CDATA[crypto]]></category>
            <category><![CDATA[pqc]]></category>
            <category><![CDATA[hybrid]]></category>
            <category><![CDATA[tls]]></category>
            <category><![CDATA[network]]></category>
            <dc:creator><![CDATA[Madhu]]></dc:creator>
            <pubDate>Tue, 16 Jun 2026 03:18:02 GMT</pubDate>
            <atom:updated>2026-06-16T03:18:02.255Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction</h3><p>The rise of quantum computing introduces a pressing challenge for enterprise security, particularly for mission-critical platforms. A “rip-and-replace” approach to cryptography is practically impossible on systems that are so heavily relied upon. In this blog, I will discuss a high-level overview of the “Harvest Now, Decrypt Later” threat and how a hybrid cryptographic approach offers the only pragmatic way forward for enterprise environments.</p><h3>The PQC Dilemma and the Hybrid Model</h3><p>A common misconception is that a quantum computer is an infinitely fast “magic decryptor” that can brute-force any password. In reality, they are exponentially faster at solving very specific mathematical problems, such as the integer factorization used by classical algorithms like RSA and Elliptic Curve (ECDH). A sufficiently large fault-tolerant quantum computer could use Shor’s Algorithm to efficiently solve the mathematical problems underlying RSA and ECC, potentially reducing attacks that are infeasible today to practical timescales.</p><p>To counter this, Post-Quantum Cryptography (PQC) algorithms, like NIST’s ML-KEM (Kyber), rely on lattice-based cryptography — specifically a math problem called “Module Learning with Errors.” No quantum algorithm currently known provides an efficient attack against the lattice problems underlying ML-KEM.</p><p>To secure modern systems, a “dual-stack” or hybrid cryptographic model is essential. This involves combining a classical algorithm with a PQC algorithm to generate a composite key. If a quantum computer breaks the classical algorithm, the PQC algorithm protects the data. If a flaw is discovered in the relatively new PQC algorithm, the classical algorithm still holds.</p><h3>Hybrid Key Exchange in Action</h3><p>Data in transit, specifically network communications, is highly vulnerable to the “Harvest Now, Decrypt Later” threat. If an adversary captures a TLS handshake today and feeds it to a massive quantum computer in 2035, they could easily use Shor’s algorithm to extract the classical shared secret. However, the post-quantum ciphertext remains locked.</p><p>During the hybrid transition, systems rely heavily on transparent Transport Layer Security (TLS) implementations and system-level SSL libraries. Instead of negotiating a standard TLS 1.3 handshake using just ECDHE, the system is configured to use hybrid key share groups.</p><p>· <strong>Hybrid Exchange:</strong> The client and server exchange both classical and PQC key shares.</p><p>· <strong>The KDF Saves the Day:</strong> The shared secrets are combined and fed into a key derivation function (typically HKDF) to derive the final session key.</p><p>· <strong>Quantum Resistance:</strong> Because the KDF requires the exact, complete input to generate the final session key, an attacker possessing only the classical secret cannot derive it. The session remains protected despite compromise of the classical key exchange component.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ybrWvJAtKqlyfVd4cjvRyg.png" /></figure><p>The major advantage here is that transparent TLS services operate at the TCP/IP stack layer. You can enforce this hybrid key exchange for legacy applications without modifying a single line of underlying application code.</p><h3>The Trade-offs — CPU vs. Network</h3><p>The computational overhead of a hybrid key exchange is a tale of two metrics. Generating and encapsulating post-quantum keys relies on simple matrix operations rather than complex large-integer arithmetic. Modern implementations generally show relatively small computational overhead compared to the networking overhead introduced by larger PQC key material.</p><p>However, the network bandwidth impact is significant. Classical elliptic curve public keys are tiny (e.g., 32 bytes for X25519), but lattice-based keys are massive. ML-KEM-768 requires an 1184-byte public key and a 1088-byte ciphertext. Consequently, a single TLS handshake payload balloons by over 2.2 kilobytes, increasing the likelihood of TCP packet fragmentation and potential network latency on constrained networks.</p><h3>The Path Forward is Hybrid</h3><p>The migration to post-quantum cryptography isn’t just a future problem; it’s an architectural shift that demands attention today. By leveraging transparent TLS and hybrid key exchanges, enterprise environments can effectively neutralize the “Harvest Now, Decrypt Later” threat without rewriting millions of lines of legacy application code.</p><p>However, securing the transport layer is only half the battle. As we update our cryptographic infrastructure, we face the immense operational challenge of issuing quantum-safe certificates without immediately breaking older, unpatched client applications that rely on our APIs. How do we bridge that gap? In my next blog, I will dive into the mechanics of dual-key certificates and explore how modern PKI architectures can manage this complex transition without downtime.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c434a3704a48" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Modernizing Mainframe Applications with Kafka and the Open Enterprise SDK]]></title>
            <link>https://medium.com/@madhuba07/modernizing-mainframe-applications-with-kafka-and-the-open-enterprise-sdk-d96af5d63a54?source=rss-934409593f42------2</link>
            <guid isPermaLink="false">https://medium.com/p/d96af5d63a54</guid>
            <dc:creator><![CDATA[Madhu]]></dc:creator>
            <pubDate>Fri, 26 Jul 2024 05:17:46 GMT</pubDate>
            <atom:updated>2024-07-26T05:17:46.868Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction: COBOL Meets Kafka — A New Era for Mainframe Modernization</h3><p>The backbone of countless enterprises, COBOL code powers a staggering amount of mission-critical business logic. Estimates suggest over 230 billion lines of COBOL are still in production, representing more than 70% of enterprise business logic. Yet, despite its prevalence, integrating COBOL applications with modern event-driven architectures like Apache Kafka presented a challenge. Traditionally, COBOL developers relied on middleware solutions like MQ or required assistance from Java developers to handle Kafka interactions.</p><p>This paradigm has shifted. IBM has introduced a game-changer for COBOL developers: the <strong>IBM Open Enterprise SDK for Apache Kafka</strong>. This free SDK empowers COBOL, C, and C++ code running on z/OS to seamlessly communicate with any Kafka cluster.</p><p><strong>Key Benefits of the Open Enterprise SDK:</strong></p><p>· <strong>Native Connectivity:</strong> Eliminate the need for intermediary layers like Java or MQ. COBOL applications can directly connect and interact with Kafka clusters.</p><p>· <strong>Simplified Development:</strong> Streamline Kafka integration for COBOL developers with a dedicated SDK, reducing reliance on external solutions or Java expertise.</p><p>· <strong>Enhanced Flexibility:</strong> Consume and publish events directly from COBOL applications, fostering greater independence and control over data flow.</p><p>· <strong>Seamless Data Transformation:</strong> The SDK facilitates data transformation between the familiar COBOL copybook format and event formats like JSON, ensuring compatibility with modern architectures.</p><p><strong>Unlocking New Possibilities:</strong></p><p>The Open Enterprise SDK represents a significant leap forward in COBOL application modernization. By enabling native Kafka integration, COBOL developers can unlock a new era of real-time data processing and event-driven capabilities. This blog post will delve deeper into the functionalities of the Open Enterprise SDK, showcasing its potential to transform COBOL applications and empower developers to embrace modern event-driven architectures.</p><h3>Getting Started with the IBM Open Enterprise SDK for Apache Kafka</h3><h3>Prerequisites:</h3><p>To effectively utilize the IBM Open Enterprise SDK for Apache Kafka, ensure you have the following components in place:</p><h3>Software Requirements:</h3><p>· IBM z/OS v2.4 or later</p><p>· IBM Enterprise COBOL v6.4 or later: The SDK leverages COBOL user-defined functions introduced in this version.</p><p>· IBM Open XL C/C++ for z/OS 1.1 or later: Required for developing C/C++ applications using the SDK.</p><p>· Kafka cluster: A running Kafka cluster accessible to your z/OS environment.</p><h3>Additional Considerations:</h3><p>· Network connectivity: Ensure your z/OS system has network connectivity to the Kafka cluster.</p><p>· Security: Implement appropriate security measures for both your z/OS environment and Kafka cluster.</p><h3>Installation options:</h3><p>The IBM Open Enterprise SDK for Apache Kafka can be installed using two primary methods: PAX and SMP/E. The specific method employed will depend on your organization’s standard installation procedures and preferences.</p><p>· Option 1: PAX (Portable Archive Exchange) is an archive format that provide enhanced portability and flexibility, supporting extended file attributes, timestamps, user and group IDs, and longer file names. It is very similar to the popular tar format but, PAX overcomes some of the limitations tar had.</p><p>· Option 2: SMP/E (System Modification Program/Extended) is a tool used on IBM’s z/OS operating system to manage software installation, updates, and maintenance. It is designed to streamline the process of applying software changes, ensuring consistency and integrity across the system.</p><p>Follow the Download link from the <a href="https://www.ibm.com/products/open-enterprise-sdk-apache-kafka">product page</a></p><p><strong>Note:</strong> Detailed instructions for both PAX and SMP/E installations, including specific commands and parameters, can be found in the <a href="https://www.ibm.com/docs/en/kafka-zos/1.1">SDK documentation</a>.</p><p>You can verify the installation by compiling and executing the supplied sample producer / consumer application. Detailed instructions can be found in the <a href="https://www.ibm.com/docs/en/kafka-zos/1.1?topic=kafka-verifying-installation-open-enterprise-sdk-apache">product documentation.</a></p><h3>SDK Components:</h3><p>The IBM Open Enterprise SDK for Apache Kafka comprises several key components that facilitate seamless interaction between z/OS applications and Kafka clusters. Here is a view of the SDK components and how they come together (Fig 1).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eIkd3kvCgb3eW6snf7IWqA.png" /><figcaption>Fig 1: SDK components</figcaption></figure><h3>COBOL user-defined functions for Kafka</h3><p>The IBM Open Enterprise SDK for Kafka exposes Kafka client functionalities through a set of COBOL user-defined functions (UDFs). These UDFs, bundled within a 64-bit library, provide a native interface for COBOL developers to interact with Kafka clusters. By leveraging these UDFs, you can seamlessly integrate your COBOL applications with the Kafka ecosystem.</p><h3>COBOL Kafka producers / consumers</h3><p>To harness the power of the Kafka UDFs, you’ll create AMODE 64 COBOL applications to act as Kafka producers and consumers. While many existing COBOL applications operate in AMODE 31, you can effectively integrate them by establishing a clear separation of concerns. Designate an AMODE 64 application to handle Kafka-specific logic, decoupling it from your core AMODE 31 business processes.</p><p>To facilitate this integration, the SDK provides utility programs and copybooks that assist in data exchange between the AMODE 31 and AMODE 64 components. By passing necessary data, such as event payloads and Kafka configurations, you can orchestrate a smooth interaction between the two environments.</p><h3>Data transformation utility</h3><p>To bridge the gap between COBOL data structures and Kafka’s expected formats (like JSON), the SDK includes a command-line utility for data transformation. This utility serves as a crucial tool in your development process, automating the generation of COBOL artifacts based on provided event schemas.</p><p>By inputting an event schema, the utility produces COBOL copybooks and code snippets tailored to your specific data requirements. This streamlined approach accelerates development and reduces manual effort. Fig 2 gives an overview of the utility usage. Fig 3 depicts how the generated artifacts can be leveraged in your application.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/653/1*Mv_vpFrECFxnmZu6iRgF7A.png" /><figcaption>Fig 2: Data transformation utility</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/824/1*uD-AcqyJK8T6ZHBw2zTBBQ.png" /><figcaption>Fig 3: Leveraging generated artefacts</figcaption></figure><h3>Conclusion</h3><p>The IBM Open Enterprise SDK for Apache Kafka represents a pivotal advancement in mainframe application modernization. By offering native integration with Kafka, this SDK empowers COBOL and C/C++ developers to unlock the potential of event-driven architectures.</p><p>With features like seamless data transformation, efficient message production and consumption, and integration capabilities, the SDK simplifies the process of integrating mainframe applications with Kafka. This integration can lead to improved application responsiveness, enhanced data accessibility, and the ability to leverage advanced analytics and machine learning techniques.</p><p>As you embark on your journey to modernize mainframe applications, consider the IBM Open Enterprise SDK for Apache Kafka as a valuable tool to bridge the gap between legacy systems and modern technologies. By effectively utilizing the SDK’s capabilities, you can unlock the full potential of your mainframe investments and drive innovation within your organization.</p><p>In upcoming blog posts, we will delve deeper into practical tutorials and code examples to guide you through the development process. Stay tuned for step-by-step instructions on building Kafka producers, consumers, and data transformation pipelines.</p><p>By following these tutorials, you’ll gain hands-on experience and accelerate your Kafka integration projects.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d96af5d63a54" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Bridging the Gap: Event-Driven Architectures and Mainframes]]></title>
            <link>https://medium.com/@madhuba07/bridging-the-gap-event-driven-architectures-and-mainframes-917c8d2e82d0?source=rss-934409593f42------2</link>
            <guid isPermaLink="false">https://medium.com/p/917c8d2e82d0</guid>
            <dc:creator><![CDATA[Madhu]]></dc:creator>
            <pubDate>Fri, 05 Jul 2024 06:56:56 GMT</pubDate>
            <atom:updated>2024-07-05T06:56:56.349Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction</h3><p>The rise of hybrid cloud architectures has seen businesses embrace a “fit-for-purpose” approach, where applications find their ideal platform. In this landscape, loosely coupled event-driven architecture (EDA) is gaining significant traction due to its agility and scalability. Apache Kafka, with its high throughput and real-time processing capabilities, has become the industry standard for EDA.</p><p>However, the equation isn’t complete without considering the workhorses of the enterprise: IBM mainframes. These reliable, secure platforms remain the backbone of mission-critical applications across industries. Mainframes are the undisputed champions when it comes to high-volume transaction processing and data security, acting as the system of record (SoR) for countless organizations.</p><p>The question thus arises: How can these powerful mainframe applications be integrated into a modern, Kafka-based EDA? This blog explores the options available to break down silos and unlock the true potential of a hybrid approach.</p><h3>Unlocking the Potential: Mainframe Integration in Event-Driven Architectures</h3><p>Mainframes, the workhorses of enterprise computing, hold a wealth of mission-critical data and applications. While they excel in high-volume transaction processing and security, integrating them with modern, real-time architectures like event-driven architecture (EDA) can be a challenge. Thankfully, Kafka offers a powerful bridge to unlock the potential of mainframes in a hybrid approach. Here’s how mainframes can participate in various EDA use cases:</p><p>· Insurance Claims Processing: Stream real-time data from mainframe insurance systems (policy data, claims history) into Kafka. Downstream applications can then leverage this data for faster claim validation, fraud detection, and personalized customer service.</p><p>· Financial Transaction Monitoring: Mainframe transaction data can be published to a Kafka stream for real-time analysis by fraud detection engines. This enables proactive identification of suspicious activity and helps mitigate financial losses.</p><p>· Inventory Management: Integrate mainframe inventory systems with Kafka to provide real-time stock level visibility. This data can be consumed by microservices for order fulfillment, demand forecasting, and optimizing warehouse operations.</p><p>· Customer Onboarding: Stream customer data from mainframe CRM systems into Kafka. Microservices can then consume this data to automate onboarding processes, personalize welcome messages, and trigger targeted marketing campaigns.</p><p>These are just a few examples, and the possibilities are vast. By leveraging Kafka’s capabilities, mainframes can become active participants in modern EDA, enabling real-time data processing, improved operational efficiency, and enhanced customer experiences.</p><h3>Approaches to Kafka Integration on z/OS</h3><p>This section explores different methods for integrating z/OS applications with Apache Kafka. The choice of method depends on factors like desired quality of service, developer skills, and existing codebase. Figure 1 provides a high-level overview of the available options.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XmWVRa8PUEeD0pJi4bqDbQ.png" /><figcaption>Figure-1 Approaches to Kafka Integration on z/OS</figcaption></figure><h3>Client SDKs</h3><p>Client libraries are a popular choice for developers seeking fine-grained control over event production and consumption. They offer features like message acknowledgment, batching, and custom error handling. Java client libraries are well-established on the mainframe. However, previously, a major limitation was the lack of a Kafka client library for COBOL, which comprises over 70% of business logic on the mainframe. This gap has been addressed with the recent announcement of the <a href="https://www.ibm.com/products/open-enterprise-sdk-kafka-apache">IBM Open Enterprise SDK for Apache Kafka</a>, which offers support for COBOL, C, and C++. We’ll delve deeper into this specific offering in a future blog post.</p><h3>MQ Integration</h3><p>IBM MQ (Message Queue) has been a longstanding and popular choice for enterprise messaging on the mainframe. Thankfully, Kafka and MQ can coexist and integrate seamlessly. This approach leverages existing MQ skills and tooling within your organization.</p><p><strong>MQ Connectors: Bridge the Gap</strong></p><p>The integration between Kafka and MQ is achieved through special software components called MQ connectors. These connectors act as bridges, allowing z/OS applications to interact with Kafka topics using familiar MQ APIs for message production and consumption.</p><p><strong>There are two types of MQ connectors:</strong></p><p>· <strong>Source Connector:</strong> This connector is configured to continuously monitor a specific MQ queue. Whenever a message arrives in the queue, the connector retrieves it and publishes the message to a designated Kafka topic.</p><p>· <strong>Sink Connector</strong>: This connector works in reverse. It subscribes to a chosen Kafka topic and waits for messages. Upon receiving a message from the topic, the connector delivers it to a specific MQ queue.</p><p><strong>Benefits of MQ Integration</strong></p><p>This approach offers several advantages:</p><p>· Exactly-Once Delivery: MQ connectors can be configured to guarantee exactly-once delivery semantics. This ensures that a message is delivered precisely once to the Kafka topic, even in case of failures or retries.</p><p>· Asynchronous Integration: The communication between z/OS applications and Kafka remains asynchronous. This means that sending or receiving messages through MQ doesn’t block or hinder the online transaction processing throughput of your mainframe applications.</p><p>By leveraging MQ connectors, organizations can bridge the gap between traditional MQ messaging and modern Kafka-based event-driven architectures on z/OS. This approach allows for gradual integration, utilizing existing MQ skills while enabling real-time data processing and microservices communication through Kafka.</p><h3>IBM Z Digital Integration Hub(zDIH)</h3><p>IBM zDIH offers a compelling approach for integrating mainframe applications with Apache Kafka, a popular event streaming platform. It facilitates real-time information flow at scale by leveraging an in-memory cache and dedicated Kafka connectors. This approach delivers several key benefits:</p><p>· Real-time Data Access: zDIH empowers you to capture data from both online and batch mainframe applications in real-time. This captured data can then be streamed to Kafka for further processing and analysis.</p><p>· Flexible Event Streaming: The zDIH Kafka connector acts as a bridge between your z/OS environment and the Kafka ecosystem. It enables you to stream, filter, and transform events seamlessly, ensuring compatibility and smooth data flow.</p><p>· Platform Agnostic Deployment: The Kafka broker for zDIH integration can be deployed on any platform supported by Apache Kafka, providing flexibility in your architecture design.</p><p>Transactional Guarantees: zDIH offers two key transactional guarantee options when integrating with Kafka:</p><p>· Exactly-once delivery: This option ensures that each record is processed only once by Kafka consumers. It achieves this by leveraging Kafka transactions and committing produced records only after a snapshot is completed.</p><p>· At-least-once delivery: This option prioritizes low latency and delivers records to consumers immediately. However, in case of failures, there’s a possibility of records being sent and processed more than once. This option is suitable for scenarios where duplicate processing can be handled by the consumer application.</p><h3>RESTful Integration with Kafka</h3><p>Developers have an option of leveraging a RESTful interface through the Kafka REST Proxy. This proxy provides an alternative approach for interacting with Kafka clusters using familiar HTTP(S) requests.</p><p><strong>Key Benefits of the Kafka REST Proxy:</strong></p><p>· Simplified Development: The REST Proxy eliminates the need for developers to work directly with native Kafka clients. Instead, they can use standard HTTP methods like POST, GET, and DELETE to perform common operations like producing and consuming messages, managing topics, and viewing metadata. This simplifies development and reduces the learning curve for developers unfamiliar with Kafka’s native API.</p><p>· Flexibility: The REST interface offers a ubiquitous approach that can be easily integrated with various systems and applications that support HTTP communication. This flexibility is particularly valuable for z/OS environments where applications can leverage the Kafka REST Proxy through the API requestor capability offered by z/OS Connect Enterprise Edition or the z/OS Client Web Enablement Toolkit.</p><h3>Change Data Capture: Real-Time Insights from Your Mainframe</h3><p>Change Data Capture (CDC) plays a crucial role in capturing real-time changes made to your mainframe database. It identifies and tracks inserts, updates, and deletes, making this valuable information readily available for various applications, including:</p><p>Data Integration: Streamline data movement between your mainframe and distributed systems for seamless data consolidation and analysis.</p><p>Real-time Replication: Maintain synchronized copies of your mainframe data across different environments, ensuring data consistency and availability.</p><p>Advanced Analytics: Leverage real-time data insights for near real-time analytics, enabling faster decision-making and proactive actions.</p><p><strong>Unlocking Real-Time with IBM InfoSphere Data Replication (IIDR) and Apache Kafka</strong></p><p>IBM IIDR emerges as a powerful tool for implementing CDC on your mainframe. IIDR offers a comprehensive suite for high-performance data replication across diverse systems. Notably, IIDR seamlessly integrates with Apache Kafka, a popular distributed streaming platform. This integration unlocks a powerful combination for real-time data processing:</p><p>Real-time Data Processing: Empower your organization to process and analyze data as soon as changes occur. This enables faster decision-making based on the latest information.</p><p>Decoupled Architecture: Kafka’s distributed nature decouples data producers (like IIDR) from consumers (like analytics applications). This allows for independent scaling and flexible system design as your needs evolve.</p><p>Scalability: Both IIDR and Kafka are built to handle massive data volumes. This makes them well-suited for enterprise-scale deployments, ensuring smooth operation even with growing data streams.</p><p>By implementing CDC with IIDR and Kafka, you can unlock a new level of real-time data insights from your mainframe applications. This empowers organizations to react swiftly to changing business conditions and make data-driven decisions for improved efficiency and competitive advantage.</p><h3>Challenges and Considerations for z/OS and Kafka Integration</h3><p>While integrating z/OS applications with Apache Kafka offers significant benefits for real-time processing and event-driven architectures, it’s crucial to consider some key challenges and considerations:</p><p>· <strong>Transaction Latency</strong>: Mainframes excel at high-volume transaction processing. However, synchronous production of Kafka events within a transaction can impact overall throughput. This effect can be further amplified if the Kafka broker resides in a public cloud environment due to increased latency. To mitigate this, asynchronous event emission is preferred. This can be achieved through custom implementations or by leveraging inherently asynchronous solutions like IBM MQ.</p><p>· <strong>Transactional Guarantees with Events:</strong> Streaming uncommitted data can lead to inconsistencies. Consider an example of a fund transfer with two parts: debiting and crediting accounts. If a debit event is sent but the credit fails, the transaction rolls back, but the debit event remains. This creates invalid data. Implementing approaches that support committed data production, such as Kafka transactions or appropriate messaging patterns, is essential.</p><p>· <strong>Consumer Latency:</strong> Consumer latency refers to the time it takes for a consumer application to process a message after it’s produced. It’s a critical metric for real-time applications as it impacts responsiveness. Certain approaches, like using an intermediary messaging system (e.g., IBM MQ), can introduce additional latency between applications and the Kafka broker. Carefully evaluate the trade-offs between different integration methods.</p><p>· <strong>Balancing Speed and Data Integrity:</strong> Not all events require the same level of data integrity. Categorize your events as “fire-and-forget” (no confirmation needed) or requiring “exactly-once” delivery semantics (ensuring each message is processed only once). Choose client configurations optimized for either speed or data integrity based on the event type. Here are some factors that influence throughput:</p><p>o <strong>Batch Size:</strong> Increase both producer and consumer batch sizes to reduce network and disk I/O overhead, leading to improved throughput.</p><p>o <strong>Compression:</strong> Enable message compression (e.g., gzip, snappy, lz4) to decrease the amount of data transmitted over the network.</p><p>o <strong>Acks Settings:</strong> Configure the producer’s “acks” setting to “acks=1” (leader acknowledgement) instead of “acks=all” (all replicas acknowledgement) for lower latency and higher throughput (suitable for non-critical events).</p><p>By carefully considering these challenges and tailoring your approach, you can successfully integrate z/OS applications with Kafka while maintaining optimal performance and data integrity. This will ultimately pave the way for a robust and efficient event-driven architecture that leverages the strengths of both platforms.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=917c8d2e82d0" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>