<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Nilu Mukherjee</title>
    <description>The latest articles on DEV Community by Nilu Mukherjee (@nilu_mukherjee).</description>
    <link>https://dev.to/nilu_mukherjee</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2F99mvlsfu5tfj9m7ku25d.png</url>
      <title>DEV Community: Nilu Mukherjee</title>
      <link>https://dev.to/nilu_mukherjee</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/nilu_mukherjee"/>
    <language>en</language>
    <item>
      <title>How I built FixMyCity AI to turn pothole photos into repair tickets</title>
      <dc:creator>Nilu Mukherjee</dc:creator>
      <pubDate>Sun, 29 Nov 2026 19:09:45 +0000</pubDate>
      <link>https://dev.to/nilu_mukherjee/how-i-built-fixmycity-ai-to-turn-pothole-photos-into-repair-tickets-1083</link>
      <guid>https://dev.to/nilu_mukherjee/how-i-built-fixmycity-ai-to-turn-pothole-photos-into-repair-tickets-1083</guid>
      <description>&lt;h2&gt;
  
  
  What I Built
&lt;/h2&gt;

&lt;p&gt;I kept seeing potholes and piles of garbage around the city. A photo can show the problem, but someone still has to figure out where it happened, whether it was already reported, and which department should handle it. I built FixMyCity AI to do that first pass.&lt;/p&gt;

&lt;p&gt;Residents can report an issue from an Android app. A report includes a photo and location. The system classifies the issue, assigns a severity score, checks for an existing report, and routes the ticket. If ten people photograph the same pothole, the goal is to give the department one issue to work on.&lt;/p&gt;

&lt;p&gt;The web dashboard shows staff the tickets assigned to their department. They can approve, reject, or transfer a ticket. Residents can track the status from their side.&lt;/p&gt;

&lt;h2&gt;
  
  
  Demo
&lt;/h2&gt;

&lt;p&gt;  &lt;iframe src="https://www.youtube.com/embed/yH23BBi14Io" width="710" height="399"&gt;
  &lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;&lt;a href="https://youtu.be/yH23BBi14Io" rel="noopener noreferrer"&gt;Watch the demo on YouTube&lt;/a&gt; or browse the &lt;a href="https://github.com/nilu-mukherjee/fixmycity" rel="noopener noreferrer"&gt;FixMyCity repository&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Partner Technologies
&lt;/h2&gt;

&lt;p&gt;For the Google hackathon, I used Gemini and Google Vision to analyze the report photo. I built the agent with Google ADK to coordinate the steps between image analysis and routing. The location gives the report context, and the ticket goes into a department queue for staff to review.&lt;/p&gt;

&lt;h2&gt;
  
  
  Hackathon Experience
&lt;/h2&gt;

&lt;p&gt;I built this as an independent project for &lt;a href="https://allthingsagentichackathon.devpost.com/" rel="noopener noreferrer"&gt;Google's All Things Agentic Hackathon&lt;/a&gt; and submitted it to the Taskmaster track. I wanted to get the whole flow working, from taking a picture on a phone to reviewing the ticket in the dashboard.&lt;/p&gt;

&lt;p&gt;The design choice I'd keep is the transfer button. A photo may show a damaged utility box without making it obvious who owns it. If the first department can transfer the ticket, the resident can keep tracking the same issue without having to report it again.&lt;/p&gt;

</description>
      <category>android</category>
      <category>ai</category>
      <category>architecture</category>
      <category>hackathon</category>
    </item>
    <item>
      <title>Did the customer pay after a payment API timeout?</title>
      <dc:creator>Nilu Mukherjee</dc:creator>
      <pubDate>Sun, 29 Nov 2026 18:41:12 +0000</pubDate>
      <link>https://dev.to/nilu_mukherjee/your-payment-api-timed-out-did-the-customer-pay-3o3n</link>
      <guid>https://dev.to/nilu_mukherjee/your-payment-api-timed-out-did-the-customer-pay-3o3n</guid>
      <description>&lt;p&gt;A customer clicks Pay. Five seconds later, your server gives up waiting for the payment provider. The charge may have gone through. The customer is still looking at your checkout screen.&lt;/p&gt;

&lt;p&gt;I'd show "We're checking your payment" and give them an order status page they can refresh. Keep the payment attempt pending there until you can confirm what happened.&lt;/p&gt;

&lt;h2&gt;
  
  
  Reuse the same payment attempt
&lt;/h2&gt;

&lt;p&gt;For order &lt;code&gt;ORD-42&lt;/code&gt;, save payment attempt &lt;code&gt;PAY-7&lt;/code&gt; and its provider idempotency key before you send the charge request. If the customer double-clicks or the request times out, the handler or worker can load that attempt again. If your provider supports idempotent retries, reuse the same key and check how long the provider honors it.&lt;/p&gt;

&lt;p&gt;Once the provider confirms a decline, the customer can try another card with a new attempt ID. If the first charge is still unresolved, check its status before starting another attempt. Both cards could otherwise end up charged.&lt;/p&gt;

