<?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 Kaveeshasewmini on Medium]]></title>
        <description><![CDATA[Stories by Kaveeshasewmini on Medium]]></description>
        <link>https://medium.com/@kaveeshasewmini161?source=rss-97619f5428d0------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*Eb9tSZJqbhsuJjpG</url>
            <title>Stories by Kaveeshasewmini on Medium</title>
            <link>https://medium.com/@kaveeshasewmini161?source=rss-97619f5428d0------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 18:08:47 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@kaveeshasewmini161/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[Semantic Web and Knowledge Representation]]></title>
            <link>https://medium.com/@kaveeshasewmini161/semantic-web-and-knowledge-representation-857b467b31ef?source=rss-97619f5428d0------2</link>
            <guid isPermaLink="false">https://medium.com/p/857b467b31ef</guid>
            <dc:creator><![CDATA[Kaveeshasewmini]]></dc:creator>
            <pubDate>Mon, 04 May 2026 17:10:52 GMT</pubDate>
            <atom:updated>2026-05-04T17:18:04.862Z</atom:updated>
            <content:encoded><![CDATA[<p>The Semantic Web is an extension of the traditional World Wide Web that enables machines to understand and interpret data meaningfully rather than simply displaying it. Instead of a “web of documents,” it creates a web of data, where information is structured and linked to allow intelligent processing and reasoning.</p><p>Semantic Web technologies form the backbone of knowledge representation, allowing systems to model real-world entities, relationships, and concepts in a machine-readable format.</p><h3>Core Technologies of the Semantic Web</h3><h4>Resource Description Framework (RDF)</h4><p>RDF (Resource Description Framework) is a standard model for representing data as triples:</p><ul><li>Subject</li><li>Predicate</li><li>Object</li></ul><p><strong>Example</strong>: (Paris, isCapitalOf, France)</p><p>RDF allows data to be interconnected and uniquely identified using URIs.</p><p><strong>When to use:</strong></p><ul><li>Data integration across multiple sources</li><li>Representing relationships between entities</li><li>Building knowledge graphs</li></ul><p><strong>Advantages:</strong></p><ul><li>Simple and flexible structure</li><li>Enables data linking and interoperability</li><li>Machine-readable and standardized</li></ul><p><strong>Limitations:</strong></p><ul><li>Limited expressiveness (basic relationships only)</li><li>Can become complex at scale</li></ul><h4>RDF Schema (RDFS)</h4><p>RDFS extends RDF by introducing schema-level constructs, such as:</p><ul><li>Classes (rdfs:Class)</li><li>Subclasses (rdfs:subClassOf)</li><li>Properties</li></ul><p>It adds basic semantics to RDF data.</p><p><strong>When to use:</strong></p><ul><li>Defining hierarchies and vocabularies</li><li>Adding structure to RDF datasets</li></ul><p><strong>Advantages:</strong></p><ul><li>Adds meaning and structure</li><li>Enables simple reasoning</li></ul><p><strong>Limitations:</strong></p><ul><li>Limited expressiveness compared to OWL</li><li>Cannot define complex constraints</li></ul><h4>Web Ontology Language (OWL)</h4><p>OWL is a more expressive language used to define ontologies, formal representations of knowledge domains, including rules and constraints.</p><p><strong>When to use:</strong></p><ul><li>Complex domain modeling</li><li>AI and reasoning systems</li><li>Semantic applications requiring inference</li></ul><p><strong>Advantages:</strong></p><ul><li>High expressiveness</li><li>Supports logical reasoning and inference</li><li>Enables consistency checking</li></ul><p><strong>Limitations:</strong></p><ul><li>Computationally expensive</li><li>Complex to design and maintain</li></ul><h4>SPARQL (Query Language)</h4><p>SPARQL is the standard query language for RDF data, similar to SQL for relational databases. It retrieves and manipulates data stored as RDF triples.</p><p><strong>When to use:</strong></p><ul><li>Querying knowledge graphs</li><li>Extracting structured data from RDF datasets</li></ul><p><strong>Advantages:</strong></p><ul><li>Powerful graph pattern matching</li><li>Works across distributed data sources</li><li>Flexible querying of relationships</li></ul><p><strong>Limitations:</strong></p><ul><li>Complex syntax for beginners</li><li>Performance challenges on large datasets</li></ul><h4>Ontologies</h4><p>Ontologies define concepts, relationships, and rules within a domain, acting as a blueprint for organizing knowledge.</p><p><strong>When to use:</strong></p><ul><li>Domain modeling (healthcare, finance, education)</li><li>Knowledge sharing and reuse</li></ul><p><strong>Advantages:</strong></p><ul><li>Clear conceptual structure</li><li>Enables reasoning and inference</li></ul><p><strong>Limitations:</strong></p><ul><li>Time-consuming to design</li><li>Requires domain expertise</li></ul><h4>Knowledge Graphs</h4><p>Knowledge graphs are structured representations of entities and their relationships in graph form, often based on RDF triples.</p><p><strong>When to use:</strong></p><ul><li>Search engines</li><li>Recommendation systems</li><li>AI and analytics</li></ul><p><strong>Advantages:</strong></p><ul><li>Connects heterogeneous data</li><li>Supports reasoning and insights</li><li>Scalable and flexible</li></ul><p><strong>Limitations:</strong></p><ul><li>Data integration complexity</li><li>Requires maintenance and governance</li></ul><h3>Relationship Between Technologies</h3><p>These technologies work together as a stack:</p><ul><li>RDF → Data model (triples)</li><li>RDFS → Basic schema</li><li>OWL → Advanced ontology and reasoning</li><li>SPARQL → Query language</li><li>Knowledge Graphs → Real-world implementation</li></ul><h3>Example: University Knowledge Representation</h3><p>Consider a simple university domain:</p><h4>RDF Triples:</h4><p>(Alice, studiesAt, UniversityX)</p><p>(UniversityX, locatedIn, SriLanka)</p><h4>RDFS:</h4><p>Student ⊆ Person</p><p>University ⊆ Organization</p><h4>OWL:</h4><p>If someone studiesAt a university → they are a Student</p><p>Define constraints (e.g., every student must belong to a university)</p><h4>Knowledge Graph:</h4><p>Nodes: Alice, UniversityX, Sri Lanka</p><p>Edges: studiesAt, locatedIn</p><p>SPARQL Query Example:</p><pre>SELECT ?student<br>WHERE {<br>?student :studiesAt :UniversityX .<br>}</pre><p>This query retrieves all students studying at UniversityX.</p><h3>Advantages of Semantic Web Technologies</h3><ul><li>Enables machine understanding of data</li><li>Improves data integration and interoperability</li><li>Supports intelligent reasoning and automation</li><li>Facilitates knowledge discovery</li></ul><h3>Limitations and Challenges</h3><ul><li>High complexity and learning curve</li><li>Performance issues with large datasets</li><li>Lack of widespread adoption compared to traditional databases</li><li>Requires well-defined ontologies</li></ul><p>Semantic Web technologies provide a powerful framework for knowledge representation and intelligent data processing. By combining RDF, RDFS, OWL, SPARQL, ontologies, and knowledge graphs, systems can move beyond simple data storage to meaningful understanding and reasoning, enabling advanced applications in AI, search, and data analytics.</p><h3>References</h3><ul><li><a href="https://www.geeksforgeeks.org/semantic-web-and-rdf/?utm_source=chatgpt.com">Semantic Web and RDF (GeeksforGeeks)</a></li><li><a href="https://www.geeksforgeeks.org/data-analysis/what-is-a-knowledge-graph/?utm_source=chatgpt.com">What is a Knowledge Graph? (GeeksforGeeks)</a></li><li><a href="https://www.ontotext.com/knowledgehub/fundamentals/what-is-sparql/?utm_source=chatgpt.com">What is SPARQL? (Ontotext)</a></li><li><a href="https://www.ontotext.com/knowledgehub/fundamentals/what-is-rdf/?utm_source=chatgpt.com">What is RDF? (Ontotext)</a></li><li><a href="https://www.ontotext.com/knowledgehub/fundamentals/what-is-the-semantic-web/?utm_source=chatgpt.com">What is the Semantic Web? (Ontotext)</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=857b467b31ef" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Understanding APIs and Communication Technologies: The Backbone of Modern Software Communication]]></title>
            <link>https://medium.com/@kaveeshasewmini161/understanding-apis-and-communication-technologies-the-backbone-of-modern-software-communication-22e037d54b9c?source=rss-97619f5428d0------2</link>
            <guid isPermaLink="false">https://medium.com/p/22e037d54b9c</guid>
            <category><![CDATA[api]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[rest-api]]></category>
            <category><![CDATA[backend-development]]></category>
            <category><![CDATA[software-engineering]]></category>
            <dc:creator><![CDATA[Kaveeshasewmini]]></dc:creator>
            <pubDate>Sat, 25 Apr 2026 10:53:45 GMT</pubDate>
            <atom:updated>2026-04-25T10:53:45.750Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ia0PxvjCB5paD8XukkTuDA.png" /></figure><h3>What is an API?</h3><p>An <strong>API (Application Programming Interface)</strong> is a set of rules and protocols that allows different software applications to communicate with each other. Instead of building everything from scratch, developers use APIs to request and exchange data or functionality from other systems.</p><p>Think of an API like a waiter in a restaurant:</p><p>you (the client) place an order, the waiter (API) takes it to the kitchen (server), and then brings back your food (response).</p><h3>What Are APIs Used For?</h3><p>APIs are used in almost every digital system today. Some common uses include:</p><ul><li><strong>Web applications</strong>: Fetching data from servers (e.g., weather apps, social media feeds)</li><li><strong>Mobile apps</strong>: Communicating with backend services</li><li><strong>Payment systems</strong>: Processing transactions securely</li><li><strong>Cloud services</strong>: Connecting to storage, AI, or computing platforms</li><li><strong>Integration</strong>: Linking different systems (e.g., CRM + email marketing tools)</li></ul><h3><strong>REST API (Representational State Transfer)</strong></h3><h4>What is a REST API?</h4><p>A <strong>REST API</strong> is a way for different computer programs to <strong>talk to each other over the internet</strong>.</p><p>Think of it like this:<br> You (the client) ask a question, and a server gives you an answer.</p><p>For example:</p><blockquote>You open a weather app</blockquote><blockquote>The app asks a server: <em>“What’s the weather today?”</em></blockquote><blockquote>The server sends back the answer (usually in <strong>JSON format</strong>)</blockquote><p>REST is <strong>not a protocol</strong>, it’s just a <strong>set of rules or a style. </strong>It tells developers <strong>how to design APIs</strong>, while <strong>HTTP</strong> is what actually sends the data</p><h4>When Do We Use REST APIs?</h4><p>REST APIs are used almost everywhere:</p><ul><li>Mobile apps (like Instagram, WhatsApp)</li><li>Websites</li><li>Online shopping apps</li><li>Cloud systems</li><li>Social media platforms</li></ul><p>Whenever one system needs to <strong>get or send data to another system</strong>, REST APIs are used.</p><h4>How REST APIs Work</h4><p>Here’s how it works step by step:</p><ol><li>A client (like your app or browser) sends a request to a <strong>URL</strong></li><li>It uses something called an <strong>HTTP method</strong> (like GET or POST)</li><li>The server receives the request and processes it</li><li>The server sends back a <strong>response</strong> (data + a status code like 200 for success)</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0pLAE7q6XWEQqFiIIVD3Zg.png" /></figure><h4>Technologies Used in REST APIs</h4><h4>Protocols</h4><ul><li>HTTP / HTTPS</li></ul><h4>Data Formats</h4><ul><li>JSON</li></ul><h4>Key Features of REST APIs</h4><ol><li><strong>Stateless — </strong>The server does not remember anything about you. Every request must include all the information needed.</li><li><strong>Client–Server Architecture — </strong>The client (app) and server (data provider) are separate. This makes systems easier to manage and improve.</li><li><strong>Cacheable — </strong>Some answers can be saved (cached), so the system doesn’t need to ask again.</li><li><strong>Uniform Interface — </strong>REST APIs follow simple and consistent rules. So developers don’t get confused and it works the same way everywhere.</li><li><strong>Layered System — </strong>There can be multiple layers between client and server (like security, load balancers). But the client doesn’t need to know about them.</li></ol><h3>SOAP API (Simple Object Access Protocol)</h3><h4>What is a SOAP API?</h4><p>A <strong>SOAP API</strong> is a way for different computer systems to <strong>communicate with each other over the internet</strong> using a <strong>strict set of rules</strong>.</p><p>It works by sending messages in a special format called <strong>XML</strong>.</p><p>Think of it like this:</p><blockquote>You send a message in a <strong>very strict format</strong></blockquote><blockquote>The server understands it and sends a reply in the <strong>same format</strong></blockquote><p>SOAP is a <strong>protocol</strong> (a strict rule system). It defines <strong>exactly how messages should be sent and received. </strong>It is more <strong>structured and strict</strong> compared to REST.</p><h4>When Do We Use SOAP APIs?</h4><p>SOAP APIs are mostly used in:</p><ul><li>Banking systems</li><li>Payment processing systems</li><li>Enterprise (large company) applications</li><li>Systems that need <strong>high security and reliability</strong></li></ul><p>SOAP is used when systems need to be <strong>very secure, strict, and reliable</strong>.</p><h4>How SOAP APIs Work</h4><p>Here’s how it works step by step:</p><ol><li>A client sends a request as an <strong>XML message</strong></li><li>The message has a special structure (Envelope, Header, Body)</li><li>The server reads the message and processes it</li><li>The server sends back an <strong>XML response</strong></li></ol><p>SOAP messages always follow a <strong>fixed structure</strong>, so nothing is random.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*g69-zZP0d9tMe0Bc2HTCug.png" /></figure><h4>Technologies Used in SOAP APIs</h4><h4>Protocols</h4><ul><li>HTTP / HTTPS</li><li>SMTP</li></ul><p>SOAP can work on different protocols, not just HTTP.</p><h4>Data Formats</h4><ul><li>XML only</li></ul><p>Unlike REST (which can use JSON), SOAP <strong>always uses XML</strong>.</p><h4>Key Features of SOAP APIs</h4><ol><li><strong>Strict Structure — </strong>SOAP messages must follow a fixed format (Envelope, Header, Body). This makes communication very organized.</li><li><strong>Highly Secure</strong> — SOAP supports built-in security standards like <strong>WS-Security</strong>. This is why banks and financial systems use it.</li><li><strong>Platform Independent </strong>— SOAP works on any system, regardless of Programming language or Operating system. So, different systems can still talk to each other easily.</li><li><strong>Reliable Messaging — </strong>SOAP ensures messages are delivered correctly and safely.</li><li><strong>Stateful or Stateless — </strong>SOAP can remember previous messages if needed. This makes it more flexible than REST in some cases.</li></ol><h3>GraphQL API</h3><h4>What is a GraphQL API?</h4><p>A <strong>GraphQL API</strong> is a way for applications to <strong>ask exactly what data they need from a server — and get only that</strong>.</p><p>Think of it like this:</p><p>Instead of getting a full meal you didn’t ask for, you can <strong>choose exactly what items you want on your plate.</strong></p><blockquote>GraphQL lets the client say:<br> <strong>“Give me only this specific data”</strong></blockquote><ul><li>GraphQL is a <strong>query language for APIs</strong></li><li>It also has a <strong>runtime on the server to process those queries</strong></li><li>It was created by Facebook as a better alternative to REST</li></ul><h4>When Do We Use GraphQL APIs?</h4><p>GraphQL APIs are used in:</p><ul><li>Complex web and mobile applications</li><li>Apps that need data from multiple sources</li><li>Applications where <strong>data needs change frequently</strong></li><li>Systems that need <strong>efficient data usage (like mobile apps)</strong></li></ul><p>Use GraphQL when you want <strong>only the exact data you need, nothing extra</strong>.</p><h4>How GraphQL APIs Work</h4><p>Here’s how it works step by step:</p><ol><li>The client sends a <strong>query</strong> to the server</li><li>The query clearly says <strong>what data is needed</strong></li><li>The server processes the query</li><li>The server sends back <strong>only that exact data</strong></li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nJ_LaciKXIQekdFi_tcWRw.png" /></figure><h4>Technologies Used in GraphQL APIs</h4><h4>Protocols</h4><ul><li>Usually works over <strong>HTTP / HTTPS</strong></li></ul><h4>Data Formats</h4><ul><li><strong>JSON</strong> (most commonly used)</li></ul><h4>Key Features of GraphQL APIs</h4><ol><li><strong>Flexible Queries — </strong>Clients can request <strong>exactly the data they need</strong>. So, no extra or missing data (no over-fetching or under-fetching)</li><li><strong>Single Endpoint — </strong>GraphQL usually uses <strong>one single URL</strong> for all requests.</li><li><strong>Strongly Typed — </strong>GraphQL uses a <strong>schema</strong> to define data clearly. This helps reduce errors and confusion</li><li><strong>Real-Time Support — </strong>GraphQL supports <strong>subscriptions</strong> for live updates. This is useful for chats, notifications, live data</li><li><strong>Efficient Data Fetching — </strong>Multiple data requests can be handled in <strong>one single query</strong>.</li></ol><h3>WebSocket API</h3><h4>What is a WebSocket API?</h4><p>A <strong>WebSocket API</strong> is a way for applications to <strong>communicate with each other in real-time</strong>.</p><p>Think of it like a phone call:</p><blockquote>Both people can talk and listen at the same time</blockquote><blockquote>The connection stays open until one side ends it</blockquote><p>WebSocket allows <strong>two-way communication (both send and receive)</strong> continuously.</p><ul><li>WebSocket is a communication protocol used for building real-time APIs.</li><li>The WebSocket API is used (mainly in JavaScript) to create this connection</li><li>It uses a <strong>single, long-lasting connection</strong> between client and server</li></ul><h4>When Do We Use WebSocket APIs?</h4><p>WebSocket APIs are used in:</p><ul><li>Chat applications</li><li>Online games</li><li>Video calls and live streaming</li><li>Real-time collaboration tools (like shared documents)</li><li>Live notifications and updates</li></ul><p>Use WebSocket when you need <strong>instant updates without waiting or refreshing</strong>.</p><h4>How WebSocket APIs Work</h4><p>Here’s how it works step by step:</p><ol><li>The client sends a request to start a connection</li><li>A <strong>handshake</strong> happens between client and server</li><li>The connection is kept <strong>open (persistent)</strong></li><li>Both client and server can send messages <strong>anytime</strong></li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eVXLKblsuXBAa1AQVGGzKA.png" /></figure><h4>Technologies Used in WebSocket APIs</h4><h4>Protocols</h4><ul><li><strong>WebSocket protocol (ws / wss)</strong></li><li>Built on <strong>TCP connection</strong></li></ul><h4>Data Formats</h4><ul><li>JSON</li><li>Text</li><li>Binary</li></ul><h4>Key Features of WebSocket APIs</h4><ol><li><strong>Full-Duplex Communication — </strong>Both client and server can send and receive data at the same time. Like talking on a phone (not like sending letters).</li><li><strong>Persistent Connection — </strong>The connection stays open until it is closed manually. No need to reconnect every time.</li><li><strong>Real-Time Communication</strong> — Data is sent instantly without delay. Perfect for live apps like chats and games.</li><li><strong>Low Latency</strong> — Faster communication because it avoids repeated requests. Makes apps feel smooth and fast.</li><li><strong>Efficient Data Transfer — </strong>Uses a single connection instead of multiple requests. Saves bandwidth and improves performance.</li></ol><h3>Webhook API</h3><h4>What is a Webhook API?</h4><p>A <strong>Webhook API</strong> is a way for one application to <strong>automatically send data to another application when something happens</strong>.</p><p>Think of it like a doorbell:</p><ul><li>When someone presses the bell (an event happens),</li><li>You immediately get notified</li></ul><blockquote>A webhook says:<br> <strong>“Hey! Something just happened, here’s the data!”</strong></blockquote><ul><li>Webhooks are <strong>event-driven</strong> (they work when something happens)</li><li>They send data automatically using <strong>HTTP requests</strong></li><li>They are not a full API type, but a <strong>way APIs communicate automatically</strong></li></ul><h4>When Do We Use Webhook APIs?</h4><p>Webhooks are used in:</p><ul><li>Payment systems (when a payment is completed)</li><li>E-commerce (when an order is placed or shipped)</li><li>Notifications (alerts, messages)</li><li>CI/CD systems (when code is updated)</li><li>Third-party integrations</li></ul><p>Use webhooks when you want to be <strong>notified instantly when something happens</strong>, without checking again and again.</p><h4>How Webhook APIs Work</h4><p>Here’s how it works step by step:</p><ol><li>You give another system a <strong>URL (endpoint)</strong></li><li>That system watches for a specific <strong>event</strong></li><li>When the event happens, it sends an <strong>HTTP POST request</strong> to your URL</li><li>Your system receives the data and processes it</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tUkYzna9z7CpLfSSQQP6BA.png" /></figure><h4>Technologies Used in Webhook APIs</h4><h4>Protocols</h4><ul><li>HTTP / HTTPS</li></ul><h4>Data Formats</h4><ul><li>JSON (most common)</li><li>XML</li></ul><h4>Key Features of Webhook APIs</h4><ol><li><strong>Event-Driven — </strong>Webhooks work only when something happens. No unnecessary requests, only important updates.</li><li><strong>Automatic Data Sending (Push Model)</strong> — Data is sent automatically instead of being requested. Unlike APIs where you keep asking for updates.</li><li><strong>Real-Time Updates — </strong>Information is delivered instantly when events occur. Faster than checking repeatedly.</li><li><strong>Efficient Communication — </strong>Reduces unnecessary network requests. Saves time and resources.</li><li><strong>Simple Setup</strong> — Just provide a URL and handle incoming data.Easy to integrate with other systems.</li></ol><h3>gRPC API (Google Remote Procedure Call)</h3><h4>What is a gRPC API?</h4><p>A <strong>gRPC API</strong> is a modern way for different computer systems to <strong>talk to each other very fast and efficiently</strong>.</p><p>It allows one program to <strong>call functions on another program</strong> as if they were on the same computer.</p><blockquote>gRPC lets a system say:<br> <strong>“Run this function on another server and give me the result.”</strong></blockquote><ul><li>gRPC stands for <strong>Google Remote Procedure Call</strong></li><li>It is an <strong>open-source framework created by Google</strong></li><li>It is a type of <strong>RPC (Remote Procedure Call) API system</strong></li><li>It uses <strong>HTTP/2 and Protocol Buffers (Protobuf)</strong> for communication</li></ul><h4>When Do We Use gRPC APIs?</h4><p>gRPC is used in:</p><ul><li>Microservices (small backend services talking to each other)</li><li>Cloud systems</li><li>High-performance applications</li><li>Real-time data systems</li><li>Internal server-to-server communication</li></ul><p>Use gRPC when systems need to <strong>talk very fast and handle a lot of data efficiently</strong>.</p><h4>How gRPC APIs Work</h4><p>Here’s how it works step by step:</p><ol><li>A client calls a <strong>remote function (like a local function)</strong></li><li>The request is converted into a <strong>Protocol Buffer message</strong></li><li>It is sent using <strong>HTTP/2</strong></li><li>The server receives it and executes the function</li><li>The server sends back a <strong>response</strong></li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*McWqhWQUDNxBzT5eXqmv2A.png" /></figure><h4>Technologies Used in gRPC APIs</h4><h4>Protocols</h4><ul><li>HTTP/2</li></ul><h4>Data Formats</h4><ul><li><strong>Protocol Buffers (Protobuf)</strong> (binary format, very fast)</li></ul><h4>Key Features of gRPC APIs</h4><ol><li><strong>Very Fast Communication — </strong>gRPC is faster than many APIs because it uses Binary data (not text)and Efficient HTTP/2 connection. This reduces delay and improves speed.</li><li><strong>Strong Typing (Strict Structure) — </strong>Data is clearly defined in a .proto file. This reduces mistakes and confusion.</li><li><strong>Streaming Support</strong> — gRPC supports sending data in different ways:</li></ol><ul><li>One request → one response</li><li>One request → many responses</li><li>Many requests → one response</li><li>Two-way live communication</li></ul><p>Useful for real-time systems</p><p>4. <strong>Efficient for Microservices — </strong>gRPC is designed for systems where, many small services talk to each other and Speed and performance matter</p><h3>RPC API (Remote Procedure Call)</h3><h4>What is an RPC API?</h4><p>An <strong>RPC API</strong> is a way for one program to <strong>run a function on another computer or server</strong> as if it were running locally.</p><blockquote>It lets you say:<br> <strong>“Run this function over there and give me the result.”</strong></blockquote><ul><li>RPC stands for <strong>Remote Procedure Call</strong></li><li>It is a <strong>function-based API style</strong></li><li>The client calls a function, and the server executes it</li></ul><h4>When Do We Use RPC APIs?</h4><p>RPC APIs are used in:</p><ul><li>Microservices systems</li><li>Internal server communication</li><li>Distributed systems</li><li>Performance-critical backend systems</li></ul><p>Use RPC when different systems need to <strong>talk by calling functions quickly.</strong></p><h4>How RPC APIs Work</h4><ol><li>Client calls a <strong>remote function</strong></li><li>Request is sent to the server</li><li>Server executes the function</li><li>Server sends back the result</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oBUvCqRWqIqBruY2mZ5Xvg.png" /></figure><h4>Technologies Used in RPC APIs</h4><h4>Protocols</h4><ul><li>HTTP / TCP</li></ul><h4>Data Formats</h4><ul><li>JSON (JSON-RPC)</li><li>Binary (gRPC uses this version of RPC)</li></ul><h4>Key Features of RPC APIs</h4><ul><li>Simple function-based communication</li><li>Fast execution</li><li>Good for internal systems</li><li>Can work in many programming language</li></ul><h3>WebRTC (Web Real-Time Communication)</h3><h4>What is a WebRTC ?</h4><p>A <strong>WebRTC </strong>is a technology that allows browsers and apps to <strong>communicate directly in real time</strong>, especially for <strong>audio, video, and data sharing</strong>.</p><blockquote>In simple words:<br> It lets two devices <strong>talk directly like a video call</strong></blockquote><ul><li>It enables <strong>peer-to-peer communication</strong> (no middle server needed for media)</li><li>It works directly in web browsers</li></ul><h4>When Do We Use WebRTC ?</h4><p>WebRTC is used in:</p><ul><li>Video calling apps (Zoom, Google Meet)</li><li>Voice calls</li><li>Live streaming</li><li>Online gaming voice chat</li><li>File sharing between users</li></ul><p>Use WebRTC when you need <strong>live audio/video communication</strong>.</p><h4>How WebRTC Work</h4><ol><li>Two devices connect through a signaling system</li><li>A direct connection is created between them</li><li>Audio/video/data is shared in real time</li><li>Communication continues until disconnected</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YCT1slrwDis1UC94wan2rA.png" /></figure><h4>Technologies Used in WebRTC</h4><h4>Protocols</h4><ul><li>UDP</li><li>SRTP (Secure Real-time Transport Protocol)</li><li>ICE (for connection setup)</li></ul><h4>Data Types</h4><ul><li>Audio streams</li><li>Video streams</li><li>Data channels</li></ul><h4>Key Features of WebRTC</h4><ul><li>Real-time audio and video communication</li><li>Peer-to-peer connection (direct connection)</li><li>Very low delay (latency)</li><li>Works inside web browsers without plugins</li><li>Secure communication</li></ul><h3>Message Queues</h3><h4>What is a Message Queue?</h4><p>A <strong>message queue</strong> is like a <strong>waiting line for messages</strong> in a computer system. Instead of one system directly waiting for another system to respond, it simply sends a message and leaves it in a queue.</p><h4>How Message Queues Work</h4><ol><li>One system sends a message</li><li>The message is placed in a <strong>queue (waiting area)</strong></li><li>Another system takes the message from the queue</li><li>That system processes it when it is ready</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZITiWTnzM8gewHoc8TTI3g.png" /></figure><h4><em>When Do We </em>Use Message Queues?</h4><p>Message queues are used when:</p><ul><li>A system has too many requests at once</li><li>Tasks take time to process</li><li>We want systems to work independently</li><li>We need reliable communication between services</li></ul><p>Example uses:</p><ul><li>Online order processing</li><li>Email sending systems</li><li>Notifications</li><li>Background tasks (like image processing)</li></ul><h4>Why Message Queues Are Useful</h4><ul><li>They prevent system overload</li><li>They make applications faster and more stable</li><li>They allow systems to work independently</li><li>They improve reliability (no data is lost easily)</li></ul><h3>Popular Message Queue Systems</h3><ul><li>RabbitMQ</li><li>Apache Kafka</li><li>Amazon SQS</li></ul><h3><strong>References</strong></h3><ul><li><a href="https://www.geeksforgeeks.org/node-js/rest-api-introduction/">https://www.geeksforgeeks.org/node-js/rest-api-introduction/</a></li><li><a href="https://www.geeksforgeeks.org/computer-networks/basics-of-soap-simple-object-access-protocol/">https://www.geeksforgeeks.org/computer-networks/basics-of-soap-simple-object-access-protocol/</a></li><li><a href="https://www.geeksforgeeks.org/graphql/what-is-graphql/">https://www.geeksforgeeks.org/graphql/what-is-graphql/</a></li><li><a href="https://www.geeksforgeeks.org/html/what-is-the-use-of-websocket-api/">https://www.geeksforgeeks.org/html/what-is-the-use-of-websocket-api/</a></li><li><a href="https://www.geeksforgeeks.org/blogs/what-is-web-api-and-why-we-use-it/">https://www.geeksforgeeks.org/blogs/what-is-web-api-and-why-we-use-it/</a></li><li><a href="https://www.geeksforgeeks.org/software-engineering/what-is-grpc/">https://www.geeksforgeeks.org/software-engineering/what-is-grpc/</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=22e037d54b9c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Bcrypt Password Verification in Python]]></title>
            <link>https://medium.com/@kaveeshasewmini161/bcrypt-password-verification-in-python-9dfa3fa2fa00?source=rss-97619f5428d0------2</link>
            <guid isPermaLink="false">https://medium.com/p/9dfa3fa2fa00</guid>
            <dc:creator><![CDATA[Kaveeshasewmini]]></dc:creator>
            <pubDate>Sun, 21 Dec 2025 08:56:32 GMT</pubDate>
            <atom:updated>2025-12-21T08:56:32.973Z</atom:updated>
            <content:encoded><![CDATA[<p>User password security is one of the most crucial aspects in the scene of the modern cybersecurity that we have to get right. We have, over time, shifted our ways from simply dumping passwords in plain text to more advanced hash functions such as bcrypt. In this article, I wish to explain about bcrypt, its advantages, how to implement it using Python, and common mistakes we should avoid when handling passwords. Let’s go…</p><h3><strong>What Is Bcrypt?</strong></h3><p>It is a cryptographic hash function that is designed to securely hash passwords. This method provides both <strong>salting </strong>and <strong>key stretching </strong>techniques to strengthen the password hashes.</p><h3><strong>Why Is Bcrypt Preferred Over Simple Hashing Algorithms?</strong></h3><p>Simple hashing algorithms, like MD5 or SHA-1, are faster, but they are more vulnerable to brute-force attacks. But Bcrypt intentionally adds computational complexity to the passwords to make these brute-force attacks slower and more resource-intensive.</p><blockquote><strong>Brute-force attacks</strong></blockquote><blockquote>The attacker tries every possible combinations of characters, like letters, numbers and symbols, until they guess the correct password. Because it is a guessing process, it is a lot of time consuming, specially when the password is long or complex.</blockquote><p>Let’s discuss simply why is Bcrypt preferred…</p><ol><li><strong>Bcrypt slows hashing— </strong>simple hashing algorithms are fast and easy to crack. But bcrypt is slower, making it harder for attackers to guess passwords quickly.</li><li><strong>Adaptive— </strong>We<strong> </strong>can adjust bcrypt’s speed over time, so when computers get faster, bcrypt can stay secure by getting slower.</li><li><strong>Built-in salting — </strong>Bcrypt adds a unique salt to each password. This makes even identical passwords result in different hashes. So it makes it harder for them to crack the password.</li></ol><h3>Salting And Key Stretching</h3><p>These are two essential concepts in modern password hashing. Let’s break down them…</p><h4><strong>Salting</strong></h4><p>Salting is the process of adding a random string of characters (salt) to the password before it’s hashed. The salt is there to ensure that even when the same password is used by you and your roommate, the hashes will not match, and, therefore, attackers cannot simply run pre-constructed rainbow tables to crack them.</p><p>Bcrypt creates a salt automatically every time you hash a password. The salt is stored inside the password hash itself. So you don’t need to save it separately. When you check a password, bcrypt takes the salt from the stored hash and then hashes the password you entered and compares it to the stored hash.<strong> </strong>This way, even if two users have the same password, their hashes will be different and secure.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/717/0*IE-e3LCXeFYr3LeE.jpg" /><figcaption>Resourece from : <a href="https://www.geeksforgeeks.org/ethical-hacking/what-is-salted-password-hashing/">https://www.geeksforgeeks.org/ethical-hacking/what-is-salted-password-hashing/</a></figcaption></figure><h4><strong>Key Stretching</strong></h4><p>A method used to make the password hashing process slower and harder to crack. It is a technique that applies the hash function multiple times, making it take longer to guess the correct password. This makes it more resistant to brute-force attacks.</p><p>Bcrypt is an example of a key-stretching algorithm. By repeatedly applying the hashing process, bcrypt significantly slows down the hash generation process. This will increase the time and resources required to crack a password.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/492/1*KHR0fosiSKywBdXvv3NujA.png" /><figcaption>Resource from : <a href="https://bitcoinwiki.org/wiki/key-derivation-function">https://bitcoinwiki.org/wiki/key-derivation-function</a></figcaption></figure><p>Now let’s see how to do this using python …</p><h3><strong>Demonstration of Password Hashing and Verification in Python Using Bcrypt</strong></h3><h4><strong>Installing the Bcrypt Library</strong></h4><p>For this you need to install the <strong>bcrypt </strong>Python library. Use the following command for that:</p><pre>pip install bcrypt</pre><h4><strong>Hashing a Password</strong></h4><p>To hash a password using bcrypt, you need to generate a salt and use it to hash the password.</p><pre>import bcrypt<br><br># Hashing a password<br># -------------------<br><br># Convert the password to bytes<br>password = &quot;my_secret_password&quot;.encode(&#39;utf-8&#39;) <br><br># Generate a salt<br>salt = bcrypt.gensalt()  <br><br>#Hash the password with the salt<br>hashed_password = bcrypt.hashpw(password, salt) <br><br>print(f&quot;Hashed password: {hashed_password}&quot;)</pre><h4>Verifying a Password</h4><p>To verify a password, you hash the input password with the stored salt and compare it with the stored hash.</p><pre># Verifying the password<br># -------------------<br><br># Convert input password to bytes<br>input_password = &quot;my_secret_password&quot;.encode(&#39;utf-8&#39;)  <br><br># Compare input with stored hash<br>is_correct = bcrypt.checkpw(input_password, hashed_password)  <br><br>if is_correct:<br>    print(&quot;Password matches.&quot;)<br>else:<br>    print(&quot;Password does not match.&quot;)</pre><h3><strong>Common Mistakes to Avoid When Handling Passwords</strong></h3><ol><li>Never store passwords in plain text in databases or files. Always hash passwords before storing them.</li><li>Algorithms like MD5 or SHA-1 are outdated and vulnerable. Always use strong, modern algorithms like bcrypt, scrypt, or Argon2.</li><li>Using the same salt for multiple passwords is a bad practice. Always use a unique salt for each password, which is a default behavior in bcrypt.</li><li>The default work factor for bcrypt might not be sufficient as hardware improves over time. Always adjust the work factor to balance security and performance.</li><li>If you’re using a password manager or storing hashes for future validation, ensure that the keys and salts are protected and not stored insecurely.</li></ol><p>Bcrypt is a strong and secure password hashing algorithm designed to protect user passwords against brute-force and dictionary attacks. When implementing bcrypt in Python, the process of hashing and verifying passwords is straightforward, and the library offers all the necessary features for secure password storage. Always be cautious of common mistakes, such as using weak algorithms or storing passwords in plain text.</p><h4><strong>References:</strong></h4><ol><li><a href="https://www.geeksforgeeks.org/ethical-hacking/what-is-salted-password-hashing/">https://www.geeksforgeeks.org/ethical-hacking/what-is-salted-password-hashing/</a></li><li><a href="https://bitcoinwiki.org/wiki/key-derivation-function">https://bitcoinwiki.org/wiki/key-derivation-function</a></li><li><a href="https://www.geeksforgeeks.org/python/hashing-passwords-in-python-with-bcrypt/">https://www.geeksforgeeks.org/python/hashing-passwords-in-python-with-bcrypt/</a></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9dfa3fa2fa00" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Quantum Computing: The Next Tech Revolution — What You Need to Know]]></title>
            <link>https://medium.com/@kaveeshasewmini161/quantum-computing-the-next-tech-revolution-what-you-need-to-know-aac6a7eb7df7?source=rss-97619f5428d0------2</link>
            <guid isPermaLink="false">https://medium.com/p/aac6a7eb7df7</guid>
            <category><![CDATA[quantum-computing]]></category>
            <category><![CDATA[superposition]]></category>
            <category><![CDATA[future-of-technology]]></category>
            <category><![CDATA[next-technology]]></category>
            <dc:creator><![CDATA[Kaveeshasewmini]]></dc:creator>
            <pubDate>Sun, 13 Apr 2025 08:24:58 GMT</pubDate>
            <atom:updated>2025-04-13T08:24:58.658Z</atom:updated>
            <content:encoded><![CDATA[<h3>Quantum Computing: The Next Tech Revolution — What You Need to Know</h3><p>Quantum computing is a new way of processing information that uses the strange rules of quantum physics to solve problems too complex for normal computers.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/599/0*Btha3F79oPMl9MVi.jpg" /><figcaption><a href="https://www.google.com/url?sa=i&amp;url=https%3A%2F%2Fquantumai.google%2Fdiscover%2Fwhatisqc&amp;psig=AOvVaw2OZ-ZKE8iYotTjKjmUhIHk&amp;ust=1744618828951000&amp;source=images&amp;cd=vfe&amp;opi=89978449&amp;ved=0CBcQjhxqFwoTCIDB7d_J1IwDFQAAAAAdAAAAABAE">What is quantum computing?</a></figcaption></figure><h3><strong>How does it work?</strong></h3><p>As you know, our normal computers use <strong>bits</strong> to process information, which can be<strong> either 0 or 1</strong>. Everything from your smartphone to supercomputers relies on this binary system.</p><p>But quantum computers use <strong>qubits</strong>, which can be <strong>0, 1, or both at the same time</strong> — this is called <strong>superposition</strong>.</p><h3><strong>Why is superposition powerful?</strong></h3><p>I’ll explain this with a simple example.</p><p>Imagine that we have to solve a maze. In this case,</p><ul><li>A classical computer will try doing this one path at a time. It’s just<strong> </strong>like walking through each turn sequentially.</li><li>But a quantum computer explores all possible paths simultaneously to solve the same matter. It’s just like being in multiple places at once.</li></ul><p>This allows exponentially faster calculations for certain problems. That is why the superposition is so powerful.</p><h4>Now let’s see <strong>why this quantum computing matters</strong> with real-world examples.</h4><ol><li><strong>Breaking Today’s “Unbreakable” Codes</strong><br>We all work with bank transfers, WhatsApp messages, and even Bitcoin these days. In these cases, security plays a major role. All your online security depends on math problems that would take normal computers millions of years to solve. But today’s quantum machines are nowhere near powerful enough to do so. Researchers are already developing quantum-resistant cryptography.</li><li><strong>Creating Life-Saving Medicines Faster</strong><br>Imagine designing a new drug. It may require simulating how millions of molecules interact. It may be a complex process, like solving a billion-piece puzzle. Current computers struggle with this. But quantum computers could test thousands of molecular combinations at once. For example, instead of taking 5 years to design a cancer drug, it might take 5 months. However, this remains in early research stages.</li><li><strong>Supercharged AI</strong><br>AI plays a major role these days in our day-to-day lives. There’s no probability for you to not know ChatGPT. 😉 Training them takes huge amounts of power and time. The solution is quantum AI could speed up pattern recognition and be really useful for medical diagnostics.</li></ol><p>There are few examples, and there are many more. Feel free to explore more.</p><h3>Is Quantum Computing Ready Yet?</h3><p>Most quantum computers are experimental, just like the early days of classical computing in the 1950s.</p><p>And a major limitation regarding quantum computing is that the qubits require near absolute zero (-273°C) to function. So, maintaining that temperature is expensive and hard. And also, qubits are fragile and lose their state easily.</p><p>Since this technology is going to make a turning point in the future, there is a race between countries and companies to gain the power of quantum computing.</p><p>Who’s Leading the Race?</p><ul><li><strong>IBM</strong> (433-qubit processor, “Osprey”)</li><li><strong>Google</strong> (Achieved “quantum supremacy” in 2019)</li><li><strong>Microsoft</strong> (Developing topological qubits for stability)</li><li><strong>China</strong> (Broke a record with a 56-qubit photonic quantum computer)</li></ul><p>Finally, while we’re still 5–10 years away from mainstream quantum computers, the field is growing fast. By learning now, you could be at the forefront of the next computing revolution!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=aac6a7eb7df7" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>