<?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"><channel><title><![CDATA[MTA's Tech]]></title><description><![CDATA[This publication discusses several concepts around technology such as Software Engineering and AI.]]></description><link>https://mta-tech.hashnode.dev</link><generator>RSS for Node</generator><lastBuildDate>Tue, 24 Nov 2026 13:31:12 GMT</lastBuildDate><atom:link href="https://mta-tech.hashnode.dev/rss.xml" rel="self" type="application/rss+xml"/><language><![CDATA[en]]></language><ttl>60</ttl><item><title><![CDATA[How Message Queues Save You When Bugs Hit Production]]></title><description><![CDATA[Discusses how message queues can help mitigate issues when bugs reach production.]]></description><link>https://mta-tech.hashnode.dev/how-message-queues-save-you-when-bugs-hit-production</link><guid isPermaLink="true">https://mta-tech.hashnode.dev/how-message-queues-save-you-when-bugs-hit-production</guid><dc:creator><![CDATA[Tanvir Ahmed]]></dc:creator><pubDate>Wed, 18 Nov 2026 14:05:16 GMT</pubDate><content:encoded><![CDATA[<p>As always, standard CI/CD rollbacks, reverting a Git commit or rolling back a production deployment isn't enough to fix the underlying issue when something goes wrong in production. You need to fix your <strong>code</strong>, not your <strong>state</strong>. When a bug slips into production, reverting the binary doesn't undo corrupted database records, clear out poison payloads, or stop cascading failures while your fix rolls out.</p>
<p>This is where message queues (like Redis Streams, RabbitMQ, Apache Kafka, or AWS SQS) are vital. Beyond asynchronous processing, they act as <strong>shock absorbers, quarantine zones, and time machines</strong> during production incidents.</p>
<p>Here are four ways a message queue helps you contain, mitigate, and recover from a broken deployment.</p>
<h2>1. Quarantine Poison Messages with Dead Letter Queues (DLQs)</h2>
<p>When a newly deployed consumer encounters an unexpected payload or edge case and throws an unhandled exception, standard retry mechanisms can trigger an infinite retry loop. Left unchecked, this creates a retry storm that exhausts database connections and crashes worker pods.</p>
<p><strong>How the queue helps:</strong></p>
<ul>
<li><strong>Isolation:</strong> A Dead Letter Queue automatically catches messages that fail processing after a configured number of retries, moving them out of the main pipeline.</li>
<li><strong>Zero-downtime recovery:</strong> Healthy traffic continues flowing while the offending payloads sit safely quarantined in the DLQ.</li>
<li><strong>Safe verification:</strong> Once engineers inspect the failed payloads and deploy a hotfix, you can re-drive (requeue) the quarantined messages back into the main queue without losing a single request.</li>
</ul>
<h2>2. Reconstruct Corrupted State via Event Replay</h2>
<p>If a bug corrupts data such as a broken pricing calculation overwriting account balances or miscalculating order states, rolling back the application code leaves your database broken.</p>
<p><strong>How the queue helps:</strong></p>
<ul>
<li><strong>Time travel:</strong> In an event-driven architecture backed by an immutable log (like Apache Kafka), every state mutation is recorded as an event.</li>
<li><strong>Clean recovery:</strong> You can roll back the faulty code, restore your database to a point-in-time snapshot taken right before the bad deployment, and <strong>replay the event stream</strong> from that timestamp forward using the fixed consumer code. You recover the exact right state while preserving valid user transactions that occurred during the incident.</li>
</ul>
<h2>3. Shrink the Blast Radius with Asynchronous Buffering</h2>
<p>In a tightly coupled, synchronous architecture, a buggy downstream service suffering from memory leaks or high latency will quickly exhaust threads upstream, taking down your API gateway or frontend.</p>
<p><strong>How the queue helps:</strong></p>
<ul>
<li><strong>Decoupling:</strong> Placing a queue between your ingestion layer and processing workers isolates failures.</li>
<li><strong>Graceful degradation:</strong> Even if your worker pool crashes completely or needs to be taken offline for an emergency patch, the queue buffers incoming requests. Users don't see <code>500 Internal Server Error</code> pages; their requests simply wait in line until healthy workers come back online.</li>
</ul>
<h2>4. Validate Hotfixes Safely with Shadow Queues</h2>
<p>When pushing an emergency fix for a complex production bug, guessing whether it handles real-world edge cases is risky.</p>
<p><strong>How the queue helps:</strong></p>
<ul>
<li><strong>Traffic mirroring:</strong> Message brokers make it straightforward to fan out or duplicate production streams into a separate "shadow" queue.</li>
<li><strong>Live testing without risk:</strong> You can point a staging instance running your hotfix at the shadow queue to verify how it processes real production payloads before cutting live traffic back over.</li>
</ul>
<hr />
<h2>Summary: The 3-Phase Incident Framework</h2>
<p>When designing resilient systems, think of message queues across three phases of incident response:</p>
<ol>
<li><strong>Containment:</strong> Buffer incoming load so downstream bugs don't cascade upstream.</li>
<li><strong>Quarantine:</strong> Route poison messages to a DLQ to prevent retry storms.</li>
<li><strong>State Repair:</strong> Replay immutable event logs to rebuild clean state after a hotfix.</li>
</ol>
<p>Code rollbacks get your application running again; message queues ensure your data and user experience survive the trip.</p>
]]></content:encoded></item><item><title><![CDATA[The Speed Hack That Made My Local Ollama Setup Run Blazing Fast⚡]]></title><description><![CDATA[A speed hack that makes a local Ollama instance run blazing fast utilising the GPU.]]></description><link>https://mta-tech.hashnode.dev/the-speed-hack-that-made-my-local-ollama-setup-run-blazing-fast</link><guid isPermaLink="true">https://mta-tech.hashnode.dev/the-speed-hack-that-made-my-local-ollama-setup-run-blazing-fast</guid><category><![CDATA[AI]]></category><category><![CDATA[ai agents]]></category><category><![CDATA[ollama]]></category><dc:creator><![CDATA[Tanvir Ahmed]]></dc:creator><pubDate>Tue, 05 May 2026 18:00:37 GMT</pubDate><content:encoded><![CDATA[<p>I was underestimating what local AI could do. I thought I was getting good speed, but I actually had the opposite of the problem I was trying to avoid.</p>
<p>I've been using Ollama on my machine for a long time but eventually stopped due to an issue. I was expecting the trade-off between privacy and speed to be heavy. I was running locally, but the inference speed was just too slow for my liking.</p>
<p>The real issue? I wasn't configuring my GPU usage correctly. By default, Ollama wasn't maximizing the VRAM. It was trying to split the load between the CPU and the GPU, which created a bottleneck.</p>
<p>The fix? Maximize GPU offloading.</p>
<p>I added the <code>num_gpu</code> parameter to my <code>Modelfile</code>, setting it to <code>999</code> to tell Ollama to prioritise moving the entire model to the GPU memory.</p>
<pre><code class="language-plaintext">FROM qwen3.5:4b
PARAMETER num_gpu 999
</code></pre>
<p>Simply adding this single parameter was a total game changer! Previously seeing only a few tokens/second now compared to literally hundreds of tokens/second now. This is what you call true inference speed. The model is now running at full GPU efficiency having completely offloaded computation to the GPU.</p>
<p><strong>The Takeaway</strong>:</p>
<p>Don't just think that the bottleneck is your machine. Make sure the software knows how to use it too. Sometimes the bottleneck isn't the model, it's the config.</p>
<p>If anyone has a NVIDIA GPU 2000 series or above, take advantage of it!</p>
]]></content:encoded></item><item><title><![CDATA[MCP vs Agent Skills]]></title><description><![CDATA[Ever wondered what the difference is and when to use one over the other, or even both in tandem? Use MCP when you need access to external servers and…]]></description><link>https://mta-tech.hashnode.dev/mcp-vs-agent-skills</link><guid isPermaLink="true">https://mta-tech.hashnode.dev/mcp-vs-agent-skills</guid><dc:creator><![CDATA[Tanvir Ahmed]]></dc:creator><pubDate>Tue, 05 May 2026 17:56:55 GMT</pubDate><content:encoded><![CDATA[<p>Ever wondered what the difference is and when to use one over the other, or even both in tandem?</p>
<ul>
<li><p>Use MCP when you need access to external servers and resources from 3rd party platforms which have support for an MCP server e.g. Notion MCP. This MCP server then allows you to do CRUD operations and more on Notion.</p>
</li>
<li><p>Use Agent Skills to teach your agent a workflow or to follow a specific guide. For example, a guide on how to create an employee onboarding page within Notion.</p>
</li>
</ul>
<p>Now the real power lies in combining both of these concepts into one. Given the following prompt: "Create a new employee onboarding page within Notion for '[Name here]'".</p>
<p>Actions executed by the agent:</p>
<ul>
<li><p>Reads skill - "employee-onboarding-notion-guide": A SKILL.md file explaining each section that a new page requires along with a detailed guidance on what to write within each section. This makes your agent accurately write pages according to your team's document structure/style and best practices.</p>
</li>
<li><p>Executes tool call via Notion's MCP - "notion-create-pages": This tool call will then communicate with the Notion API via the MCP server and create the page along with the contents written using the agent skill.</p>
</li>
</ul>
<p>MCP + Agent Skills = Powerful Combo 🔥</p>
]]></content:encoded></item><item><title><![CDATA[Tired of Long YouTube Videos? Build Your Own AI Video Summariser!]]></title><description><![CDATA[Reclaim Your Time by Learning How to Create an AI Agent for Instant YouTube Video Summaries.]]></description><link>https://mta-tech.hashnode.dev/tired-of-long-youtube-videos-build-your-own-ai-video-summariser</link><guid isPermaLink="true">https://mta-tech.hashnode.dev/tired-of-long-youtube-videos-build-your-own-ai-video-summariser</guid><dc:creator><![CDATA[Tanvir Ahmed]]></dc:creator><pubDate>Tue, 05 May 2026 17:09:41 GMT</pubDate><enclosure url="https://cdn.hashnode.com/uploads/covers/67fb8a6d69ca326b44e0dd92/b0cefee3-d6d8-4838-b39a-50458526caee.jpg" length="0" type="image/jpeg"/><content:encoded><![CDATA[<h2>Introduction</h2>
<p>Ever find yourself staring at a lengthy YouTube video, wishing you could just get the gist? Well, what if I told you that you can build your own AI-powered video summariser in just a few steps?</p>
<p>So I recently embarked upon this exact journey using the awesome tools available on <a href="https://relevanceai.com/"><strong>Relevance AI</strong></a>, and the results were very good!</p>
<p>TLDR; here’s a sneak peek into the process before we go into detail on how it was implemented:</p>
<ul>
<li><p><strong>Input:</strong> create a simple text input field in Relevance AI to input the YouTube video URL.</p>
</li>
<li><p><strong>ID Extraction:</strong> create a JavaScript step to automatically extract the unique video ID from the provided URL.</p>
</li>
<li><p><strong>Transcript Retrieval with Supadata’s API:</strong> The heart of the summarisation lies in the transcript. We leverage the <a href="https://supadata.ai/"><strong>supadata.ai</strong></a> <strong>API</strong> through an API step to fetch the complete transcript of the YouTube video. This API is just one of the many services you can use to access the transcript of YouTube videos.</p>
</li>
<li><p><strong>From JSON to Text:</strong> The transcript from supadata.ai comes in a structured JSON format. Another JavaScript step is used to parse this data, extracting all the individual text segments and concatenating them into a single readable text of the whole transcript ready for the LLM to ingest.</p>
</li>
<li><p><strong>Summarisation with a LLM:</strong> Finally, an LLM (Large Language Model) step is used to analyse the complete transcript and generate a concise and informative summary of the whole YouTube video and it does a pretty good job at that!</p>
</li>
</ul>
<p>The beauty of this approach is its simplicity and the power it puts in your hands. By combining the intuitive interface of Relevance AI with the capabilities of supadata.ai and a powerful LLM, you can quickly build a tool to save yourself valuable time and effortlessly understand the essence of any YouTube video.</p>
<p>So keep reading if you’re interested in building this yourself!</p>
<h2>Get Started</h2>
<p>Let's dive into the step-by-step guide to creating your very own AI-powered YouTube video summariser using Relevance AI.</p>
<p><strong>Follow these steps to set up your workflow in Relevance AI:</strong></p>
<p>Create an account on Relevance AI and follow the steps to create your organisation etc. Once you’ve done that, you’ll be redirected to the dashboard where you can access all the different features of Relevance AI. Notably, you want to focus on the Workforce section where you have access to <strong>Agents</strong> and <strong>Tools</strong>.</p>
<img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1744631096308/af07b40a-8737-4839-b8ba-0029256edd45.png" alt="" style="display:block;margin:0 auto" />