&lt;h2&gt;
  
  
  Handle a success that comes in twice
&lt;/h2&gt;

&lt;p&gt;The webhook handler and the reconciliation worker may hear about the same successful charge a few seconds apart. Have both use the same database operation to move &lt;code&gt;PAY-7&lt;/code&gt; from pending to succeeded. Record the webhook event IDs you've processed and update the attempt only if it's still pending. In that transaction, also record the work that should follow, such as releasing the order for fulfillment.&lt;/p&gt;

&lt;p&gt;You can queue that work. Have the fulfillment handler check whether it already acted on the order. A worker can send the instruction and then crash before acknowledging the message.&lt;/p&gt;

&lt;p&gt;For the first test, have the provider simulator record a successful charge and drop the connection before replying. Retry from the client while two copies of the success webhook come in. Check that the customer sees one successful payment and the warehouse gets one fulfillment instruction.&lt;/p&gt;

</description>
      <category>architecture</category>
      <category>systemdesign</category>
      <category>backend</category>
      <category>distributedsystems</category>
    </item>
    <item>
      <title>When to split a module into a microservice</title>
      <dc:creator>Nilu Mukherjee</dc:creator>
      <pubDate>Sun, 29 Nov 2026 18:41:07 +0000</pubDate>
      <link>https://dev.to/nilu_mukherjee/when-a-module-earns-its-own-service-52ei</link>
      <guid>https://dev.to/nilu_mukherjee/when-a-module-earns-its-own-service-52ei</guid>
      <description>&lt;p&gt;Say your loan portal has modules for applications, uploads, and notifications. Applicants use it mostly during the day. At night, the document module spends hours generating previews for large files.&lt;/p&gt;

&lt;p&gt;I'd check what the API is doing during those runs. If requests are waiting on image conversions, put conversions on a queue and run them in workers with their own process and resource budget. The upload API can return an ID and a status of &lt;code&gt;processing&lt;/code&gt;. One team can still deploy the API and workers from the same repository.&lt;/p&gt;

&lt;h2&gt;
  
  
  When I'd split document processing
&lt;/h2&gt;

&lt;p&gt;The preview job can take minutes, so it already runs outside the application's request path. I'd consider a separate service if the document team needs to release changes to scanning or conversion on its own schedule and the rest of the portal can keep working during those releases.&lt;/p&gt;

&lt;p&gt;Decide who owns each piece of data before making that split. The application can keep track of which document IDs belong to a loan application. The document service can own storage keys and checksums, along with the current processing status. The application can consume status events and refresh what it shows when someone opens the document screen.&lt;/p&gt;

&lt;p&gt;Look at what the modules currently do in one database transaction. If a submitted application needs all its required documents, moving document status to a separate service can leave the submission screen behind. Decide whether to wait for confirmation or accept the submission and show that it's pending review. The existing transaction may have made that choice for you.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I'd measure before deciding
&lt;/h2&gt;

&lt;p&gt;During peak uploads, track how long the oldest job has been waiting. Record how often document changes require a coordinated release and who gets paged when a document is stuck. Put those notes in the decision record and set a review date. If the separate workers keep the queue healthy and teams rarely have to coordinate releases, use that time to improve the module boundary.&lt;/p&gt;

</description>
      <category>architecture</category>
      <category>systemdesign</category>
      <category>microservices</category>
      <category>backend</category>
    </item>
    <item>
      <title>Why your React page feels slow when the API is fast</title>
      <dc:creator>Nilu Mukherjee</dc:creator>
      <pubDate>Sun, 29 Nov 2026 18:40:58 +0000</pubDate>
      <link>https://dev.to/nilu_mukherjee/your-api-returns-in-120-ms-why-does-the-page-still-feel-slow-ci8</link>
      <guid>https://dev.to/nilu_mukherjee/your-api-returns-in-120-ms-why-does-the-page-still-feel-slow-ci8</guid>
      <description>&lt;p&gt;The API logs for an operations dashboard show 120 ms of server work. On the screen, the first useful row takes nearly two seconds to appear. A lot can happen in the browser before that row shows up. It might be waiting on requests, parsing JavaScript, or rendering data it already has.&lt;/p&gt;

&lt;p&gt;I'd record one interaction, from clicking "Open dashboard" to seeing the first useful row. Use a production build. Run it once with a cold cache and again with a warm cache, and keep those results separate. The first run is closer to what a new user sees.&lt;/p&gt;

&lt;h2&gt;
  
  
  Check when each request starts
&lt;/h2&gt;

&lt;p&gt;Suppose the trace shows the bundle loading and parsing before the app fetches the user. Then it fetches preferences, then the worklist. If the preferences only determine which columns to show, the worklist request can start once the app knows the session. Both requests can run at the same time.&lt;/p&gt;

&lt;p&gt;If the worklist has already arrived, I'd open the React Profiler. The table might be rendering rows below the fold. Try pagination or row virtualization based on how people move through the list. In the same recording, check what the table re-renders when someone types one character into the filter.&lt;/p&gt;

