<?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 Marwan NAEL on Medium]]></title>
        <description><![CDATA[Stories by Marwan NAEL on Medium]]></description>
        <link>https://medium.com/@javaconsigliere?source=rss-43f98a86dff1------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*dmbNkD5D-u45r44go_cf0g.png</url>
            <title>Stories by Marwan NAEL on Medium</title>
            <link>https://medium.com/@javaconsigliere?source=rss-43f98a86dff1------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 07:17:40 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@javaconsigliere/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[Quantum Day Zero (QDZ) — Are You Ready? Or are you hoping for the best?]]></title>
            <link>https://medium.com/@javaconsigliere/quantum-day-zero-qdz-are-you-ready-or-are-you-hoping-for-the-best-dbad39e4c034?source=rss-43f98a86dff1------2</link>
            <guid isPermaLink="false">https://medium.com/p/dbad39e4c034</guid>
            <dc:creator><![CDATA[Marwan NAEL]]></dc:creator>
            <pubDate>Thu, 05 Feb 2026 00:44:45 GMT</pubDate>
            <atom:updated>2026-02-05T05:58:32.695Z</atom:updated>
            <content:encoded><![CDATA[<h3>Quantum Day Zero (QDZ) — Are You Ready? Or are you hoping for the best?</h3><p>If you are not Medium member you can read it here <a href="https://xlogistx.io/articles/qdz-ready.html">XlogistX QDZ Article</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VDriHIIfq6NjO-nabrM14g.jpeg" /></figure><h3>What is QDZ?</h3><p>In layman’s terms: <strong>it’s the day classical encryption becomes obsolete. </strong>Or more bluntly — it’s when the <strong>S##T HITS THE FAN.</strong></p><p>In professional terms, Quantum Day Zero is the moment quantum computers become powerful enough to crack RSA and ECC encryption — the very algorithms protecting virtually everything online today. Every bank transaction. Every medical record. Every government secret. <strong>Day Zero </strong>will make them obsolete<strong>.</strong></p><p>“But quantum computers aren’t here yet,” you say. “We have time.”</p><p><strong>You’re wrong. The attack has already begun.</strong></p><h3>HNDL: The Silent Heist Already in Progress</h3><p>Since classical encryption is <em>technically</em> still secure today, governments, three-letter agencies, and sophisticated adversaries are playing the long game. They’re executing a strategy called <strong>Harvest Now, Decrypt Later (HNDL)</strong>.</p><p>What is HNDL?</p><p>It’s the <strong>mass interception and storage of encrypted internet traffic</strong> — captured in its raw, encrypted form and stockpiled in massive data centers. Waiting. Patiently.</p><p><strong>What’s being harvested?</strong></p><ul><li>🏦 Bank transactions and personal financial data</li><li>💰 Cryptocurrency transactions and wallet keys</li><li>🏥 Medical records and health information</li><li>🪖 Military and intelligence communications</li><li>🏛️ Government secrets and diplomatic cables</li><li>💼 Corporate M&amp;A negotiations and trade secrets</li><li>📧 Your private communications</li></ul><p><strong>Everything encrypted. Everything stored. Everything waiting for QDZ.</strong></p><p>When quantum computers arrive, they simply press “decrypt” — and voilà, all secrets are revealed.</p><p>As the 1992 film <em>Sneakers</em> prophetically warned: <strong>“Too Many Secrets.”</strong></p><p>On Quantum Day Zero, there will be <strong>NO MORE SECRETS.</strong></p><h3>The Government’s Response: NSA CNSA 2.0</h3><p>The NSA isn’t blind to this threat. They’ve issued CNSA 2.0 — and the mandates are crystal clear:</p><blockquote><strong><em>January 2027:</em></strong><em> All new federal systems MUST use quantum-resistant encryption (ML-KEM, ML-DSA). No exceptions.</em></blockquote><blockquote><strong><em>2030–2035:</em></strong><em> Classical-only encryption (RSA, ECC) will be </em><strong><em>BANNED</em></strong><em> from National Security Systems entirely.</em></blockquote><p>The clock is ticking. <strong>24 months until the first mandate hits.</strong></p><h3>Introducing the NoSneak QDZ Checker</h3><p>To help organizations understand their quantum readiness, <strong>XlogistX.IO</strong> is actively developing the <strong>NoSneak</strong> platform — a comprehensive post-quantum cryptography solution.</p><p>We’ve just released the <a href="https://xlogistx.io/">NoSneak QDZ Checker (https://xlogistx.io)</a>: one of the fastest quantum-readiness scanners online.</p><p><strong>Results in MILLISECONDS. Yes, MILLISECONDS.</strong></p><p>No signup. No email harvesting. Just instant answers.</p><h3>The Results May Shock You</h3><p>We scanned major public websites. The tech giants are ready:</p><p>✅ <strong>google.com</strong> — QUANTUM READY (98ms)</p><p>✅ <strong>claude.ai</strong> — QUANTUM READY (73ms)</p><p>✅ <strong>xlogistx.io</strong> — QUANTUM READY (85ms)</p><p>Running X25519MLKEM768 hybrid post-quantum key exchange. Protected against HNDL. <strong>Today.</strong></p><h3>But Here’s Where It Gets Interesting…</h3><p>We scanned the very agencies <strong>mandating</strong> quantum-resistant encryption.</p><p>The results? <strong>They’re NOT quantum ready.</strong></p><p>❌ <strong>whitehouse.gov</strong> — NOT READY</p><p>❌ <strong>cybercom.mil</strong> — NOT READY</p><p>We scanned major financial institutions — the ones holding your money:</p><p>❌ <strong>wellsfargo.com</strong> — NOT READY</p><p>❌ <strong>bankofamerica.com</strong> — NOT READY</p><p>❌ <strong>americanexpress.com</strong> — NOT READY</p><p>We scanned tech companies that should know better:</p><p><strong>…and the list goes on.</strong></p><h3>The Uncomfortable Truth</h3><p>The NSA tells federal agencies: <em>“Implement quantum-resistant encryption by 2027 or face consequences.”</em></p><p>Yet the White House, the CIA, and Cyber Command — the very entities issuing these mandates — haven’t implemented it themselves.</p><p>Banks holding trillions in assets? <strong>Not protected.</strong></p><p>Intel, a company literally manufacturing the future of computing? <strong>Not protected.</strong></p><p>Meanwhile, Google and Anthropic quietly enabled hybrid PQC months ago.</p><h3>“Do As I Say, Not As I Do”</h3><p>The government is the most prominent practitioner of this philosophy.</p><p>They know HNDL is happening. They know QDZ is coming. They wrote the mandates.</p><p><strong>And yet they remain exposed.</strong></p><h3>The Question Isn’t Whether QDZ Will Happen</h3><p>It’s whether you’ll be protected when it does.</p><p><strong>Check your quantum readiness now:</strong></p><p>Scan your domains. Face the results. Then ask yourself:</p><p><strong>Are you ready for Quantum Day Zero? Or are you hoping for the best?</strong><em>NoSneak by XlogistX.IO — Securing Your Future in a Quantum World</em><strong>#QuantumDayZero #QDZ #PostQuantumCryptography #Cybersecurity #HNDL #CNSA2 #NoSneak #InfoSec</strong></p><p><em>Originally published at </em><a href="https://xlogistx.io/qdz-article-medium.html"><em>https://xlogistx.io</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dbad39e4c034" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Dawn of AI, how to beat AI interview in 10 Secs MAX “Ze-DeBooleanizer”]]></title>
            <link>https://medium.com/@javaconsigliere/dawn-of-ai-how-to-beat-ai-code-test-in-10-secs-max-ze-debooleanizer-f6482b4e688d?source=rss-43f98a86dff1------2</link>
            <guid isPermaLink="false">https://medium.com/p/f6482b4e688d</guid>
            <category><![CDATA[job-hunting]]></category>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[java]]></category>
            <category><![CDATA[quirky-rants]]></category>
            <category><![CDATA[ai-tools]]></category>
            <dc:creator><![CDATA[Marwan NAEL]]></dc:creator>
            <pubDate>Wed, 17 Sep 2025 15:45:52 GMT</pubDate>
            <atom:updated>2025-09-22T16:44:09.650Z</atom:updated>
            <content:encoded><![CDATA[<p>If you are not Medium member you read it here <a href="https://xlogistx.io/articles/DeBooleanizer.html">De-Booleanizer</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/492/1*ULKA0eOLF9H8J5rhH2Tmfw.jpeg" /><figcaption>Act of revolt and rejecting AI dehumanization (logo generated by ChatGPT)</figcaption></figure><p><em>This a real story about human booleanization rendering a whole human into a ZERO or One. The term is used in a derogatory way to sum up a person as either PASS or FAIL basically your F****eD or S****eD. In the dawn of AI big company are firing humans in 10k to replace them with AI or build AI infrastructure, in Nepal AI helped elect the new prime minister, in Albania they appointed Diella the world’s first AI minister. It makes me wonder was AI created to serve humanity or humanity to serve AI !</em></p><h4>Ze Problem</h4><p><strong>The IT job market today is dominated by AI-driven filtering.</strong></p><p>If you’re looking for a job, you’re expected to <em>booleanize</em> yourself — fit into the rigid “pass/fail” logic of algorithms. Pre-screening, interviews, monitoring, and even final decisions are often made by AI. In other words, you have already been <strong>BOOLEANIZED</strong>.</p><p>The expectations have become unrealistic. Candidates are expected to recall every possible IT question or scenario from memory, without the aid of AI or the web. FYI if you get the job they expect you to use AI !!!</p><h4>Ze Solution DeBooleanizer</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*l8ElIY0nsTkd7-yQ6LV9fA.png" /></figure><h4>DeBooleanizer will not solve the problem it will simply eliminate it.</h4><p>Since I refuse to be <strong>BOOLEANIZED</strong>. Instead, I built a basic AI agent to talk back to AI. After all, if machines are making the decisions, why shouldn’t they learn to understand each other ?</p><p><strong>How does De-Booleanizer work?</strong></p><p>It is a Java AI Agent (compatible with Windows, macOS, and Linux) that can run locally or remotely on a computer.</p><p>When the application starts, the user selects a snipping area on the screen — this could be a browser window or a Zoom session. That area is captured when triggered. Once triggered, an image is created and sent to an AI API along with a prompt (e.g., <em>“Analyze the image and find me an optimized solution”</em>). The AI replies with an answer, which you can view directly in the application — or simply press <strong>CTRL+V</strong> to paste it wherever you need. <strong>Boom — answer in about 10 seconds.</strong></p><p>The application also supports voice snippets. It transcribes the voice message via one AI and then feeds it as a question to another AI API, and returns an answer in <strong>Boom 15 seconds</strong>. Apparently, this is called <strong>Agentic AI</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KYzu2x3jLBP2Ik6WIVeQ_g.jpeg" /><figcaption>DeBooleanizer solving a real problem</figcaption></figure><h4>Final thought</h4><p>Because DeBooleanizer uses AI image understanding rather than traditional OCR, it has proven powerful beyond its original scope. In my tests, it analyzed X-ray images captured from a browser, summarized an entire Teams presentation that wasn’t supposed to be recorded, transcribed doctors’ notes in multiple languages, and assembled documents — summarizing them and converting the results into application-specific, consumable formats. Welcome to the rise of AI.</p><h4>Technical notes for the Geeks</h4><p>The project is freely available on GitHub <a href="https://github.com/javaconsigliere/De-Booleanizer">De-Booleanizer</a> the page is under construction though</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f6482b4e688d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[HostedAnyWhere Software Part-2]]></title>
            <link>https://medium.com/@javaconsigliere/hostedanywhere-software-part-2-46444bc6a236?source=rss-43f98a86dff1------2</link>
            <guid isPermaLink="false">https://medium.com/p/46444bc6a236</guid>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[information-security]]></category>
            <category><![CDATA[it-service-management]]></category>
            <category><![CDATA[cloud]]></category>
            <category><![CDATA[mobile-computing]]></category>
            <dc:creator><![CDATA[Marwan NAEL]]></dc:creator>
            <pubDate>Wed, 06 Aug 2025 15:41:45 GMT</pubDate>
            <atom:updated>2025-08-06T15:41:45.697Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>How to build a bare metal computing cluster</strong></p><p>For non-members this article can be read <a href="https://xlogistx.io/articles/HostedAnywhereSoftware-Part-2.html">here</a>.</p><p>This article continues our exploration from <a href="https://xlogistx.io/articles/HostedAnywhereHardware-Part-1.html"><em>HostedAnyWhere Hardware</em></a>, shifting our focus to the software aspects of constructing a robust computing cluster. Whether your goal is to enhance an SME office, create a sophisticated home lab, host it in a data-center, or even deploy a portable computing cluster deep in the wilderness, this guide provides detailed insights into the essential software components and services required. We’ll thoroughly discuss the software architecture, configuration management, networking services, and other critical software elements that cohesively bind together your computing resources into a reliable efficient cluster with very little power consumption.</p><h3>Components</h3><p>When building a computer cluster, two primary types of components serve as foundational building blocks: hardware infrastructure and software infrastructure.</p><h3>Hardware Infrastructure</h3><p>The hardware infrastructure forms the physical backbone of the cluster and typically includes the following elements:</p><ol><li><strong>SBC Modules:</strong> Small Board Computers (SBCs), such as compact ARM-based devices, serve as the compute nodes. Each SBC integrates a CPU, memory, onboard storage, and network connectivity, providing scalable and energy-efficient computing power.</li><li><strong>VLAN Switches:</strong> These network switches support Virtual LANs, enabling logical segmentation of the cluster network for improved security and traffic management.</li><li><strong>Satellite Links:</strong> Used for remote deployments or environments where traditional wired connectivity is unavailable, satellite links ensure reliable external communication.</li><li><strong>Fiber Optics:</strong> High-speed fiber optic connections provide fast and reliable data transfer between nodes, especially crucial in performance-sensitive scenarios.</li><li><strong>Power Controllers:</strong> Intelligent power controllers manage and automate the delivery of electrical power, enabling remote power cycling, fault isolation, and energy efficiency.</li><li><strong>Rackmount Enclosures:</strong> Rackmounts organize, secure, and cool the cluster’s hardware components, allowing for efficient use of space and streamlined maintenance.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*AEULXJX9LQla6fWG.png" /></figure><p>Component diagram</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*e-NjXOvk_o0kros4.jpeg" /></figure><p>Mobile Cluster</p><h3>Software Infrastructure</h3><p>The software infrastructure of a compute cluster is equally critical, and can be divided into two main domains: <strong>Software Networking Infrastructure</strong> and <strong>Software Service Infrastructure</strong>.</p><h3>Software Networking Infrastructure</h3><p>The <strong>software networking layer</strong> acts as the digital nervous system of the cluster, seamlessly interconnecting all devices and services to enable efficient communication, coordination, and resource sharing. At the heart of this layer lies the <strong>Cluster Controller</strong> -typically a robust Single Board Computer (SBC) equipped with dual Ethernet interfaces, a power controller to activate/deactivate SBC compute devices, a VLAN-capable switch, and reliable WAN connectivity. This foundational setup delivers resilient, high-performance WAN and LAN access across the entire cluster, regardless of its size or deployment context.</p><p>Functioning as the cluster’s network orchestrator, the Cluster Controller integrates a suite of essential networking services, each designed to streamline operations, enhance flexibility, and strengthen security:</p><ul><li><strong>Gateway:</strong> Acts as the principal bridge between the cluster’s internal network and external environments, supporting transparent VLAN-based communication and ensuring secure, reliable ingress and egress for all nodes.</li><li><strong>Router:</strong> Intelligently manages and directs network traffic both within the local cluster and out to the broader internet or across multiple VLANs. This ensures optimal bandwidth utilization, minimizes congestion, and maintains consistent connectivity.</li><li><strong>Firewall:</strong> Serves as the first line of defense, rigorously enforcing multi-layered security policies to shield cluster services from unauthorized access and external threats. This is achieved via finely tuned iptables rules that govern all inbound and outbound traffic.</li><li><strong>DHCP Server:</strong> Automates the assignment of IP addresses within the local network, streamlining device provisioning and minimizing the risk of configuration errors. Commonly, lightweight and proven daemons like <strong>isc-dhcp-server</strong> are deployed for this purpose.</li><li><strong>Smart DNS Server:</strong> Facilitates intelligent domain name resolution, allowing services to communicate using intuitive hostnames (e.g., dbs.acme.com) instead of static IPs. This not only boosts operational simplicity and automation, but also makes internal service discovery agile and resilient. In practice, this capability is often delivered by integrating established tools such as <strong>bind9</strong> with flexible platforms like <strong>javadns</strong>.</li><li><strong>Registration Repository:</strong> Functions as the service directory, handling the registration of devices and the publication of available services. For example, a database server might announce itself: “ <strong>I am </strong><strong>dbs.acme.com, hosting MongoDB v8 on port 27017 and PostgreSQL vXX on port 5432</strong>.&quot; This enables real-time service discovery and inventory, it is actually a JSON-based endpoints the sentence in <strong>bold</strong> is just to illustrate the action in question.</li><li><strong>Configuration Repository:</strong> Centralizes service configurations. When a new service-such as a web server-registers with the controller, it might state, “ <strong>My name is </strong><strong>api.acme.com; my local ports are 80 and 443; please expose me to the WAN and provision SSL certificates and MongoDB access</strong>.&quot; The Cluster Controller responds by supplying the required SSL certificates and pointing the service to the MongoDB endpoint ( dbs.acme.com:27017), ensuring rapid, error-free setup.</li><li><strong>Security Controller:</strong> Orchestrates both application and network security, handling tasks such as WAN port management, traffic controls between LAN and services, authentication of both local and remote entities, and secure device onboarding through certificate signing at boot. It also oversees critical lifecycle operations-initiating service shutdowns or restarts as required for ongoing security and reliability.</li></ul><p>By seamlessly integrating these diverse services, the Cluster Controller transforms the networking layer into a secure, scalable, and easily managed platform. This robust foundation enables higher-level cluster orchestration, distributed application deployment, and the agile growth required for modern computing environments.</p><h3>Software Service Infrastructure</h3><p>The <strong>software service infrastructure</strong> is the functional engine of the cluster, composed of a diverse set of hybrid Single Board Computers (SBCs) or compute nodes. Each of these devices takes on a specialized role-be it as a web server, database server, network-attached storage (NAS), message broker, or other purpose-built service-serving as a modular building block within the cluster ecosystem.</p><p>Operating atop the robust software networking layer, these compute nodes are seamlessly integrated into the overall cluster fabric. Each node is equipped with at least two critical software components:</p><p>The interplay of the cluster agent and advertised service transforms each SBC from a simple hardware node into an intelligent, self-managing component of a larger distributed system. This architecture not only ensures high availability, scalability, and resilience, but also allows the cluster to flexibly grow or reconfigure as demands evolve-making it suitable for use cases ranging from small office deployments to edge computing in remote or challenging environments.</p><h3>Node Controller</h3><p>The <strong>Node </strong>Controller is a lightweight, purpose-built software application installed on every service node within the cluster. Acting as the node’s ambassador and automation engine, it orchestrates a range of critical tasks that facilitate seamless integration, secure communication, and dynamic service management. Its core functionalities can be grouped into three major categories:</p><h4>1. One-Time Bootstrapping and Identity Provisioning</h4><p>Upon initial boot, the Node Controller executes a secure setup process to establish the node’s unique identity and presence within the cluster:</p><h4>2. Dynamic Service Registration</h4><p>On every startup, the Node Controller ensures that the node’s services are registered and discoverable by the cluster:</p><h4>3. Configuration Management and Resource Requests</h4><p>To maintain consistency and enable centralized management, the Node Controller coordinates all configuration requests with the Cluster Controller:</p><p>Through these functions, the Node Controller transforms each service node into a self-registering, securely integrated, and dynamically managed component of the cluster, dramatically simplifying deployment, scaling, and ongoing administration.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dN2JffzosGuevLlqeqbomA.png" /></figure><p>Service Node diagram</p><p><em>Originally published at </em><a href="https://xlogistx.io/articles/HostedAnywhereSoftware-Part-2.html"><em>https://xlogistx.io</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=46444bc6a236" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ARM Computing HostedAnyWhere Hardware Part-1]]></title>
            <link>https://medium.com/@javaconsigliere/hostedanywhere-hardware-part-1-ae9d4baab517?source=rss-43f98a86dff1------2</link>
            <guid isPermaLink="false">https://medium.com/p/ae9d4baab517</guid>
            <category><![CDATA[gpu]]></category>
            <category><![CDATA[mobile-computing-cluster]]></category>
            <category><![CDATA[npu]]></category>
            <category><![CDATA[arm-hosting]]></category>
            <category><![CDATA[ai-hosting]]></category>
            <dc:creator><![CDATA[Marwan NAEL]]></dc:creator>
            <pubDate>Sun, 20 Jul 2025 05:19:33 GMT</pubDate>
            <atom:updated>2025-07-20T16:49:26.230Z</atom:updated>
            <content:encoded><![CDATA[<p>This article can be viewed <a href="https://xlogistx.io/articles/HostedAnywhereHardware-Part-1.html">here</a> for none members</p><h3>The rise of ARM based SBCs</h3><p><strong>The latest RISC-based ARM CPUs deliver impressive computational performance while maintaining exceptionally low power consumption-a critical advantage for mobile and edge deployments. Today’s ARM SBCs not only excel in efficiency, but also integrate dedicated GPUs and NPUs (Neural Processing Units), enabling fast graphics, AI inference, and parallel data tasks on a compact board. Just as importantly, the total system cost for a cluster like this is dramatically lower than comparable x86 or GPU-based systems. Building a similar cluster with Intel, AMD, or NVIDIA hardware would require significantly more investment-not just for the processors and GPUs themselves, but also for power delivery, cooling, and physical space. The ARM-based solution offers a high-performance, all-in-one cluster at a fraction of the price, while slashing ongoing power and maintenance costs. This enables projects and organizations to deploy advanced compute capabilities at the edge, in vehicles, in the field or in data-center -without breaking the budget.</strong></p><h3>Portable/Hosted ARM Computing Cluster: Mid-Size Mobile Power for Edge Computing and Connectivity</h3><p>As the demand for efficient, mobile, and energy-conscious computing rises, especially for edge deployments, this project aims to hit the sweet spot between power and portability. Presenting an ARM-based computing cluster housed in a compact 1U server chassis, engineered for both performance and mobility-ideal for rapid deployment anywhere.</p><h3>Hardware Overview</h3><p>The heart of the cluster is four ARM Single Board Computers (SBCs), each assigned a specific role:</p><ul><li><strong>Database Server:</strong></li><li><strong><em>Specs:</em></strong><em> 8 cores, 32GB RAM, 2TB NVMe SSD, 9v USBC</em></li><li><strong><em>Purpose:</em></strong><em> Hosts both MongoDB and PostgreSQL, designed for fast, high-capacity data operations and storage.</em></li><li><strong>Web Server:</strong></li><li><strong><em>Specs:</em></strong><em> 8 cores, 16GB RAM, 5v USBC</em></li><li><strong><em>Purpose:</em></strong><em> Handles REST API endpoints and web traffic processing, ensuring fast response and concurrency.</em></li><li><strong>Message Broker:</strong></li><li><strong><em>Specs:</em></strong><em> 4 cores, 4GB RAM, 9v POWER JACK(buck converter)</em></li><li><strong><em>Purpose:</em></strong><em> Runs a lightweight message broker (such as RabbitMQ or Mosquitto), serving as the communications backbone between services.</em></li><li><strong>Queue Consumer/Worker Node:</strong></li><li><strong><em>Specs:</em></strong><em> 4 cores, generic, 9v POWER JACK(buck converter)</em></li><li><strong><em>Purpose:</em></strong><em> Dedicated to background processing — consuming messages and performing general tasks such as data processing, ETL jobs, or custom scripts.</em></li><li><strong>VLan switch:</strong></li><li><strong><em>Specs:</em></strong><em> 8 ports, 12v POWER JACK(buck/boost converter)</em></li><li><strong>Raspberry Zero 2W + Power controller</strong></li><li><strong><em>Specs:</em></strong><em> 4 cores, 512MEG RAM, 12v-24V Custom</em></li></ul><p>The entire system is wired together via a <strong>built-in VLAN-capable network switch</strong>, providing robust and secure network segmentation for different services. Power management and orchestration is handled by an integrated <strong>Raspberry Pi-based power controller</strong>, which allows hybrid power delivery, remote power cycling and monitoring of each SBC and the switch itself.</p><h3>Bare Metal, Low Power, Fully Mobile/Hosted</h3><p>This isn’t a cloud VM cluster-it’s true bare metal, running directly on ARM hardware for maximum efficiency and minimal overhead. The entire rack runs on a 12V battery supply, with total power consumption kept at just <strong>18 watts</strong> under typical load. This efficiency means the system can run comfortably off a car battery or small solar panel for hours, if not days.</p><h3>Size and Deployment</h3><p>Despite its capabilities, the whole cluster fits into a <strong>1U rackmount enclosure</strong>, making it easy to transport, install, or stow. Its form factor and power profile make it perfect for:</p><ul><li><strong>Data center: </strong>Hosted inside data-center low power consumption and no cooling required</li><li><strong>Mobile operations:</strong> Deploy inside vehicles, trucks, or trailers</li><li><strong>Remote fieldwork:</strong> Data collection, sensor aggregation, on-site analytics</li><li><strong>Temporary sites:</strong> Disaster response, event networking, pop-up research labs</li><li><strong>Edge processing:</strong> Pre-filter, analyze, and sync data before uploading to the cloud</li></ul><h3>Starlink-Ready for Global Connectivity</h3><p>Pairing the cluster with a Starlink satellite internet terminal unlocks true global reach. With this setup, it’s possible to operate in the world’s most remote locations while still having internet connectivity for data sync, cloud backup, or remote monitoring.</p><h3>Why Mid-Size Matters</h3><p>Most business solutions fall into two categories: ultra-low-power devices with limited performance, or heavy, power-hungry servers that aren’t truly mobile. This ARM cluster strikes a unique balance:</p><ul><li><strong>Enough power</strong> to run serious workloads: full-featured databases, API services, analytics, and data pipelines.</li><li><strong>Low enough power draw</strong> to run off-grid, in vehicles, at the edge or in data-center.</li><li><strong>Highly portable</strong>, thanks to 1U form factor and integrated networking/power control you can stick it in the truck or in data center chassis.</li></ul><h3>The hybrid implementation</h3><h4>Cost Analysis</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3yFEKWJIjmnowC9eBc_ZJg.png" /></figure><h4>Block Diagram</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*fI8mANXorXbW0klq.gif" /></figure><h4>Prototype “DON’T JUDGE”</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*TXTo5m2ivaQOK3vu.jpg" /></figure><h3>Data Center implementation</h3><p>For data center a full chassis of 40 1U rackmounts devices will be deployed</p><h4>Cost Analysis</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CHVO7W6QGWNiq3w2cD5pLA.png" /></figure><h4>Block Diagram</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*SCFkW_cslILEgV2-.gif" /></figure><h3>Final Thoughts</h3><p>This project demonstrates that you don’t need to compromise between mobility, power, and connectivity. Whether you’re processing sensor data in the field, running a pop-up command center, building a rapid-deploy backend for remote operations, or deploying mid-size AI clusters a mid-size and high end ARM computing cluster like this delivers a unique combination of features-and goes wherever your mission takes you.</p><p><em>Originally published at </em><a href="https://xlogistx.io/articles/HostedAnywhereHardware.html"><em>https://xlogistx.io</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ae9d4baab517" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[M.O.A.B-Mother Of All Bugs]]></title>
            <link>https://medium.com/@javaconsigliere/moab-the-mother-of-all-bugs-cfcaf7729730?source=rss-43f98a86dff1------2</link>
            <guid isPermaLink="false">https://medium.com/p/cfcaf7729730</guid>
            <category><![CDATA[self-improvement]]></category>
            <category><![CDATA[debugging]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[experience]]></category>
            <dc:creator><![CDATA[Marwan NAEL]]></dc:creator>
            <pubDate>Sat, 18 Nov 2023 07:02:33 GMT</pubDate>
            <atom:updated>2023-11-19T21:34:25.747Z</atom:updated>
            <content:encoded><![CDATA[<p>This light technical story, bordering on academic, is a personal anecdote from my early days as a junior software engineer. Back then, Java 1.1 was the pinnacle of technology, Emacs was the editor of choice, Google hadn’t been conceived, Amazon was solely a bookseller, and we had just transitioned our internet from dial-up to ADSL, Java NIO was non-existent, and our technical references were actual books that demanded reading.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Rs2YaK9cUmBP7V-xVS5WSQ.png" /></figure><p>I was part of a telecom startup, tasked with integrating the X.25 protocol into our platform, adapting it for Windows, HP UNIX, and SUN Solaris UNIX. X.25, a packet-switching network protocol from the 1970s, was known for its reliable data transmission using error correction and virtual circuits. Despite its foundational role in networking, it has since become obsolete, outpaced by newer, more efficient technologies.</p><p>The solution involved:</p><ul><li>Acquiring three C X.25 libraries: one each for Windows, HP, and SUN.</li><li>Developing an X.25 Client Socket, dubbed X25Socket.</li><li>Creating X.25 Input/Output Streams: X25InputStream and X25OutputStream.</li><li>Establishing a JNI layer for shared libraries across Windows, HP, and SUN.</li><li>Designing a configuration class to preload shared libraries for each OS implementation.</li><li>Developing C and Java test suites for each implementation, in a time before JUnit.</li></ul><p>This approach remains as relevant today as it was 25 years ago, albeit with the advantage of superior tools like IDEs, JNA (Java Native Access), better internet support, and ChatGPT.</p><p>The implementations for Windows and HP were successful, adhering to the documentation and working harmoniously between C and Java code. However, the SUN implementation encountered significant issues. Despite both Java and the X.25 library being developed by SUN, the Java component failed. The shared library loaded correctly, but invoking a JNI function resulted in an UnsatisfiedLinkError. After extensive troubleshooting and consulting SUN tech support, I found that the X.25 library&#39;s name was identical to that of the TCP/IP library. Consequently, the JVM loaded the TCP/IP library first, treating any subsequent load attempt of a library with the same name as a cache hit.</p><p>The resolution was suggested by manager at the time David(Very smart and sharp individual) by loading the shared/dynamic library manually, a counterintuitive approach to using shared libraries. This bespoke solution fixed the Java X.25 implementation on the SUN platform.</p><p>In conclusion, this experience from decades ago mirrors the iterative thinking and bug resolution process prevalent in programming today. What I learned:</p><ol><li>Experience is invaluable. Don’t hesitate to seek help, especially from more seasoned colleagues.</li><li>Persistence pays off. If you don’t know the answers, keep asking and exploring.</li><li>Maintain objectivity in debugging. Don’t assume; keep an open mind.</li></ol><p>Lastly, I developed a methodology for bug resolution:</p><ol><li>Acknowledge the presence of a bug.</li><li>Understand the nature of the bug.</li><li>Devise a systematic procedure to replicate the bug.</li><li>Aim for a foundational solution, not a mere patch.</li><li>Test thoroughly to ensure the bug is effectively resolved.</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cfcaf7729730" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Java Multi-Threaded Non-Blocking IO(NIO) Secure Protocol Framework]]></title>
            <link>https://medium.com/@javaconsigliere/java-multi-threaded-non-blocking-io-nio-secure-protocol-framework-5f0e8ece9862?source=rss-43f98a86dff1------2</link>
            <guid isPermaLink="false">https://medium.com/p/5f0e8ece9862</guid>
            <category><![CDATA[multitasking]]></category>
            <category><![CDATA[framework]]></category>
            <category><![CDATA[java]]></category>
            <category><![CDATA[non-blocking-io]]></category>
            <category><![CDATA[tls]]></category>
            <dc:creator><![CDATA[Marwan NAEL]]></dc:creator>
            <pubDate>Sun, 19 Feb 2023 01:27:29 GMT</pubDate>
            <atom:updated>2023-03-06T00:01:50.246Z</atom:updated>
            <content:encoded><![CDATA[<p>Introducing XlogistX.IO Java Multi-Threaded Secure NIO framework for quick and easy networking protocol implementation and deployments.</p><p>The pillars of the framework are:</p><ul><li>Pure Java implementation 1.8+, NO JNI dependencies</li><li>Works with ARM and Intel CPU, Linux, Mac and Windows (This is what Java is all about. Other exist frameworks sometimes they don’t depending on their version or the jre version or the os)</li><li>Multi-threaded and highly performant</li><li>Supports secure connectivity such as TLS</li><li>Minimal maven dependencies, main jar <a href="http://mvnrepository.com/artifact/org.zoxweb/zoxweb-core">zoxweb-core.jar</a></li><li>Public source code on github <a href="https://github.com/fidusio/zoxweb-core">zoxweb-core.git</a></li><li>Simple <a href="https://github.com/fidusio/zoxweb-core/blob/master/src/main/java/org/zoxweb/server/net/protocols/EchoProtocol.java">EchoProtocol </a>Java code as an example</li><li>Zero dependency on netty, mina or bouncycastle</li><li>Relatively small code footprint, zoxweb-core is 2.2M and experimental HTTP server 5.1M with zoxweb-core.x.x.x.jar included.</li></ul><h3>Architecture Overview Part I</h3><p>The framework is an alternative to Netty or Mina with minimal dependencies and small code footprint. It can be easily deployed on a Raspberry PI Zero(for small IoT projects) or on high-end rack mountable servers without sacrificing performance, security and portability.</p><p>The framework takes care of all the complexity of networking accepting/closing connections, detecting incoming data, reading raw bytes from ServerSocketChannel, managing the thread allocation and finally invoking the <a href="https://github.com/fidusio/zoxweb-core/blob/master/src/main/java/org/zoxweb/server/net/SessionCallback.java">SessionCallback </a>where the protocol implementation takes place.</p><p>The <a href="https://github.com/fidusio/zoxweb-core/blob/master/src/main/java/org/zoxweb/server/net/SessionCallback.java">SessionCallback </a>is the heart of the implementation.t receives raw data via a ByteBuffer, it assembles the request, processes the request and creates/sends back a response to the caller. Two abstract implementations of the <a href="https://github.com/fidusio/zoxweb-core/blob/master/src/main/java/org/zoxweb/server/net/SessionCallback.java">SessionCallback </a>could be extended, the <a href="https://github.com/fidusio/zoxweb-core/blob/master/src/main/java/org/zoxweb/server/net/PlainSessionCallback.java">PlainSessionCallback </a>and the (Secure TLS). The user simply implements the accept(ByteBuffer bb) method, the <a href="https://github.com/fidusio/zoxweb-core/blob/master/src/main/java/org/zoxweb/server/net/ssl/SSLSessionCallback.java">SSLSessionCallback </a>illustrates a complete and functional code of a simple echo protocol <a href="https://github.com/fidusio/zoxweb-core/blob/master/src/main/java/org/zoxweb/server/net/protocols/EchoProtocol.java">EchoProtocol Java code</a></p><p>The SessionCallback is already implemented for following protocols:</p><p>HTTP proxy</p><ul><li>An HTTP proxy for web access</li><li>Supports IP blacklisting</li><li>Mainly used to access remote system behind deployed firewalls</li></ul><p>TCP Clear tunnel</p><p>The tcp tunneling is mainly used to expose services through a firewall</p><p>TCP Secure tunnel</p><ul><li>The Secure tunnel is mainly used to secure exposed internet traffic and connect to a server that does support TLS</li><li>At the firewall entry point the SSL port is exposed</li><li>The data is decrypted then sent in the clear to the internal server</li><li>The clear data received for the internal server is encrypted then sent back to the caller via the internet</li></ul><p>HTTP Web server</p><p>An experimental web server that supports</p><ul><li>HTTP and HTTPS</li><li>Binds processing via annotation link to java beans</li><li>Supports HTTP 1.1 for now</li></ul><p>A simple example Echo</p><p>An echo chat protocol</p><p>N IO Protocols currently implemented and deployed</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*PUtdsO9bR_3KIOnF.png" /></figure><h3>Preliminary Testing</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/634/1*93kSvuMIx3YbQ6ltmJy3Vw.png" /></figure><pre>/**<br> * This is the code example of a simple echo back protocol full implementation<br> */<br>import org.zoxweb.server.io.ByteBufferUtil;<br>import org.zoxweb.server.io.IOUtil;<br>import org.zoxweb.server.io.UByteArrayOutputStream;<br>import org.zoxweb.server.net.NIOPlainSocketFactory;<br>import org.zoxweb.server.net.NIOSocket;<br>import org.zoxweb.server.net.PlainSessionCallback;<br>import org.zoxweb.server.net.ssl.SSLContextInfo;<br>import org.zoxweb.server.net.ssl.SSLNIOSocketFactory;<br>import org.zoxweb.server.net.ssl.SSLSessionCallback;<br>import org.zoxweb.server.task.TaskUtil;<br>import org.zoxweb.shared.util.InstanceCreator;<br><br>import java.io.IOException;<br>import java.nio.ByteBuffer;<br><br>public class EchoProtocol<br>{<br>    private final static InstanceCreator&lt;PlainSessionCallback&gt; echoPIC = EchoSession::new;<br><br>    private final static InstanceCreator&lt;SSLSessionCallback&gt; echoSIC = SSLEchoSession::new;<br><br>    public static class EchoSession<br>        extends PlainSessionCallback<br>    {<br>        private final  UByteArrayOutputStream ubaos = new UByteArrayOutputStream();<br>        @Override<br>        public void accept(ByteBuffer byteBuffer)<br>        {<br>            try<br>            {<br>                ByteBufferUtil.write(byteBuffer, ubaos, true);<br>                if (ubaos.byteAt(ubaos.size() - 1) == (byte)&#39;\n&#39;)<br>                {<br>                    get().write(ubaos, true);<br>                }<br>            } catch (IOException e) {<br>                e.printStackTrace();<br>                IOUtil.close(get());<br>            }<br>        }<br>    }<br><br>    public static class SSLEchoSession<br>            extends SSLSessionCallback<br>    {<br><br>        private final UByteArrayOutputStream ubaos = new UByteArrayOutputStream();<br>        @Override<br>        public void accept(ByteBuffer byteBuffer)<br>        {<br>            try<br>            {<br>                ByteBufferUtil.write(byteBuffer, ubaos, true);<br>                if (ubaos.byteAt(ubaos.size() - 1) == (byte)&#39;\n&#39;)<br>                {<br>                    get().write(ubaos, true);<br>                }<br>            } catch (IOException e) {<br>                e.printStackTrace();<br>                IOUtil.close(get());<br>            }<br>        }<br>    }<br><br>    public static void main(String ...args)<br>    {<br>        try<br>        {<br><br>            // Plain socket port not encrypted<br>            int port = 1024;<br>            // Secure socket port encrypted port<br>            int sPort = 1025;<br>            // Socket backlog<br>            int backlog = 128;<br>            // Creating the NIOSocket with and executor object<br>            NIOSocket nioSocket = new NIOSocket(TaskUtil.getDefaultTaskProcessor());<br>            // Adding the plain socket factory to process non encrypted data<br>            // The echoPIC is the plain socket instance creator for the EchoSession class<br>            nioSocket.addSeverSocket(port, backlog, new NIOPlainSocketFactory(echoPIC));<br><br><br><br>            // this section will create secure socket handler<br>            try<br>            {<br><br>                // Adding the self-signed autogenerated keystore FOR TESTING PURPOSES ONLY<br>                // NEVER USE IT in production<br>                SSLContextInfo sslContextInfo = org.zoxweb.server.security.CertKStoreUtil.generateRandomSSLContextInfo(&quot;ec&quot;, &quot;SHA256withECDSA&quot;);<br>                // The echoSIC is the secure socket instance creator for the SSLEchoSession class<br>                SSLNIOSocketFactory sslnioSocketFactory = new SSLNIOSocketFactory(sslContextInfo, echoSIC);<br>                //Registering the socket and port<br>                nioSocket.addSeverSocket(sPort, backlog, sslnioSocketFactory);<br>            }<br>            catch(Exception e)<br>            {<br>                e.printStackTrace();<br>            }<br>        }<br>        catch (Exception e)<br>        {<br>            e.printStackTrace();<br>            System.exit(-1);<br>        }<br>    }<br><br>}</pre><h3>Architecture Detailed Part II</h3><h3>Prerequisite</h3><ul><li>Java Knowledge</li><li>Familiarity with Multi-threading and NIO Architecture</li><li>NOT FOR THE FAINT OF HEART sorry!!!</li></ul><h3>What is NIO</h3><p>NIO stands for Non-blocking Input Output, it is the opposite of the standard stream architecture that requires a dedicated thread waiting for reading incoming data via the input stream. NIO uses signaling mechanism within the OS to detect packet activities such as:</p><ul><li>Accepting a new connection</li><li>Incoming data to read over a channel ie: Request</li><li>Outgoing data to write over a channel ie: Response</li><li>Closing of the connection</li></ul><h4>How NIO works</h4><p>To detect the different IO activities,a thread will be dedicated to poll on registered selection keys using a selector object. The selector object wakes up from the select mode once IO activities are detected. Based on the IO activities type a new connection is established, incoming data are available for reading or a connection closure is detected.</p><h3>The design</h3><p>To simplify and create an extensible multi-threaded design 5 classes are used to implement the NIO framework:</p><ol><li><a href="https://github.com/fidusio/zoxweb-core/blob/master/src/main/java/org/zoxweb/server/net/NIOSocket.java">NIOSocket</a></li><li><a href="https://github.com/fidusio/zoxweb-core/blob/master/src/main/java/org/zoxweb/server/net/ProtocolFactory.java">ProtocolFactory</a></li><li><a href="https://github.com/fidusio/zoxweb-core/blob/master/src/main/java/org/zoxweb/server/net/ProtocolHandler.java">ProtocolHandler</a></li><li><a href="https://github.com/fidusio/zoxweb-core/blob/master/src/main/java/org/zoxweb/server/net/SessionCallback.java">SessionCallback</a></li><li><a href="https://github.com/fidusio/zoxweb-core/blob/master/src/main/java/org/zoxweb/server/net/ChannelOutputStream.java">ChannelOutputStream</a></li></ol><h4>NIOSocket</h4><p>The NIOSocket is the main entry point class or object of the framework it uses Executor to multi-thread activities of IO operations, it is responsible for:</p><ol><li>Registering ServerSocketChannel to ProtocolFactory instances</li><li>Registering selection keys for nio Accept and Read</li><li>Looping via a thread to detect SelectionKeys</li><li>Managing the Selector instance to detect IO operations such as: Accepting new connection, Creating one ProtocolHandler per connection via the ProtocolFactory, Detecting incoming data, Invoking the appropriate ProtocolHandler</li></ol><h4>ProtocolFactory</h4><p>The ProtocolFactory is responsible for:</p><ol><li>Managing the Protocol configuration</li><li>Creating the associated ProtocolHandler and SessionCallback</li></ol><h4>ProtocolHandler</h4><p>The ProtocolHandler is responsible for:</p><ol><li>Setting up the session</li><li>Reading and filtering incoming raw data</li><li>Invoking SessionCallback</li><li>Detecting channel closing</li><li>Closing the connection</li></ol><h4>SessionCallback</h4><p>The SessionCallback is the callback instance invoked after reading raw data via the ProtocolHandler. The SessionCallback is responsible for:</p><ol><li>Assembling incoming raw data</li><li>Building full requests</li><li>Processing the request</li><li>Generating the response</li><li>Sending the response via the ChannelOutputStream</li></ol><h4>ChannelOutputStream</h4><p>The ChannelOutputStream is an output stream based on a ChannelSocket which behaves similar to an OutputStream for all practical purposes.</p><h4>NIO Framework Pseudo State Diagram</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*k_pZxAeFQmDiIVHY.png" /></figure><h4>NIO Framework DataExchange Sequence Diagram</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Mr6Y3uQL6CheR_K6.png" /></figure><h3>T LS secure socket integration with NIO framework</h3><h3>What is TLS</h3><p>TLS stands for Transport Layer Security. It uses cryptographic keys to communicate securely between 2 parties (e.g. client and server).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*k0jMmekQdzjrjUYy.png" /></figure><p>Two types of keys are used to establish secure communication, a public/private asymmetric keypair and a symmetric temporary/session key.</p><p>After establishing a connection between client and server, a key exchange process takes place to negotiate the following:</p><ol><li>What protocol to use ie TLS1.2 or TLS1.3</li><li>What type of cypher to use</li><li>The generated symmetric key to be used post handshaking for encrypting/decrypting data over the connection socket</li></ol><p>In a nutshell , this is a very simplified overview of how TLS works. The truth is it is way more complicated.</p><h3>Integrating TLS with the NIO framework</h3><p>Initially I was too lazy to do the hard work so I decided to google any existing reference implementation and surprise, surprise nothing really worked, the Java documentation was useless, any github implementation covered specific protocol version or specific ciphers, no luck on stackoverflow either.</p><p>I guess the main reason is the Java SSLEngine handshaking complexity and behavior. I even asked chatGPT recently to give a Java TLS example, guess what useless again!!!, it seems that it grabbed the code from stackoverflow or something similar.</p><h3>The SSLEngine is a state machine</h3><p>The SSLEngine is the core object that manages the handshaking and data encryption/decryption in Java, it behaves as a state machine that generates handshake status and result status after every SSL operation.</p><p>Luckily, at the start of COVID, I designed a simple and extensible <a href="https://github.com/fidusio/zoxweb-core/tree/master/src/main/java/org/zoxweb/server/fsm">State Machine package</a> and then later on, I decided to implement <a href="https://github.com/fidusio/zoxweb-core/blob/master/src/main/java/org/zoxweb/server/net/ssl/SSLNIOSocket.java">SSLNIOSocket</a> as a state machine . It was a perfect solution for a very complex problem: no need to figure out how to start the handshake, what transition is next, when the handshake is do ne, no need to check protocol version or cipher type.</p><h4>The solution</h4><p>As mentioned earlier, the SSL Engine is a state machine so in order to implement SSLNIOSocket a state machine is implemented to process SSLEngine handshake stages. The state machine algorithm behaves as follow:</p><ol><li>Accept a connection</li><li>Start the SSLEngine handshake</li><li>Wait for data</li><li>Trigger the SSLEngine transition based on the handshake status</li><li>Process the trigger code</li><li>Trigger the SSLEngine transition based the current handshake status</li><li>Wait for NOT_HANDSHAKING status</li><li>Decrypt incoming data</li><li>Encrypt outgoing data</li></ol><h4>SSLEngine HandshakeStatuses</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/605/1*FRlyIjG-yQndF4tMWsuOgQ.png" /></figure><h4>NIO Framework With TLS Socket Pseudo State Diagram</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*kSSYm81poQqW2ySY.png" /></figure><p><em>Originally published at </em><a href="http://xlogistx.io/articles/NIOFramework/MultiThreadNIOSSLSocket.html"><em>http://xlogistx.io</em></a><em>.</em></p><p>Publisher javaconsigliere@gmail.com</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5f0e8ece9862" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Migrating 200 millions users to a cloud based identity system {Okta}. Part I]]></title>
            <link>https://medium.com/@javaconsigliere/migrating-200-millions-users-to-a-cloud-based-identity-system-okta-part-i-dd2976d507f0?source=rss-43f98a86dff1------2</link>
            <guid isPermaLink="false">https://medium.com/p/dd2976d507f0</guid>
            <category><![CDATA[okta]]></category>
            <category><![CDATA[oauth]]></category>
            <category><![CDATA[oidc]]></category>
            <category><![CDATA[microservices]]></category>
            <category><![CDATA[security]]></category>
            <dc:creator><![CDATA[Marwan NAEL]]></dc:creator>
            <pubDate>Sun, 25 Dec 2022 22:57:30 GMT</pubDate>
            <atom:updated>2022-12-25T22:57:30.007Z</atom:updated>
            <content:encoded><![CDATA[<p>How to migrate a legacy Customer Identity and Access Management(CIAM) system with a huge data set (200 millions users) to a cloud based CIAM system like Okta a cloud based modern OpenID Connect (OIDC).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*sV9_jDU9IQArCwF9.png" /></figure><h3>Requirements</h3><ul><li>Migrate 200 millions users from an on premise legacy CIAM to Okta cloud.</li><li>During and post migration the data must be 100% in sync in real-time and 100% backward compatible.</li><li>Migration must be completed within a month period on a live system without user experience interruption.</li><li>Okta migration must be executed via web API calls.</li></ul><h3>Challenges</h3><ul><li>Migrating 200 millions users without hiccups !!!!</li><li>HTTP API migration is limited by API speed of let’s say 10,000 calls per minute which translates into 13.89 days assuming zero issues.</li><li>Users data integrity must be maintained at all time while synchronizing the migration and updates between the current system and Okta</li><li>Multiple choke points might cause migration issues such as:</li><li>Database access issues</li><li>Network issues</li><li>Okta access issues</li><li>Cluster issues</li></ul><p>Migration Time Calculator</p><h3>Solution</h3><p>In order to migrate all users to Okta while meeting the requirements and mitigating the challenges a dual strategy solution is implemented and executed simultaneously using Just In Time (JIT) migration and Bulk/Batched migration. The JIT migration will migrate users while using the system in real and the bulk migration will X set of users as background process or thread.</p><p>The migration process or user registration to Okta requires at least 3 mandatory fields</p><ol><li>Login: the username.</li><li>Primary email: for password recovery and MFA</li><li>Password: as credentials other type of credentials could be used but for the sake of simplicity let’s assume password for the time being</li><li>UUID: this field is optional but nice to have as a user domain agnostic opaque identifier to correlate between Okta and external systems or vice versa.</li></ol><h3>JIT migration</h3><p>JIT migration is often called lazy migration or on demand migration, it is quite simple and straightforward. The migration is triggered when the user becomes active within the system. The user activity is detected when the user login for the first time after enabling JIT or register for the first time.</p><h3>Bulk/Batch migration</h3><p>Bulk migration is a background process that extracts X number of users from the legacy system and migrates them to Okta domain via API calls. The process repeats itself by extracting X number of users again and again unttill all the users are migrated to Okta .</p><p><em>Originally published at </em><a href="https://xlogistx.io/articles/M200mToOkta/Migrating200millionsuserstocloudbasedidentity.html"><em>http://xlogistx.io</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dd2976d507f0" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>