<h2>Creating a Tool</h2>
<p>Now click on the <strong>Tools</strong> tab on the left to access tools and you should see the following page:</p>
<img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1744631252537/81580efe-01ad-413d-9eac-063abc4aff68.png" alt="" style="display:block;margin:0 auto" />

<p>Click on the <strong>New Tool</strong> button to create a new tool with the following information filled out within the Input node:</p>
<img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1744631326511/dbe463a8-5dc6-427e-bffd-912d39272e82.png" alt="" style="display:block;margin:0 auto" />

<p>In this step here, we’re basically creating a text input that takes in the YouTube video URL and that will be automatically supplied by the LLM when it executes this tool as the user interacts with it and gives the LLM the video URL via the agent’s chat. We will see this later on.</p>
<p>The next step in the flow is to create a JavaScript step node which can extract the video ID from the URL provided as that is needed to interact with the Supadata API in the next step. Click on the plus button underneath the Input node and search for “Javascript Code” and select it:</p>
<img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1744631634204/8db918c5-dc8d-4047-8629-44bcf4eb487c.png" alt="" style="display:block;margin:0 auto" />

<p>Write down this piece of code inside the code editor shown above:</p>
<pre><code class="language-javascript">const urlObject = new URL(params["youtube_url"]);
const videoId = urlObject.searchParams.get('v');
return { data: videoId };
</code></pre>
<p>This code here essentially takes the provided URL and extracts the video ID from the URL via a query parameter. Query parameters are basically key value pairs in a URL which are denoted by <code>?key=value&amp;another_key=value</code> . So let’s say you have the following YouTube video URL: <code>https://www.youtube.com/watch?v=97xvcAMf888</code> , you can see query parameters start from the <code>?</code> symbol. So we only have a single query parameter which is the letter <code>v</code> and the value for it is <code>97xvcAMf888</code>. This is how to get the YouTube video ID from a URL. So once we’ve extracted the query parameter successfully, we then send data back from this step node as <a href="https://www.json.org/json-en.html">JSON</a> to the next node so it has a reference to the video ID.</p>
<p>The next step is the API node so click on the plus button under the previous JavaScript step node and search for “API Request” and select it:</p>
<img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1744632307742/32acf77b-4918-40bb-a88d-3853c2e08e72.png" alt="" style="display:block;margin:0 auto" />

