<?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 Frason Francis on Medium]]></title>
        <description><![CDATA[Stories by Frason Francis on Medium]]></description>
        <link>https://medium.com/@ffkalapurackal?source=rss-771768726edc------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*QxuJqOqJgdb1wVC6-e9muQ.jpeg</url>
            <title>Stories by Frason Francis on Medium</title>
            <link>https://medium.com/@ffkalapurackal?source=rss-771768726edc------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 17:44:49 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ffkalapurackal/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[BACnet vs Modbus]]></title>
            <link>https://medium.com/@ffkalapurackal/bacnet-vs-modbus-f60a619e8d65?source=rss-771768726edc------2</link>
            <guid isPermaLink="false">https://medium.com/p/f60a619e8d65</guid>
            <category><![CDATA[modbus]]></category>
            <category><![CDATA[building]]></category>
            <category><![CDATA[protocol]]></category>
            <category><![CDATA[bacnet]]></category>
            <category><![CDATA[bm]]></category>
            <dc:creator><![CDATA[Frason Francis]]></dc:creator>
            <pubDate>Mon, 14 Sep 2026 10:24:08 GMT</pubDate>
            <atom:updated>2026-09-14T10:24:08.599Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/950/1*U1C9zWKMjq-fnXLqtqn_zw.png" /></figure><p><em>Two common communication languages that help building and industrial equipment share information.</em></p><p>Modern buildings have many devices that need to work together: thermostats, air-handling units, lighting panels, energy meters, pumps, and security systems. For a building management system to monitor or control them, those devices need a common way to exchange information. BACnet and Modbus are two of the most widely used communication protocols for that job.</p><p>They solve a similar problem, but they approach it differently. BACnet is designed for building automation, while Modbus is a simpler protocol widely used in industrial equipment and devices such as meters and drives. Neither is automatically better in every situation. The right choice depends on the equipment and the type of system being built.</p><h3>What is BACnet?</h3><p>BACnet stands for Building Automation and Control Networks. It is a protocol developed for building systems to share information, even when their devices come from different manufacturers. <a href="https://www.ashrae.org/technical-resources/technical-faqs/question-51-what-is-bacnet">It is commonly used for heating, ventilation, air conditioning, lighting, energy management, and other building services.</a></p><p>Think of BACnet as a structured language. Instead of sending only a number, a BACnet device can organize information as objects and properties. <a href="https://bacnet.org/wp-content/uploads/sites/4/2022/06/The-Language-of-BACnet-1.pdf">For example, a temperature point can be represented as an object with a current value, a name, and supported properties.</a> This structure makes it easier for building management systems to understand and organize information from many devices.</p><p>BACnet also includes standard ways to handle common building tasks. These include device discovery, alarms, schedules, trend logs, and command priorities. A device does not have to support every possible BACnet feature, but the protocol provides a common framework for them.</p><h3>What is Modbus?</h3><p>Modbus is an older and simpler communication protocol that is still very common in automation.<a href="https://www.modbus.org/file/secure/modbusprotocolspecification.pdf"> It was created for industrial control and is often found in power meters, variable frequency drives, boilers, generators, sensors, and packaged equipment.</a></p><p>Modbus works mainly by reading and writing numbered locations called coils or registers. A device might store temperature, energy use, speed, or status information in these locations. The building system asks for the number it needs, and the device sends back a value.</p><p>The important limitation is that a Modbus value does not fully explain itself. A register may contain the number 215, but a separate document is needed to tell you whether that means 21.5°C, 215 kW, a status code, or something else. The device manufacturer’s register map provides that missing information, including the address, scale factor, units, and data format.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/933/1*4rfcsMkg8Vz-GTfzmA_AJQ.png" /></figure><h3>The biggest difference</h3><p>The biggest difference between BACnet and Modbus is how much information travels with the value. BACnet is more descriptive. It gives building systems a standard way to identify and work with devices and points. This makes it useful when many controllers, systems, and manufacturers must communicate across a building or campus.</p><p>Modbus is more direct. It is simple and flexible, but it relies on the installer or integrator to know what each register means. This works well for individual pieces of equipment, especially when the register map is clear and well documented.</p><h3>Can BACnet and Modbus work together?</h3><p>Yes. Many buildings use both protocols. BACnet may connect the main building controllers and management system, while Modbus connects meters, drives, or other equipment at the edge of the system.</p><p>A gateway can link them. It reads the Modbus registers from a device and presents the selected information to the building system as BACnet objects. This lets a BACnet-based building management system monitor equipment that only speaks Modbus.</p><h3>Sources</h3><p><a href="https://www.ashrae.org/technical-resources/technical-faqs/question-51-what-is-bacnet">[1] ASHRAE Technical FAQ 51: What is BACnet?</a><br><a href="https://bacnet.org/wp-content/uploads/sites/4/2022/06/The-Language-of-BACnet-1.pdf">[2] The Language of BACnet: Objects, Properties and Services</a><br><a href="https://www.modbus.org/file/secure/modbusprotocolspecification.pdf">[3] MODBUS Application Protocol Specification V1.1b3</a><br><a href="https://www.modbus.org/file/secure/modbusoverserial.pdf">[4] MODBUS over Serial Line Specification and Implementation Guide V1.0</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f60a619e8d65" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A Guide to AI Annotation]]></title>
            <link>https://medium.com/@ffkalapurackal/a-guide-to-ai-annotation-5aa6a97ddaca?source=rss-771768726edc------2</link>
            <guid isPermaLink="false">https://medium.com/p/5aa6a97ddaca</guid>
            <category><![CDATA[annotations]]></category>
            <category><![CDATA[computer-vision]]></category>
            <category><![CDATA[robotics-automation]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Frason Francis]]></dc:creator>
            <pubDate>Sat, 24 Jan 2026 14:58:30 GMT</pubDate>
            <atom:updated>2026-01-24T14:58:30.148Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vu1dwuWAhUlsF5l1gA8fZA.png" /></figure><p>In the age of artificial intelligence, we are surrounded by intelligent systems that can recognize faces, understand our speech, and even drive cars. But behind every one of these remarkable achievements lies a hidden, labor-intensive process that is the true backbone of modern AI: data annotation. While algorithms and models often take the spotlight, it is the high-quality, meticulously labeled data that fuels their learning and enables their success. This article provides an exploration of AI annotation, delving into its definition, importance, techniques, challenges and the future of this critical field.</p><p><strong>What is AI Annotation?<br></strong>AI annotation, also known as data labeling, is the process of adding informative labels or tags to raw data to make it understandable for machine learning models. This process is the cornerstone of supervised learning, a machine learning paradigm where models learn from data that has been manually labeled with the correct output. In essence, annotation provides the “ground truth” that a model uses to learn patterns and make accurate predictions on new, unseen data. The adage “garbage in, garbage out” is particularly resonant in machine learning; the quality of the training data directly determines the quality of the resulting model .</p><p><strong>The Critical Importance of High-Quality Annotation<br></strong>The significance of high-quality data annotation cannot be overstated. It is the primary factor that influences a model’s accuracy, reliability, and real-world performance. Inaccurate or inconsistent annotations can lead to a model learning incorrect patterns, resulting in poor performance and potentially harmful outcomes. For example, in the context of autonomous vehicles, a poorly annotated dataset could lead to a car failing to recognize a pedestrian, with catastrophic consequences.</p><p>Highquality annotation also plays a crucial role in bias reduction. If the training data is not representative of the real world or contains biased labels, the resulting model will perpetuate and even amplify those biases. By carefully curating and annotating datasets, we can mitigate bias and build fairer and more equitable AI systems.</p><p><strong>Types of Data in AI Annotation<br></strong>AI annotation can be applied to a wide variety of data types, each with its own unique set of challenges and techniques. The most common data types are:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/870/1*Xw5rASzc1zDZoe0QH0ynNw.png" /></figure><p><strong>Ensuring Quality<br></strong>Given the critical importance of annotation quality, it is essential to have robust processes for measuring and ensuring it. Several metrics are used to assess the consistency and accuracy of annotations, including:</p><ul><li>Inter-Annotator Agreement (IAA): This metric measures the level of agreement between multiple annotators. High IAA indicates that the annotation guidelines are clear and the annotators are consistent.</li><li>Common IAA metrics include Cohen’s Kappa and Fleiss’ Kappa .<br>Consensus: This approach involves having multiple annotators label the same data and using a majority vote to determine the final label.</li><li>Label Auditing: This involves having a senior annotator or domain expert review a sample of the labeled data to identify and correct errors.</li></ul><p><strong>Annotation Approaches<br></strong>Data annotation is a human-centric process and there are several different approaches to organizing and managing the annotation workforce:</p><ul><li>In-house teams: Many companies choose to build their own in-house annotation teams. This approach provides a high degree of control over the annotation process and allows for close collaboration between annotators and the machine learning team.</li><li>Crowdsourcing: Crowdsourcing platforms, such as Amazon Mechanical Turk and Toloka, can be used to outsource annotation tasks to a large, distributed workforce. This approach can be cost-effective and scalable, but it can also be challenging to ensure quality and consistency.</li></ul><p><strong>The Future of Annotation<br></strong>The field of AI annotation is constantly evolving, with new trends and technologies emerging all the time. Some of the most promising trends include:</p><ul><li>AI-assisted annotation: This approach uses machine learning models to pre-label data, which is then reviewed and corrected by human annotators. This can significantly speed up the annotation process and reduce costs.</li><li>Synthetic data generation: This involves creating artificial data that can be used to train machine learning models. This can be a useful way to supplement real-world data, especially for rare events or edge cases.</li></ul><p><strong>Conclusion<br></strong>AI annotation is a critical but often overlooked aspect of the machine learning pipeline. It is the process that transforms raw data into the fuel that powers intelligent systems. As AI continues to advance and become more integrated into our lives, the importance of high quality, reliable, and unbiased data annotation will only continue to grow. By investing in the right tools, processes and people, we can ensure that we are building AI systems that are not only powerful but also safe, fair and beneficial to society.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/835/0*ZDfKVmR8synWjLiJ.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5aa6a97ddaca" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[My experience at the OpenAI First AI Privacy Hackathon in Dublin]]></title>
            <link>https://medium.com/@ffkalapurackal/my-experience-at-the-openai-first-ai-privacy-hackathon-in-dublin-9b03aca32895?source=rss-771768726edc------2</link>
            <guid isPermaLink="false">https://medium.com/p/9b03aca32895</guid>
            <category><![CDATA[accountability-in-ai]]></category>
            <category><![CDATA[privacy-by-design]]></category>
            <category><![CDATA[privacy]]></category>
            <category><![CDATA[gdpr]]></category>
            <category><![CDATA[ai-privacy]]></category>
            <dc:creator><![CDATA[Frason Francis]]></dc:creator>
            <pubDate>Mon, 08 Dec 2025 11:46:51 GMT</pubDate>
            <atom:updated>2025-12-08T11:46:51.155Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6eFQ1EnB9jefQYZcyc-5Jg.jpeg" /></figure><p>When I went to OpenAI’s first AI Privacy Hackathon in Dublin. I showed up thinking it would be a typical hack day a few talks, some coding, lots of coffee, a late finish. It was that, but it was also more thoughtful than I expected. I left with a clearer sense of what “<strong>building with privacy in mind</strong>” actually looks like when you get past slogans.</p><h3>The opening conversation</h3><p>The first talk that really landed for me was the conversation with the Data Protection Commission. It was very direct about what the regulator actually does. I liked that it didn’t come across like a courtroom or a standoff. The message was simple they engage with companies before products launch and they look at new tech through GDPR. Same law, new tools.</p><p><strong><em>Two things stuck with me.<br></em>First</strong>, privacy depends on culture, not just compliance. If the whole team doesn’t care, privacy won’t survive contact with deadlines.<br><strong>Second</strong>, a lot of the regulator’s recommendations over the last few years are still about transparency. Just telling people what you are doing. That felt almost embarrassing for the industry, but also useful to hear plainly. It reminded me that trust is usually lost through small, avoidable decisions.</p><h3>A practical privacy tool in action</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Cm04xh2YCwOp0v4sPkWmKQ.jpeg" /></figure><p>One of the strongest demos for me was about something OpenAI has been working on called Privacy Filter. This was one of those talks where I found myself nodding along because it was so practical.</p><p>The setup was familiar with a lot of useful data is messy and personal at the same time. Engineers want to learn from error logs, forum posts, user feedback and training data, but those sources often include emails, phone numbers, IDs, names and random bits of personal detail that don’t help the task. They are just there.</p><p>Privacy Filter is meant to automatically find those identifiers and mask them. Not so the data becomes useless, but so you can still learn what matters without learning who said it.</p><p>What I liked was how the limits of older tools were explained. Rules and pattern matching are fine when the format is neat. But the real world isn’t neat. A phone number might be written out in words. An address might be public in one sentence and private in another. A number can look like a phone number, but be part of a math example. Context changes everything. The point was that a model that understands context can make better calls about what should be masked. For me, it was a good reminder that privacy work doesn’t always have to be grand or abstract. Sometimes it is just building a tool that does one job properly.</p><h3>The privacy agent talks</h3><p>Later on, the focus shifted from specific tools to bigger problems.<br>There were concrete examples of privacy agents acting as a layer inside a company. Agents that catch extra data during customer support calls. Agents that only keep what’s needed. Agents that enforce retention or help privacy teams answer internal questions faster. It was grounded in day to day reality.</p><p>Then another talk hit a different note. The argument was that <strong>manual privacy doesn’t scale anymore</strong>. People can’t read hundreds of notices or manage settings across dozens of products. It’s not laziness, it’s overload. <br>If rights are real, people need help exercising them.</p><p>I don’t think anyone in the room disagreed with the problem. Whether agents are the full answer is another question, but I appreciated the honesty of it. We keep writing policies that nobody reads and then act surprised when trust breaks.</p><h3>Group work</h3><p>After the talks I joined Group 2. Our theme was necessity and proportionality. Those can sound like legal words you put in a document and move on. In the group, we turned actual questions you can’t dodge:</p><p>What data do we really need for this feature?<br>What data are we collecting just because it’s easy?<br>If we can do the same thing with less, why aren’t we doing that?<br>Who gets hurt if we get this wrong?</p><p>That part of the day felt like the real point of the hackathon. Not building something flashy, but forcing ourselves to make tradeoffs visible.</p><h3>Leaving</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*1kr4WB3PMIPBnrA-" /></figure><p>By the end I was tired in the good way. I left with new people I’m glad I met, and also with my head a bit clearer.</p><p><strong>If I had to sum up what I took from the day, it’s this:<br></strong>Privacy isn’t a checkbox you add at the end. It is a set of small decisions that start early. It is about minimising what you collect, being clear about what you’re doing, and designing for the fact that normal people don’t have time to manage privacy manually. I’m glad I went. It felt more honest than most events. People weren’t pretending the answers are easy, but they also weren’t acting helpless. They were trying to build useful things without treating users as collateral damage. If there’s another one, I’d go again 😃</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/835/1*w68itBg7daiRo57CqNZqzw.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9b03aca32895" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Choosing the Right Pattern: 2PC or Saga for Distributed Transaction Management]]></title>
            <link>https://medium.com/@ffkalapurackal/choosing-the-right-pattern-2pc-or-saga-for-distributed-transaction-management-cf502af728be?source=rss-771768726edc------2</link>
            <guid isPermaLink="false">https://medium.com/p/cf502af728be</guid>
            <category><![CDATA[distributed-transaction]]></category>
            <category><![CDATA[consistency-model]]></category>
            <category><![CDATA[microservice-architecture]]></category>
            <category><![CDATA[two-phase-commit]]></category>
            <dc:creator><![CDATA[Frason Francis]]></dc:creator>
            <pubDate>Sun, 30 Nov 2025 23:34:08 GMT</pubDate>
            <atom:updated>2025-11-30T23:34:08.910Z</atom:updated>
            <content:encoded><![CDATA[<p>In today’s technology landscape, there is a notable trend towards shifting from monolithic systems to distributed systems, largely due to the increased flexibility and scalability they offer. However, this shift also brings new complexities. One significant challenge in distributed systems is ensuring data consistency across multiple nodes.</p><p>Consider a simple online order: a single click must trigger a payment, update inventory, and schedule a delivery, all managed by separate microservices. Ensuring that these operations succeed or fail as a cohesive unit is a critical design challenge.</p><p>To address this issue, architects often employ two well-known yet fundamentally different approaches: the Two-Phase Commit (2PC) protocol and the Saga Pattern. The 2PC protocol provides atomic certainty but at the cost of increased coordination, whereas the Saga Pattern offers scalable resilience by embracing eventual consistency. Understanding the core trade-offs between these approaches is essential for building robust, high-performing distributed systems.</p><p><strong>The Trade-Off: You Can Achieve Perfect Consistency or Massive Scale, But Rarely Both<br></strong>The primary difference between Two-Phase Commit and the Saga Pattern is their approach to data consistency. Two-Phase Commit ensures strong consistency by maintaining atomicity, which means that all participating nodes in a distributed transaction must either commit or roll back the transaction together. For example, in our online shop, this guarantees that payment, inventory updates, and delivery scheduling occur as a single, indivisible operation, or not at all.</p><p>In contrast, the Saga Pattern provides eventual consistency rather than strong consistency. It breaks a significant transaction into a series of independent local transactions, where each service commits its own work immediately. This approach allows for greater independence and scalability, but can result in temporary inconsistencies as some steps may succeed while others have not yet been completed.</p><p>This highlights a fundamental principle in distributed systems design: Strong consistency usually harms scalability. This is because the guarantee of atomicity requires significant coordination overhead and forces participating services to hold resource locks across the network, which directly impedes performance at scale.</p><p><strong>The Bottleneck of Perfection: Why 2PC Struggles with Long Running Tasks<br></strong>The nature of the business process heavily influences the choice between different transaction patterns. The Two-Phase Commit (2PC) protocol is best suited for short-lived transactions. As a result, 2PC is typically used in tightly coupled internal systems where transaction speed is predictable. However, it is rarely a suitable choice for processes involving external APIs or user interactions. The primary reason is that 2PC requires resource locks to be held across all services until the entire transaction is either committed or aborted.</p><p>For long running processes, this approach becomes untenable. For example, in an online shop, a 2PC transaction would lock both the customer’s payment record and the product’s inventory record until the delivery service confirms the order. If that service responds slowly, these locks can lead to cascading system-wide slowdowns, severely affecting availability as other customers are blocked from purchasing the same product.</p><p>In contrast, the Saga Pattern is better suited to long-lived transactions. Since each local transaction is independent and commits its work immediately, it does not hold system-wide locks for the entire duration of the business process. This approach minimises performance bottlenecks and makes it a better fit for complex workflows.</p><p><strong>Planning for Failure: How Sagas “Undo” Mistakes<br></strong>The two patterns have fundamentally different mechanisms for handling failures. The Saga Pattern decomposes a large transaction into a sequence of smaller, independent local transactions. When a failure occurs, it doesn’t simply roll back in the traditional database sense. Instead, Sagas rely on compensating transactions.</p><p>A compensating transaction is not a database ROLLBACK but an entirely new transaction that applies an inverse business operation. For example, if the <em>Inventory Service</em> fails to reserve an item after a payment has been made, the compensating transaction for the <em>Payment Service</em> would be a new operation that explicitly issues a refund. This approach requires developers to design how to reverse each step of the workflow carefully.</p><p>If a local transaction fails, the saga executes a series of compensating transactions to undo changes made by prior local transactions.</p><p>Architecting a saga involves understanding its distinct transaction types:<br>• <strong>Compensable Transactions:</strong> Steps that a corresponding compensating transaction can reverse. <br>• <strong>Pivot Transaction:</strong> The “go/no-go” point. Once the pivot transaction commits, the saga is guaranteed to run to completion. It can be the last compensable transaction or the first that is guaranteed to succeed.<br>• <strong>Retryable Transactions:</strong> Steps that follow the pivot transaction and are guaranteed to succeed.</p><p>Sagas can be implemented with a central manager (<em>Orchestration</em>), which sends explicit <em>commands</em> to each service, or a decentralised, event-based approach (<em>Choreography</em>), where services publish and react to each other’s <em>events</em>.</p><p><strong>Which Philosophy Fits Your System?<br></strong>Both Two-Phase Commit and the Saga Pattern are valid solutions for managing distributed transactions, but they operate on different principles. 2PC emphasises immediate, strong consistency by blocking resources until completion, whereas the Saga Pattern offers eventual consistency through a series of compensating transactions, enabling greater scalability and resilience.</p><p>The decision is not about which pattern is ‘better,’ but which aligns best with your system’s goals. As the source material notes, ‘the choice may depend on the specific requirements of consistency, scalability, and fault tolerance of the system.’ Understanding your business domain’s tolerance for inconsistency is key. Can an inventory item be temporarily reserved while payment is processed (Saga), or must the payment and stock deduction be an indivisible, atomic operation (2PC)? When designing your system, consider whether immediate, atomic certainty or resilient, scalable flexibility is more critical.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/835/1*w68itBg7daiRo57CqNZqzw.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cf502af728be" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[My Journey into System Design: 7 Patterns Decoded]]></title>
            <link>https://medium.com/@ffkalapurackal/my-journey-into-system-design-7-patterns-decoded-225a8dfd8fa8?source=rss-771768726edc------2</link>
            <guid isPermaLink="false">https://medium.com/p/225a8dfd8fa8</guid>
            <category><![CDATA[microservices-pattern]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[design-systems]]></category>
            <category><![CDATA[software-architecture]]></category>
            <dc:creator><![CDATA[Frason Francis]]></dc:creator>
            <pubDate>Fri, 21 Nov 2025 22:26:25 GMT</pubDate>
            <atom:updated>2025-11-21T22:26:25.609Z</atom:updated>
            <content:encoded><![CDATA[<p>Hi all, lately I’ve been trying to wrap my head around different architectural patterns. It can be super confusing, but I found this awesome diagram that breaks them down really clearly. I thought I’d share my thoughts on it and what I’ve learned so far.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FOUo4igHcBGpldhHnWU0LQ.png" /></figure><p>Let’s walk through the patterns shown in the above image:</p><p><strong>1. MVC (Model-View-Controller): <br></strong>This pattern divides an application into three interconnected parts to separate internal data representation from the user interface.</p><ul><li><strong>Pros:</strong> It forces a clean separation of concerns, allowing frontend and backend developers to work in parallel without conflicting.</li><li><strong>Cons:</strong> It introduces unnecessary complexity and boilerplate code for very simple or small applications.</li><li><strong>Example:</strong> <strong>Instagram</strong> (in its early years) ran on a massive instance of the Django framework (which is MVC-based) to handle millions of users before they had to break it up.</li></ul><p><strong>2. Master-Slave (Primary-Replica):<br></strong>This is a database architecture where a central node handles all data writes while multiple other nodes handle read requests to distribute the load.</p><ul><li><strong>Pros:</strong> It significantly improves the performance of read-heavy applications by spreading traffic across multiple servers.</li><li><strong>Cons:</strong> There is a risk of “replication lag,” meaning a user might write data to the Master and try to read it from a Slave before the Slave has updated.</li><li><strong>Example:</strong> <strong>GitHub</strong> relies heavily on MySQL replication; they use a custom tool called “freno” to manage the lag between their primary database and the read replicas.</li></ul><p><strong>3. Monolithic Architecture:<br></strong>This approach bundles the user interface, business logic, and data access into a single, deployable unit that shares a single database.</p><ul><li><strong>Pros:</strong> It is the easiest architecture to develop, test, and deploy when starting a new project because everything is in one place.</li><li><strong>Cons:</strong> If a single component introduces a memory leak or critical bug, it can bring down the entire application.</li><li><strong>Example:</strong> <strong>Stack Overflow</strong> runs one of the highest-traffic sites in the world on a surprisingly structured .NET Monolith, proving you don’t always need microservices to scale.</li></ul><p><strong>4. Microservice Architecture:<br></strong>This structure breaks an application into a collection of small, independent services that communicate via APIs, each with its own database.</p><ul><li><strong>Pros:</strong> It allows different teams to write services in different programming languages and scale only the specific parts of the app that need it.</li><li><strong>Cons:</strong> It introduces massive operational complexity; debugging a transaction that spans five different services is extremely difficult.</li><li><strong>Example:</strong> <strong>Netflix</strong> is the pioneer of this pattern; they run over 1,000 distinct microservices, where one handles billing, another handles video encoding, and another handles the “Top 10” list.</li></ul><p><strong>5. Event-Driven:<br></strong>In this pattern, components do not call each other directly; instead, they trigger events that other components subscribe to and react to asynchronously.</p><ul><li><strong>Pros:</strong> It highly decouples the system, meaning you can add new features (Consumers) without modifying the code that generates the data (Producers).</li><li><strong>Cons:</strong> The flow of the application is non-linear, making it very hard to trace exactly what happened and in what order when things go wrong.</li><li><strong>Example:</strong> <strong>Uber</strong> uses this for their trip architecture; when a trip is completed, an event fires that simultaneously triggers the payment processing service, the email receipt service, and the driver rating service.</li></ul><p><strong>6. SOA (Service Oriented Architecture):<br></strong>This architecture organises software into distinct services that communicate over a central “Enterprise Service Bus” (ESB) to share logic across the enterprise.</p><ul><li><strong>Pros:</strong> It is excellent for integrating messy, legacy systems in large organisations, allowing new apps to reuse old mainframe data.</li><li><strong>Cons:</strong> The centralised ESB can become a bottleneck and a single point of failure for the entire organisation.</li><li><strong>Example:</strong> <strong>Amazon</strong> (circa 2002) famously shifted to this when Jeff Bezos issued the “API Mandate,” forcing all internal teams to expose their data and functionality through service interfaces, laying the groundwork for AWS.</li></ul><p><strong>7. Layered (N-Tier) Architecture:<br></strong>This standard structure organises code into horizontal logical layers (Presentation, Business, Persistence, Database) where data flows sequentially downwards.</p><ul><li><strong>Pros:</strong> It is standard and predictable; new developers can immediately understand where to find code based on its function.</li><li><strong>Cons:</strong> It can lead to performance issues because data must travel through every single layer, even if no logic is applied (the “sinkhole” problem).</li><li><strong>Example:</strong> <strong>WordPress</strong> is the classic example; it has a distinct Presentation layer (Themes), a Business/Application layer (Core PHP files), and a Database layer (MySQL) that interact in a strict hierarchy.</li></ul><h3><strong>Conclusion</strong></h3><p>Visualising these patterns helped me move from <em>just coding</em> to actually thinking about design. I know there isn’t one <em>best</em> pattern, but having these in my toolkit makes me feel much more confident walking into a technical meeting.</p><p>Which of these are you using in your current job? Let me know in the comments!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=225a8dfd8fa8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[TOON vs. JSON vs. YAML: Token Efficiency Breakdown for LLM]]></title>
            <link>https://medium.com/@ffkalapurackal/toon-vs-json-vs-yaml-token-efficiency-breakdown-for-llm-5d3e5dc9fb9c?source=rss-771768726edc------2</link>
            <guid isPermaLink="false">https://medium.com/p/5d3e5dc9fb9c</guid>
            <category><![CDATA[ai-efficiency]]></category>
            <category><![CDATA[llm-large-language-model]]></category>
            <category><![CDATA[ai-optimization]]></category>
            <category><![CDATA[tokenization]]></category>
            <category><![CDATA[structured-data]]></category>
            <dc:creator><![CDATA[Frason Francis]]></dc:creator>
            <pubDate>Fri, 14 Nov 2025 10:51:46 GMT</pubDate>
            <atom:updated>2025-11-14T10:51:46.797Z</atom:updated>
            <content:encoded><![CDATA[<p>JSON remains the default format for structuring information in prompts, and for good reason. It is predictable, widely supported and large language models (LLMs) tend to parse it reliably. YAML is a nearby alternative, providing a more human-friendly version with less syntactic complexity.<br><strong>Toon (Token Oriented Object Notation)</strong> is a newer, lightweight format specifically designed for token efficiency. At first glance TOON resembles a hybrid of JSON and CSV but its main purpose is to reduce structural overhead enabling large language models (LLMs) to use fewer tokens.</p><p>After experimenting with it, I put together a breakdown showing where TOON shines… and where it doesn’t.</p><h3>1. Flat / Tabular Data: Where TOON Really Wins</h3><p>Let’s start with a simple user list and look at the token counts across each format.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jcoal0MZGlu84K2GNk43aA.png" /><figcaption>JSON — 49 tokens || YAML — 41 tokens || TOON — 26 tokens</figcaption></figure><h4>Token Efficiency</h4><ul><li>YAML: <strong>16% fewer</strong> tokens than JSON</li><li>TOON: <strong>47% fewer</strong> tokens than JSON</li></ul><h3>Conclusion</h3><p>For flat, uniform, table-like data, TOON is incredibly efficient. You define the schema once and list your rows no repeating field names, no quotes, no braces. This is exactly the type of structure that LLMs parse well and cheaply.</p><h3>2. Deeply Nested Data: Where TOON Starts To Struggle</h3><p>Now let’s try something a bit more realistic: nested objects, lists, and mixed types.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*K82Jv06RA8f21Zejk_RgDg.png" /><figcaption>JSON — 102 tokens || YAML — 88 tokens || TOON — 95 tokens</figcaption></figure><h4>Token Comparison</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2IHRQvhlUDqJSTINssSpTQ.png" /></figure><h3>Conclusion</h3><p>As the data becomes more hierarchical, TOON loses its advantage.<br> The representation becomes:</p><ul><li>harder to read</li><li>harder to maintain</li><li>less token-efficient</li></ul><p>At this point, JSON and YAML do a better job preserving structure and clarity.</p><h3>Final Takeaway</h3><p>TOON has significant strengths, especially for flat and uniform datasets where maximum token efficiency is needed. In these instances, savings can be dramatic, reaching up to approximately 50%. But for nested, irregular, or highly structured data?</p><p>JSON and YAML still win:</p><ul><li>clearer intent easier</li><li>to work with more</li><li>predictable parsing</li></ul><p>So the sweet spot seems to be:</p><ul><li><strong>Use TOON for tabular or repeated row-based data.</strong></li><li><strong>Use JSON/YAML for anything hierarchical or complex.</strong></li></ul><p>If you are optimizing prompts for LLM systems, consider adding TOON to your toolbox where it is most applicable.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5d3e5dc9fb9c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Understanding how Blockchain and NFT Works]]></title>
            <link>https://medium.com/@ffkalapurackal/understanding-how-blockchain-and-nft-works-c23e139d425e?source=rss-771768726edc------2</link>
            <guid isPermaLink="false">https://medium.com/p/c23e139d425e</guid>
            <category><![CDATA[smart-contracts]]></category>
            <category><![CDATA[nft]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[cryptocurrency]]></category>
            <category><![CDATA[technology]]></category>
            <dc:creator><![CDATA[Frason Francis]]></dc:creator>
            <pubDate>Fri, 04 Feb 2022 07:37:01 GMT</pubDate>
            <atom:updated>2022-02-04T07:51:10.076Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/680/1*NpuqLYnD1orvEXi9iA-B6Q.jpeg" /></figure><p>Have you heard about NFT-related topics lately? 🤔<br>I would like to explain what NFTs are later, but for the time being, NFTs can be thought of as a type of cryptographic asset similar to Bitcoin, both of which are realized by blockchain technology. If you search the NFT news on the Web, you will find many topics such as high prices and various companies entering or considering entering as a business. In this respect, it can be said that blockchain is attracting attention again, and I think some of you may be thinking about working on blockchain.</p><p>On the other hand, I think that those who have been chasing blockchain for a long time feel that one of their favorite use cases has finally begun to spread. Blockchain originally appeared as a basic technology of Bitcoin, and is suitable for use cases as a platform for distributing value digitally. But what is the reason? It may be difficult to explain to those who are going to work on blockchain.</p><p>In order to use blockchain well and think about its use cases, in addition to knowledge of the technical elements of blockchain, knowledge of plus alpha to make good use of the technical features of blockchain is required. Once you have that kind of general knowledge, you will understand what the NFT works like and why it is attracting attention. In reality, there are already many sources of information all over the world, but it is difficult to find useful information from them. Based on such a situation, in this series, we will introduce the key points for mastering blockchain, assuming those who are going to work on blockchain and those who want to increase the number of friends who are familiar with blockchain but have difficulty in explaining.</p><h3><strong>Tokens and substitutability</strong></h3><p>Here, I will explain the concept of <strong>F</strong> and<strong> T </strong>of <strong>NFT</strong>, that is, Fungible and Token. I think that knowing the concept will help clarify the purpose for which NFTs and blockchains are used, for example, to think about how to utilize them in business. First of all, T (token). Think of a token in the blockchain world as something that digitally expresses some value, almost as it is in the meaning of English words. In fact, cryptocurrencies such as Bitcoin and Ethereum are also types of tokens, and tokens can be thought of as a broad and general term for such value expressions. As explained below, NFT is also a concept that belongs to a part of the category of tokens, so tokens are a broader concept on which they are based. Tokens can be considered in several classification axes depending on the type of value expression, one of which is NFT’s F (fungibility). In the classification of substitutability, Fungible Token (FT: substitutable token, hereinafter abbreviated as FT) and Non-Fungible Token (NFT: non-fungible token, hereinafter abbreviated as NFT), It is divided into two types of tokens. Fungibility is easy to understand when considering with concrete examples. FT is something that is expressed in quantity or unit such as points of money or point card, NFT is one point such as art or land, and there is no change in quantity or unit. Corresponds to each of those that cannot be represented by (Table 1).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/797/1*6pem_sYLnk_22tx6bCheww.jpeg" /><figcaption>Table 1 Two token types classified by substitutability</figcaption></figure><p>However, the FT / NFT classification is not absolute for the object of value. For example, when considering money, if it is something like the balance of a bank account, the value does not change even if you exchange the number of the amount, so it is FT, but it is treated as a thing strictly based on the serial number assigned to the bill. And, even if the face value of the two bills is the same, it is NFT because it cannot be simply exchanged as two different things. In other words, which token to use, FT or NFT, depends on what you want to express in the token.</p><h3><strong>Tokens and blockchain</strong></h3><p>Tokens are some kind of digital value expression, and one of the concrete examples of tokens is cryptocurrency assets such as Bitcoin. In other words, blockchain was the first system infrastructure technology for Bitcoin, and it can be said that blockchain is a system for tokens in the first place. Of course, such a system can be realized without a blockchain. For example, when using a conventional client-server system, the digital data of the token is placed on the central database server, the data is processed by the application server, and the service is provided to the client via the Web server. It will be considered.</p><p>However, blockchain has an advantage over traditional systems. We will consider two perspectives in order as differentiating factors that bring about superiority. The first is the perspective of the service as a system created by the function of the token, and the second is the perspective of the platform as the system infrastructure that executes the service. From the point of view of the first service, there is not much difference between the conventional system and the blockchain in terms of developing a program to realize the function of the token, but in the blockchain, an element called a smart contract will appear. Next, I will explain about smart contracts.</p><h3><strong>Token and blockchain smart contracts</strong></h3><p>The element for realizing some kind of service on the blockchain is a smart contract. Blockchain smart contracts are program code written in some programming language and can execute anything that can be expressed in code.</p><p>In fact, the concept of smart contracts themselves appeared long before blockchain ( see <a href="https://en.wikipedia.org/wiki/Smart_contract#:~:text=From%20Wikipedia%2C%20the%20free%20encyclopedia%20A%20smart%20contract,the%20terms%20of%20a%20contract%20or%20an%20agreement.">Wikipedia Smart contract</a> , etc.) and were imported into the blockchain world. At the beginning of the concept proposal, smart contracts represented the automatic execution of “contracts” by computer systems, just like “<strong>Smart Contracts</strong>” in English, but smart contracts on blockchain are limited to contracts. It represents all the processing on the blockchain.</p><p>Tokens are realized by smart contracts. Token is a service that deals with digital value exchange, so what should we be able to provide as a basic function? If you think about it again, you may not know where to start, but in such a case, the object of the digital world is a reflection of the real world, and the function is considered from the value exchange service (money, stocks, etc.) in the real world. One idea is to try it.</p><p>With that in mind, the basic functions required are issuing value (printing bills), owning (storing value in a wallet or bank account), and transferring (sending money). Therefore, in the case of smart contracts for tokens, it is only necessary to write rules for the maximum amount of issuance, definitions of data types such as accounts that manage the ownership status of tokens, and programs for processing account data.</p><p>In this way, the program developer is free to decide what to do with the smart contract and how. With smart contracts for tokens, it’s all up to the developer to define what value they have and what rules they issue and distribute.</p><p>After writing the code for the smart contract, compile it into a format that can be executed on the blockchain, and install the executable format on the blockchain to execute it (generally called deploy). Blockchain is a platform for executing smart contracts. The factor that differentiates smart contracts from the processing on the server of the conventional system comes from the characteristics of the blockchain from the viewpoint of the execution platform.</p><h3>Summary &amp; Closing thoughts</h3><p>Recently, NFTs and blockchains have been booming. NFT is a kind of mechanism called a token that expresses some value in the digital world. NFT is an abbreviation for Non-Fungible Token. As specific examples of FT and NFT, those that are expressed in quantity or unit such as money or points on point cards correspond to FT, and those that are one-of-a-kind such as works of art and land correspond to NFT. With tokens, you can realize value exchange services on the blockchain. Services on the blockchain such as tokens are realized by smart contracts. The substance of a smart contract is the logic of a service written as program code. The platform that executes smart contracts is the blockchain, and the point that differentiates the services provided by smart contracts from the services of conventional systems comes from the characteristics of blockchain.</p><p>With this article I hope to have covered the major factors regarding how blockchain and NFT works together. My primary goal has been to help those who are searching for a blockchain and are new to this field. I hope you have enjoyed reading this post and have got more insights about the working of blockchain and NFT.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/1*a3JJQKrfiIESPZBDuQVJfA.png" /></figure><p><em>Enjoyed reading this post? Connect with us on </em><strong><em>Minority Programmers Association (Code, Culture, Community)</em></strong></p><p><strong><em>&gt;</em></strong><em>Website: </em><a href="https://www.minorityprogrammers.com/">https://www.minorityprogrammers.com</a><br><strong><em>&gt; </em></strong><em>Discord server: </em><a href="https://discord.gg/9zDEcYZ35k">https://discord.gg/9zDEcYZ35k</a><em><br></em><strong><em>&gt;</em></strong><em>Minority DAO: </em><a href="https://snapshot.org/#/minorityprogrammers.eth">https://snapshot.org/#/minorityprogrammers.eth</a><em><br></em><strong><em>&gt;</em></strong><em>Minority NFT Drop: </em><a href="https://www.minoritynft.com/">https://www.minoritynft.com/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c23e139d425e" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>