<?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 prankshaw on Medium]]></title>
        <description><![CDATA[Stories by prankshaw on Medium]]></description>
        <link>https://medium.com/@prankshaw?source=rss-9c5fabee5cc4------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*kWpEWS4O5h4srYjq.</url>
            <title>Stories by prankshaw on Medium</title>
            <link>https://medium.com/@prankshaw?source=rss-9c5fabee5cc4------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 23:54:30 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@prankshaw/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[Taming Distributed Chaos: Using Saga Pattern and Temporal in Modern Billing Systems]]></title>
            <link>https://medium.com/@prankshaw/taming-distributed-chaos-using-saga-pattern-and-temporal-in-modern-billing-systems-923bb7c0c002?source=rss-9c5fabee5cc4------2</link>
            <guid isPermaLink="false">https://medium.com/p/923bb7c0c002</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[distributed-systems]]></category>
            <category><![CDATA[temporal]]></category>
            <category><![CDATA[design-patterns]]></category>
            <category><![CDATA[software-architecture]]></category>
            <dc:creator><![CDATA[prankshaw]]></dc:creator>
            <pubDate>Thu, 30 Apr 2026 16:12:38 GMT</pubDate>
            <atom:updated>2026-04-30T16:12:38.451Z</atom:updated>
            <content:encoded><![CDATA[<p><em>How to bring consistency, clarity, and sanity to a complex order + billing workflow</em></p><p>I work on an order and billing system that looks simple on paper: create an order, charge the user, activate a subscription, but in reality, it involves one-time purchases, recurring plans, usage-based billing, taxes, discounts, and a handful of external services that didn’t always behave nicely.</p><p>That’s when the <strong>Saga pattern</strong> stopped being just another system design interview topic and became a necessity.</p><p>At its core, Saga is about breaking a large distributed transaction into smaller, manageable steps, each with a defined way to move forward and a defined way to recover if things go wrong. And when you combine that with a workflow engine like <a href="https://temporal.io/"><strong>Temporal</strong></a>, you get something surprisingly powerful: <em>a system that doesn’t just work when everything is perfect, but continues to behave correctly when things inevitably fail</em>.</p><h3>Where things start breaking</h3><p>In most microservice-based systems, order processing isn’t owned by a single service. You typically have:</p><ul><li><strong>Order</strong> service</li><li><strong>Pricing</strong> service</li><li><strong>Payment</strong> service</li><li><strong>Subscription</strong> and <strong>Billing</strong> service</li></ul><p>Individually, each one works fine. The trouble starts when you try to stitch them together into a single “transaction.”</p><p>We ran into situations like:</p><ul><li>Payment succeeded, but subscription activation failed - <strong>Systems out of sync</strong></li><li>Charges were calculated and stored, but the order was never completed - <strong>Downstream dependency failure</strong></li><li>Retries caused duplicate invoices or double processing - <strong>Idempotency failures</strong></li></ul><p>There’s no global transaction here. No simple rollback. Just a partial state scattered across services. That’s the exact gap Saga is designed to fill.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*PPoAPPJdHC4sHWW4" /><figcaption>Photo by <a href="https://unsplash.com/@shubhudi?utm_source=medium&amp;utm_medium=referral">Shubham Dhage</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3>Thinking in Sagas…</h3><p>The mental shift is subtle but important.</p><p>Instead of saying:</p><blockquote><em>“All of this must succeed or fail together”</em></blockquote><p>You start saying:</p><blockquote><em>“Each step succeeds independently, and if something fails later, we compensate.”</em></blockquote><p>So an order flow becomes something like:</p><ul><li>Create order</li><li>Calculate charges (one-time, recurring, usage setup)</li><li>Process payment</li><li>Activate subscription</li><li>Generate invoice</li></ul><p>And if something breaks halfway through, you don’t “rollback” — you <strong><em>correct</em></strong>:</p><ul><li>Cancel/Fail the order</li><li>Reverse charges</li><li>Refund or void payment</li><li>Deactivate subscription</li></ul><p>This maps much more naturally to how billing systems actually work in the real world.</p><h3>Why Temporal!?</h3><p>Saga, as a concept, is great, but implementing it cleanly is another story. Debugging flows across multiple services, topics, and retries are verypainful. Understanding let’s say, “where an order is stuck” will not be trivial, and thus increases sytem and debugging complexities</p><p>Thus it becomes a natural choice to move to an <strong>orchestrated Saga using Temporal</strong>.</p><p>Temporal lets you define the entire workflow in code, while it handles:</p><ul><li>retries</li><li>state persistence</li><li>failure recovery</li><li>long-running execution</li></ul><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FwIpz4ioK0gI%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DwIpz4ioK0gI&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FwIpz4ioK0gI%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/cb123cb9f01cf54866cf6adcf3fa178b/href">https://medium.com/media/cb123cb9f01cf54866cf6adcf3fa178b/href</a></iframe><p>So instead of wiring together queues and hoping retries behave, we wrote something closer to business logic:</p><pre>public void processOrder(OrderRequest request) {<br>    String orderId = activities.createOrder(request);<br>    ChargeSummary charges = activities.calculateCharges(orderId);</pre><pre>    PaymentResult payment = activities.processPayment(orderId, charges);</pre><pre>    if (charges.hasRecurringItems()) {<br>        activities.createSubscription(orderId, charges.getRecurringItems());<br>    }</pre><pre>    activities.generateInvoice(orderId, charges, payment);<br>    activities.completeOrder(orderId);<br>}</pre><p>Yiu may notices, how <em>boring</em> it looks. That’s a good thing, as the complexity is handled by the platform, not spread across the codebase.</p><h3>Failure is not an edge case</h3><p>One thing you quickly learn in billing systems: failure is not rare. It’s part of the normal flow.</p><p>Payments fail. External services time out. Dependencies behave unpredictably. Retries help, but only to a point. If a payment succeeds and something else fails <em>afterward</em>, retrying won’t fix the system state. You need compensation.</p><p>Here’s an exemplar version of one canapproach it:</p><pre>try {<br>    PaymentResult payment = activities.processPayment(orderId, charges);</pre><pre>    activities.createSubscription(orderId, charges.getRecurringItems());<br>    activities.generateInvoice(orderId, charges, payment);</pre><pre>} catch (Exception e) {<br>    activities.cancelOrder(orderId);<br>    activities.reverseCharges(orderId);</pre><pre>    if (activities.paymentExists(orderId)) {<br>        activities.refundOrVoidPayment(orderId);<br>    }</pre><pre>    throw e;<br>}</pre><p>This is where Saga really shines. It forces you to think explicitly about “<strong>what happens if this step succeeds, but the next one doesn’t</strong>?”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*twNDLnunzbjiBvKZ" /><figcaption>Photo by <a href="https://unsplash.com/@alvarordesign?utm_source=medium&amp;utm_medium=referral">Alvaro Reyes</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3>Handling real-world billing complexity</h3><p>Any big order system, just doesn’t handle simple purchases. A single order could include:</p><ul><li>a one-time onboarding fee</li><li>a monthly subscription</li><li>Usage-based billing</li><li>discounts and credits</li><li>taxes based on region</li></ul><p>Each of these behaves differently:</p><ul><li>One-time charges - immediate billing</li><li>Recurring charges - subscription lifecycle</li><li>Usage charges - deferred, metered</li></ul><p>Trying to force all of this into a single “charge” abstraction quickly becomes messy.</p><p>With Saga + Temporal, one is able to treat them as part of the same workflow while still respecting their individual lifecycles.</p><h3>What actually mattered in practice</h3><p>Looking back, a few things made or broke the system:</p><p>First, <strong>idempotency everywhere</strong>. Any step can be retried, so duplicate-safe operations are non-negotiable.</p><p>Second, <strong>clear separation of concerns</strong>. Charge calculation, payment execution, and subscription management should not bleed into each other.</p><p>Third, <strong>explicit compensation logic</strong>. If you can’t answer “how do we undo this?”, the design isn’t complete.</p><p>And finally, <strong>visibility into workflows</strong>. Being able to see exactly where an order is and why it failed can save countless hours.</p><h3>Conclusion</h3><p>The Saga pattern gives you a way to reason about distributed transactions without pretending they behave like database transactions. Temporal gives you the tooling to actually implement that model without building your own orchestration layer from scratch.</p><p>Together, they turn a fragile chain of service calls into a controlled, observable workflow.</p><p>If you’re building anything beyond trivial billing, especially with a mix of one-time and recurring charges, this combination is worth seriously considering. It won’t remove complexity, but it will make that complexity manageable.</p><p>I hope that my experience and learnings may help you in solving your next problem. You can always reach out to me to discuss and share feedback via <a href="/service/mailto:pranjalrastogi1998@gmail.com">Mail</a>, or <a href="https://twitter.com/mepranjal31">Twitter</a>.<br>Follow and Subscribe for more such blogs.</p><p>Till we meet again, “<strong>Keep Assessing!”</strong></p><h3>Further Reads:</h3><p>Understand <a href="https://medium.com/@prankshaw/what-is-a-rag-24164f4eadda"><strong>What is RAG?</strong></a><br>Go through my observations for <a href="https://medium.com/@prankshaw/navigating-the-perils-of-database-upgrade-best-practices-and-what-to-avoid-14aa205b365c"><strong>Navigating the perils of database upgrade</strong></a><strong>.<br></strong>Understand the techniques on <a href="https://tech.groww.in/building-new-ffbf9d87c561"><strong>How to Build a Project from scratch</strong></a><strong>.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=923bb7c0c002" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What is a RAG?]]></title>
            <link>https://medium.com/@prankshaw/what-is-a-rag-24164f4eadda?source=rss-9c5fabee5cc4------2</link>
            <guid isPermaLink="false">https://medium.com/p/24164f4eadda</guid>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[software-architecture]]></category>
            <category><![CDATA[agentic-rag]]></category>
            <category><![CDATA[large-language-models]]></category>
            <category><![CDATA[llm]]></category>
            <dc:creator><![CDATA[prankshaw]]></dc:creator>
            <pubDate>Tue, 06 Jan 2026 13:17:54 GMT</pubDate>
            <atom:updated>2026-01-06T13:17:54.988Z</atom:updated>
            <content:encoded><![CDATA[<h4>Understanding Retrieval-Augmented Generation in context of Large Language Models</h4><p>Retrieval Augmented Generation is a bridge between the <strong>capabilities</strong> of <a href="https://www.wikiwand.com/en/articles/Large_language_model">Large Language Models</a> and their <strong>usability</strong>.</p><p>Large Language Models (LLMs) are no doubt powerful, but have obvious limitations in real-world applications. Problems range from hallucinations, outdated knowledge to difficulty in integration of private and fast-changing data. This is where RAG comes into picture. RAG is neither a model or framework, but an architectural pattern that helps tackle these problems.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*_TtRt2W3htAcyyXV" /><figcaption>Photo by <a href="https://unsplash.com/@louisdraymond?utm_source=medium&amp;utm_medium=referral">Louis Thai</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3>The Practical Problem with LLMs</h3><p>LLMs are constrained in three fundamental ways:</p><ol><li><strong>Knowledge is static — </strong>Models only know what they were trained on</li><li><strong>Answers are not fixed</strong> — Responses are probabilistic, not fixed</li><li><strong>Updating knowledge is expensive</strong> — Retraining or fine-tuning is too costlyand very slow</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*HsOlQOzYIIczQYyp" /><figcaption>Photo by <a href="https://unsplash.com/@grievek1610begur?utm_source=medium&amp;utm_medium=referral">Kevin Grieve</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><blockquote><strong>Models are good at reasoning, not at being databases.</strong></blockquote><h3>What RAG Actually Does</h3><p>RAG addresses this by separating <strong>knowledge storage</strong> from <strong>language generation</strong>. <br>It has been proved that “<strong>Retrieving relevant documents at inference time significantly improves factual accuracy on knowledge-heavy tasks</strong>”. This in a nutshell defines RAG.</p><p>RAG works like this:</p><ol><li>Retrieve relevant information from an external source</li><li>Inject that information into the model’s prompt</li><li>Generate an answer grounded in retrieved context</li></ol><h3>Advantages of RAG</h3><h4>Decoupling</h4><p>Knowledge lives outside the model and updating documents doesn’t require retraining</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*pMOGlz8y7Z39t7wM" /><figcaption>Photo by <a href="https://unsplash.com/@simmerdownjpg?utm_source=medium&amp;utm_medium=referral">Jackson Simmer</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h4>Observability</h4><p>Since responses are based on retrieved text, it’s possible to inspect <strong><em>why</em></strong> a model answered a certain way, something that pure generation lacks</p><h4>Domain Adaptability</h4><p>RAG allows existing models to work over internal docs, or proprietary datasets without exposing them during training</p><h4>Common Use Cases</h4><ul><li>Internal documentation search</li><li>Frequently updated data extraction</li><li>Codebase and API exploration</li></ul><h3>Beware of these Trade-offs</h3><p>While the idea is simple, execution matters.</p><ol><li><strong>Poor </strong><a href="https://www.mongodb.com/resources/basics/chunking-explained"><strong>chunking</strong></a> leads to poor retrieval</li><li><a href="https://huggingface.co/spaces/hesamation/primer-llm-embedding"><strong>Weak embeddings</strong></a> surface irrelevant context</li><li><strong>Too much context</strong> increases noise and cost</li><li><strong>Too little context</strong> reintroduces hallucinations</li></ol><blockquote><strong>Retrieval quality often matters more than the model size</strong>.</blockquote><h3>Alternatives to RAG, and the associated problems</h3><ol><li><strong>Fine-tuning</strong> can encode the new domain knowledge into a model, but struggles with frequently changing data along with slow speed and high operational cost</li><li><a href="https://huggingface.co/papers/2503.17407"><strong>Long-context models</strong></a>, thought reduce the need for data retrieval but still have hard limits, proving non-functional in real use-cases</li><li><strong>Tool or function calling</strong> is excellent for structured operations, but less effective for unstructured knowledge retrieval</li></ol><p>Ideally, one must combine these approaches with RAG.</p><h3>Conclusion</h3><p>Models are excellent at language and reasoning, while retrieval systems are excellent at storing and updating knowledge. Combining the two enables systems that are more accurate, maintainable, and aligned with real-world constraints.</p><p>I hope that my experience and learnings may help you in solving your next problem. You can always reach out to me to discuss and share feedback via <a href="/service/mailto:pranjalrastogi1998@gmail.com">Mail</a>, or <a href="https://twitter.com/mepranjal31">Twitter</a>.<br>Follow and Subscribe for more such blogs.</p><p>Till we meet again, “<strong>Keep Understanding!”</strong></p><h3>Further Reads:</h3><p>Read about the techniques in <a href="https://medium.com/@prankshaw/evaluating-ai-agents-part-1-aab26400a2b7"><strong>Evaluating AI Agents — Part-1</strong></a><br>Go through my observations for <a href="https://medium.com/@prankshaw/navigating-the-perils-of-database-upgrade-best-practices-and-what-to-avoid-14aa205b365c"><strong>Navigating the perils of database upgrade</strong></a><strong>.<br></strong>Understand about the techniques on <a href="https://tech.groww.in/building-new-ffbf9d87c561"><strong>How to Build a Project from scratch</strong></a><strong>.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=24164f4eadda" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Evaluating AI Agents — Part-2]]></title>
            <link>https://medium.com/@prankshaw/evaluating-ai-agents-part-2-b9dfc32af32f?source=rss-9c5fabee5cc4------2</link>
            <guid isPermaLink="false">https://medium.com/p/b9dfc32af32f</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[llm-evaluation]]></category>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[prankshaw]]></dc:creator>
            <pubDate>Fri, 24 Oct 2025 19:07:10 GMT</pubDate>
            <atom:updated>2025-10-24T19:07:10.849Z</atom:updated>
            <content:encoded><![CDATA[<h3>Evaluating AI Agents — Part-2</h3><h4>A Curious Dive into “LLM-as-a-Judge” — Need, Framework, Setup and Parameters</h4><p>Evaluating AI agents is trickier than it seems. You can’t just check if an answer is <em>right</em> — sometimes “right” isn’t even the point.</p><p><a href="https://medium.com/@prankshaw/evaluating-ai-agents-part-1-aab26400a2b7">In Part-1</a>, we understood about the evaluation techniques and the goal behind it, but how do we check if the evaluation provided by “LLM-as-a-Judge” is correct or not, because <em>what does even “</em><strong><em>right</em></strong><em>” mean</em>?</p><h4>So how do we <strong>measure</strong> progress?</h4><p>That’s where using a proper <strong>evaluation engine</strong> helps. <br>Let’s explore the framework behind building such an evaluation engine, and what parameters can be consistently defined to assess AI models’ responses.</p><h3>The Framework</h3><p>The best way to start is to to go through the implementation in <a href="https://github.com/openai/evals"><strong>OpenAI’s Evals GitHub repository</strong></a>, which in a nutshell concludes that evaluation is not about chasing some metrics but about building and evolving the <strong><em>process</em></strong> best suited for your needs, which should be <strong>repeatable, explainable, and automatable</strong>.</p><p>Think of an evaluation engine as having three major parts:</p><ul><li><strong>Test Inputs:</strong> Curated prompts for the model<br><em>Example:</em> “Summarize this paragraph in two sentences”</li><li><strong>Collected Response outputs:</strong> The model’s generated answers</li><li><strong>Scoring Layer:</strong> A mechanism to rate those answers against expected responses</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*M_k86JwXcC7JXIp0" /><figcaption>Photo by <a href="https://unsplash.com/@element5digital?utm_source=medium&amp;utm_medium=referral">Element5 Digital</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>The most exciting development in this area is the concept of <strong>LLM-as-a-Judge</strong>, using a LLM model to evaluate the outputs of another model — or even itself.</p><blockquote>“LLM-as-a-Judge” — Letting Models Evaluate Models</blockquote><p>This technique, discussed in <a href="https://www.anthropic.com/research/statistical-approach-to-model-evals"><strong>Anthropic’s Approach to Model Evaluation</strong></a> and implemented in <strong>OpenAI’s Evals</strong>, helps bringing automation to what used to be manual review work.</p><h4>How It Works</h4><ol><li>Define a clear rubric or instruction, such as:<br>“Rate the following article from 1 to 10 for accuracy and clarity”</li><li>Provide the <strong>question</strong>, <strong>AI’s answer</strong>, and (optionally) a <strong>reference answer</strong></li><li>The “judge” model outputs a <strong>score and short reasoning</strong></li></ol><p>This when integrated in a CI/D pipeline, can easily pave a path to evaluate <em>thousands</em> of AI responses automatically.</p><h4>But, Why It Works so effectively?</h4><p>Because large models are surprisingly good at judging outputs. As models understand linguistic nuances, they can even flag subtle issues — like when an answer is technically correct but misleading.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*HYwsFR0H99sVIrJZ" /><figcaption>Photo by <a href="https://unsplash.com/@heyquilia?utm_source=medium&amp;utm_medium=referral">Kenny Eliason</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h4>And the Associated Problems…</h4><p>Evaluation automation isn’t a silver bullet. Their potential pitfalls include:</p><ul><li><strong>Bias Transfer:</strong> The judge model may inherit its own dataset biases</li><li><strong>Model Agreement Illusion:</strong> Similar models might “agree” on wrong answers</li><li><strong>Prompt Sensitivity:</strong> Poorly written evaluation prompts can skew scores</li></ul><p>One can take following steps to <strong>minimise</strong> occurrence of such issues:</p><ul><li>Using <strong>hybrid evaluation pipelines</strong> — automated scoring plus <strong>periodic human review</strong></li><li>OpenAI’s Evals suggests keeping <strong><em>golden sets</em></strong> (hand-scored examples) to recalibrate your judge model regularly</li></ul><h3>Understanding Evaluation Parameters</h3><p>So what do we <em>actually care about</em> when evaluating an AI’s output?<br>Here are some of the commonly used key parameters:</p><h4>Accuracy</h4><ul><li><strong>What it measures:</strong> Correctness of information</li><li><strong>Pros:</strong> Objective and easy to verify</li><li><strong>Cons:</strong> Hard to define for creative tasks</li></ul><h4>Relevance</h4><ul><li><strong>What it measures:</strong> How well the response matches the query</li><li><strong>Pros:</strong> Straightforward automation</li><li><strong>Cons:</strong> Misses nuance or depth</li></ul><h4>Fluency</h4><ul><li><strong>What it measures:</strong> Grammar and logical flow</li><li><strong>Pros:</strong> Good proxy for readability</li><li><strong>Cons:</strong> Can reward verbosity</li></ul><h4>Usefulness</h4><ul><li><strong>What it measures:</strong> Practical value to users</li><li><strong>Pros:</strong> Reflects real-world utility</li><li><strong>Cons:</strong> Needs human calibration</li></ul><h4>Creativity / Originality</h4><ul><li><strong>What it measures:</strong> Novel ideas or phrasing</li><li><strong>Pros:</strong> Important for generative AI</li><li><strong>Cons:</strong> Very subjective</li></ul><h4>Safety</h4><ul><li><strong>What it measures:</strong> Avoidance of harm or bias</li><li><strong>Pros:</strong> Critical for production deployment</li><li><strong>Cons:</strong> Hard to automate fully</li></ul><h3>Conclusion</h3><p>In essence, understanding what needs to be evaluated is the key while keeping in mind that evaluation isn’t just about “accuracy”, but about defining what “quality” means for the specific task, as well as the importance of why human calibration still matters and the need to have a human check in loop.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*l6mrUIlepIu33iaC" /><figcaption>Photo by <a href="https://unsplash.com/@tingeyinjurylawfirm?utm_source=medium&amp;utm_medium=referral">Tingey Injury Law Firm</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>At last, A minimal evaluation setup could look like this:</p><ol><li><strong>Define test prompts</strong> and expected outcomes</li><li><strong>Run multiple models or versions</strong> on the same dataset</li><li><strong>Ask an LLM-Judge</strong> to score outputs along key parameters</li><li><strong>Aggregate results — </strong>average scores, rank models, or build weighted dashboards</li><li><strong>Track progress</strong> over time with visualizations and summaries</li></ol><p>I hope that my experience and learnings may help you in solving your next problem. You can always reach out to me to discuss and share feedback via <a href="/service/mailto:pranjalrastogi1998@gmail.com">Mail</a>, or <a href="https://twitter.com/mepranjal31">Twitter</a>.<br>Follow and Subscribe for more such blogs.</p><p>Till we meet again, “<strong>Keep Experimenting!”</strong></p><h3>Further Reads:</h3><p>Read about the techniques in <a href="https://medium.com/@prankshaw/evaluating-ai-agents-part-1-aab26400a2b7"><strong>Evaluating AI Agents — Part-1</strong></a><br>Go through my observations for <a href="https://medium.com/@prankshaw/navigating-the-perils-of-database-upgrade-best-practices-and-what-to-avoid-14aa205b365c"><strong>Navigating the perils of database upgrade</strong></a><strong>.<br></strong>Understand about the techniques on <a href="https://tech.groww.in/building-new-ffbf9d87c561"><strong>How to Build a Project from scratch</strong></a><strong>.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b9dfc32af32f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Evaluating AI Agents — Part-1]]></title>
            <link>https://medium.com/@prankshaw/evaluating-ai-agents-part-1-aab26400a2b7?source=rss-9c5fabee5cc4------2</link>
            <guid isPermaLink="false">https://medium.com/p/aab26400a2b7</guid>
            <category><![CDATA[evaluation]]></category>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[agentic-ai]]></category>
            <category><![CDATA[openai]]></category>
            <dc:creator><![CDATA[prankshaw]]></dc:creator>
            <pubDate>Sun, 13 Jul 2025 11:25:48 GMT</pubDate>
            <atom:updated>2025-07-13T11:25:48.585Z</atom:updated>
            <content:encoded><![CDATA[<h3>Evaluating AI Agents — Part-1</h3><h4>My observations, as I am <strong>learning</strong> about evaluation techniques</h4><p>Evaluation refers to the process of assessing and understanding an <a href="https://en.wikipedia.org/wiki/Intelligent_agent"><strong>AI agent’s</strong></a> performance across task execution, interacting with users or general decision making.</p><p>Unlike traditional software testing, which often relies on asserting and simple pass/fail criteria, AI agent evaluation is much more complex and is a continuous process that assesses and scores agents across multiple benchmarks. <br>Well-designed benchmarks not only help us rank the performance of an agent but also help spotlight gaps, understand failure conditions or unintended behaviors in agents’ responses.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*EI1UwLkSM1ue0Tjz" /><figcaption>Photo by <a href="https://unsplash.com/@amstram?utm_source=medium&amp;utm_medium=referral">Scott Graham</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Traditional AI models like classification and regression models can often be measured by a single metric like accuracy but AI agent is a much more complex and dynamic system. Its success depends on a complex chain of decisions taken, tool invoked, their sequence and interactions.</p><p>Thus, a good evaluation model must therefore consider all these multiple dimensions. Let’s breakdown the factors involved for evaluating an agent.</p><h3>Goals of AI Agent Evaluation</h3><h4>Verifying Performance:</h4><p>The primary goal is to confirm that the agent is accomplishing its intended tasks and goals effectively. But it’s not enough for an agent to get the right answer; but also <em>how it got there</em>.</p><ul><li>Did it take the most efficient path?</li><li>Did it invoke the correct tools?</li></ul><p>This is the core of what’s known as “<a href="https://docs.smith.langchain.com/evaluation/tutorials/agents#trajectory-evaluator"><strong>trajectory evaluation</strong></a>”</p><p><strong>The Multi-Step Task:</strong></p><ul><li>Consider an agent tasked with “planning a trip to another country”</li><li>A simple evaluation might check if the final output includes a valid flight and hotel.</li><li>A robust evaluation, however, would analyze the agent’s internal reasoning.<br>– Did it first search for flights, then hotels, then refine the plan based on constraints like budget or dates?<br>– Or did it make multiple, unnecessary API calls, increasing cost and latency?</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*NM_ZW1t3c1k_o8rm" /><figcaption>Photo by <a href="https://unsplash.com/@kellysikkema?utm_source=medium&amp;utm_medium=referral">Kelly Sikkema</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Even small changes to a prompt can drastically change an agent’s problem-solving path. Thus <a href="https://python.langchain.com/api_reference/langchain/evaluation/langchain.evaluation.agents.trajectory_eval_chain.TrajectoryEvalChain.html">visualizing</a> an agent’s entire “thought process,” allows us to pinpoint exactly where an error occurred.</p><h4><strong>Optimizing and Improving:</strong></h4><p>The results of an evaluation provide crucial insights for developers to refine prompts, debug algorithms, and improve the agent’s overall architecture.</p><p>A brilliant agent that costs a fortune to run is not worth running in a production setup, thus an evaluation engine <strong>must control for cost</strong>.</p><ul><li>Because of the <a href="https://en.wikipedia.org/wiki/Stochastic_process"><strong>stochastic</strong></a> nature of LLMs, a simple re-run can sometimes yield a better result, and as has been documented in research paper as well, that sometimes a<a href="https://arxiv.org/html/2407.01502v1"><em>simple baseline agents, when run multiple times, could sometimes outperform more complex, costly agents on benchmarks</em></a></li><li>Thus for an agent to be practical, there must be an optimal balance between accuracy and inference cost.</li></ul><h4><strong>Identifying Weaknesses and Building Trust:</strong></h4><p>Evaluation must help pinpoint failure scenarios, areas where the agent struggles, or scenarios where it produces undesirable behavior.</p><p>Evaluation must also help ensure the agent avoids harmful or biased behavior and should comply with policies, and acting within defined boundaries.</p><p>The evaluation process thus, must be structured and transparent that should help build confidence with users and stakeholders that the agent will perform reliably as expected.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*jlfB8kQN2sefZ7kM" /><figcaption>Photo by <a href="https://unsplash.com/@theshubhamdhage?utm_source=medium&amp;utm_medium=referral">Shubham Dhage</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>The best agents are not only accurate in ideal scenarios but also resilient to edge cases, ambiguous requests, and even adversarial attacks.</p><ul><li>A agent performing duties of a self-driving car doesn’t and shouldn’t stop at just making a turn or driving straight on a road, but must assess surrounding conditions as well before making a decision.</li><li>It must have ability to navigate safely when a road is blocked or when a traffic light is broken, or when a human/animal suddenly steps into the road.</li><li>A good AI agent must make <strong>safe</strong> decisions “day after day”, rather than ideal decisions.</li></ul><h3>Conclusion</h3><p>In essence, evaluation techniques provides a feedback loop necessary for the AI agents to learn, adapt, and improve, while ensuring AI agents remain aligned with their intended goals and produce reliable outputs throughout their lifecycle.</p><p>In upcoming parts, we will discuss more on the framework required to setup an evaluation engine and dive into a technique known as <strong>LLM-as-a-Judge</strong>, which requires using a model to automatically score an agent’s output against defined parameters, automating a significant part of the evaluation process, allowing for more frequent and comprehensive testing.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*m0tevwt1GsOSarOT" /><figcaption>Photo by <a href="https://unsplash.com/@guerrillabuzz?utm_source=medium&amp;utm_medium=referral">GuerrillaBuzz</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>We will also deep dive into pros and cons of using different parameters required for assessing performance of AI agents. Till then, Stay Tuned!</p><p>I hope that my experience and learnings may help you in solving your next problem. You can always reach out to me to discuss and share feedback via <a href="/service/mailto:pranjalrastogi1998@gmail.com">Mail</a>, or <a href="https://twitter.com/mepranjal31">Twitter</a>.<br>Follow and Subscribe for more such blogs.</p><p>Till we meet again, “<strong>Keep Innovating!”</strong></p><h3>Further Reads:</h3><p>Read on my observations for <a href="https://medium.com/@prankshaw/navigating-the-perils-of-database-upgrade-best-practices-and-what-to-avoid-14aa205b365c"><strong>Navigating the perils of database upgrade</strong></a><strong>.<br></strong>Find out the techniques on <a href="https://tech.groww.in/building-new-ffbf9d87c561"><strong>How to Build a Project from scratch</strong></a><strong>.<br></strong>Get inside a developer’s mind with <a href="https://medium.com/@prankshaw/log-developer-part-1-the-everyday-problems-1f8af8f699be"><strong>Log.developer — Part 1 — The everyday problems!</strong></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=aab26400a2b7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Dynamic Routing in Payment Gateway Systems — Part 2]]></title>
            <link>https://medium.com/@prankshaw/dynamic-routing-in-payment-gateway-systems-part-2-2e0dbe3a25fa?source=rss-9c5fabee5cc4------2</link>
            <guid isPermaLink="false">https://medium.com/p/2e0dbe3a25fa</guid>
            <category><![CDATA[payment-gateway]]></category>
            <category><![CDATA[payments]]></category>
            <category><![CDATA[engineering]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[prankshaw]]></dc:creator>
            <pubDate>Wed, 05 Feb 2025 06:12:14 GMT</pubDate>
            <atom:updated>2025-02-05T06:12:14.449Z</atom:updated>
            <content:encoded><![CDATA[<h3>Dynamic Routing in Payment Gateway Systems — Part 2</h3><h4>Techniques, Machine learning and what more!?</h4><p>In Part-2, we will try to explore, what are the different ways, in which Dynamic Payment Transaction routing can be implemented for a real world solution.</p><p>But first, let’s recap, what is Dynamic Routing?</p><blockquote>Dynamic routing is a technique to identify and route the incoming payment transactions from gateway to the most optimal and efficient path, with the highest chance of success, by analyzing the success/failure trends of payments flowing via the system.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/952/1*BIVvKB8rc0a6HBwNQ4L_kw.png" /><figcaption>Dynamic Part of the Smart routing engine, as discussed in Part 1</figcaption></figure><p>One may remember this diagram from the <a href="https://medium.com/@prankshaw/dynamic-routing-in-payment-gateway-systems-826ef9ca9c35">Part-1</a>, which depicts the dynamic part of the smart routing engine, making decisions by deriving the success probabilities of each possible path.</p><p>In this Article, we will focus on the popular options used across industry to develop the algorithm determining the probability score.</p><h3>Routing Algorithms</h3><p>Always remember, what may work for one, may not work for other, and thus keeping this in mind, we will discuss some mathematical models, that can help on predicting success probabilities for a variety of payment applications.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*5eJTIxIrqI_ClZHD" /><figcaption>Photo by <a href="https://unsplash.com/@darshan394?utm_source=medium&amp;utm_medium=referral">Deva Darshan</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h4>Utilising Distribution functions and Regression models</h4><p>The foundation of using either a distributed or a regression function lies completely in collecting accurate metrics from historical transaction data and in training/testing of models. Following key metrics can be considered to be collected, such as <strong>Method of Payment</strong>, <strong>amount</strong> and <strong>currency</strong>, <strong>date and time</strong> of the transaction, <strong>latency</strong> of each transaction</p><p><strong>Mathematical Models to consider:</strong></p><ul><li><a href="https://en.wikipedia.org/wiki/Bernoulli_distribution"><strong>Bernoulli Distribution</strong></a><strong>:</strong> For binary outcomes (success/failure). It is a simple model used for the use-cases with only yes/no as possible outcomes.</li><li><a href="https://en.wikipedia.org/wiki/Beta_distribution"><strong>Beta Distribution</strong></a><strong>:</strong> Useful for modeling success rates, which are bounded between 0 and 1, and is helpful if one is predicting the <em>probability</em> of success.</li></ul><p>The ones mentioned are distribution functions and we can either fit a probability distribution function (PDF) or a cumulative distribution function (CDF) for each relevant metrics, and observe outcomes (success/failure).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*WFLNoBxFJg7iik6J" /></figure><p>While distribution functions help analyze individual features, regression models allow us to combine multiple features to predict the probability of transaction success.</p><ul><li><a href="https://en.wikipedia.org/wiki/Logistic_regression"><strong>Logistic Regression</strong></a><strong>:</strong> A binary classification model ideal for predicting the probability of success (0 or 1).</li><li><a href="https://en.wikipedia.org/wiki/Random_forest"><strong>Random Forests</strong></a><strong>:</strong> It is an ensemble learning method used for classification and other related tasks, that works by creating a multitude of decision trees during training.</li></ul><p>For example, we can train a regression model with features like amount, method of payment, and time of transaction to predict the probability of a transaction being successful for Route X. The model will learn the relationships between these features and the likelihood of success and predict accordingly.</p><h4>Understanding Time-Series Models</h4><p><a href="https://en.wikipedia.org/wiki/Time_series">Time series</a> models are statistical techniques used to analyze and forecast data points collected over time. If we consider the context of routing in payment gateway systems , these models can be applied to historical transaction data to identify patterns and predict future performance.</p><p>We will need to use some common metrics like <strong>Success Rate</strong> of a given route, <strong>Latency</strong> of a transaction, <strong>Transaction Volume</strong> along a given route.</p><p><strong>Mathematical Models to consider:<br></strong>Various time series models can be employed, including:</p><ol><li><a href="https://en.wikipedia.org/wiki/Autoregressive_integrated_moving_average"><strong>ARIMA Models</strong></a><strong>:</strong> Autoregressive Integrated Moving Average models are suitable for capturing trends and seasonality in time series data.</li><li><a href="https://en.wikipedia.org/wiki/Exponential_smoothing"><strong>Exponential Smoothing</strong></a><strong>:</strong> This method assigns exponentially decreasing weights to older data points, giving more importance to recent observations.</li></ol><h4>Real-world examples:</h4><p><a href="https://facebook.github.io/prophet/"><strong>Prophet</strong></a><strong>:</strong> Developed by Facebook, Prophet is designed for time series with strong seasonality and trend components.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*AcguKNVbCq9TwzMK" /><figcaption>Photo by <a href="https://unsplash.com/@alinnnaaaa?utm_source=medium&amp;utm_medium=referral">Alina Grubnyak</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h4>Neural Networks to the rescue</h4><p>Again, data collection is key with relevant metrics and proper training with fine-tuning of weights of model is critical.</p><p><strong>Mathematical Models to consider:</strong></p><ul><li><a href="https://en.wikipedia.org/wiki/Multilayer_perceptron"><strong>Multilayer Perceptron (MLP)</strong></a><strong>:</strong> A basic feedforward network suitable for learning non-linear relationships.</li><li><a href="https://en.wikipedia.org/wiki/Recurrent_neural_network"><strong>Recurrent Neural Networks (RNNs)</strong></a><strong>:</strong> It is highly beneficial in cases, where temporal dependencies such as a type of payment transaction’s pattern, are important. Examples include <a href="https://en.wikipedia.org/wiki/Long_short-term_memory"><strong>LSTMs</strong></a>(Long short-term memory).<br>However, for most of the use-cases, where a single payment transaction will be considered, this is less likely to be necessary.</li></ul><p>While there could be lots of different techniques or combination of them that might result in a helpful model, but nevertheless, the ones discussed here serve as a foundation for any data intensive system that wants to perform any sort of dynamic routing.I will also like to add that one must test and tune their model thoroughly and all decisions must be data backed. As it is often said:</p><blockquote>Trust God, all others must bring data….</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*RrryorwuNdkzlo2Q" /><figcaption>Photo by <a href="https://unsplash.com/@markusspiske?utm_source=medium&amp;utm_medium=referral">Markus Spiske</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3>Conclusion</h3><p>All algorithms discussed are at last just some mathematical models defined and tuned as per the needs. An efficient dynamic routing solution will correctly understand data trends and the existing system capabilities to make a prediction. Each model has their pros and cons, and one must make the judgement of using a model based on the data.</p><p>In upcoming parts, we will discuss in detail the parameters controlling the output of algorithms for a dynamic routed solution, and understand their need. Till then, Stay Tuned!</p><p>I hope that my experience and learnings may help you in solving your next problem. You can always reach out to me to discuss and share feedback via <a href="/service/mailto:pranjalrastogi1998@gmail.com">Mail</a>, or <a href="https://twitter.com/mepranjal31">Twitter</a>.<br>Follow and Subscribe for more such blogs.</p><p>Till we meet again, “<strong>Keep Hustling!”</strong></p><h3>Further Reads:</h3><p>Read on Techniques for <a href="https://tech.groww.in/building-new-ffbf9d87c561"><strong>How to Build a Project from scratch</strong></a><strong>.<br></strong>Get inside a developer’s mind with <a href="https://medium.com/@prankshaw/log-developer-part-1-the-everyday-problems-1f8af8f699be"><strong>Log.developer — Part 1 — The everyday problems!</strong></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2e0dbe3a25fa" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Navigating the perils of database upgrade, best practices and what to avoid!]]></title>
            <link>https://medium.com/@prankshaw/navigating-the-perils-of-database-upgrade-best-practices-and-what-to-avoid-14aa205b365c?source=rss-9c5fabee5cc4------2</link>
            <guid isPermaLink="false">https://medium.com/p/14aa205b365c</guid>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[database]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[challenge]]></category>
            <dc:creator><![CDATA[prankshaw]]></dc:creator>
            <pubDate>Wed, 04 Dec 2024 07:13:40 GMT</pubDate>
            <atom:updated>2024-12-04T07:13:40.751Z</atom:updated>
            <content:encoded><![CDATA[<p>Database upgrades are a necessary evil in the world of softwar evelopment. While necessary for reaping the benefits of newer versions such as bringing performance improvements, security enhancements, and new features, they can ba daunting task fraught with potential pitfalls, a source of significant headaches.</p><p>We will dive deep into the challenges of upgrading a database, best practices, pitfalls to avoid and will discuss further by taking an example of a specific upgrade of MySQL database from version 5 to version 8, which was a real challenge for me and my team in recent past and what one can do to avoid this in the future.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*HEGq3CKSHgbYQSSw" /><figcaption>Photo by <a href="https://unsplash.com/@sortino?utm_source=medium&amp;utm_medium=referral">Joshua Sortino</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3><strong>Challenges of Database upgrade</strong></h3><ol><li><strong>Incompatibility Issues and Data Type Changes:</strong></li></ol><ul><li><strong>Implicit Conversions and Data Loss:</strong> Newer versions may enforces stricter type checking, which can lead to unexpected implicit conversions and potential data loss.</li><li><strong>Best Practice:</strong> Carefully analyze data types and use explicit casts to avoid unintended conversions.</li></ul><p><strong>2. Performance Bottlenecks and Index Optimization:</strong></p><ul><li><strong>Database Engine Changes:</strong> Newer versionsmay introduce significant changes in interpretation, indexing and compression, which can impact performance if not configured correctly.</li><li><strong>Best Practice:</strong> Conduct thorough performance testing before and after the upgrade. Analyze query execution plans and optimize indexes to improve query performance.</li></ul><p><strong>3. Security Vulnerabilities and Patching:</strong></p><ul><li><strong>Outdated Security Practices:</strong> Older versions may have known security vulnerabilities that have been addressed in later versions.</li><li><strong>Best Practice:</strong> Stay up-to-date with the latest security patches and consider using a security audit tool to identify potential vulnerabilities.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ARFyPOLy8AFify2M" /><figcaption>Photo by <a href="https://unsplash.com/@scottwebb?utm_source=medium&amp;utm_medium=referral">Scott Webb</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h4><strong>Best Practices for a Smooth MySQL 5 to 8 Upgrade</strong></h4><ol><li><strong>Thorough Planning and Testing:</strong></li></ol><ul><li><strong>Create a Detailed Migration Plan:</strong> Outline the steps involved, including data migration, schema changes, and testing.</li><li><strong>Set Up a Test Environment:</strong> Replicate your production environment to test the upgrade process and identify potential issues.</li><li><strong>Backup and Recovery Strategy:</strong> Implement a robust backup and recovery strategy to minimize data loss risk.</li></ul><p><strong>2. Gradual Approach and Phased Migration:</strong></p><ul><li><strong>Upgrade Non-Critical Components First:</strong> Start with non-critical components to identify and address any issues before migrating the core database.</li><li><strong>Monitor Performance Closely:</strong> Continuously monitor the performance of the upgraded database and adjust configuration as needed.</li></ul><p><strong>3. Seek Expert Assistance and Community Support:</strong></p><ul><li><strong>Consult with Database admins and Experts:</strong> Leverage the expertise of DB admins and experts or community forums for guidance.</li><li><strong>Utilize Stack Overflow and Other Resources:</strong> Learn from the experiences of others and find solutions to common problems.</li></ul><h3>MySQL 5 to 8 Upgrade: Decoding Common Technical Hurdles</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*SfzEyD9M0EOBZYbQ" /><figcaption>Photo by <a href="https://unsplash.com/@byronsterk?utm_source=medium&amp;utm_medium=referral">Byron Sterk</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Upgrading MySQL from version 5 to 8 brings a host of improvements, but also introduces potential compatibility issues that can trip up even seasoned developers. We will dive deep into common technical challenges encountered during this upgrade.</p><p><strong>1. Stricter SQL Mode and Data Type Changes</strong></p><p>MySQL 8 enforces a stricter SQL mode by default, leading to errors that might have been silently ignored in version 5. This often manifests in data truncation issues or problems with implicit data type conversions.</p><ul><li><strong>Example:</strong> A common Stack Overflow question involves DECIMAL to DOUBLE conversions. In MySQL 5, implicit conversion might truncate values without warning. MySQL 8, with its stricter mode, will throw an error, forcing you to handle the conversion explicitly.</li></ul><pre>-- MySQL 5 (might truncate silently)<br>INSERT INTO my_table (double_col) VALUES (123.456789012345);<br>-- MySQL 8 (likely throws an error)<br>INSERT INTO my_table (double_col) VALUES (123.456789012345);<br><br>--Running this code may cause problems, use with caution </pre><ul><li><strong>Solution:</strong> Explicitly cast values and review schema definitions to ensure data integrity during the upgrade process.</li></ul><p><strong>2. JSON Field Handling and Function Changes</strong></p><p>MySQL 8 significantly improved JSON support, but this comes with changes to functions and operators.</p><ul><li><strong>Example:</strong> The -&gt; operator in MySQL 5 might behave differently in MySQL 8 when dealing with non-existent paths in JSON documents. Many Stack Overflow users have encountered unexpected NULL values due to this change.</li></ul><pre>-- MySQL 8 (likely returns NULL)<br>SELECT data-&gt;&#39;$.non.existent.path&#39; FROM my_table;<br><br>-- MySQL 5 (might return a value)<br>SELECT data-&gt;&#39;$.non.existent.path&#39; FROM my_table;<br><br>--Running this code may cause problems, use with caution</pre><ul><li><strong>Solution:</strong> Familiarize yourself with the updated JSON functions (e.g., JSON_EXTRACT, JSON_VALUE) and adjust your queries accordingly.</li></ul><p><strong>3. Reserved Keywords and Syntax Conflicts</strong></p><p>MySQL 8 introduces new reserved keywords that might conflict with existing identifiers.</p><ul><li><strong>Example:</strong> LAST_USED is a new keyword in MySQL 8 related to the data dictionary. If you have a column or stored procedure named LAST_USED in your MySQL 5 database, it will cause syntax errors during the upgrade. This is a frequent issue reported on Stack Overflow.</li></ul><pre>-- MySQL 5 (valid)<br>SELECT LAST_USED FROM my_table;  <br><br>-- MySQL 8 (syntax error due to reserved keyword)<br>SELECT LAST_USED FROM my_table;<br><br>--Running this code may cause problems, use with caution</pre><ul><li><strong>Solution:</strong> Enclose the identifier in backticks (`) to escape it, or rename the conflicting object.</li></ul><pre>-- MySQL 8 (workaround)<br>SELECT `LAST_USED` FROM my_table;</pre><p><strong>4. Query Optimizer Changes and Performance Implications</strong></p><p>MySQL 8’s optimizer has undergone significant revisions, which can lead to different execution plans for the same query. This can result in performance regressions if not addressed.</p><ul><li><strong>Example:</strong> Internet is filled with cases where previously well-performing queries become slow after the upgrade. This often stems from changes in how the optimizer handles indexes, especially with complex joins or subqueries.</li><li><strong>Solution:</strong> Thoroughly test your application’s queries after the upgrade. Use the EXPLAIN statement to analyze execution plans and optimize indexes as needed. Consider using the optimizer_switch system variable to fine-tune optimizer behavior.</li></ul><p><strong>5. Authentication Plugin Changes and Password Security</strong></p><p>MySQL 8 defaults to the caching_sha2_password authentication plugin, replacing the older mysql_native_password plugin. This impacts how client applications connect to the server.</p><ul><li><strong>Example:</strong> Many users on Stack Overflow have reported connection errors after upgrading, particularly with older client libraries that don’t support the new authentication plugin.</li><li><strong>Solution:</strong> Ensure your client libraries are compatible with caching_sha2_password. If necessary, you can temporarily switch back to mysql_native_password during the transition, but be aware of the security implications.</li></ul><h3><strong>Key Takeaways</strong></h3><p>Upgrading to MySQL 8 offers substantial benefits, but it demands a thorough understanding of the underlying changes. By anticipating these common technical hurdles and leveraging the wealth of knowledge available on the internet, onecan ensure a smooth and successful migration.</p><h3><strong>Conclusion</strong></h3><p>Upgrading any database can be a complex process, but with careful planning and execution, it can be a successful endeavor. By understanding the common pitfalls and following best practices, one can minimize risks.</p><p>Always remember, a well-executed database upgrade can significantly improve your application’s performance, security, and scalability. Thus it is a an act of balancing the pos and cons.</p><p>I hope that my experiences may help you in solving your next problem. You can always reach out to me to discuss and share feedback via <a href="/service/mailto:pranjalrastogi1998@gmail.com">Mail</a>, <a href="https://twitter.com/mepranjal31">Twitter</a>.<br>Follow and Subscribe for more such blogs.</p><p>Till we meet again, “<strong>Keep Exploring!</strong>”</p><h3>Further Reads:</h3><p>Log.Developer Series Part 1: <a href="https://medium.com/@prankshaw/log-developer-part-1-the-everyday-problems-1f8af8f699be"><strong>The everyday problems!</strong></a></p><p>Read on Techniques for <a href="https://tech.groww.in/building-new-ffbf9d87c561"><strong>How to Build a Project from scratch</strong></a><strong>.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=14aa205b365c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Log.developer-Part 3— The rise of AI and how to use it!]]></title>
            <link>https://medium.com/@prankshaw/log-developer-part-3-the-rise-of-ai-and-how-to-use-it-6b1177f325bc?source=rss-9c5fabee5cc4------2</link>
            <guid isPermaLink="false">https://medium.com/p/6b1177f325bc</guid>
            <category><![CDATA[chatgpt]]></category>
            <category><![CDATA[developer]]></category>
            <category><![CDATA[developer-tools]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[prankshaw]]></dc:creator>
            <pubDate>Thu, 31 Oct 2024 12:06:07 GMT</pubDate>
            <atom:updated>2024-10-31T12:06:07.159Z</atom:updated>
            <content:encoded><![CDATA[<blockquote><em>A developer’s perspective on the rise of AI applications, their use in everyday lives, companies betting on AI inclusive lifestyles and how to utilise them.</em></blockquote><figure><img alt="AI and inclusion" src="https://cdn-images-1.medium.com/max/1024/0*7MpVOeL___vRHNqo" /><figcaption>Photo by <a href="https://unsplash.com/@pietrozj?utm_source=medium&amp;utm_medium=referral">Pietro Jeng</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3>What can AI do?</h3><p>Just read through this small excerpt, I generated using a simple prompt in a commonly used chatbot, exploring the rise of AI and discuss how one can start leveraging it to improve one’s life as a developer.</p><blockquote>What does AI mean for businesses and individuals? The most significant benefit of AI is its potential to free up human time and energy for more productive and valuable tasks. By automating repetitive or mundane work that would typically be done by humans, professionals now have more time to focus on critical tasks, such as strategy development or creative work.</blockquote><blockquote>In addition to reducing workload, AI also enables professionals to make better-informed decisions by providing real-time data-driven insights. For example, data analytics can be used to identify patterns in customer behavior, allowing businesses to make more accurate predictions about future customer needs and improve their product offerings accordingly.</blockquote><blockquote>But how can you start leveraging AI for your own operations? The first step is to identify the areas where automation and new insights could be most beneficial. For small enterprises, simple automation of data entry or customer interactions can make a huge difference in daily workload. For larger organizations, AI-powered analytics can help executives make more confident business decisions.</blockquote><p>Simple to use, provides multiple options to provide input and generate output, power of millions of computing operations, literally at your fingertips, which not only performs a mundane task based on set of operations or steps provided, but also with an added intelligence, understand the context of input and refines the output accordingly.</p><p>Such benefits and ease to use have made it easy for use of artificial intelligence across various applications and operations in our lives.</p><h3>Is it new and is it gonna take over our world!?</h3><p>Simple answer is no, and long answer is to have a separate discussion. But nether use of AI based operations new in our life, common examples being Siri being introduced back in 2011 and autocomplete/autocorrect being present in our lives since early 2000s, nor have we created <a href="https://en.wikipedia.org/wiki/Skynet_(Terminator)">Skynet</a>, which will become self aware and gonna take over our world.</p><p>Afterall, all these AI based applications are powered by simple algorithms following simple mathematical operations. Sometimes, it is just fascinating to think, how simple mathematics can be elevated to what really is an art.</p><figure><img alt="AI and art" src="https://cdn-images-1.medium.com/max/1024/0*QtKd2OHWmVrgRW0s" /><figcaption>Photo by <a href="https://unsplash.com/@dylhunter?utm_source=medium&amp;utm_medium=referral">Dylan Hunter</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3>How can I use AI powered tools as a developer??</h3><p>Unless, you have been living under a rock for past 1.5–2 years, you must have been exposed to some sort of AI based application in your favorite tools. Nevertheless, I just wanted to present a brief summary of basic applications of API powered tools tools, that one can use, among, what really is an ocean.</p><h4>Write test cases</h4><p>Important but sometimes a pain. Test cases provides structure to your codebase and prevent it from breaking due to new additions/logic changes. Tools like copilot, tabnine can be integrated with editors to understand the context and logic of code, complexity of integrations in a method and generate basic structure of testcases. For simple enough, standalone methods, they can generate fully functional test cases.</p><p>This helps, not only in saving precious time of developer, by writing basic boilerplate and structure for tests but also allows them tomnfocus on important stuff such as logic and integration</p><h4>Refactor your code</h4><p>Just like test generation functionality helpm your provide structure to your codebase, refactoring helps to optimise it and tools like copilot, integrated with your codebase, as well as trained on public github repositories can identify the coding patterns which can be utilised in your codebase and provide suggestions to improve but mostly simplify it.</p><figure><img alt="AI and coding" src="https://cdn-images-1.medium.com/max/1024/0*ypk6AtmL2Ag6ZXCk" /><figcaption>Photo by <a href="https://unsplash.com/@possessedphotography?utm_source=medium&amp;utm_medium=referral">Possessed Photography</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h4>Data insights</h4><p><a href="https://en.wikipedia.org/wiki/Large_language_model">LLMs</a> are the talk of the market in AI based tools, and they are extremely good in consuming large loads to data and uncover unseen patterns from that data, which combined with human intelligence a=can be used to derive isghts and build strategies.</p><p>Really simplifies a consultant’s job, doest it not?</p><h4>No more boring decks</h4><p>Building on data insight feature, with impage and graph generation capabilities, the tools present in the market really changed, how one generate design documents., presentation decks and feeds data in them.</p><h4>Bolierplate from image to editor</h4><p>One really creative application derived from the capabilities of AI powered tools was to generate boilerplate code directly from wiremocks or design diagrams, whether they are present as an image in <a href="https://www.figma.com/">Figma</a> or just sketched out on a whiteboard.</p><p>These are just some common applications, that I have used in past 1 year. Definiutely there are many more, and will love to hear about them from my dear readers as well.</p><h3>Where do we land…?</h3><p>The use of AI based applications in future is gonna be a norm, and soon we will have some ort of AI based feature incorporated in even the simples of things that happen in our everyday lives, and thus, as a developer, one must definitely learn and explore them today, learn about them and utilize them. These AI features are not a replacement but tools to help one, and one should embrace, use them in that way only.</p><p>I hope that my experiences may help you in solving your next problem. You can always reach out to me to discuss and share feedback via <a href="/service/mailto:pranjalrastogi1998@gmail.com">Mail</a>, <a href="https://twitter.com/mepranjal31">Twitter</a>.<br>Follow and Subscribe for more such blogs.</p><p>Till we meet again, “<strong>Keep Learning!</strong>”</p><h3>Further Reads:</h3><p>Read Part 1: <a href="https://medium.com/@prankshaw/log-developer-part-1-the-everyday-problems-1f8af8f699be"><strong>The everyday problems!</strong></a></p><p>Read Part 2: <a href="https://medium.com/@prankshaw/log-developer-part-2-the-cutting-edge-utilization-6c635b3fa7fb"><strong>The cutting-edge utilization!</strong></a></p><p>Read on Techniques for <a href="https://tech.groww.in/building-new-ffbf9d87c561"><strong>How to Build a Project from scratch</strong></a><strong>.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6b1177f325bc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Smartness in Payment Systems — A tale of routing transactions]]></title>
            <link>https://medium.com/@prankshaw/smartness-in-payment-systems-a-tale-of-routing-transactions-1c3d65ab063e?source=rss-9c5fabee5cc4------2</link>
            <guid isPermaLink="false">https://medium.com/p/1c3d65ab063e</guid>
            <category><![CDATA[payment-gateway]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[computer-science]]></category>
            <category><![CDATA[deep-learning]]></category>
            <dc:creator><![CDATA[prankshaw]]></dc:creator>
            <pubDate>Wed, 24 Jul 2024 07:17:20 GMT</pubDate>
            <atom:updated>2024-07-24T07:17:20.185Z</atom:updated>
            <content:encoded><![CDATA[<h3>Smartness in Payment Systems — A tale of routing transactions</h3><h3>Payment Systems</h3><p>A general payment system performs the following functions:</p><ul><li>Allows a customer to choose a payment method from available options</li><li>Performs transfer of money securely by connecting payer and payee through channels such as <a href="https://en.wikipedia.org/wiki/Payment_gateway"><strong>Payment Gateways</strong></a></li><li>Acknowledgment of successful transaction to both the involved parties</li></ul><h4>Common Problems faced by Payment Systems</h4><p>Though the system mentioned above seems simple, a lot goes behind the scenes to ensure the success of a transaction. The biggest nightmare that payment systems face currently is as follows:</p><ol><li><strong>Decline of transactions</strong>: Each decline can be directly related to revenue impact, bad customer experience, and potential loss of business. It is estimated that between <strong><em>5% and 20%</em></strong> of all e-commerce transactions fail due to external factors associated with merchants, customers, gateway, etc.</li><li><strong>Unplanned outages and downtimes</strong>: Payment systems are dependent on 3rd party <a href="https://en.wikipedia.org/wiki/Payment_service_provider">payment service providers</a>, banks, and gateways, and any issue with these systems can severely impact the flow of money between customers and companies, thus directly impacting the overall revenue.</li><li><strong>Increased cost per transaction</strong>:<strong> </strong>The 3rd party integrations to support a payment system, usually charge fees based on many factors including traffic, and transaction amount, and sometimes can be very high, impacting the overall revenue earned.</li></ol><p>At a smaller scale, the gateway system design is usually not smart and routes the incoming request to the required endpoint based on a very rigid logic, and faces the problems mentioned above.</p><p>As the system scales, it becomes essential to introduce <strong>smartness in the payment gateway</strong> to route transactions based on <strong>multiple external factors, current and past scenarios as well as future predictions</strong>.</p><h3>Routing in Payment Systems</h3><p>The underlying payments system can perform these ‘smart’ routing in the following ways:</p><h4>Static Routing</h4><ol><li>It ensures the availability of choices to route the transaction, instead of a single hardcoded path, as is the case with traditional payment systems</li><li>It involves a set of <strong>pre-written configs</strong> and logics with appropriate flags, which can be enabled and disabled quickly by the system admins</li><li>The configs are built and kept updated. The system configs evolve based on past, current, and future trends</li><li>Flexible, but slow, as the decision of tweaking the configs is done manually, which may take anywhere between seconds to minutes, depending on the system&#39;s complexity which during times of incidents/disasters can severely impact the system’s performance and revenue.</li></ol><figure><img alt="Smart Routing Engine Architecture" src="https://cdn-images-1.medium.com/max/1024/1*kp4kMCYAEuQgW2lD_03jow.png" /><figcaption>Smart Routing Engine Architecture</figcaption></figure><h4>Dynamic Routing</h4><ol><li>Built on the shoulders of a static config-based system, the decision to choose a route lies solely with an algorithm, which can take such a decision instantaneously.</li><li>By utilizing Machine learning algorithms to automatically identify and choose the most optimal route for every transaction. Certain mathematical <strong>distribution functions and Regression models</strong> are helpful with the involved time-dependent data to determine key characteristics and emerging trends and make decisions.</li><li>High weightage to recent trends to ensure the highest success probability</li><li>Equipped with a <strong>feedback loop</strong> as well, to ensure that the system can improve itself as it grows, by constantly saving and passing down the status of transactions against each decision taken by the model. This helps <strong>reduce any kind of bias</strong> that might have been introduced during training.</li></ol><h3>Benefits of Smart Routing in Payment Systems</h3><p>A payment system armored with such smart-routing techniques system can help address the common pain points by:</p><ul><li><strong>Reducing the decline rate</strong> by dynamically choosing the appropriate route/endpoint, with which the probability of success is the highest</li><li><strong>Distributing the load</strong> among multiple payment service providers associated with a payment gateway, without overwhelming the system</li><li>Improving declines due to internal factors such as <strong>fraud detection</strong> by constantly learning and updating</li><li><strong>Lowering the transaction costs</strong>, by choosing the path with the most optimal fee and success ratio</li></ul><figure><img alt="Why Smart Routing — Benefits" src="https://cdn-images-1.medium.com/max/1024/1*kKCpOyl0uXsxAB_Oned_Gg.png" /><figcaption>Why Smart Routing — Benefits</figcaption></figure><h3>Conclusion</h3><p>With the increase in digital payments, it becomes much more essential to ensure that the flow of money is smooth and secure and that underlying payment systems work as expected at scale.</p><p>A payment system with smart-routing techniques will ensure that the merchant gets paid, and will help in reducing the overall decline rate, lowering costs, increasing system security, and faster transaction processing.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1c3d65ab063e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Dynamic Routing in Payment Gateway Systems]]></title>
            <link>https://medium.com/@prankshaw/dynamic-routing-in-payment-gateway-systems-826ef9ca9c35?source=rss-9c5fabee5cc4------2</link>
            <guid isPermaLink="false">https://medium.com/p/826ef9ca9c35</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[payment-gateway]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[payments]]></category>
            <category><![CDATA[money]]></category>
            <dc:creator><![CDATA[prankshaw]]></dc:creator>
            <pubDate>Wed, 31 Jan 2024 13:43:27 GMT</pubDate>
            <atom:updated>2024-01-31T13:43:27.761Z</atom:updated>
            <content:encoded><![CDATA[<h4>Part -1 What’s the fuss about!?</h4><p>Every payment system needs to route the incoming transactions to the proper gateway. Usually, such paths are hardcoded in the system but can be generated dynamically or “smartly” routed.</p><p>As the payment system scales, it becomes almost essential to introduce <strong>smartness in the payment gateway</strong> to route transactions to avoid dependency on one route and gain the ability to switch easily.</p><p>Smart routing can be achieved in 2 ways:</p><ol><li><strong>Static Routing</strong></li><li><strong>Dynamic Routing</strong></li></ol><p>Static Routing involves a set of <strong>pre-written configs</strong> and logics with appropriate flags, which can be enabled and disabled quickly by the system admins. The configs are built and kept updated system evolves based on past, current, and future trends.</p><p>In this series of articles, we will be discussing the dynamic routing aspect of the solution.</p><p>Dynamic routing presents an engineering challenge, as it combines the capabilities to understand the trend in past data of ongoing payment systems in a weighted manner and predicts the future by recommending the route, in a system that is very sensitive to initial conditions and gets affected by millions of external factors.</p><h4>Understanding Dynamic Routing</h4><p>Dynamic routing, as stated tries to analyze the trends of payments via a payment system, where the most recent data is almost always weighted higher, and provides a route to perform payments with the highest probability of success by predicting future events(where the recent trends have the most effect, thus highest weightage)</p><p>It is usually achieved using mathematical models such as <strong>distribution functions and Regression models</strong>, which<strong> </strong>are highly capable and helpful in identifying emerging trends in time-sensitive data, by determining key characteristics and making decisions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*E27flhJgF2Re4FWA" /><figcaption>Photo by <a href="https://unsplash.com/@kierinsightarchives?utm_source=medium&amp;utm_medium=referral">Kier in Sight Archives</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>To achieve this on a large scale, the logic can be coded in a script using libraries written for such machine learning models. <br>As such datasets are enormous and complex, writing mathematical models is useful for analyzing them. Machine Learning models(essentially mathematical models under the hood) are helpful for very large and complex data sets, as they can be trained on historical data to understand such trends more effectively.</p><h4>Need for Dynamic Routing</h4><p>In large complex systems, millions of calls are being made every minute to such payment gateway and payment service providers to perform transactions, where the health and performance of each involved system are highly dependent on recent data, and change very quickly, choosing a system with a downtime/low success rate even for few minutes can impact revenue worth thousands of dollars.</p><p>Dynamic routing helps solve the mentioned challenge as follows</p><ol><li>The decision to choose a route lies solely with an algorithm, which can make such a decision instantaneously, instead of a human, which depending on system complexity can take from minutes to hours.</li><li>Utilizing Machine learning algorithms to automatically identify and choose the most optimal route for every transaction instead of a human making decisions, which can be influenced and biased.</li><li>Ability to be equipped with a <strong>feedback loop</strong> as well, to ensure that the system can improve itself as it grows, and <strong>reduce any kind of bias</strong> that might have been introduced during training.</li></ol><p>Here’s a sneak peek of designing a static and dynamic routing solution, which we will discuss in upcoming parts.</p><figure><img alt="Smart Routing Engine" src="https://cdn-images-1.medium.com/max/1024/1*7GQW0KL19PJT7hc4rGvc-w.png" /><figcaption>Smart Routing Engine</figcaption></figure><h4>Conclusion</h4><p>A dynamic routing solution helps to automate the process of routing transactions in a payment system by understanding data trends and predicting system capabilities through mathematical models.</p><p>In upcoming parts, we will discuss the design of a dynamic routed solution and, explore some specific approaches and related algorithms. Stay Tuned!</p><p>I hope that my experience and learnings may help you in solving your next problem. You can always reach out to me to discuss and share feedback via <a href="/service/mailto:pranjalrastogi1998@gmail.com">Mail</a>, or <a href="https://twitter.com/mepranjal31">Twitter</a>.<br>Follow and Subscribe for more such blogs.</p><p>Till we meet again, “<strong>Keep Exploring!</strong>”</p><h3>Further Reads:</h3><p>Read on Techniques for <a href="https://tech.groww.in/building-new-ffbf9d87c561"><strong>How to Build a Project from scratch</strong></a><strong>.<br></strong>Get inside a developer’s mind with <a href="https://medium.com/@prankshaw/log-developer-part-1-the-everyday-problems-1f8af8f699be"><strong>Log.developer — Part 1 — The everyday problems!</strong></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=826ef9ca9c35" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Log.developer-Part 2 — The cutting-edge utilization!]]></title>
            <link>https://medium.com/@prankshaw/log-developer-part-2-the-cutting-edge-utilization-6c635b3fa7fb?source=rss-9c5fabee5cc4------2</link>
            <guid isPermaLink="false">https://medium.com/p/6c635b3fa7fb</guid>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[chatgpt]]></category>
            <category><![CDATA[perspective]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[development]]></category>
            <dc:creator><![CDATA[prankshaw]]></dc:creator>
            <pubDate>Sun, 30 Jul 2023 09:10:54 GMT</pubDate>
            <atom:updated>2023-07-30T09:10:54.458Z</atom:updated>
            <content:encoded><![CDATA[<h3>Log.developer-Part 2 — The cutting-edge utilization!</h3><blockquote>A developer’s perspective on the major cutting-edge techniques in the <a href="https://www.google.com/search?q=2023"><strong>2023</strong></a> market and the influence they impose.</blockquote><figure><img alt="Depicting latest and cutting-edge technology" src="https://cdn-images-1.medium.com/max/1024/0*T9o_9k3GD5dB212V" /><figcaption>Photo by <a href="https://unsplash.com/es/@julientromeur?utm_source=medium&amp;utm_medium=referral">julien Tromeur</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3>The AI Takeover</h3><p>Anyone aware of AI has for once gone through the possible ‘<a href="https://en.wikipedia.org/wiki/Skynet_(Terminator)">Skynet</a>’ scenario and possible AI takeover. Though advances in AI may sound scary to some, the endless possibilities in the fields of data analysis, event prediction, and task completion have been very exciting.</p><p>In the battle of rising AI vs losing jobs, I am pro-AI, as with every advance there has always been a fear of losing jobs, but these innovations have turned out to be much more productive for the civilization and have produced new jobs along the way. <br>But I am also aware of the danger that AI may have, especially the <a href="https://www.wikiwand.com/en/Black_box">black-box</a> nature of models supporting them. I will recommend you to read one of my favorite books on the topic <strong><em>‘</em></strong><a href="https://www.goodreads.com/en/book/show/28186015"><strong><em>Weapons of Math Destruction</em></strong></a><strong><em>’</em></strong>, which truly encapsulates the dangers such black-box mathematical models have on this world.</p><p>Let’s start with a few exciting developments in the 2023 market.</p><h4>The Rise of Large Language Models</h4><figure><img alt="ChatGPT picture" src="https://cdn-images-1.medium.com/max/1024/0*Owcl9B_0ZR5chNrF" /><figcaption>Photo by <a href="https://unsplash.com/@iammottakin?utm_source=medium&amp;utm_medium=referral">Mojahid Mottakin</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>ChatGPT is the talk of the town in 2023, with every individual, and company trying to get their hands on the technology or develop their own. Many have joined forces by integrating it with their products.</p><p>You can now style yourself using prompt-generated styles on Myntra, order food through Swiggy, AI-assisted travel itineraries on Expedia, and many more. Microsoft has integrated the same with their search engine, Intuit is utilizing this to build an <a href="https://www.intuit.com/strategy/">AI-driven expert platform</a> and Google has gone beyond creating their model named ‘<a href="https://bard.google.com/">Bard</a>’, integrating it with many of their products. Companies have started relieving their customer service workforce by replacing it with conversational AI models.</p><p><strong>Developer’s Dilemma</strong></p><p>Strides have been made in the <em>software development domain</em> as well, with GitHub relating <a href="https://github.com/features/preview/copilot-x">Copilot X</a> utilizing ChatGPT models to generate code snippets, comments, pull requests support, etc. <br>Developers have been given access to platforms to utilize the powers of ChatGPT and generative AI models for developing new products catering to such use cases.</p><p><strong>Availability of LCNC</strong></p><p>LCNC or Low code No code models have started popping up with much more advanced features nowadays, thanks to ChatGPT and other models.</p><p>It is now possible to generate the entire codebases for regular problems/use cases such as generating websites, writing test cases, file parsers etc, using nothing but just prompts, in any language of their choice. Some may fear that such advances pose a threat to developers, but software development encompasses much more than just coding, and require skills such as understanding requirements, developing infrastructure, and designing solutions.</p><p>Within a few years, many of such use cases will also be covered by the advanced models, but it will require support from developers to create pathways that may allow the models to learn and perform these tasks successfully and responsibly, which in turn will open much more exciting opportunities for people to work with.</p><p><strong>Limitless possibilities</strong></p><p>I want all my readers to not be afraid of the rise of such AI models, but be excited about the endless possibilities that they may present. With a role to lay in all the fields from astronomy to medical sciences to archaeology to cryptography, the rise of AI in itself is a revolution presenting an opportunity to be seized with both hands to become capable to survive the market.</p><p>Though not afraid, I will like to be and will advise my readers to be <em>cautious</em> and support the responsible usage of such models, especially in the case of black-box models which may generate a bias, we might not even become aware of until it is too late.</p><p>I will highly recommend you to watch the TED talk below, by OpenAI cofounder Greg Brockman, regarding the potential that ChatGPT and such models have.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fembed.ted.com%2Ftalks%2Fgreg_brockman_the_inside_story_of_chatgpt_s_astonishing_potential&amp;display_name=TED&amp;url=https%3A%2F%2Fwww.ted.com%2Ftalks%2Fgreg_brockman_the_inside_story_of_chatgpt_s_astonishing_potential&amp;image=https%3A%2F%2Fpi.tedcdn.com%2Fr%2Ftalkstar-photos.s3.amazonaws.com%2Fuploads%2F6ffe39ec-966a-4c9d-9268-afb87ceb0127%2FGregBrockman_2023-embed.jpg%3Fh%3D315%26w%3D560&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=ted" width="560" height="315" frameborder="0" scrolling="no"><a href="https://medium.com/media/32177234904aeb518fdcd0d930cab5dc/href">https://medium.com/media/32177234904aeb518fdcd0d930cab5dc/href</a></iframe><h3>The illusive reality</h3><p>What’s real and what you perceive as real is changing fast. We are consuming news from social media platforms, put forth by <em>accounts</em> with sometimes no credibility, interacting with society via Instagram posts and fact-checking via Google searches, none of which have a foolproof credibility mechanism, yet with the power of society and people, correct information is still getting more hits than fake news.</p><figure><img alt="Real becoming rare." src="https://cdn-images-1.medium.com/max/1024/0*qdCYHnCX0fnA-hZb" /><figcaption>Photo by <a href="https://unsplash.com/@brett_jordan?utm_source=medium&amp;utm_medium=referral">Brett Jordan</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Whatever may be the consequences of such digital social interactions, it is important to be engaged with them to understand and adapt to the current trends. Companies and developers need to get the know-how of these systems to stay at the top of their game.</p><h4>Changing the way you interact</h4><p>The way we perceive and interact is changing rapidly, with buttons to touch screens to introducing worlds to augmented reality with <a href="https://pokemongolive.com/">Pokémon Go</a>, Facebook changing to Meta, and releasing their Virtual reality world called <a href="https://about.meta.com/metaverse/">Metaverse</a>, we have come a long way.</p><figure><img alt="People using AR/VR headsets" src="https://cdn-images-1.medium.com/max/1024/0*5XHu92J0Ez8NenJV" /><figcaption>Photo by <a href="https://unsplash.com/@ciabattespugnose?utm_source=medium&amp;utm_medium=referral">Lucrezia Carnelos</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Soon everyone will start pouring their resources towards VR/AR applications, and use cases as simple as <strong>collaborative development</strong>, business meetings, watching movies, and learning skills will be offered.</p><p>As a developer, it will become very important, very soon to transform your mindset as well as skill set towards such use cases.</p><h4>Big player entry</h4><p>With Apple announcing their <a href="https://www.apple.com/apple-vision-pro/">Vision Pro</a> headsets, the market for such wearables is gonna change fast and will explode, and it will become necessary for companies and individuals to ride this train and adapt their products, offering, and skills to match such trends.</p><p>I believe that Apple’s entry is going to change the market fast and as a <strong>developer</strong>, one should think about use cases where such wearables can be utilized to offer end-customers a much more enriched experience and learn the skills needed for the same.</p><h3>Concluding:</h3><p>Though the following events have been widely published, with ChatGPT amassing over 100 million users by June and Apple’s Vision Pro introduction video getting more than 50 million views, I have tried presenting my perspective by reading, talking, and collecting the experience of people using them to present an idea of how they may influence the upcoming years of your life.</p><p>I hope that my experiences may help you in solving your next problem. You can always reach out to me to discuss and share feedback via <a href="/service/mailto:pranjalrastogi1998@gmail.com">Mail</a>, <a href="https://twitter.com/mepranjal31">Twitter</a>.<br>Follow and Subscribe for more such blogs.</p><p>Till we meet again, “<strong>Keep Exploring!</strong>”</p><h3>Further Reads:</h3><p>Read Part 1: <a href="https://medium.com/@prankshaw/log-developer-part-1-the-everyday-problems-1f8af8f699be"><strong>The everyday problems!</strong></a></p><p>Read on Techniques for <a href="https://tech.groww.in/building-new-ffbf9d87c561"><strong>How to Build a Project from scratch</strong></a><strong>.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6c635b3fa7fb" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>