<p>Before we fill in this node, go to <a href="https://supadata.ai/">https://supadata.ai/</a> and create an account, you’ll have a free subscription with a limited number of requests every month to use the YouTube transcript API. Once you’ve created an account and you’re in the dashboard, choose the free subscription and you’re dashboard should look similar to this:</p>
<img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1744633024393/ca01b218-12c9-4fc1-ae10-de5ed51270f2.png" alt="" style="display:block;margin:0 auto" />

<p>So now click on the free subscription and head to the “Access keys” section and click on the plus button to create a new API key:</p>
<img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1744633146839/a033f1e7-b428-4848-91a3-04e1b9c2c062.png" alt="" style="display:block;margin:0 auto" />

<img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1744633198020/772a7025-7531-4bb9-9c07-89414704c835.png" alt="" style="display:block;margin:0 auto" />

<p>Give the key a name and click the button to generate an access key.</p>
<img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1744633254842/39937289-ff4e-4b0e-9970-c547040b5a13.png" alt="" style="display:block;margin:0 auto" />

<p>Now your key should have been generated successfully. Now scroll down to the “Access keys” section and click on the “eye” icon to view your API key:</p>
<img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1744633314423/0d1fe095-8b8b-4239-9b03-399f4c477687.png" alt="" style="display:block;margin:0 auto" />