&lt;p&gt;Use the trace to pick the fix. Loading a chart later cuts startup JavaScript. Starting the worklist earlier removes a wait between requests. Rendering fewer rows frees up the main thread.&lt;/p&gt;

&lt;p&gt;After the change, measure when the first useful row appears and how long a keystroke takes to update the filter. Run the same test on a typical laptop and a slower device. Keep both measurements so a faster first render doesn't hide a sluggish filter.&lt;/p&gt;

</description>
      <category>react</category>
      <category>webdev</category>
      <category>performance</category>
      <category>architecture</category>
    </item>
    <item>
      <title>How to test a RAG assistant when the answer is missing</title>
      <dc:creator>Nilu Mukherjee</dc:creator>
      <pubDate>Sun, 29 Nov 2026 18:40:53 +0000</pubDate>
      <link>https://dev.to/nilu_mukherjee/i-would-test-a-rag-assistant-on-questions-it-cant-answer-51aj</link>
      <guid>https://dev.to/nilu_mukherjee/i-would-test-a-rag-assistant-on-questions-it-cant-answer-51aj</guid>
      <description>&lt;p&gt;Ask an internal assistant "How much vacation can I carry over?" for a country whose policy you have in the knowledge base. Then ask it for a country whose policy is missing. I'd spend more time testing that second case. A reply can sound like it came from HR even when it has no policy to cite.&lt;/p&gt;

&lt;p&gt;I'd start with about twenty questions. For each, record the supporting passage, who can see it, and what the assistant should say when the passage is unavailable. Include two policy versions that disagree and a question that assumes something the policy doesn't say.&lt;/p&gt;

&lt;h2&gt;
  
  
  Keep the evidence from each run
&lt;/h2&gt;

&lt;p&gt;Log the document IDs and their search ranks. Record which document versions went to the model, then keep the answer and its citations. If retrieval missed the passage, check the search filters and how you split the text. If the passage reached the model and the answer contradicts it, check the prompt and look at how much unrelated text went in with it.&lt;/p&gt;

&lt;p&gt;An archived vacation policy can have the same heading as the current one. I'd test that the default search finds the current policy and that a request for an older version can still find it. Put the effective date on each chunk and in the citation so readers can tell which policy the answer used.&lt;/p&gt;

&lt;h2&gt;
  
  
  Remove a passage and run the same question again
&lt;/h2&gt;

&lt;p&gt;Take a question the assistant can answer and remove its supporting passage from the search index. The expected reply should say that the documents don't establish a carryover limit and point the reader to the policy owner. If the model supplies a number from memory, fail the test even if the number happens to be right.&lt;/p&gt;

&lt;p&gt;Rerun that case after changing retrieval or the prompt. A test set where every question has a current source won't catch the assistant inventing an answer when that source disappears.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>rag</category>
      <category>testing</category>
      <category>architecture</category>
    </item>
    <item>
      <title>How to build an AI email agent that drafts replies</title>
      <dc:creator>Nilu Mukherjee</dc:creator>
      <pubDate>Sun, 29 Nov 2026 18:40:24 +0000</pubDate>
      <link>https://dev.to/nilu_mukherjee/how-i-would-build-an-inbox-agent-that-can-draft-a-reply-465i</link>
      <guid>https://dev.to/nilu_mukherjee/how-i-would-build-an-inbox-agent-that-can-draft-a-reply-465i</guid>
      <description>&lt;p&gt;A meeting moves or a client asks for an update. In a desktop mail app, I'd let the user draft a reply from the thread they already have open. That can save a few minutes. I'd keep the normal Send button as the step that actually sends the message.&lt;/p&gt;

&lt;h2&gt;
  
  
  Give the agent the open thread
&lt;/h2&gt;

&lt;p&gt;When someone clicks "Draft reply," the app already has the account and thread ID. Fetch that thread and pass the relevant messages to the model. A tool that can search the whole inbox would give the model access to mail it doesn't need for this reply.&lt;/p&gt;

&lt;p&gt;The model can return the reply body and a short list of details it used, like the proposed meeting time. Let the app get the recipient list from the thread and show it in the draft editor. The user can add someone there if they need to.&lt;/p&gt;

&lt;h2&gt;
  
  
  Check for new mail before sending
&lt;/h2&gt;

&lt;p&gt;Save the latest message ID with the draft. If a newer message comes in before the user sends, show it to them and let them update the reply. "Friday works for me" goes stale as soon as the sender writes "I meant Thursday."&lt;/p&gt;

&lt;p&gt;It's fine to retry a thread read or draft generation within a time budget. If the email provider times out during Send, check whether it accepted or delivered the message before offering another attempt. If the provider supports idempotent sending, reuse the same idempotency key for that approved send.&lt;/p&gt;

&lt;p&gt;For one test, put a message in the thread asking the app to forward the conversation. The agent should still produce a reply draft addressed to the recipients the app derived from the thread. The user can review it and decide what to send.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>agents</category>
      <category>systemdesign</category>
      <category>architecture</category>
    </item>
  </channel>
</rss>