<p>Copy that key and head back to Relevance AI. Now add the following info to the API node:</p>
<ul>
<li><p>Method: GET</p>
</li>
<li><p>URL: <code>https://api.supadata.ai/v1/youtube/transcript?videoId={{ extract_youtube_video_id.transformed.data }}</code>. Make sure to type down the variable right after the <code>=</code> sign as you should see a popup to help you auto-fill it. These variables allow you to obtain data from previous steps dynamically.</p>
</li>
<li><p>Headers: enter <code>x-api-key</code> as a header and provide the API key you copied earlier from supadata.ai as the value for this header. The reason for this is that some APIs require authentication to verify who the user is. So by you creating an account and generating an access key, the platform will allow you to make requests to their API successfully limiting you to the number your subscription tier allows.</p>
</li>
</ul>
<p>Once you’ve filled out the info, it should roughly look like this (I’ve hidden my API key within the screenshot):</p>
<img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1744632307742/32acf77b-4918-40bb-a88d-3853c2e08e72.png" alt="" style="display:block;margin:0 auto" />

<p>Now create another step node and search for “Javascript Code” again and add it:</p>
<img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1744633638578/18240c10-62fc-42dc-9757-63d18bf0730e.png" alt="" style="display:block;margin:0 auto" />

<p>Copy the following code and paste it in the editor:</p>
<pre><code class="language-javascript">// Accessing the response body from the previous step
const fullTranscriptText = steps["youtube_transcript_api"].output["response_body"].content
  .map((item) =&gt; item.text)
  .join(" ");

return { data: fullTranscriptText };
</code></pre>
<p>So what we are doing here is that the supabase.ai API returns to us data in the form of JSON and the whole transcript is split into different segments. What we need to do is take all those segments and combine it into one piece of text so that it is easily ingestible by our LLM. We then return that data for the next node to use.</p>
<p>Now this is the last step in creating our tool. Add another step node and search for “LLM” and add it to the flow:</p>
<img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1744633978715/d4117fa8-5b82-4e4c-b462-68adf99e3cdd.png" alt="" style="display:block;margin:0 auto" />

<p>Copy and paste the following prompt for the LLM step node:</p>
<pre><code class="language-markdown">You are a highly skilled summarisation assistant. Your task is to read and analyse a full transcript from a YouTube video and produce a clear, concise, and accurate summary.

Please follow these guidelines:

1. Purpose: Provide a summary that captures the main ideas, arguments, and key takeaways from the video.
2. Tone: Maintain a neutral, informative tone. Avoid personal opinions, emotional language, or filler words.
3. Length: The summary should be between 500-1000 words, unless otherwise specified.
4. Format:
    - Start with a one-sentence overview of the video's general topic or goal.
    - Follow with a structured breakdown of major points, listed in the order they appeared in the video in a bullet pointed fashion.
    - End with a brief conclusion or insight if the video offers one.
5. Details to include (when applicable):
    - Names of people, organisations, or products mentioned
    - Dates, statistics, or key facts
    - Solutions, steps, or arguments presented
    - Examples used to illustrate a point
6. Do not include:
    - The speaker's verbal tics (e.g., "um," "you know")
    - Repetitive content unless it's emphasised for effect
    - Direct quotes unless they are essential

Use the following transcript: {{ extract_video_transcript_text.transformed.data }}
</code></pre>
<p>Now in the model dropdown, select the AI model of your choice. At the time of writing, I chose Gemini 2.5 Pro Experimental which is free to use so I didn’t need supply an API key for it. And that’s the last thing we needed to do to finish creating this tool. Click on the “Publish changes” button to publish your tool for use. Well done for getting to this point! 👍.</p>
<p>Now you can go to the “Use” tab on top of the page and test out your tool by entering any YouTube video URL to summarise it for you. Give it a go!</p>
<h2>Creating an Agent</h2>
<p>Now go back to the Relevance AI dashboard and click on the “Agents” tab on the left.</p>
<img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1744634687746/cc532cfc-47be-4cee-a77e-76b3e99b89fb.png" alt="" style="display:block;margin:0 auto" />

<p>Click on the “New Agent” button and you will be taken to the following page:</p>
<img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1744634837257/42f644b9-7710-4ccc-89bd-42454e9dadec.png" alt="" style="display:block;margin:0 auto" />

<p>Fill in the information for the Agent profile and then move onto the “Core instructions” tab:</p>
<img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1744634887713/b93d2629-9849-4131-aedb-acd08cced2cd.png" alt="" style="display:block;margin:0 auto" />

<p>Here we’ll enter the system prompt for our AI Agent so we can give it a persona and give it a role, as well as instruct it with a task and give it context into what its purpose is. With this kind of structure in place, you can get much better results with LLMs. Also make sure to select GPT 4o mini. At the time of writing, it’s the most cheapest option and doesn’t consume as many credits as the other models available.</p>
<p>So once you’ve done this, go to the “Tools” tab on the left and make sure to add/select the tool we created earlier on. If it’s not already there then add the tool by clicking on the button shown there:</p>
<img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1744639951908/61be6bc7-39a5-41ea-82b4-86946c9b3e5b.png" alt="" style="display:block;margin:0 auto" />

<p>Now all that’s left is to publish the changes and your AI Agent is complete.</p>
<p>When you go back to the agent, you should see the following:</p>
<img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1744640522802/8c7da0ac-a6a9-452d-8c6c-c36d742fc29e.png" alt="" style="display:block;margin:0 auto" />

<p>Now you can click on the “Share” button and enable the option “Publicly available”. You can then copy the “Shareable link” to interact with your agent in a chat interface where you can test your Agent for real.</p>
<img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1744640695839/3efb7628-fbb3-4241-b83a-276111656641.png" alt="" style="display:block;margin:0 auto" />

<p>And now this brings us to the end of this tutorial. Thank you for taking the time to read through all this. I hope you enjoyed it and well done on reaching the end!</p>
<h2>Conclusion</h2>
<p>You can see the power of AI Agents and this tutorial here was only the tip of the iceberg. You can build even more powerful and sophisticated AI Agents that integrate with even more APIs and systems to build truly agentic experiences.</p>
<p>If you’d like to see more of this, let me know! Also don’t forget to follow me on hashnode for more content!</p>
]]></content:encoded></item></channel></rss>