<?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: Arpit Mishra</title>
    <description>The latest articles on DEV Community by Arpit Mishra (@arpit_mishra1).</description>
    <link>https://dev.to/arpit_mishra1</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3915791%2Fdc0d645c-0193-41d5-af3b-acf3b5488110.png</url>
      <title>DEV Community: Arpit Mishra</title>
      <link>https://dev.to/arpit_mishra1</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/arpit_mishra1"/>
    <language>en</language>
    <item>
      <title>Building Map-Based Property Search for a Real Estate App</title>
      <dc:creator>Arpit Mishra</dc:creator>
      <pubDate>Fri, 20 Nov 2026 05:31:37 +0000</pubDate>
      <link>https://dev.to/arpit_mishra1/building-map-based-property-search-for-a-real-estate-app-13id</link>
      <guid>https://dev.to/arpit_mishra1/building-map-based-property-search-for-a-real-estate-app-13id</guid>
      <description>&lt;p&gt;Property search is the feature buyers touch most in any real estate app, and it is also the feature most teams underestimate. A list of listings with a price filter is easy. A map that stays fast while a user drags across a city, with thousands of pins, live filters and accurate results, is a different engineering problem.&lt;/p&gt;

&lt;p&gt;This guide walks through how to build map-based property search that holds up in production: the data model, the geospatial query, clustering, filter design and the mistakes that slow most builds down.&lt;/p&gt;

&lt;h2&gt;
  
  
  Quick answer
&lt;/h2&gt;

&lt;p&gt;Store listing coordinates as a geospatial type, index them with a spatial index (GiST in PostGIS or a 2dsphere index in MongoDB), query by the visible map bounding box rather than by radius, cluster pins on the server when the zoom level is low, and debounce map movement so the client sends one request per settled viewport instead of dozens per drag.&lt;/p&gt;

&lt;h2&gt;
  
  
  What does the data model need?
&lt;/h2&gt;

&lt;p&gt;Start with a listings table that keeps location data in a proper spatial column, not two loose float fields.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;CREATE&lt;/span&gt; &lt;span class="no"&gt;EXTENSION&lt;/span&gt; &lt;span class="k"&gt;IF&lt;/span&gt; &lt;span class="k"&gt;NOT&lt;/span&gt; &lt;span class="k"&gt;EXISTS&lt;/span&gt; &lt;span class="n"&gt;postgis&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;CREATE&lt;/span&gt; &lt;span class="k"&gt;TABLE&lt;/span&gt; &lt;span class="n"&gt;listings&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;
  &lt;span class="n"&gt;id&lt;/span&gt;            &lt;span class="kt"&gt;BIGSERIAL&lt;/span&gt; &lt;span class="k"&gt;PRIMARY&lt;/span&gt; &lt;span class="k"&gt;KEY&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;title&lt;/span&gt;         &lt;span class="kt"&gt;TEXT&lt;/span&gt; &lt;span class="k"&gt;NOT&lt;/span&gt; &lt;span class="kc"&gt;NULL&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;price&lt;/span&gt;         &lt;span class="kt"&gt;INTEGER&lt;/span&gt; &lt;span class="k"&gt;NOT&lt;/span&gt; &lt;span class="kc"&gt;NULL&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;bedrooms&lt;/span&gt;      &lt;span class="kt"&gt;SMALLINT&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;bathrooms&lt;/span&gt;     &lt;span class="kt"&gt;SMALLINT&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;property_type&lt;/span&gt; &lt;span class="kt"&gt;TEXT&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;status&lt;/span&gt;        &lt;span class="kt"&gt;TEXT&lt;/span&gt; &lt;span class="k"&gt;DEFAULT&lt;/span&gt; &lt;span class="s1"&gt;'active'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;location&lt;/span&gt;      &lt;span class="no"&gt;GEOGRAPHY&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nc"&gt;Point&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;4326&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;NOT&lt;/span&gt; &lt;span class="kc"&gt;NULL&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;updated_at&lt;/span&gt;    &lt;span class="kt"&gt;TIMESTAMPTZ&lt;/span&gt; &lt;span class="k"&gt;DEFAULT&lt;/span&gt; &lt;span class="nb"&gt;now&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;CREATE&lt;/span&gt; &lt;span class="k"&gt;INDEX&lt;/span&gt; &lt;span class="n"&gt;idx_listings_location&lt;/span&gt; &lt;span class="k"&gt;ON&lt;/span&gt; &lt;span class="n"&gt;listings&lt;/span&gt; &lt;span class="k"&gt;USING&lt;/span&gt; &lt;span class="no"&gt;GIST&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;location&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;CREATE&lt;/span&gt; &lt;span class="k"&gt;INDEX&lt;/span&gt; &lt;span class="n"&gt;idx_listings_filters&lt;/span&gt; &lt;span class="k"&gt;ON&lt;/span&gt; &lt;span class="n"&gt;listings&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;status&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;property_type&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;price&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Two indexes matter here. The GiST index makes the spatial lookup cheap, and the composite index on status, type and price lets the planner cut the result set before it touches geometry.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why query by bounding box instead of radius?
&lt;/h2&gt;

&lt;p&gt;A radius query answers "what is near this point", but users on a map are asking "what is inside what I can see". The viewport is a rectangle, so query the rectangle.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;title&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;price&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;bedrooms&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
       &lt;span class="no"&gt;ST_Y&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;location&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="n"&gt;geometry&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;AS&lt;/span&gt; &lt;span class="n"&gt;lat&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
       &lt;span class="no"&gt;ST_X&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;location&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="n"&gt;geometry&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;AS&lt;/span&gt; &lt;span class="n"&gt;lng&lt;/span&gt;
&lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="n"&gt;listings&lt;/span&gt;
&lt;span class="k"&gt;WHERE&lt;/span&gt; &lt;span class="n"&gt;status&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s1"&gt;'active'&lt;/span&gt;
  &lt;span class="k"&gt;AND&lt;/span&gt; &lt;span class="n"&gt;price&lt;/span&gt; &lt;span class="k"&gt;BETWEEN&lt;/span&gt; &lt;span class="nv"&gt;$1&lt;/span&gt; &lt;span class="k"&gt;AND&lt;/span&gt; &lt;span class="nv"&gt;$2&lt;/span&gt;
  &lt;span class="k"&gt;AND&lt;/span&gt; &lt;span class="n"&gt;location&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="nc"&gt;ST_MakeEnvelope&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;$3&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nv"&gt;$4&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nv"&gt;$5&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nv"&gt;$6&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;4326&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="n"&gt;geography&lt;/span&gt;
&lt;span class="k"&gt;LIMIT&lt;/span&gt; &lt;span class="mi"&gt;500&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The &lt;code&gt;&amp;amp;&amp;amp;&lt;/code&gt; operator checks bounding-box overlap and uses the GiST index directly. It is much faster than computing distances for every row, and it matches what the user sees on screen.&lt;/p&gt;

&lt;h2&gt;
  
  
  How do you handle thousands of pins?
&lt;/h2&gt;

&lt;p&gt;Sending 8,000 markers to a phone is the fastest way to freeze the map. Use two modes based on zoom level:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Low zoom (city or region view):&lt;/strong&gt; return clusters. Group listings into grid cells on the server and send one marker per cell with a count.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;High zoom (street view):&lt;/strong&gt; return individual listings, capped at a sensible limit.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;PostGIS can cluster in a single query:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="nb"&gt;COUNT&lt;/span&gt;&lt;span class="cm"&gt;(*) AS total,
       ST_Y(ST_Centroid(ST_Collect(location::geometry))) AS lat,
       ST_X(ST_Centroid(ST_Collect(location::geometry))) AS lng
FROM listings
WHERE status = 'active'
  AND location &amp;amp;&amp;amp; ST_MakeEnvelope($1, $2, $3, $4, 4326)::geography
GROUP BY ST_SnapToGrid(location::geometry, $5);
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The grid size (&lt;code&gt;$5&lt;/code&gt;) should shrink as the zoom level increases. A simple lookup table from zoom level to grid size works well and is easy to tune.&lt;/p&gt;

&lt;h2&gt;
  
  
  How should the client call the API?
&lt;/h2&gt;

&lt;p&gt;Map libraries fire move events constantly during a drag. Debounce them so a request goes out only after the map settles.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;let&lt;/span&gt; &lt;span class="n"&gt;timer&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="n"&gt;map&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;on&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'moveend'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nf"&gt;clearTimeout&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;timer&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="n"&gt;timer&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;setTimeout&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;b&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;map&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;getBounds&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="nf"&gt;fetchListings&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="n"&gt;west&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;b&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;getWest&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;south&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;b&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;getSouth&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="n"&gt;east&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;b&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;getEast&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;north&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;b&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;getNorth&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="n"&gt;zoom&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;map&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;getZoom&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;activeFilters&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;300&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Also cancel in-flight requests with an &lt;code&gt;AbortController&lt;/code&gt; when a new one starts. Without it, a slow response for an old viewport can arrive late and overwrite fresh results.&lt;/p&gt;

&lt;h2&gt;
  
  
  What filters do buyers use most?
&lt;/h2&gt;

&lt;p&gt;Keep the first release focused on filters that change decisions: price range, bedrooms, bathrooms, property type and listing status. Add commute time, school zones or saved-area drawing later, once the core query is stable. Every extra filter is another index decision, so add them deliberately.&lt;/p&gt;

&lt;h2&gt;
  
  
  Which mistakes slow most builds down?
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Storing latitude and longitude as plain floats.&lt;/strong&gt; You lose spatial indexing and end up writing distance maths in application code.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Returning full listing objects on the map call.&lt;/strong&gt; The map needs id, price and coordinates. Load photos and descriptions only when a user taps a pin.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Skipping cache headers.&lt;/strong&gt; Popular viewports repeat often. A short cache on the bounding-box endpoint takes real load off the database.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Ignoring data freshness.&lt;/strong&gt; Listings feed in from MLS or partner APIs on a schedule. Track &lt;code&gt;updated_at&lt;/code&gt; and hide stale or sold listings quickly, because a sold home on the map erodes trust faster than any bug.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Security and data handling
&lt;/h2&gt;

&lt;p&gt;Property apps hold more personal data than teams expect: saved searches, viewing requests, mortgage enquiries and agent messages. Encrypt data in transit and at rest, rate-limit search endpoints to stop scraping of listing data, and respect the licence terms of any MLS feed you consume, since most restrict how listing data can be stored and displayed.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where to go next
&lt;/h2&gt;

&lt;p&gt;Map search is one layer of a full product. Agent dashboards, lead routing, virtual tours and document signing all sit on top of it. Teams planning the full build can review how a &lt;a href="https://devtechnosys.com/real-estate-app-development.php" rel="noopener noreferrer"&gt;real estate app development&lt;/a&gt; project is usually scoped, from MVP to a multi-role platform.&lt;/p&gt;

&lt;h2&gt;
  
  
  FAQ
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Is PostGIS required for property search?&lt;/strong&gt;&lt;br&gt;
No. MongoDB with a 2dsphere index or Elasticsearch with geo_point fields can also work. PostGIS is a strong default when your listing data is already relational.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How many pins can a mobile map show smoothly?&lt;/strong&gt;&lt;br&gt;
It depends on the device and library, but a few hundred individual markers is a safe ceiling. Beyond that, switch to clustering.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Should search run on the client or the server?&lt;/strong&gt;&lt;br&gt;
On the server. Client-side filtering only works for small, static datasets and breaks as soon as listings update often.&lt;/p&gt;

</description>
      <category>postgres</category>
      <category>webdev</category>
      <category>javascript</category>
      <category>architecture</category>
    </item>
    <item>
      <title>Sign in with Apple and Apple Pay: An iPhone App Launch Checklist</title>
      <dc:creator>Arpit Mishra</dc:creator>
      <pubDate>Tue, 17 Nov 2026 17:10:00 +0000</pubDate>
      <link>https://dev.to/arpit_mishra1/sign-in-with-apple-and-apple-pay-an-iphone-app-launch-checklist-172c</link>
      <guid>https://dev.to/arpit_mishra1/sign-in-with-apple-and-apple-pay-an-iphone-app-launch-checklist-172c</guid>
      <description>&lt;p&gt;Many iPhone apps get delayed at App Store review, not because of bugs, but because of missing basics: a privacy-friendly login option, in-app account deletion, correct payment rules and accurate privacy details. Before launch, check four areas: authentication (including Sign in with Apple where required), payments (Apple Pay vs. In-App Purchase), privacy (labels and privacy manifests) and account management. Any experienced iPhone app development company should build these in from the first sprint.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why Do Good iPhone Apps Still Get Rejected?
&lt;/h2&gt;

&lt;p&gt;Teams often focus on features and design, then hit App Store review and learn about rules they did not plan for. Each rejection can cost days. Here is a practical checklist based on Apple's App Store Review Guidelines, which you should always check in their current form before submitting.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Authentication: When Do You Need Sign in with Apple?
&lt;/h2&gt;

&lt;p&gt;If your app offers login through a third-party or social login service (such as Google or Facebook) for the user's main account, Apple's guidelines require you to also offer an equivalent login option that limits data collection to name and email and lets users keep their email private. Sign in with Apple meets this requirement and is the most common choice.&lt;/p&gt;

&lt;p&gt;Basic setup with AuthenticationServices:&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;import AuthenticationServices

func startSignInWithApple() {
    let request = ASAuthorizationAppleIDProvider().createRequest()
    request.requestedScopes = [.fullName, .email]

    let controller = ASAuthorizationController(authorizationRequests: [request])
    controller.delegate = self
    controller.presentationContextProvider = self
    controller.performRequests()
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;&lt;strong&gt;Things teams often miss:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Apple shares the user's name and email &lt;strong&gt;only on the first sign-in&lt;/strong&gt;. Save them on your server right away.&lt;/li&gt;
&lt;li&gt;Users can choose "Hide My Email," which gives you a private relay address. Your email system must be able to send to it.&lt;/li&gt;
&lt;li&gt;Always verify the identity token on your server, not just in the app.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  2. Payments: Apple Pay or In-App Purchase?
&lt;/h2&gt;

&lt;p&gt;This is where many apps get confused:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Physical goods and real-world services&lt;/strong&gt; (food delivery, rides, retail, bookings): you can use Apple Pay or another payment processor.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Digital content and features used inside the app&lt;/strong&gt; (premium features, subscriptions, in-app currency): you generally must use Apple's In-App Purchase, with some exceptions and regional rules that have changed over time.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;For Apple Pay, you will need:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A Merchant ID set up in your Apple Developer account&lt;/li&gt;
&lt;li&gt;The Apple Pay capability enabled in Xcode&lt;/li&gt;
&lt;li&gt;A payment processor (such as Stripe or Braintree) that decrypts the Apple Pay token on its side, so card data never touches your servers&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;A minimal payment request with PassKit:&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;import PassKit

let request = PKPaymentRequest()
request.merchantIdentifier = "merchant.com.yourcompany.app"
request.supportedNetworks = [.visa, .masterCard, .amex]
request.merchantCapabilities = .threeDSecure
request.countryCode = "US"
request.currencyCode = "USD"
request.paymentSummaryItems = [
    PKPaymentSummaryItem(label: "Order total", amount: NSDecimalNumber(string: "24.99"))
]
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;Because payment rules differ by region and change over time, confirm the current guidelines for your markets before you build.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Privacy: Labels and Privacy Manifests
&lt;/h2&gt;

&lt;p&gt;Apple requires:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;App Privacy details&lt;/strong&gt; in App Store Connect that describe what data you collect and how it is used&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Privacy manifests&lt;/strong&gt; for your app and for certain third-party SDKs, listing data use and the reasons for using specific APIs&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;App Tracking Transparency&lt;/strong&gt; permission before tracking users across other companies' apps and websites&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Common mistake:&lt;/strong&gt; your privacy labels say one thing, but an analytics or ads SDK collects more. Review every third-party SDK before submitting.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Account Deletion Inside the App
&lt;/h2&gt;

&lt;p&gt;If your app lets users create an account, it must also let them start account deletion from inside the app. A link to an email address is not enough. Plan:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A clear "Delete account" option in settings&lt;/li&gt;
&lt;li&gt;Server-side deletion or anonymization of personal data&lt;/li&gt;
&lt;li&gt;Revoking Sign in with Apple tokens when the account is deleted&lt;/li&gt;
&lt;li&gt;Clear messaging if some data must be kept for legal reasons, such as invoices&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  5. Pre-Submission Checklist
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Sign in with Apple added where required, with server-side token checks&lt;/li&gt;
&lt;li&gt;Correct payment method for physical vs. digital goods&lt;/li&gt;
&lt;li&gt;Privacy labels match real data collection, including SDKs&lt;/li&gt;
&lt;li&gt;Privacy manifests included for the app and required SDKs&lt;/li&gt;
&lt;li&gt;In-app account deletion works end to end&lt;/li&gt;
&lt;li&gt;Demo account and notes ready for the App Review team&lt;/li&gt;
&lt;li&gt;Tested on a range of iPhone models and the latest iOS version&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Working with an experienced &lt;a href="https://devtechnosys.com/iphone-app-development.php" rel="noopener noreferrer"&gt;iPhone app development company&lt;/a&gt; helps catch these issues before review, especially for apps with payments, logins and user data.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;"Most App Store delays are planning problems, not coding problems. If login, payments and privacy are designed on day one, review becomes a formality."&lt;br&gt;
Tarun Nagar, Founder and CEO, Dev Technosys&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  iPhone App Development Partners Worth Considering
&lt;/h2&gt;

&lt;p&gt;The company details below come from each company's public information and are self-reported, so confirm them directly before signing anything.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1. Dev Technosys&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Dev Technosys builds iPhone apps in Swift and SwiftUI with Sign in with Apple, Apple Pay, In-App Purchase and privacy requirements planned from the first sprint. Its experience with fintech, healthcare and on-demand apps means payment flows, secure logins and data deletion are part of the standard build, not last-minute fixes. The team also handles App Store submission and updates after launch. One limitation: it focuses on iOS and cross-platform apps rather than macOS-only desktop software.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. Fujitsu&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Fujitsu, headquartered in Tokyo, provides IT services, consulting and systems integration to large organizations around the world. For iPhone projects, its strength is connecting mobile apps to enterprise systems, identity platforms and secure infrastructure. Its delivery model suits large enterprise programs more than consumer startups. Fujitsu suits large organizations rolling out iPhone apps to employees or customers on top of complex back-end systems.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. Atos&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Atos, headquartered in Bezons, France, offers digital transformation, cloud and cybersecurity services. Its security background is useful for iPhone apps in regulated sectors, where secure authentication, device management and data protection matter. It leans toward enterprise IT rather than consumer app design. Atos suits enterprises and public organizations that need secure iPhone apps as part of a wider IT program.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;4. Ness Digital Engineering&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Ness Digital Engineering, headquartered in Teaneck, New Jersey, focuses on digital product engineering, cloud and data services. Its product engineering approach fits companies that treat their iPhone app as a core product needing ongoing releases and solid architecture. Its pricing fits mid-size and larger budgets. Ness Digital Engineering suits software and media companies that want an engineering partner for long-term iOS product development.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;5. Cybage&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Cybage, headquartered in Pune, provides product engineering and outsourced development services, with experience in media, retail, travel and technology products. Its product engineering teams can support iPhone apps that need continuous feature development and testing. It is less focused on brand and design work, so some buyers pair it with a design agency. Cybage suits product companies that need steady iOS development capacity alongside their in-house team.&lt;/p&gt;

&lt;h2&gt;
  
  
  FAQs
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Is Sign in with Apple mandatory for every iPhone app?&lt;/strong&gt;&lt;br&gt;
No. It is required only in certain cases, mainly when an app offers third-party or social login for the user's main account. Apps using only their own email login, or certain business and education logins, may be exempt.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Can I use Stripe instead of In-App Purchase?&lt;/strong&gt;&lt;br&gt;
For physical goods and real-world services, yes. For digital content and features used in the app, Apple's In-App Purchase rules usually apply, with some regional exceptions.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How long does App Store review take?&lt;/strong&gt;&lt;br&gt;
Most apps are reviewed within a few days, but rejections and resubmissions add time. Following the checklist above helps avoid delays.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>productivity</category>
      <category>webdev</category>
      <category>javascript</category>
    </item>
    <item>
      <title>How to Build a Social Media Feed That Scales</title>
      <dc:creator>Arpit Mishra</dc:creator>
      <pubDate>Tue, 17 Nov 2026 06:57:46 +0000</pubDate>
      <link>https://dev.to/arpit_mishra1/how-to-build-a-social-media-feed-that-scales-2439</link>
      <guid>https://dev.to/arpit_mishra1/how-to-build-a-social-media-feed-that-scales-2439</guid>
      <description>&lt;p&gt;A social media feed that scales usually combines two approaches. For most users, posts are pushed into followers' feeds when they are created (fan-out on write). For accounts with huge follower counts, posts are pulled in when a follower opens the app (fan-out on read). Store feeds in Redis sorted sets, page through them with cursors instead of page numbers, and run ranking and moderation as separate steps. This hybrid model keeps feeds fast without overloading your system when a popular account posts.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why Is the Feed the Hardest Part of a Social App?**
&lt;/h2&gt;

&lt;p&gt;Profiles, likes and comments are fairly simple. The feed is different. Every time someone opens the app, you need to show the most relevant recent posts from hundreds of accounts they follow, in a few hundred milliseconds, while millions of other users do the same.&lt;/p&gt;

&lt;p&gt;There are two classic ways to build it, and each one breaks in a different place.&lt;/p&gt;

&lt;h2&gt;
  
  
  Option 1: Fan-Out on Read (Pull)
&lt;/h2&gt;

&lt;p&gt;When a user opens their feed, the server looks up everyone they follow, fetches recent posts from each, merges them and sorts them.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Pros:&lt;/strong&gt; writes are cheap, and new posts appear instantly.&lt;br&gt;
&lt;strong&gt;Cons:&lt;/strong&gt; reads are expensive. A user following 1,000 accounts triggers 1,000 lookups every time they refresh.&lt;/p&gt;

&lt;h2&gt;
  
  
  Option 2: Fan-Out on Write (Push)
&lt;/h2&gt;

&lt;p&gt;When someone posts, the server copies the post ID into the feed of every follower. Reading a feed becomes one quick lookup.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Pros:&lt;/strong&gt; reads are very fast.&lt;br&gt;
&lt;strong&gt;Cons:&lt;/strong&gt; writes explode for popular accounts. One post from an account with 5 million followers means 5 million feed updates.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Hybrid Model Most Large Apps Use
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Normal accounts:&lt;/strong&gt; fan-out on write. Their posts go straight into followers' feeds.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;High-follower accounts:&lt;/strong&gt; fan-out on read. Their posts are fetched and merged when a follower loads the feed.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;A follower threshold (for example, 10,000 or 100,000 followers) decides which path an account uses. You tune it based on your traffic.&lt;/p&gt;

&lt;h2&gt;
  
  
  Storing Feeds in Redis Sorted Sets
&lt;/h2&gt;

&lt;p&gt;Redis sorted sets fit feeds well: each member is a post ID, and the score is the timestamp (or a ranking score). Here is a fan-out on write with a size cap, using Node.js and ioredis:&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;import Redis from "ioredis";
const redis = new Redis(process.env.REDIS_URL);

const FEED_LIMIT = 800; // keep only the newest 800 items per feed

export async function fanOutPost(post, followerIds) {
  const pipeline = redis.pipeline();

  for (const followerId of followerIds) {
    const key = `feed:${followerId}`;
    pipeline.zadd(key, post.createdAt, post.id);
    // Remove everything except the newest FEED_LIMIT items
    pipeline.zremrangebyrank(key, 0, -(FEED_LIMIT + 1));
  }

  await pipeline.exec();
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;For large follower lists, run this in a background worker and process followers in batches, so posting stays fast for the author.&lt;/p&gt;

&lt;h2&gt;
  
  
  Paginate With Cursors, Not Page Numbers
&lt;/h2&gt;

&lt;p&gt;Page numbers break in feeds because new posts keep arriving. If a user is on page 2 and ten new posts arrive, page 3 shows duplicates. Cursor pagination fixes this by asking for "posts older than the last one I saw":&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;export async function readFeed(userId, cursor = "+inf", limit = 20) {
  const results = await redis.zrevrangebyscore(
    `feed:${userId}`,
    cursor,
    "-inf",
    "WITHSCORES",
    "LIMIT", 0, limit
  );

  const items = [];
  for (let i = 0; i &amp;lt; results.length; i += 2) {
    items.push({ postId: results[i], score: Number(results[i + 1]) });
  }

  const last = items[items.length - 1];
  // "(" makes the next query exclusive, so the last item is not repeated
  const nextCursor = last ? `(${last.score}` : null;

  return { items, nextCursor };
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;&lt;strong&gt;One catch:&lt;/strong&gt; if two posts share the same timestamp, an exclusive cursor can skip one. Use timestamps in milliseconds, or add a tiebreaker such as a sequence number to the score.&lt;/p&gt;

&lt;h2&gt;
  
  
  Merging High-Follower Posts at Read Time
&lt;/h2&gt;

&lt;p&gt;For accounts that skip fan-out, keep a separate sorted set of their recent posts (&lt;code&gt;posts:{authorId}&lt;/code&gt;). When a user loads their feed:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Read their pre-built feed (from fan-out on write).&lt;/li&gt;
&lt;li&gt;Read recent posts from the high-follower accounts they follow.&lt;/li&gt;
&lt;li&gt;Merge both lists by score and return the top items.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Cache this merged result for a short time (for example, 30 to 60 seconds) to avoid recomputing it on every pull-to-refresh.&lt;/p&gt;

&lt;h2&gt;
  
  
  Ranking: Chronological vs. Relevance
&lt;/h2&gt;

&lt;p&gt;Chronological feeds are simple and transparent. Ranked feeds usually increase engagement, but they need more work:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Collect signals: likes, comments, shares, dwell time, relationship strength&lt;/li&gt;
&lt;li&gt;Score candidate posts in a ranking service&lt;/li&gt;
&lt;li&gt;Re-rank the top few hundred candidates, not the whole feed&lt;/li&gt;
&lt;li&gt;Keep a "Latest" option, because many users want to see posts in order&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;A practical path is to launch chronological, collect signals for a few months, then add ranking once you have real data.&lt;/p&gt;

&lt;h2&gt;
  
  
  Moderation Must Sit Next to the Feed
&lt;/h2&gt;

&lt;p&gt;A feed that scales without moderation also spreads harmful content faster. Build these in early:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Automated checks for images and text before or right after posting&lt;/li&gt;
&lt;li&gt;A review queue for flagged content&lt;/li&gt;
&lt;li&gt;Report, block and mute tools for users&lt;/li&gt;
&lt;li&gt;A way to remove a post from all feeds at once (store post IDs in feeds, never full copies, so deleting the original post removes it everywhere)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Apple and Google both require reporting and blocking tools in apps with user-generated content, so these are not optional for app store approval.&lt;/p&gt;

&lt;h2&gt;
  
  
  When Should You Bring In Help?
&lt;/h2&gt;

&lt;p&gt;If you are building a feed for a new community or creator app, the patterns above will take you far. When you also need chat, live video, moderation tooling and monetization, working with an experienced &lt;a href="https://devtechnosys.com/social-media-app-development.php" rel="noopener noreferrer"&gt;social media app development company&lt;/a&gt; can save months of trial and error.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;"Feeds rarely fail on day one. They fail the day your first big creator joins. Design for that day before it arrives."&lt;br&gt;
Tarun Nagar, Founder and CEO, Dev Technosys&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  Social Media App Development Partners Worth Considering
&lt;/h2&gt;

&lt;p&gt;The company details below come from each company's public information and are self-reported, so confirm them directly before signing anything.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1. Dev Technosys&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Dev Technosys builds social and community apps end to end: profiles, feeds, real-time chat, live video, creator monetization and admin moderation tools. Its work on on-demand, dating and streaming platforms shows in how it plans fan-out, caching and moderation queues before launch day. It supports iOS, Android and web, with scaling help as communities grow. One limitation: large human moderation teams are outside its scope, so clients plan their own review staff.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. Tata Elxsi&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Tata Elxsi, headquartered in Bengaluru, combines design and technology services across media, transportation and healthcare. Its media and design background is useful for social platforms where user experience and content presentation drive engagement. It usually works on larger, structured programs rather than quick MVPs. Tata Elxsi suits media companies building social or community features into their content platforms.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. Sopra Steria&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Sopra Steria, headquartered in Paris, provides consulting, digital services and software development for large European organizations. Its experience with secure, regulated systems helps social platforms that must meet strict European privacy and online safety rules. Its focus is enterprise programs, so early startups may find it heavy. Sopra Steria suits European organizations launching community platforms with strong compliance needs.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;4. Tietoevry&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Tietoevry, headquartered in Espoo, Finland, delivers software and cloud services with a strong presence in the Nordic countries. Its cloud and data skills fit community apps that need reliable infrastructure and analytics for growing user bases. Its client base is mainly Northern European. Tietoevry suits Nordic media groups and organizations building community or social platforms for local audiences.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;5. Mastek&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Mastek, headquartered in Mumbai, offers digital engineering, cloud and data services with a strong client base in the UK and US. Its data and cloud work helps social platforms that need better analytics, recommendation data pipelines and cloud scaling. Consumer app design is not its main strength. Mastek suits companies that already run a social product and need data platforms and cloud modernization behind it.&lt;/p&gt;

&lt;h2&gt;
  
  
  FAQs
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Should a new social app start with fan-out on write or read?&lt;/strong&gt;&lt;br&gt;
For a new app with small follower counts, fan-out on write is simpler and gives fast reads. Add the hybrid model when some accounts grow large.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Is Redis enough to store all feeds?&lt;/strong&gt;&lt;br&gt;
Redis works well for the recent part of each feed. Keep the full post data and older history in a primary database, and rebuild feeds from there if needed.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How many items should a feed keep?&lt;/strong&gt;&lt;br&gt;
Many apps keep a few hundred recent items per user in the fast store. Older content is fetched from the main database when users scroll far back.&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>ai</category>
      <category>productivity</category>
      <category>programming</category>
    </item>
    <item>
      <title>Handling Webhook Retries in a Loan Lending App Without Double Disbursals</title>
      <dc:creator>Arpit Mishra</dc:creator>
      <pubDate>Thu, 12 Nov 2026 09:35:30 +0000</pubDate>
      <link>https://dev.to/arpit_mishra1/handling-webhook-retries-in-a-loan-lending-app-without-double-disbursals-1ooi</link>
      <guid>https://dev.to/arpit_mishra1/handling-webhook-retries-in-a-loan-lending-app-without-double-disbursals-1ooi</guid>
      <description>&lt;p&gt;In most apps, a duplicate webhook means a duplicate email. In a lending app, it can mean sending the same borrower the same loan twice. The approval event arrives, your handler starts the payout, the response is slow, the sender retries, and a second payout leaves your account before anyone notices.&lt;br&gt;
This post walks through a small, tested pattern that makes the approval-to-payout path safe to retry. It is the same thinking we apply in loan lending app development work, reduced to about 70 lines of Python and SQLite so you can run it locally.&lt;br&gt;
Quick Answer: Treat every webhook as "at least once". Record each event ID under a unique constraint, allow only one disbursement row per loan, send the same idempotency key to the payout provider on every retry, and only let payout status move forward. Together these four rules stop double disbursals even when events repeat, race or arrive out of order.&lt;br&gt;
Why Do Webhook Retries Cause Double Disbursals?&lt;br&gt;
Webhook providers promise delivery at least once, not exactly once. Stripe's documentation, for example, warns that endpoints may receive duplicate events and retries failed deliveries with backoff for up to three days in live mode. Other providers follow the same model with different schedules.&lt;br&gt;
In a lending flow, duplicates come from three places:&lt;br&gt;
• Plain retries: your handler took too long or returned an error, so the same event ID is sent again.&lt;br&gt;
• Races: a retry lands while the first delivery is still running, so two workers see the same event at the same moment.&lt;br&gt;
• Upstream re-emits: the loan origination system fires a second "approved" event with a new event ID, for example after its own retry or a manual re-approval.&lt;br&gt;
Deduplicating on event ID handles the first two. Only a business rule, "one disbursal per loan", handles the third. Payout status webhooks add a fourth problem: they can arrive late or out of order.&lt;br&gt;
What Does a Safe Approval-to-Payout Flow Look Like?&lt;br&gt;
The flow below crosses two systems. Approval lives in loan origination, while payout and repayment tracking live in loan servicing, and the difference between loan origination and loan management software is exactly where most duplicate-payout bugs hide.&lt;br&gt;
• 1. Receive the approval webhook and record its event ID in the same transaction that creates the disbursement row.&lt;br&gt;
• 2. Create at most one disbursement per loan, with a fixed idempotency key.&lt;br&gt;
• 3. A worker sends pending disbursements to the payout provider, reusing that key on every attempt.&lt;br&gt;
• 4. Payout status webhooks can only move the status forward: pending, sent, then paid or failed.&lt;br&gt;
How Do You Store Events So Retries Are Harmless?&lt;br&gt;
Two tables carry the whole design. The primary key on event_id rejects repeat deliveries, and the primary key on loan_id rejects a second disbursal for the same loan, whatever event triggered it.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;sqlite3&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;uuid&lt;/span&gt;

&lt;span class="no"&gt;SCHEMA&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"""
CREATE TABLE IF NOT EXISTS webhook_events (
  event_id    TEXT PRIMARY KEY,
  received_at TEXT NOT NULL DEFAULT CURRENT_TIMESTAMP
);
CREATE TABLE IF NOT EXISTS disbursements (
  loan_id         TEXT PRIMARY KEY,          -- one disbursal per loan, ever
  amount_cents    INTEGER NOT NULL,
  status          TEXT NOT NULL,             -- pending -&amp;gt; sent -&amp;gt; paid | failed
  idempotency_key TEXT NOT NULL UNIQUE,
  provider_ref    TEXT
);
"""&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;How Do You Turn One Approval Into Exactly One Payout?&lt;br&gt;
The handler writes the event ID and the disbursement row inside one transaction. If the event ID already exists, it returns 200 so the sender stops retrying. If the loan already has a disbursement, the insert is ignored. BEGIN IMMEDIATE takes the write lock up front in SQLite; in Postgres, use INSERT ... ON CONFLICT DO NOTHING inside a normal transaction to get the same effect.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="no"&gt;ORDER&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s2"&gt;"pending"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"sent"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"paid"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"failed"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;connect&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;path&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;db&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;sqlite3&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;connect&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;path&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;isolation_level&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="kc"&gt;None&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;timeout&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;check_same_thread&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="kc"&gt;False&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;db&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;executescript&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="no"&gt;SCHEMA&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;db&lt;/span&gt;

&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;handle_loan_approved&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;db&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;event&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="s2"&gt;"""Webhook from the loan origination system. Safe to call any number of times."""&lt;/span&gt;
    &lt;span class="n"&gt;db&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;execute&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"BEGIN IMMEDIATE"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;try&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="k"&gt;try&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
            &lt;span class="n"&gt;db&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;execute&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"INSERT INTO webhook_events(event_id) VALUES (?)"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;event&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"id"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="k"&gt;except&lt;/span&gt; &lt;span class="n"&gt;sqlite3&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;IntegrityError&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
            &lt;span class="n"&gt;db&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;execute&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"ROLLBACK"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
            &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="mi"&gt;200&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"duplicate event"&lt;/span&gt;
        &lt;span class="n"&gt;loan_id&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;event&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"data"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"loan_id"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
        &lt;span class="n"&gt;cur&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;db&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;execute&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
            &lt;span class="s2"&gt;"INSERT OR IGNORE INTO disbursements(loan_id, amount_cents, status, idempotency_key) "&lt;/span&gt;
            &lt;span class="s2"&gt;"VALUES (?, ?, 'pending', ?)"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
            &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;loan_id&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;event&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"data"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"amount_cents"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="s2"&gt;"disburse-{loan_id}"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="n"&gt;db&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;execute&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"COMMIT"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;except&lt;/span&gt; &lt;span class="nc"&gt;Exception&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="n"&gt;db&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;execute&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"ROLLBACK"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="k"&gt;raise&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="mi"&gt;200&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"queued"&lt;/span&gt; &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;cur&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;rowcount&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt; &lt;span class="k"&gt;else&lt;/span&gt; &lt;span class="s2"&gt;"loan already has a disbursal"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Notice that the handler never calls the payout API. Keeping network calls out of the webhook request means the response is fast, which cuts down on timeouts and therefore on retries.&lt;br&gt;
What Happens If the Payout API Times Out?&lt;br&gt;
This is the nastiest case. The provider may have created the payout and the response was lost on the way back. If the worker retries with a new request, the borrower gets paid twice. Most mature payment gateway software and payout APIs accept an idempotency key for this reason, so the worker sends the same key on every attempt and the provider returns the original payout instead of creating a new one. Check your provider's docs for how long it keeps keys.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;send_pending&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;db&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;provider&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="s2"&gt;"""Worker: push pending disbursals to the payout provider, reusing the same key on every retry."""&lt;/span&gt;
    &lt;span class="n"&gt;rows&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;db&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;execute&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"SELECT loan_id, amount_cents, idempotency_key FROM disbursements "&lt;/span&gt;
                      &lt;span class="s2"&gt;"WHERE status = 'pending'"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;fetchall&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;loan_id&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;amount&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;key&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;rows&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="k"&gt;try&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
            &lt;span class="n"&gt;ref&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;provider&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;create_payout&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;amount&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;idempotency_key&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;key&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="k"&gt;except&lt;/span&gt; &lt;span class="nc"&gt;TimeoutError&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
            &lt;span class="k"&gt;continue&lt;/span&gt;                      &lt;span class="c1"&gt;# stay pending, next run retries with the SAME key&lt;/span&gt;
        &lt;span class="n"&gt;db&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;execute&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"UPDATE disbursements SET status='sent', provider_ref=? "&lt;/span&gt;
                   &lt;span class="s2"&gt;"WHERE loan_id=? AND status='pending'"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;ref&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;loan_id&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;How Do You Handle Payout Webhooks That Arrive Out of Order?&lt;br&gt;
A "failed" event that arrives after "paid" must not reopen the loan for another payout. A small ordering map makes status transitions forward-only. Unknown payout IDs return 404 so the provider retries later, which covers the case where the status webhook beats your own database update.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;handle_payout_update&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;db&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;event&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="s2"&gt;"""Webhook from the payout provider. Events may arrive late or out of order."""&lt;/span&gt;
    &lt;span class="n"&gt;new&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;event&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"data"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"status"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;          &lt;span class="c1"&gt;# 'paid' or 'failed'&lt;/span&gt;
    &lt;span class="n"&gt;row&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;db&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;execute&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"SELECT status FROM disbursements WHERE provider_ref=?"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
                     &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;event&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"data"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"payout_id"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;fetchone&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;row&lt;/span&gt; &lt;span class="k"&gt;is&lt;/span&gt; &lt;span class="kc"&gt;None&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="mi"&gt;404&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"unknown payout"&lt;/span&gt;       &lt;span class="c1"&gt;# non-2xx so the provider retries later&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="no"&gt;ORDER&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;new&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;=&lt;/span&gt; &lt;span class="no"&gt;ORDER&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;row&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="mi"&gt;200&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="s2"&gt;"ignored {new}, already {row[0]}"&lt;/span&gt;
    &lt;span class="n"&gt;db&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;execute&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"UPDATE disbursements SET status=? WHERE provider_ref=? AND status=?"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
               &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;new&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;event&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"data"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"payout_id"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;row&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="mi"&gt;200&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="s2"&gt;"moved to {new}"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Does It Hold Up Under Tests?&lt;br&gt;
The test file uses a fake payout provider that honors idempotency keys and can simulate a lost response. Five scenarios cover the failure modes above:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;1 retries of same event -&amp;gt; 1 payout: [(200, 'queued'), (200, 'duplicate event'), (200, 'duplicate event')]
2 concurrent deliveries -&amp;gt; queued once, payouts: 1
3 new event id, same loan -&amp;gt; (200, 'loan already has a disbursal')
4 timeout then retry -&amp;gt; payouts: 1 status: sent
5 late 'failed' after 'paid' -&amp;gt; (200, 'ignored failed, already paid') | final: paid
ALL TESTS PASSED
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Ten threads delivering the same event at once still produce one queued disbursal and one payout, and a lost provider response is repaired by the retry rather than duplicated.&lt;br&gt;
What Else Should a Production Lender Add?&lt;br&gt;
• Keep event IDs longer than the retry window. If a provider retries for three days and you purge after one, a day-two retry looks new.&lt;br&gt;
• Verify signatures first. Reject unsigned or stale webhooks before touching the database.&lt;br&gt;
• Reconcile daily. Compare your disbursement table with the provider's payout list and alert on any mismatch or on rows stuck in pending.&lt;br&gt;
• Use integer cents. Never store loan amounts as floats.&lt;br&gt;
Payout safety also depends on what happens before the money moves. Velocity checks, device signals and account-change alerts belong in front of the disbursal step, and real-time fraud monitoring for fintech is the layer that pauses a suspicious payout before the worker ever picks it up.&lt;br&gt;
After disbursal, the same idempotent thinking carries into repayments, late fees and collections, which a loan management software development guide covers in more depth.&lt;br&gt;
Which Companies Build Reliable Loan Lending Platforms?&lt;br&gt;
Figures below come from each company's own website and are self-reported, so confirm them directly before signing anything.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Dev Technosys
Dev Technosys is a loan lending app development company for lenders who want the money-moving parts built with the same care as the borrower screens. Its teams design approval-to-payout flows, repayment schedules, KYC steps and payout integrations as one system, so duplicate events and failed transfers are handled in the architecture rather than patched later. With 250+ in-house professionals, an 89% project success rate and most new work arriving through client referrals, it fits teams that want one partner from first release through growth and scale. Projects start from $10,000.&lt;/li&gt;
&lt;li&gt;DataArt
DataArt, founded in 1997, runs a finance practice that lists digital lending, onboarding and KYC, payments and reporting data platforms among its banking work, and it describes itself as a Stripe partner for payouts, billing and identity. The company says it has more than 1,200 finance industry specialists, which signals depth in regulated delivery and governance. That governance-heavy model can feel formal for a small team shipping a first lending product on a short runway. DataArt suits established lenders and payment firms modernizing a platform under strict internal review.&lt;/li&gt;
&lt;li&gt;Luxoft
Luxoft, part of DXC Technology, builds financial software for banks and works with Finastra across commercial, mortgage, syndicated and consumer lending, including loan origination and Loan IQ migration and support. It also offers EarlyResolution, a SaaS default management platform for lending operations, alongside core banking modernization services. Its strength sits with large institutions running established platforms, so a fintech startup wanting a fully custom mobile lending app may find the model oversized. Luxoft suits banks that need lending systems integrated, migrated or supported around Finastra and other core platforms.&lt;/li&gt;
&lt;li&gt;Zensar Technologies
Zensar Technologies, headquartered in Pune and part of the RPG Group, runs a lending practice across commercial lending, mortgages, auto loans and specialty lending. Its lending page lists digital onboarding with KYC, loan origination system consolidation, embedded credit and BNPL APIs, and an agentic debt recovery product. Everest Group named it a Major Contender and Star Performer in its 2025 Banking IT Services assessment. Its case studies mostly describe anonymized UK and global banks, so ask for references that match your market. Zensar Technologies suits banks modernizing lending workflows.&lt;/li&gt;
&lt;li&gt;CI&amp;amp;T
CI&amp;amp;T, listed on the NYSE, is a digital transformation company with a financial services practice covering banking platforms, payments, data and AI, and lending modernization. Its published work includes projects with Itaú, B3, Alelo and Planet Payment, and it acquired NTERSOL, an Irvine-based firm, in 2022 to grow its North American financial services team. Its lending page is brief, so buyers should ask for lending-specific examples rather than general banking work. CI&amp;amp;T suits banks and payment companies that want product design, engineering and AI adoption delivered together by one team.
“A lending app is judged by what happens on its worst day: the timeout, the retry storm, the event that arrives twice. If your payout path is safe to run twice, you can sleep through most incidents,” said Tarun Nagar, Founder and CEO of Dev Technosys.
Frequently Asked Questions
Why do webhooks get delivered more than once?
Providers guarantee at-least-once delivery. If your endpoint times out, returns an error or the network drops the response, the provider sends the same event again, sometimes for days.
Is deduplicating on event ID enough for a lending app?
No. Event IDs stop repeats of the same event, but the upstream system can send a new event for the same loan. A unique constraint on loan ID, or on loan ID plus disbursement number for multi-tranche loans, closes that gap.
What is an idempotency key in a payout API?
It is a unique value you send with a request so the provider can recognize a retry. If the key was already used, the provider returns the original result instead of creating a second payout.
Should a webhook handler call the payout API directly?
It is safer not to. Record the intent in your database, return 200 quickly, and let a worker make the payout call with retries and a fixed idempotency key.
How long should processed event IDs be kept?
At least as long as the longest retry window of any provider you use, with a buffer. Many teams keep them for 30 to 90 days because the rows are tiny.
How do you handle out-of-order payout status events?
Store a status order and only allow forward moves. Late events for an earlier state are acknowledged with 200 and ignored, so they never reopen a finished payout.&lt;/li&gt;
&lt;/ol&gt;

</description>
      <category>webhook</category>
      <category>loan</category>
      <category>devops</category>
      <category>ai</category>
    </item>
    <item>
      <title>How to Build an Idempotent Transfer API for a Money Transfer App</title>
      <dc:creator>Arpit Mishra</dc:creator>
      <pubDate>Fri, 06 Nov 2026 09:28:58 +0000</pubDate>
      <link>https://dev.to/arpit_mishra1/how-to-build-an-idempotent-transfer-api-for-a-money-transfer-app-gfp</link>
      <guid>https://dev.to/arpit_mishra1/how-to-build-an-idempotent-transfer-api-for-a-money-transfer-app-gfp</guid>
      <description>&lt;p&gt;An idempotent transfer API lets a client retry a send request without moving the money twice. The client sends one unique key per send attempt. The server saves that key, the balance debit, the transfer, and the stored response in a single database transaction, then calls the payout provider after commit.&lt;/p&gt;

&lt;p&gt;A user taps Send on a train. The request reaches your server, the balance is debited, and the tunnel swallows the response. The app shows a spinner, then a retry. Without protection, that one tap is now two transfers.&lt;/p&gt;

&lt;p&gt;This is the first failure to design for in money transfer app development, because the network cannot tell the client whether a timed-out request succeeded. A timeout means "unknown", not "failed". Idempotency turns that unknown into a safe retry.&lt;/p&gt;

&lt;p&gt;The example below uses Node.js, Express, and PostgreSQL 16. All of it ran against a real PostgreSQL instance, and the test results are further down.&lt;/p&gt;

&lt;p&gt;What Should the Client Send?&lt;/p&gt;

&lt;p&gt;The client creates one key per user intent and sends it in an Idempotency-Key header:&lt;/p&gt;

&lt;p&gt;http&lt;br&gt;
POST /v1/transfers&lt;br&gt;
Idempotency-Key: 8e03978e-40d5-43e8-bc93-6894a57f9324&lt;br&gt;
Content-Type: application/json&lt;/p&gt;

&lt;p&gt;{"recipientId": "r1", "amountMinor": 2500, "currency": "USD"}&lt;/p&gt;

&lt;p&gt;Three rules matter here:&lt;/p&gt;

&lt;p&gt;Create the key when the user confirms the send, and save it on the device before the first request. If the app is killed mid-request, the retry can reuse it.&lt;br&gt;
Reuse the key for every retry of that send. Create a new key only when the user starts a new send.&lt;br&gt;
Use a random UUID. Stripe's documentation also suggests V4 UUIDs and warns against using personal data as a key.&lt;/p&gt;

&lt;p&gt;The header follows the IETF Idempotency-Key Internet-Draft. The latest version found (draft 07, October 2025) is a working draft rather than a final standard, but its status codes are a sensible default.&lt;/p&gt;

&lt;p&gt;How Should the Database Be Set Up?&lt;/p&gt;

&lt;p&gt;The composite primary key does most of the work. Scoping keys by client also stops one customer's key from colliding with another's.&lt;/p&gt;

&lt;p&gt;sql&lt;br&gt;
CREATE TABLE idempotency_keys (&lt;br&gt;
  client_id     text        NOT NULL,&lt;br&gt;
  key           text        NOT NULL,&lt;br&gt;
  request_hash  char(64)    NOT NULL,&lt;br&gt;
  response_code int,&lt;br&gt;
  response_body jsonb,&lt;br&gt;
  created_at    timestamptz NOT NULL DEFAULT now(),&lt;br&gt;
  PRIMARY KEY (client_id, key)&lt;br&gt;
);&lt;/p&gt;

&lt;p&gt;CREATE TABLE outbox (&lt;br&gt;
  transfer_id  uuid PRIMARY KEY REFERENCES transfers(id),&lt;br&gt;
  attempts     int NOT NULL DEFAULT 0,&lt;br&gt;
  sent_at      timestamptz&lt;br&gt;
);&lt;/p&gt;

&lt;p&gt;The sample also has simple accounts and transfers tables. Amounts are stored as integers in minor units, so 2500 means $25.00 and floating-point rounding never touches a balance.&lt;/p&gt;

&lt;p&gt;How Does the Transfer Endpoint Work?&lt;/p&gt;

&lt;p&gt;The important choice is to keep everything in one transaction. There is no separate "in progress" status to clean up after a crash, because a crash rolls the key back along with the debit.&lt;/p&gt;

&lt;p&gt;js&lt;br&gt;
const hashRequest = ({ recipientId, amountMinor, currency }) =&amp;gt;&lt;br&gt;
  crypto.createHash('sha256')&lt;br&gt;
    .update(JSON.stringify([recipientId, amountMinor, currency]))&lt;br&gt;
    .digest('hex');&lt;/p&gt;

&lt;p&gt;app.post('/v1/transfers', async (req, res) =&amp;gt; {&lt;br&gt;
  const key = req.get('Idempotency-Key');&lt;br&gt;
  if (!key || key.length &amp;gt; 255) {&lt;br&gt;
    return res.status(400).json({ error: 'idempotency_key_required' });&lt;br&gt;
  }&lt;/p&gt;

&lt;p&gt;const { recipientId, amountMinor, currency } = req.body;&lt;br&gt;
  if (!recipientId || !Number.isSafeInteger(amountMinor) || amountMinor &amp;lt;= 0 ||&lt;br&gt;
      !/^[A-Z]{3}$/.test(currency ?? '')) {&lt;br&gt;
    return res.status(400).json({ error: 'invalid_request' });&lt;br&gt;
  }&lt;/p&gt;

&lt;p&gt;const clientId = req.get('X-Client-Id'); // use your verified auth context in production&lt;br&gt;
  const requestHash = hashRequest(req.body);&lt;br&gt;
  const db = await pool.connect();&lt;/p&gt;

&lt;p&gt;try {&lt;br&gt;
    await db.query('BEGIN');&lt;br&gt;
    await db.query("SET LOCAL lock_timeout = '2s'");&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;const claim = await db.query(
  `INSERT INTO idempotency_keys (client_id, key, request_hash)
   VALUES ($1, $2, $3)
   ON CONFLICT (client_id, key) DO NOTHING`,
  [clientId, key, requestHash],
);

if (claim.rowCount === 0) {
  const { rows: [saved] } = await db.query(
    `SELECT request_hash, response_code, response_body
     FROM idempotency_keys WHERE client_id = $1 AND key = $2`,
    [clientId, key],
  );
  await db.query('COMMIT');

  if (saved.request_hash !== requestHash) {
    return res.status(422).json({ error: 'idempotency_key_reused' });
  }
  return res.set('Idempotent-Replayed', 'true')
    .status(saved.response_code).json(saved.response_body);
}

const debit = await db.query(
  `UPDATE accounts SET balance_minor = balance_minor - $1
   WHERE id = $2 AND balance_minor &amp;gt;= $1`,
  [amountMinor, clientId],
);

let code = 422;
let body = { error: 'insufficient_funds' };

if (debit.rowCount === 1) {
  const { rows: [transfer] } = await db.query(
    `INSERT INTO transfers (sender_id, recipient_id, amount_minor, currency)
     VALUES ($1, $2, $3, $4) RETURNING id, status`,
    [clientId, recipientId, amountMinor, currency],
  );
  await db.query('INSERT INTO outbox (transfer_id) VALUES ($1)', [transfer.id]);
  code = 202;
  body = { id: transfer.id, status: transfer.status };
}

await db.query(
  `UPDATE idempotency_keys SET response_code = $1, response_body = $2
   WHERE client_id = $3 AND key = $4`,
  [code, body, clientId, key],
);
await db.query('COMMIT');
return res.status(code).json(body);
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;} catch (err) {&lt;br&gt;
    await db.query('ROLLBACK').catch(() =&amp;gt; {});&lt;br&gt;
    if (err.code === '55P03') {&lt;br&gt;
      return res.set('Retry-After', '1').status(409)&lt;br&gt;
        .json({ error: 'request_in_progress' });&lt;br&gt;
    }&lt;br&gt;
    console.error(err);&lt;br&gt;
    return res.status(500).json({ error: 'internal_error' });&lt;br&gt;
  } finally {&lt;br&gt;
    db.release();&lt;br&gt;
  }&lt;br&gt;
});&lt;/p&gt;

&lt;p&gt;Here is what happens when two identical requests arrive together. The first INSERT takes the key. The second blocks on the same unique key until the first transaction commits, then inserts nothing and reads the saved response. If the first transaction rolls back, the second one claims the key and runs normally.&lt;/p&gt;

&lt;p&gt;The lock_timeout caps that wait. After two seconds, PostgreSQL raises error 55P03, and the API returns 409 so the client can retry shortly.&lt;/p&gt;

&lt;p&gt;What Should Each Retry Return?&lt;br&gt;
Situation   Response    Client action&lt;br&gt;
New key 202 with the transfer   Show pending status&lt;br&gt;
Same key, same body Saved response replayed Treat as the original result&lt;br&gt;
Same key, different body    422 Fix the bug, do not retry&lt;br&gt;
Key missing 400 Add a key&lt;br&gt;
Original still running  409 with Retry-After    Retry with the same key&lt;br&gt;
Server error before commit  500, nothing saved  Retry with the same key&lt;/p&gt;

&lt;p&gt;The 400, 409, and 422 mapping follows the IETF draft. Insufficient funds is saved and replayed, so a retry cannot succeed later by surprise. If the user tops up and tries again, that is a new intent with a new key.&lt;/p&gt;

&lt;p&gt;How Do You Call the Payout Provider Safely?&lt;/p&gt;

&lt;p&gt;Never call a provider inside the request transaction. A slow provider would hold the row locks, and a commit failure after the call would leave money moving with no record of it.&lt;/p&gt;

&lt;p&gt;Instead, the endpoint writes an outbox row in the same transaction as the debit, and a worker sends it after commit:&lt;/p&gt;

&lt;p&gt;js&lt;br&gt;
async function sendNextTransfer(provider) {&lt;br&gt;
  const db = await pool.connect();&lt;br&gt;
  try {&lt;br&gt;
    await db.query('BEGIN');&lt;br&gt;
    const { rows: [job] } = await db.query(&lt;br&gt;
      &lt;code&gt;SELECT t.id, t.recipient_id, t.amount_minor, t.currency&lt;br&gt;
       FROM outbox o JOIN transfers t ON t.id = o.transfer_id&lt;br&gt;
       WHERE o.sent_at IS NULL&lt;br&gt;
       LIMIT 1 FOR UPDATE OF o SKIP LOCKED&lt;/code&gt;,&lt;br&gt;
    );&lt;br&gt;
    if (!job) { await db.query('COMMIT'); return false; }&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;try {
  await provider.send({ reference: job.id, to: job.recipient_id,
                        amountMinor: job.amount_minor, currency: job.currency });
  await db.query('UPDATE outbox SET sent_at = now() WHERE transfer_id = $1', [job.id]);
  await db.query(`UPDATE transfers SET status = 'submitted' WHERE id = $1`, [job.id]);
} catch (err) {
  await db.query('UPDATE outbox SET attempts = attempts + 1 WHERE transfer_id = $1', [job.id]);
}
await db.query('COMMIT');
return true;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;} catch (err) {&lt;br&gt;
    await db.query('ROLLBACK').catch(() =&amp;gt; {});&lt;br&gt;
    throw err;&lt;br&gt;
  } finally {&lt;br&gt;
    db.release();&lt;br&gt;
  }&lt;br&gt;
}&lt;/p&gt;

&lt;p&gt;The outbox gives you at-least-once delivery, so the worker can send the same transfer twice. That is why the stable reference matters: the transfer ID goes to the provider, and the provider deduplicates on it.&lt;/p&gt;

&lt;p&gt;Two warnings before you ship this. First, confirm in writing that your provider deduplicates by reference. If it does not, query the provider's status endpoint before each resend. Second, a provider timeout is not a failure, so never refund the user until the provider confirms that the payout did not happen. In production, also add a request timeout and a backoff based on attempts, because this short worker keeps a database connection open during the provider call.&lt;/p&gt;

&lt;p&gt;What Did the Failure Tests Show?&lt;/p&gt;

&lt;p&gt;The test run used PostgreSQL 16 and a fake provider that processed a payout, then dropped the acknowledgement once:&lt;/p&gt;

&lt;p&gt;50 concurrent requests with one key: one transfer, one debit, and the same transfer ID in all 50 responses.&lt;br&gt;
Retry after success: the saved response was replayed, and the balance did not move again.&lt;br&gt;
Same key with a new amount: 422, with no new transfer.&lt;br&gt;
Failure before commit: the debit and key both rolled back, and the retry ran as a fresh request.&lt;br&gt;
Duplicate during a stuck transaction: 409 after about two seconds, then a normal replay once the first request finished.&lt;br&gt;
Lost provider acknowledgement: one extra provider call, and no extra payout.&lt;/p&gt;

&lt;p&gt;These tests cover the logic above in one environment. They are not a load test, and a real system also needs tests against your provider's sandbox.&lt;/p&gt;

&lt;p&gt;What Security and Compliance Checks Apply?&lt;/p&gt;

&lt;p&gt;Idempotency stops duplicates, not fraud, so it sits beside your other controls:&lt;/p&gt;

&lt;p&gt;Take the client ID from verified auth. The X-Client-Id header above is only a demo shortcut. Trusting it would let a caller debit someone else's account.&lt;br&gt;
Keep keys long enough. Stripe says its API v1 keys can be removed once they are at least 24 hours old. Your retention must outlast your longest client retry window, because a retry after purging is a new transfer. Publish that window in your API docs, as the IETF draft recommends.&lt;br&gt;
Keep an audit trail. The saved request hash, response, and transfer record show what happened to each send. Keep them for as long as your record-keeping rules require.&lt;br&gt;
Check limits and screening inside the flow. KYC status, velocity limits, and AML screening should run before the debit, and a retry should never skip them on a fresh key.&lt;br&gt;
Store no secrets in keys. Keys appear in logs, so they should stay random.&lt;/p&gt;

&lt;p&gt;Licensing and record-keeping duties vary by country and corridor, so confirm them with qualified counsel. This section is general information, not legal advice.&lt;/p&gt;

&lt;p&gt;Dev Technosys holds ISO 27001:2022 certification. Tarun Nagar, Founder and CEO of Dev Technosys, says: "A money transfer app earns trust in the moments users never see. The retry path deserves the same care as the send button."&lt;/p&gt;

&lt;p&gt;Which Are the Top 5 Money Transfer App Development Companies?&lt;/p&gt;

&lt;p&gt;If you would rather not build this layer alone, these firms are worth a look. Figures below come from each company's own website or public profile and are self-reported, so confirm them directly before signing anything.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Dev Technosys&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Dev Technosys is a money transfer app development company for founders who want sending, verification, and monitoring built as one product. Its builds cover P2P transfers, cross-border payments with real-time currency conversion, KYC, AML monitoring, and AI-based fraud detection, along with an admin panel for transaction monitoring and disputes. Operations staff can follow successful, failed, and pending transfers from that one panel daily. With 250+ in-house professionals and an 89% project success rate, the company wins most of its new business through client referrals. Projects start from $10,000.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;DataArt&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Founded in New York City in 1997, DataArt describes 6,000+ engineers on Clutch and claims 200+ payments specialists on its own site. Its payments page names real-time rails such as FedNow, SEPA Instant, and Faster Payments, along with cross-border FX engines and ISO 20022 modernization. Clutch shows 26 reviews averaging 4.9, but the ten visible there do not mention payments work, and the minimum project is $100,000. DataArt suits established payment firms that need new rail integrations and platform modernization at enterprise scale, with budgets to match.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Coherent Solutions&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;A Clutch reviewer from a CFD trading platform says Coherent Solutions handles its client funding and withdrawal integrations, and that the app no longer breaks completely when one third-party element goes down. The Minneapolis firm was founded in 1995 and describes over 2,000 engineers. The same reviewer reported staff turnover and scored cost at 3.0, while financial services makes up 15% of its listed focus and projects start at $50,000. Coherent Solutions suits funded fintech teams that need sturdier provider integrations around a product already in the market.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Zymr&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Payments is a named service line at Zymr, covering P2P transfer apps, domestic and cross-border transfers, gateway integrations, and Stripe, PayPal, and Adyen APIs, with an anonymized remittance case study on its site. Clutch gives 2012 as its founding year, with six reviews averaging 4.5 and a $25,000 minimum. Proof is the gap: that profile shows both Silicon Valley and Ahmedabad as headquarters, its staff figures conflict, and no review comes from a financial services client. Zymr suits startups wanting payment gateway work at $25 to $49 hourly.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Exadel&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;For teams whose hardest problem is compliance tooling, Exadel offers a relevant reference: its Clutch profile describes SILO, an AML system that tracks client financial activity, and names UBS among key clients. The firm lists Walnut Creek, California as its headquarters and says it has a thousand employees, although the directory shows 250 to 999. No client review covers payments or money transfers, and only seven reviews appear there. Exadel suits financial firms that need custom AML and monitoring software built beside an existing money transfer product.&lt;/p&gt;

&lt;p&gt;FAQs&lt;/p&gt;

&lt;p&gt;What is an idempotent transfer API? It is an API where repeating the same request with the same key has the same effect as sending it once. The client can retry after a timeout without moving the money twice.&lt;/p&gt;

&lt;p&gt;Should a retry use the same idempotency key? Yes. Every retry of one send must reuse its key. A new key tells the server that this is a new transfer.&lt;/p&gt;

&lt;p&gt;Is a unique constraint on the transfers table enough? It helps, but it cannot return the original response or detect a key reused with a different amount. A dedicated key table handles both.&lt;/p&gt;

&lt;p&gt;Can Redis store idempotency keys instead? It can, but the key and the debit then live in different systems, so a crash between them can leave them out of step. Keeping both in one database transaction avoids that gap.&lt;/p&gt;

&lt;p&gt;Does idempotency give exactly-once delivery to the provider? No. The worker delivers at least once. You get a single payout only when the provider also deduplicates on your reference, or when you check its status before resending.&lt;/p&gt;

</description>
      <category>api</category>
      <category>architecture</category>
      <category>backend</category>
      <category>softwaredevelopment</category>
    </item>
    <item>
      <title>Building a Money Transfer App: Architecture, APIs, Security, and Transaction Reliability</title>
      <dc:creator>Arpit Mishra</dc:creator>
      <pubDate>Mon, 26 Oct 2026 07:31:33 +0000</pubDate>
      <link>https://dev.to/arpit_mishra1/building-a-money-transfer-app-architecture-apis-security-and-transaction-reliability-2im0</link>
      <guid>https://dev.to/arpit_mishra1/building-a-money-transfer-app-architecture-apis-security-and-transaction-reliability-2im0</guid>
      <description>&lt;p&gt;A money transfer application can look deceptively simple from the user's perspective. A customer selects a recipient, enters an amount, confirms the transaction, and waits for the transfer to complete.&lt;/p&gt;

&lt;p&gt;Behind that interface, however, the system must coordinate payment providers, transaction records, authentication, failure handling, and financial reconciliation.&lt;/p&gt;

&lt;p&gt;For software engineers and product teams, the difficult part is not implementing the transfer button. It is ensuring that the application behaves correctly when a payment request times out, a provider responds late, a customer retries an action, or two systems report different transaction states.&lt;/p&gt;

&lt;p&gt;This article explores the engineering decisions involved in building a reliable money transfer application.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Define the Transaction Lifecycle Before Writing Code
&lt;/h2&gt;

&lt;p&gt;Start by defining the states a transaction can occupy.&lt;/p&gt;

&lt;p&gt;A simplified lifecycle might look like this:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;CREATED → PENDING → PROCESSING → COMPLETED&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Other possible outcomes include &lt;code&gt;FAILED&lt;/code&gt;, &lt;code&gt;CANCELLED&lt;/code&gt;, &lt;code&gt;REVERSED&lt;/code&gt;, or a provider-specific status requiring investigation.&lt;/p&gt;

&lt;p&gt;These states should represent actual business events, not merely changes in the user interface.&lt;/p&gt;

&lt;p&gt;For example, a mobile application may successfully submit a transfer request, but the payment provider might not yet have confirmed the outcome. Showing “Completed” at that point would give the user misleading information.&lt;/p&gt;

&lt;p&gt;A better design separates three events:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The application accepted the transfer request.&lt;/li&gt;
&lt;li&gt;The payment provider accepted or processed the request.&lt;/li&gt;
&lt;li&gt;The transfer reached its confirmed outcome according to the provider's payment model.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The exact lifecycle depends on the transfer method and provider. A domestic bank transfer, card-funded payment, and international remittance may all behave differently.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Design the Core System Architecture
&lt;/h2&gt;

&lt;p&gt;A practical architecture can begin with a mobile application, backend API, transaction service, payment integration layer, database, and background processing system.&lt;/p&gt;

&lt;p&gt;Each component should have a clear responsibility.&lt;/p&gt;

&lt;h3&gt;
  
  
  Client application
&lt;/h3&gt;

&lt;p&gt;The client handles user interaction, recipient details, transfer confirmation, transaction history, and status updates.&lt;/p&gt;

&lt;p&gt;It should not be trusted to calculate authoritative fees, approve transactions, or determine whether a transfer has completed.&lt;/p&gt;

&lt;h3&gt;
  
  
  Backend API
&lt;/h3&gt;

&lt;p&gt;The backend authenticates the user, validates the request, checks permissions and transaction limits, and coordinates the transfer workflow.&lt;/p&gt;

&lt;p&gt;Sensitive business rules should remain on the server rather than being enforced exclusively in the mobile application.&lt;/p&gt;

&lt;h3&gt;
  
  
  Payment adapter
&lt;/h3&gt;

&lt;p&gt;A payment adapter isolates provider-specific behavior from the main business logic.&lt;/p&gt;

&lt;p&gt;For example, two payment providers may use different request fields, status codes, authentication mechanisms, and webhook formats. An adapter can translate those differences into a consistent internal interface.&lt;/p&gt;

&lt;p&gt;This makes it easier to add or replace providers without rewriting every part of the application.&lt;/p&gt;

&lt;h3&gt;
  
  
  Transaction and ledger services
&lt;/h3&gt;

&lt;p&gt;The transaction service manages workflow state. The ledger records financial movements according to the application's accounting model.&lt;/p&gt;

&lt;p&gt;These responsibilities are related but not interchangeable. A transaction status alone is not a complete accounting record.&lt;/p&gt;

&lt;h3&gt;
  
  
  Background workers and monitoring
&lt;/h3&gt;

&lt;p&gt;Background workers handle asynchronous provider events, retries, reconciliation tasks, and notifications. Monitoring helps operators identify delayed transactions, failed jobs, and discrepancies.&lt;/p&gt;

&lt;p&gt;A modular monolith may be sufficient for an early product. Microservices can become appropriate when independent scaling, deployment, or ownership requirements justify their additional operational complexity.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Prevent Duplicate Transfers With Idempotency
&lt;/h2&gt;

&lt;p&gt;One of the most important engineering problems is duplicate request handling.&lt;/p&gt;

&lt;p&gt;Imagine a customer taps “Send Money.” The backend submits a request to a provider, but the response times out. The application cannot determine whether the provider processed the transfer.&lt;/p&gt;

&lt;p&gt;If the customer retries and the backend creates an entirely new payment, the same transfer might be processed twice.&lt;/p&gt;

&lt;p&gt;An idempotency mechanism helps prevent this.&lt;/p&gt;

&lt;p&gt;The client or backend assigns a unique idempotency key to a logical transfer request. The server stores the key alongside the request's relevant details and result.&lt;/p&gt;

&lt;p&gt;When the same request is retried, the server returns the existing result instead of creating another transfer.&lt;/p&gt;

&lt;p&gt;A simplified request could look like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight http"&gt;&lt;code&gt;&lt;span class="err"&gt;POST /api/transfers
Authorization: Bearer &amp;lt;access-token&amp;gt;
Idempotency-Key: 4f8c2e7a-unique-request-key
Content-Type: application/json
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"recipient_id"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"recipient_123"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"amount"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"125.00"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"currency"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"USD"&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This is illustrative, not a complete production API specification.&lt;/p&gt;

&lt;p&gt;A robust implementation should also:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Associate the key with the authenticated customer and operation.&lt;/li&gt;
&lt;li&gt;Reject reuse of a key with materially different request data.&lt;/li&gt;
&lt;li&gt;Store the result durably.&lt;/li&gt;
&lt;li&gt;Handle concurrent requests using database constraints or equivalent synchronization.&lt;/li&gt;
&lt;li&gt;Define how long idempotency records remain valid.&lt;/li&gt;
&lt;li&gt;Coordinate idempotency with the payment provider whenever its API supports it.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Idempotency does not magically guarantee that every external system processes a request exactly once. It is one part of a broader reliability design.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Keep Transaction Records and Financial Ledgers Consistent
&lt;/h2&gt;

&lt;p&gt;Financial systems need more than a database field that says &lt;code&gt;balance = 500&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;A ledger-based design records financial movements explicitly. In a double-entry ledger, each journal entry balances across its debit and credit postings according to the accounting model.&lt;/p&gt;

&lt;p&gt;For example, a simplified internal transfer might involve:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Validating the sender's available balance.&lt;/li&gt;
&lt;li&gt;Creating a journal entry that debits the sender and credits the recipient.&lt;/li&gt;
&lt;li&gt;Ensuring the postings balance.&lt;/li&gt;
&lt;li&gt;Committing the related database changes atomically.&lt;/li&gt;
&lt;li&gt;Recording the transfer's final internal status.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The real design depends on whether the application holds customer funds, operates a stored-value wallet, or merely orchestrates transfers through a licensed provider. External bank transfers may require additional clearing, settlement, and reconciliation records.&lt;/p&gt;

&lt;p&gt;Use database transactions and appropriate concurrency controls to protect financial invariants. Avoid implementing balance changes as unrelated updates that can partially succeed.&lt;/p&gt;

&lt;p&gt;Corrections should generally be represented through controlled compensating entries or reversals rather than silently modifying historical financial records.&lt;/p&gt;

&lt;h2&gt;
  
  
  5. Handle Webhooks and Asynchronous Payment Responses
&lt;/h2&gt;

&lt;p&gt;Payment providers often send webhook events when a transfer changes state.&lt;/p&gt;

&lt;p&gt;A webhook handler should not assume that every event will arrive once, in order, or without delay.&lt;/p&gt;

&lt;p&gt;A resilient processing flow should:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Verify the webhook signature according to the provider's documentation.&lt;/li&gt;
&lt;li&gt;Validate the event and associate it with the correct transfer.&lt;/li&gt;
&lt;li&gt;Deduplicate events using a durable provider event identifier where available.&lt;/li&gt;
&lt;li&gt;Apply valid state transitions without overwriting newer information with stale events.&lt;/li&gt;
&lt;li&gt;Persist the processing result.&lt;/li&gt;
&lt;li&gt;Return the appropriate response to the provider.&lt;/li&gt;
&lt;li&gt;Send notifications through a separate, retryable process.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;If a provider offers authoritative status lookup, use it when an event is missing or the outcome remains ambiguous.&lt;/p&gt;

&lt;p&gt;Consider the case in which a transfer completion event arrives after a delayed processing event. The application should not move a completed transfer backward to an earlier state merely because the older event arrived later.&lt;/p&gt;

&lt;p&gt;A well-designed state machine and event-processing strategy help prevent these inconsistencies.&lt;/p&gt;

&lt;h2&gt;
  
  
  6. Build Security Into the Transaction Workflow
&lt;/h2&gt;

&lt;p&gt;Money transfer applications need layered security controls.&lt;/p&gt;

&lt;p&gt;Important considerations include:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Strong authentication and appropriate additional verification for sensitive actions.&lt;/li&gt;
&lt;li&gt;Server-side authorization for account access and transfer permissions.&lt;/li&gt;
&lt;li&gt;Encryption in transit and suitable protection for stored sensitive data.&lt;/li&gt;
&lt;li&gt;Secure storage and rotation of API credentials.&lt;/li&gt;
&lt;li&gt;Rate limits and risk-based controls for suspicious activity.&lt;/li&gt;
&lt;li&gt;Audit trails for relevant financial and administrative actions.&lt;/li&gt;
&lt;li&gt;Monitoring for unusual transfer patterns and account compromise.&lt;/li&gt;
&lt;li&gt;Tested incident response and recovery procedures.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Do not store payment credentials or sensitive identity information unnecessarily. Use provider-hosted or tokenized payment mechanisms where appropriate, and understand the security responsibilities that remain with your application.&lt;/p&gt;

&lt;p&gt;The regulatory requirements will depend on the markets served, the business model, and the role played by the company and its payment partners. Compliance should be established with qualified legal and compliance advisers before processing real transactions.&lt;/p&gt;

&lt;h2&gt;
  
  
  7. Test Failure Scenarios, Not Just Successful Payments
&lt;/h2&gt;

&lt;p&gt;A payment application can pass ordinary functional tests while still failing under realistic network and provider conditions.&lt;/p&gt;

&lt;p&gt;A useful test plan should include:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Scenario&lt;/th&gt;
&lt;th&gt;Expected behavior&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Duplicate request&lt;/td&gt;
&lt;td&gt;No unintended duplicate transfer&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Provider timeout&lt;/td&gt;
&lt;td&gt;Outcome remains uncertain until safely resolved&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Invalid recipient&lt;/td&gt;
&lt;td&gt;Request rejected with a useful explanation&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Duplicate webhook&lt;/td&gt;
&lt;td&gt;Event does not produce duplicate financial effects&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Out-of-order events&lt;/td&gt;
&lt;td&gt;Transaction state remains consistent&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Database failure&lt;/td&gt;
&lt;td&gt;No partial financial posting&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Reconciliation mismatch&lt;/td&gt;
&lt;td&gt;Discrepancy is flagged for investigation&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Unauthorized transfer&lt;/td&gt;
&lt;td&gt;Request is denied and relevant events are logged&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Integration tests should use provider sandboxes where available. Load testing should examine realistic concurrency and failure patterns, not just average request throughput.&lt;/p&gt;

&lt;p&gt;Before launch, test recovery procedures as well as ordinary application behavior.&lt;/p&gt;

&lt;h2&gt;
  
  
  8. Plan Reconciliation From the Beginning
&lt;/h2&gt;

&lt;p&gt;Reconciliation compares internal transaction and ledger records with information from banks or payment providers.&lt;/p&gt;

&lt;p&gt;It helps detect situations in which the application believes a transfer completed but the provider's records show a different result.&lt;/p&gt;

&lt;p&gt;A reconciliation process may compare transaction identifiers, amounts, currencies, fees, settlement references, and statuses.&lt;/p&gt;

&lt;p&gt;Differences should be categorized and investigated through a controlled workflow. Automated retries or adjustments should only occur when the relevant business rules make them safe.&lt;/p&gt;

&lt;p&gt;Reconciliation is particularly important for delayed settlements, refunds, reversals, chargebacks, and provider outages.&lt;/p&gt;

&lt;h2&gt;
  
  
  9. Choose an Architecture That Fits the Product
&lt;/h2&gt;

&lt;p&gt;There is no universally correct technology stack for every &lt;a href="https://devtechnosys.com/money-transfer-app-development.php" rel="noopener noreferrer"&gt;money transfer app Development&lt;/a&gt; .&lt;/p&gt;

&lt;p&gt;A team should choose its backend framework, database, messaging infrastructure, mobile technology, and cloud environment based on its workload, team expertise, operational capabilities, and security requirements.&lt;/p&gt;

&lt;p&gt;The more important questions are:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Can the system preserve financial invariants under concurrent requests?&lt;/li&gt;
&lt;li&gt;Can it recover safely from ambiguous provider responses?&lt;/li&gt;
&lt;li&gt;Can operators trace a transfer across system components?&lt;/li&gt;
&lt;li&gt;Can the team reconcile internal records with external financial data?&lt;/li&gt;
&lt;li&gt;Can the application scale without sacrificing correctness?&lt;/li&gt;
&lt;li&gt;Can security controls and compliance requirements be maintained over time?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;A simpler, well-tested architecture is often a better starting point than a complex system that the team cannot reliably operate.&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;Building a money transfer application is fundamentally a reliability and financial-workflow challenge. User experience matters, but transaction correctness, idempotency, ledger integrity, provider integration, and reconciliation are what make the system dependable.&lt;/p&gt;

&lt;p&gt;Development teams should define the transaction lifecycle, identify the financial partners, establish security and compliance requirements, and test failure scenarios before launching a product that handles real money.&lt;/p&gt;

&lt;p&gt;The most effective implementation is not necessarily the one with the most services or the newest technology. It is the one that can explain what happened to every transaction, recover safely from failures, and provide accurate information to customers and operators.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>softwaredevelopment</category>
      <category>devops</category>
      <category>webdev</category>
    </item>
    <item>
      <title>Top 10 Doctor On-Demand App Development Companies in Boston</title>
      <dc:creator>Arpit Mishra</dc:creator>
      <pubDate>Wed, 21 Oct 2026 09:14:21 +0000</pubDate>
      <link>https://dev.to/arpit_mishra1/top-10-doctor-on-demand-app-development-companies-in-boston-4i3j</link>
      <guid>https://dev.to/arpit_mishra1/top-10-doctor-on-demand-app-development-companies-in-boston-4i3j</guid>
      <description>&lt;p&gt;Boston patients want care that fits around hospital shifts, campus schedules and long winter commutes. That demand has made doctor on-demand app development one of the most requested builds in the region. The right partner delivers video consults, e-prescriptions, EHR connections and HIPAA controls without slowing your launch. This list covers ten firms with a Boston presence, plus one remote-first specialist, so you can shortlist faster.&lt;/p&gt;

&lt;p&gt;Why Does Boston Need Doctor On-Demand Apps?&lt;/p&gt;

&lt;p&gt;The city is home to major academic medical centers, biotech labs and digital health startups, so buyers expect clinical depth from a vendor, not only clean screens. Patients also compare every new app with the best ones already on their phones. That raises the bar for booking speed, video quality and data protection.&lt;/p&gt;

&lt;p&gt;Which Are the Top 10 Doctor On-Demand App Development Companies in Boston?&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Dev Technosys&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Dev Technosys is a &lt;a href="https://devtechnosys.com/doctor-on-demand-app-development.php" rel="noopener noreferrer"&gt;doctor on-demand app development company&lt;/a&gt; based in Jaipur that serves US clinics and healthcare startups remotely. It pairs AI-assisted delivery with healthcare specialists to build patient apps, doctor apps, admin panels, video consultation and EHR integrations over APIs. Its Fynda Pro healthcare application is a sample of its work. It has no Boston office, so workshops run over video calls.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Boston Technology Corporation&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Boston Technology Corporation, based in Framingham, builds custom software, mobile apps, AI and cloud products, and lists healthcare software and telemedicine platforms among its services. Google is a client, which points to experience with demanding enterprise buyers. Its public profile says little about clinical specialties, so ask for telehealth references. Boston Technology Corporation suits teams that want a Massachusetts partner close to the city.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Vermonster&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Vermonster works from Broad Street in Boston and builds mobile apps, web products and custom software with user-centered design. It says its healthcare technology experience keeps growing, which matters for consent flows and patient records. It is a smaller studio than the global names below, so check team capacity for a large rollout. Vermonster suits startups that want senior attention and a local partner.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;WillowTree&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;WillowTree is headquartered in Charlottesville, Virginia, keeps a Boston office and is now part of TELUS Digital. It builds mobile and web products, strategy, design and AI features for large brands such as HBO and Domino’s. Healthcare is one sector among many, and its enterprise focus may feel heavy for a pilot. WillowTree suits health systems that need a polished patient experience at scale.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;DEPT&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;DEPT has a Boston office and works across Amsterdam, Manchester and Berlin, with over a thousand staff. It combines UX and UI design, digital strategy, mobile development and custom software, and counts Tesla among its clients. Telehealth is not a headline specialty on its public profile, so confirm regulated-data experience. DEPT suits provider groups that want a global design-led partner with a Boston base.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Rightpoint&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Rightpoint lists a Boston office, though the firm is headquartered in Chicago and belongs to Genpact. It covers mobile app strategy, design and development, and absorbed the Boston studio Raizlabs. Macy’s is among its named clients. Its strength is digital experience rather than clinical software, so pair it with strong compliance advice. Rightpoint suits hospitals that care most about patient journey and interface quality.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Mobiquity&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Mobiquity is based in Waltham, a short drive from Boston, and is owned by Hexaware. It delivers mobile and web apps, cloud engineering, digital strategy, data and AI work, and lists healthcare among its client sectors. Public detail on telehealth projects is thin, so request detailed case studies before you sign. Mobiquity suits organizations that want cloud and data engineering behind a consultation app.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Zco Corporation&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Zco Corporation is headquartered in Nashua, New Hampshire, with Boston and New York offices. It builds iOS, Android and cross-platform apps along with custom enterprise software. Healthcare is not its stated focus, so look for proof of HIPAA-ready delivery. Its multi-platform range helps when doctors and patients use different phones and tablets. Zco Corporation suits businesses that need web, iOS and Android launched together.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Cantina&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Cantina is a Boston firm offering digital design, mobile and web development, IoT and experience strategy. The IoT experience is especially useful when a consult app must pull readings from wearables or home devices. Its public profile does not highlight regulated healthcare work, so verify that depth during the discovery phase. Cantina suits teams adding remote patient monitoring features to a doctor on-demand platform.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;DockYard&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;DockYard operates from Hingham, Massachusetts, in the Boston area, and works remote-first. It delivers custom software, mobile and web apps, product design and Elixir engineering. Elixir handles real-time connections well, which helps with chat, queues and live video sessions. Healthcare is not its stated specialty, so confirm its compliance experience before signing. DockYard suits companies that want a technically deep team building real-time features.&lt;/p&gt;

&lt;p&gt;How Do You Choose the Right Boston Partner?&lt;/p&gt;

&lt;p&gt;Start with healthcare references you can call, then test how the vendor handles HIPAA reviews, EHR integration and post-launch support. Ask who owns the source code, how bugs are priced after release and which developers will actually work on your product. A short paid discovery phase shows how a team thinks before you commit to a full build.&lt;/p&gt;

&lt;p&gt;What Security and Compliance Checks Should a Boston Telehealth App Pass?&lt;/p&gt;

&lt;p&gt;Any app handling patient data must meet HIPAA and HITECH rules, and your vendor should sign a business associate agreement. Ask for encryption in transit and at rest, role-based access, multi-factor login and audit logs. Massachusetts also requires a written information security program under 201 CMR 17.00 for residents’ personal information. For EHR links, check FHIR and HL7 experience. Request penetration test reports and verify any SOC 2 or ISO 27001 claim with the issuer.&lt;/p&gt;

&lt;p&gt;“A doctor on-demand app lives or dies on trust. Patients forgive a slow screen sooner than a privacy lapse, so we design consent, encryption and audit trails first and polish the interface second.” — Tarun Nagar, CEO, Dev Technosys&lt;/p&gt;

&lt;p&gt;FAQs&lt;/p&gt;

&lt;p&gt;How much does a doctor on-demand app cost?&lt;br&gt;
Projects typically start from $10,000. The final figure depends on features, integrations, platforms and compliance scope.&lt;/p&gt;

&lt;p&gt;How long does a build take?&lt;br&gt;
An MVP with booking, video consults and payments usually takes a few months. EHR integrations, AI features and multiple specialties add time.&lt;/p&gt;

&lt;p&gt;Which features matter most at launch?&lt;br&gt;
Doctor verification, instant and scheduled booking, secure video, e-prescriptions, payments and an admin dashboard.&lt;/p&gt;

&lt;p&gt;Should I choose a Boston-based vendor?&lt;br&gt;
Local teams make in-person workshops easy. A remote partner works equally well when it offers overlapping hours and regular video reviews.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Home Service App Development: A Technical Guide to the Systems That Actually Decide Whether You Ship</title>
      <dc:creator>Arpit Mishra</dc:creator>
      <pubDate>Tue, 15 Sep 2026 09:06:46 +0000</pubDate>
      <link>https://dev.to/arpit_mishra1/home-service-app-development-a-technical-guide-to-the-systems-that-actually-decide-whether-you-ship-3ndd</link>
      <guid>https://dev.to/arpit_mishra1/home-service-app-development-a-technical-guide-to-the-systems-that-actually-decide-whether-you-ship-3ndd</guid>
      <description>&lt;p&gt;Most teams that set out to build a home services platform spend their first three months on the wrong problem. They design booking screens, a category grid, a provider profile page, a five-star rating modal. All of it ships. All of it demos beautifully. And then the first hundred real bookings arrive and the product falls apart — not because the UI is bad, but because nobody built the part that decides which plumber gets the 2 PM job in Sector 9 when two of them are already running forty minutes late.&lt;/p&gt;

&lt;p&gt;That decision layer is the product. Everything else is packaging.&lt;/p&gt;

&lt;p&gt;This guide walks through the systems that matter, in the order they usually break.&lt;/p&gt;

&lt;p&gt;First, kill the Uber analogy&lt;/p&gt;

&lt;p&gt;Almost every technical spec for this category borrows its architecture from ride-hailing. It is the single most expensive mistake in the space, because the two domains differ on four axes that reach all the way down into the schema.&lt;/p&gt;

&lt;p&gt;Jobs are scheduled, not instant. A ride is dispatched in eight seconds. A deep-clean is booked on Tuesday for Saturday morning. Your matching engine therefore has to reason about future availability, which means you are building a calendar system, not a queue.&lt;/p&gt;

&lt;p&gt;Duration is uncertain. A ride's ETA is a solved problem — it is a function of distance and traffic. An AC repair is ninety minutes or it is four hours, and you will not know until the technician opens the panel. Every downstream system that assumes a fixed job length (slot generation, route planning, payout) will produce wrong answers.&lt;/p&gt;

&lt;p&gt;Price is often a range, not a number. Fixed-price catalogue services are the easy case. Real revenue tends to sit in inspect-then-quote work, which forces you to model quotes, approvals, change orders, and partial refunds as first-class entities.&lt;/p&gt;

&lt;p&gt;The stakes are physical. You are sending a stranger into somebody's home, often when only one person is there. Trust tooling is not a phase-two feature here. It is a launch blocker.&lt;/p&gt;

&lt;p&gt;Build from those four facts and the architecture looks quite different.&lt;/p&gt;

&lt;p&gt;The job state machine is your source of truth&lt;/p&gt;

&lt;p&gt;Before any service is written, define the lifecycle explicitly and enforce it in one place. Teams that let status live as a free-text column on a bookings table spend the next year writing defensive if statements.&lt;/p&gt;

&lt;p&gt;DRAFT → PENDING_ASSIGNMENT → OFFERED → ACCEPTED → EN_ROUTE&lt;br&gt;
      → ARRIVED → IN_PROGRESS → [QUOTE_PENDING → QUOTE_APPROVED]&lt;br&gt;
      → COMPLETED → PAID → CLOSED&lt;/p&gt;

&lt;p&gt;Terminal branches: CANCELLED_BY_CUSTOMER, CANCELLED_BY_PROVIDER,&lt;br&gt;
                   NO_SHOW_CUSTOMER, NO_SHOW_PROVIDER,&lt;br&gt;
                   DISPUTED, REASSIGNMENT_REQUIRED&lt;/p&gt;

&lt;p&gt;Two rules make this durable. First, every transition writes an immutable event row with actor, timestamp, geo-coordinates where relevant, and reason code — this log later becomes your dispute evidence, your SLA reporting, and your payout audit trail. Second, transitions are validated server-side against an allow-list; the client never sets status directly. ARRIVED should only be settable within a geofence radius of the service address, and COMPLETED should require whatever proof artefacts your category demands.&lt;/p&gt;

&lt;p&gt;The reassignment branch deserves particular attention. Provider drop-off after acceptance is the most common real-world failure in home services, and a system that cannot gracefully return a job to the dispatch pool — preserving the original time window, the customer's payment hold, and the notification thread — will leak bookings quietly.&lt;/p&gt;

&lt;p&gt;Dispatch: the part that is genuinely hard&lt;/p&gt;

&lt;p&gt;Dispatch has two modes and you need both.&lt;/p&gt;

&lt;p&gt;Immediate dispatch handles same-day and emergency requests. Deferred dispatch handles everything booked in advance, and runs as a scheduled job — typically a planning pass the evening before, plus a re-optimisation pass in the morning to absorb cancellations and overruns.&lt;/p&gt;

&lt;p&gt;Geospatial candidate selection should not be a WHERE distance &amp;lt; X query against every provider row. Index provider service areas using a hierarchical grid — H3 or S2 — so that candidate retrieval is a set lookup rather than a table scan. Store each provider's coverage as a set of cell IDs; store the job's location as a cell ID; intersect. At scale this is the difference between 12 milliseconds and 1.2 seconds.&lt;/p&gt;

&lt;p&gt;Once you have candidates, score them. A workable starting model:&lt;/p&gt;

&lt;p&gt;python&lt;br&gt;
score = (w1 * skill_match(provider, service_type)&lt;br&gt;
       + w2 * proximity_score(travel_time_seconds)&lt;br&gt;
       + w3 * rating_bayesian(provider)&lt;br&gt;
       + w4 * acceptance_rate(provider, last_30d)&lt;br&gt;
       + w5 * schedule_fit(provider, slot, buffer_minutes)&lt;br&gt;
       - w6 * utilization_penalty(provider, day)&lt;br&gt;
       - w7 * recent_offer_fatigue(provider))&lt;/p&gt;

&lt;p&gt;Three notes on this, learned the hard way by most teams that build it.&lt;/p&gt;

&lt;p&gt;Use travel time, not straight-line distance. A provider 3 km away across a river is further than one 7 km away on the same arterial road. Cache a travel-time matrix between grid cells rather than calling a routing API per candidate per job — the API bill for naive implementations is genuinely shocking.&lt;/p&gt;

&lt;p&gt;Use a Bayesian-smoothed rating, not a raw average. A provider with one five-star review must not outrank one with 4.7 across two hundred jobs.&lt;/p&gt;

&lt;p&gt;The utilization penalty is what stops your best providers from being burned out by the algorithm in month two. Supply retention is an engineering concern, not just an ops one.&lt;/p&gt;

&lt;p&gt;Offer delivery should cascade rather than broadcast. Send the job to the top-ranked provider with a short acceptance window — 45 to 90 seconds for immediate work, longer for scheduled — then fall through to the next candidate on timeout. Broadcasting to everyone gets you fast acceptance and a permanently degraded provider experience, because nine people lose a race they were told they had a chance at.&lt;/p&gt;

&lt;p&gt;Scheduling and the double-booking problem&lt;/p&gt;

&lt;p&gt;Slot availability is the least glamorous subsystem and the one that generates the most support tickets.&lt;/p&gt;

&lt;p&gt;Generate slots from provider working-hour templates plus exception records (leave, blocks, existing jobs), and always pad with a configurable travel and overrun buffer derived from the previous job's location and category. A 60-minute job in a category whose p75 duration is 95 minutes should not be sold as a 60-minute slot.&lt;/p&gt;

&lt;p&gt;For booking itself, use pessimistic locking or a database-level exclusion constraint on the provider-time range. Optimistic checks in application code will fail under concurrency — and concurrency here is not theoretical, because promotional pushes create synchronised booking spikes on the exact slots you promoted. Hold the slot for a short TTL during checkout, and release it explicitly on payment failure rather than waiting for a cleanup cron.&lt;/p&gt;

&lt;p&gt;Store everything in UTC with an explicit IANA timezone reference on the service address. Multi-city platforms that store local time learn about DST transitions on a Sunday morning in March.&lt;/p&gt;

&lt;p&gt;Money: holds, quotes, and the change-order trap&lt;/p&gt;

&lt;p&gt;The payment flow for home services is closer to hospitality than to e-commerce.&lt;/p&gt;

&lt;p&gt;Authorise at booking, capture at completion. A pre-authorisation hold protects against no-shows without charging for work not yet done, and it filters out a meaningful slice of fraudulent bookings at the point of entry.&lt;/p&gt;

&lt;p&gt;For inspect-then-quote categories, the quote must be a versioned object with line items, an expiry, and an explicit customer approval event captured in-app. When the technician finds a second fault, that is a change order — a new version of the quote requiring fresh approval, with the delta captured against the original authorisation or as a supplementary charge. Platforms that let technicians verbally agree a higher price and then adjust the invoice later generate chargebacks at a rate that eventually threatens their payment processing.&lt;/p&gt;

&lt;p&gt;Payouts run on a separate ledger. Maintain a double-entry ledger internally rather than deriving provider balances from booking rows — commissions, adjustments, penalties, tips, refunds, and tax withholding each need their own entry type, and reconciliation against your PSP becomes tractable only when the ledger is authoritative.&lt;/p&gt;

&lt;p&gt;Field reality: connectivity, evidence, and battery&lt;/p&gt;

&lt;p&gt;Your technicians work in basements, stairwells, and lift shafts. Design accordingly.&lt;/p&gt;

&lt;p&gt;The provider app needs a local-first data layer with an outbox queue — job acceptance, status changes, checklist completion and photos all get written locally and synced opportunistically, with idempotency keys so that a retried COMPLETED event does not double-capture payment. Conflict resolution should be last-write-wins for provider-authored fields and server-authoritative for anything financial.&lt;/p&gt;

&lt;p&gt;Location tracking should be adaptive rather than fixed-interval. High-frequency pings while EN_ROUTE, significant-change monitoring while IN_PROGRESS, nothing while idle. Batch and compress uploads. A provider app that drains a phone by 2 PM gets uninstalled, and you lose supply without ever seeing a support ticket explaining why.&lt;/p&gt;

&lt;p&gt;For evidence capture, before-and-after photos with server-side timestamps and geotags are the cheapest dispute-resolution mechanism you will ever build. Strip and re-embed EXIF server-side so metadata cannot be spoofed client-side.&lt;/p&gt;

&lt;p&gt;The trust layer&lt;/p&gt;

&lt;p&gt;At minimum: identity verification and background screening at onboarding with periodic re-verification; an arrival OTP that the customer reads out to confirm the right person is at the door; in-app masked calling so neither party holds the other's number; an SOS control on both apps that routes to a real human on a real rota; and a documented insurance claim path.&lt;/p&gt;

&lt;p&gt;These are not differentiators. They are table stakes, and regulators in several markets are moving toward making parts of them mandatory.&lt;/p&gt;

&lt;p&gt;A stack that holds up&lt;/p&gt;

&lt;p&gt;Nothing exotic is required, but a few choices pay for themselves.&lt;/p&gt;

&lt;p&gt;Postgres with PostGIS as the primary store, because geospatial queries, JSONB for category-specific fields, and strong transactional guarantees all live in one place. Redis for slot locks, offer windows, and provider presence. A message broker — Kafka or a managed equivalent — for the event log that feeds notifications, analytics, and the reassignment watchdog. Services split along the natural seams: identity, catalogue, booking, dispatch, payments, notifications. Flutter or React Native for the customer app where speed matters; strongly consider native for the provider app, because background location and battery behaviour are exactly where cross-platform abstractions leak.&lt;/p&gt;

&lt;p&gt;And build a dispatch simulator early. Replay synthetic demand against your scoring function and measure fill rate, average acceptance latency, provider utilisation variance, and cancellation rate before you touch production weights. Tuning dispatch against live bookings means tuning it against real people's Saturday mornings.&lt;/p&gt;

&lt;p&gt;Choosing who builds it&lt;/p&gt;

&lt;p&gt;The engineering team you pick should be evaluated on whether they have built dispatch, scheduling, and settlement systems before — not on how many marketplace apps sit in their portfolio.&lt;/p&gt;

&lt;p&gt;Dev Technosys is worth a conversation on precisely that basis. The firm's relevant depth here comes less from consumer marketplaces than from adjacent operational systems: cold-chain logistics work, where route assignment and custody handover under unreliable connectivity are the whole problem; multi-modal mobility platforms, where real-time state reconciliation across thousands of moving field devices had to hold up; and fintech engagements involving KYC, escrow-style holds and ledger reconciliation, which map almost directly onto the quote-and-capture flow described above. A CMMI Level 3 and ISO 9001:2015 certified team of 250-plus in-house engineers, founded in 2010 and operating globally from Jaipur, the company reports an 89% project success rate with the majority of new business arriving through client referrals — a signal worth more than most portfolio pages. Teams scoping home service app development with genuine operational complexity — multi-city supply, quote-based categories, franchise or aggregator models — will find the discovery process usefully sceptical rather than order-taking.&lt;/p&gt;

&lt;p&gt;The honest limitation: the firm does not implement or configure third-party ERPs. If your model depends on deep Odoo, Zoho or ERPNext customisation for back-office operations, that work sits with a specialist ERP partner, with Dev Technosys building the platform and integrating through APIs.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>webdev</category>
      <category>productivity</category>
      <category>javascript</category>
    </item>
    <item>
      <title>Top 11+ Education App Development Companies in 2026</title>
      <dc:creator>Arpit Mishra</dc:creator>
      <pubDate>Thu, 10 Sep 2026 06:36:18 +0000</pubDate>
      <link>https://dev.to/arpit_mishra1/top-11-education-app-development-companies-in-2026-3cjc</link>
      <guid>https://dev.to/arpit_mishra1/top-11-education-app-development-companies-in-2026-3cjc</guid>
      <description>&lt;p&gt;Building an education app is not hard. Surviving a school year is.&lt;/p&gt;

&lt;p&gt;Video lessons, a quiz engine, a progress bar — solved problems. Any competent studio ships that in twelve weeks. What breaks teams is what the demo never shows: 40,000 students logging in inside the same nine-minute window on day one of term, a proctoring false positive on a student with a tic disorder, a parent in Germany asking what data you hold on their eleven-year-old, and a district IT admin who will not approve rollout until SSO works with their directory.&lt;/p&gt;

&lt;p&gt;The money justifies the scrutiny. The EdTech market is projected to grow from roughly $199.7 billion in 2025 to about $236.3 billion in 2026 at a CAGR near 18%, while education app downloads are forecast at 21.75 billion in 2026 against category revenue of about $29.7 billion — around $1.37 per download. Huge volume, thin per-user monetisation. Retention and institutional contracts decide who survives.&lt;/p&gt;

&lt;p&gt;Twelve firms, grouped by what they are actually built to do.&lt;/p&gt;

&lt;p&gt;Tier one: full-platform builders&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Dev Technosys&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Education borrows more from industries it never compares itself to than from other education products. That frame explains why this firm handles the category well.&lt;/p&gt;

&lt;p&gt;Three problems every serious learning platform hits. Identity trusted without being invasive — the same shape as the healthcare document verification pipelines the team has shipped, where an unverifiable record cannot be waved through and a rejection needs a human appeal path. Safety at scale in spaces where minors talk to each other — their community platform work with NLP moderation transfers directly to forums, peer review, and doubt-clearing chat, precisely the features that get apps pulled from stores. And money arriving in unpredictable shapes: institutional invoices, parent subscriptions, scholarship credits, mid-term refunds — close cousin to fintech, eWallet, and BNPL ledger work, where a mishandled refund carries a legal tail. Add real-time streaming architecture from live-video products and most of a live-class stack exists before education-specific work begins.&lt;/p&gt;

&lt;p&gt;Founded in 2010, running 250+ in-house professionals, CMMI Level 3 appraised (recertified February 2026), ISO 9001:2015 certified through December 2027, an 89% project success rate, and most new business arriving through referrals. Global operations, nearly every major industry served.&lt;/p&gt;

&lt;p&gt;Delivery spans adaptive learning with spaced repetition, live classes with breakout rooms and recording, offline-first content sync for low-bandwidth markets, an assessment engine built on item banks and randomisation rather than static question lists, gamification that survives students who will find the exploit, SCORM and xAPI compatibility, LTI integration with existing LMS environments, SSO through Google Workspace for Education and Microsoft Entra, and role architecture treating student, parent, teacher, department head, and district admin as genuinely different permission models. COPPA, FERPA, and GDPR children's data provisions are handled as architecture inputs, not a pre-launch checklist — consent flows and retention rules are brutally expensive to retrofit.&lt;/p&gt;

&lt;p&gt;For teams evaluating an education app development company, the practical test is whether the vendor asks about your academic calendar in the first conversation. Enrollment spikes, exam windows, and term boundaries drive load planning and release freezes in a way no other industry replicates.&lt;/p&gt;

&lt;p&gt;The team argues with feature lists, too. Ask for an AI tutor in v1 and expect a case for building the assessment data layer first — a tutor recommending next steps from unreliable mastery data is worse than no tutor, because teachers abandon the whole product after two bad calls.&lt;/p&gt;

&lt;p&gt;Limitation: instructional content and curriculum design sit outside scope. The platform and its pedagogy-supporting mechanics are built here; learning designers writing courseware and rubrics are a separate partner, and must be sequenced ahead of the build rather than parallel to it.&lt;/p&gt;

&lt;p&gt;Best for: K-12 platforms, university systems, tutoring marketplaces, and startups needing compliance, scale, and multi-role complexity handled from sprint one.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Intellectsoft&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Established enterprise firm with real education and corporate training work. The strength is organisational — comfortable inside long procurement cycles, security reviews, and stakeholder groups where the signer is three levels from the user.&lt;/p&gt;

&lt;p&gt;Limitation: enterprise cadence and pricing. Seed-stage founders on a nine-month runway will find discovery too long relative to burn.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Andersen&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Large capacity, strong on complex web platforms, experienced with the institutional side — student information systems, admin portals, registrar-grade reporting. Right when the platform is as much administration as instruction.&lt;/p&gt;

&lt;p&gt;Limitation: learner experience is the weaker half. Retention-driven mobile products need a sharper design partner alongside.&lt;/p&gt;

&lt;p&gt;Tier two: eLearning and LMS specialists&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Belitsoft&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Genuine eLearning depth — LMS builds, custom course platforms, SCORM and xAPI fluency, integration with the existing ecosystem rather than reinvention. The right answer to "replace Moodle, but with our workflows."&lt;/p&gt;

&lt;p&gt;Limitation: depth in a known category, not invention. Unusual consumer interaction models get a more conservative solution than the vision wants.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;ScienceSoft&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Engineering-led, methodical, unusually strong on data. Best deployed on the analytics layer — outcome dashboards, at-risk student identification, institutional reporting that survives an accreditation review.&lt;/p&gt;

&lt;p&gt;Limitation: thorough to the point of slow, with competent rather than distinctive design. Speed-to-market projects feel the friction.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;MindK&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Mid-sized team with real LMS history and a practical grasp of multi-tenancy — critical if fifty schools each want their own branding, roles, and grading scheme on one platform.&lt;/p&gt;

&lt;p&gt;Limitation: bench depth caps parallel workstreams. Four simultaneous tracks will stretch them.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Elinext&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Broad, dependable outsourcing partner with education projects and reasonable commercials. Solid where you own the product thinking and need reliable execution.&lt;/p&gt;

&lt;p&gt;Limitation: education is one vertical among many. Interview the assigned team, not the company portfolio.&lt;/p&gt;

&lt;p&gt;Tier three: product and mobile studios&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Geniusee&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Strong EdTech focus with a product mindset, and fluent in the commercial architecture of learning businesses — subscriptions, cohorts, B2B2C models where an employer or school pays but a learner uses.&lt;/p&gt;

&lt;p&gt;Limitation: venture-backed products suit them better than institutional deployments. Public procurement and accessibility audits are not their terrain.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Yellow&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Small, design-forward, genuinely good at making learning products feel like something a student opens on a Saturday. Strong for language learning, skill apps, and children's products.&lt;/p&gt;

&lt;p&gt;Limitation: scale. Enterprise integration, heavy backend architecture, and multi-region compliance need a different partner.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Netguru&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Product engineering with craft, building things that hold up under growth and technical due diligence.&lt;/p&gt;

&lt;p&gt;Limitation: premium pricing, and education is not a specialisation. You supply the domain knowledge — including how schools buy, which is nothing like how consumers buy.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Hyperlink InfoSystem&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;High-volume mobile development, large bench, competitive commercials. Reasonable for straightforward apps — course delivery, quizzes, video, progress tracking — shipped fast.&lt;/p&gt;

&lt;p&gt;Limitation: throughput over architectural depth. Adaptive engines and rigorous compliance work warrant a specialist.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Space-O Technologies&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Established mobile studio with a long portfolio and a practical MVP approach. Sensible for validating a concept before platform-scale investment.&lt;/p&gt;

&lt;p&gt;Limitation: MVP-shaped strengths. Budget an architecture review — possibly a partial rebuild — before institutional scale.&lt;/p&gt;

&lt;p&gt;Pricing reality&lt;/p&gt;

&lt;p&gt;Rough 2026 spread: a focused MVP with course delivery, assessments, and one user role runs $30,000–$60,000. Multi-role platforms with live classes, parent access, analytics, and payments sit near $80,000–$180,000. Institutional systems with SIS integration, accessibility conformance, and multi-tenancy exceed $250,000.&lt;/p&gt;

&lt;p&gt;Two costs get omitted everywhere. WCAG 2.2 AA conformance — mandatory for most public education procurement — is cheap designed in and expensive retrofitted after a failed audit. And content migration, which is manual, slow, and routinely underestimated by half.&lt;/p&gt;

&lt;p&gt;Five questions that expose generalists&lt;/p&gt;

&lt;p&gt;"What happens when a student loses connection mid-exam?" Expect local answer persistence, a resume protocol, and a policy on elapsed time.&lt;/p&gt;

&lt;p&gt;"What is your retention policy for a student who leaves the school?" Real answers are shaped by regulation, not preference.&lt;/p&gt;

&lt;p&gt;"Show me an accessibility audit from a past project." The actual report, failures included — not a statement of commitment.&lt;/p&gt;

&lt;p&gt;"How do you load-test the first day of term?" Education traffic is flat for weeks, then vertical for nine minutes.&lt;/p&gt;

&lt;p&gt;"Who owns the learning data if we terminate?" In writing, before signing. Years of mastery records are the switching cost, not the code.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>programming</category>
      <category>webdev</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>I Profiled 12 React Native Screens. The Same Three Mistakes Were in All of Them. published: true</title>
      <dc:creator>Arpit Mishra</dc:creator>
      <pubDate>Wed, 09 Sep 2026 06:13:09 +0000</pubDate>
      <link>https://dev.to/arpit_mishra1/i-profiled-12-react-native-screens-the-same-three-mistakes-were-in-all-of-thempublished-true-o49</link>
      <guid>https://dev.to/arpit_mishra1/i-profiled-12-react-native-screens-the-same-three-mistakes-were-in-all-of-thempublished-true-o49</guid>
      <description>&lt;p&gt;Liquid syntax error: Variable '{{ uri: {% raw %}' was not properly terminated with regexp: /\}\}/&lt;/p&gt;
</description>
      <category>ai</category>
      <category>programming</category>
      <category>webdev</category>
      <category>security</category>
    </item>
    <item>
      <title>I Profiled 12 React Native Screens. The Same Three Mistakes Were in All of Them.</title>
      <dc:creator>Arpit Mishra</dc:creator>
      <pubDate>Wed, 09 Sep 2026 06:11:33 +0000</pubDate>
      <link>https://dev.to/arpit_mishra1/i-profiled-12-react-native-screens-the-same-three-mistakes-were-in-all-of-them-5gd</link>
      <guid>https://dev.to/arpit_mishra1/i-profiled-12-react-native-screens-the-same-three-mistakes-were-in-all-of-them-5gd</guid>
      <description>&lt;p&gt;Liquid syntax error: Variable '{{ uri: {% raw %}' was not properly terminated with regexp: /\}\}/&lt;/p&gt;
</description>
      <category>ai</category>
      <category>webdev</category>
      <category>productivity</category>
      <category>programming</category>
    </item>
    <item>
      <title>Why Your Booking System Should Assume Every Cancellation Half-Fails</title>
      <dc:creator>Arpit Mishra</dc:creator>
      <pubDate>Tue, 08 Sep 2026 06:54:19 +0000</pubDate>
      <link>https://dev.to/arpit_mishra1/why-your-booking-system-should-assume-every-cancellation-half-fails-13hf</link>
      <guid>https://dev.to/arpit_mishra1/why-your-booking-system-should-assume-every-cancellation-half-fails-13hf</guid>
      <description>&lt;p&gt;A booking is one direction. Money in, inventory out, everyone's happy. You can write that as a transaction and mostly get away with it.&lt;/p&gt;

&lt;p&gt;A cancellation is five things happening across four systems, and at least one of them is going to fail while the others succeed. Not occasionally. Regularly enough that "partial failure" should be your default assumption, not your edge case.&lt;/p&gt;

&lt;p&gt;Here's the shape of a hotel cancellation:&lt;/p&gt;

&lt;p&gt;Mark the booking cancelled in your database&lt;br&gt;
Release inventory back to sellable&lt;br&gt;
Push availability to connected distribution channels&lt;br&gt;
Issue a refund through the payment provider&lt;br&gt;
Adjust revenue recognition&lt;/p&gt;

&lt;p&gt;Steps 1 and 2 are local. Steps 3, 4 and 5 are network calls to systems you don't control, with different latencies, different failure modes, and — critically — no shared transaction.&lt;/p&gt;

&lt;p&gt;You cannot make these atomic. Two-phase commit across a payment gateway and a channel manager isn't a thing. So the question isn't how to prevent partial failure. It's what your system does when it happens.&lt;/p&gt;

&lt;p&gt;The failure that costs the most&lt;/p&gt;

&lt;p&gt;Everyone assumes the refund is the scary one. It isn't, because refund failures are loud — the customer tells you.&lt;/p&gt;

&lt;p&gt;The expensive failure is silent: inventory releases locally, the channel push fails, and nobody notices. Your database says the room is sellable. Your OTA still shows it booked. That room sits unsellable through the highest-demand window before check-in, and generates zero signal. No error page, no support ticket, no alert.&lt;/p&gt;

&lt;p&gt;You find out at month-end when occupancy doesn't match expectations, if you find out at all.&lt;/p&gt;

&lt;p&gt;So the design goal isn't "never fail." It's never fail silently, and always converge.&lt;/p&gt;

&lt;p&gt;Step one: make everything idempotent&lt;/p&gt;

&lt;p&gt;Before any retry logic, every operation needs to be safely repeatable. If retrying a refund can issue two refunds, you can't retry anything, and if you can't retry you have no recovery story.&lt;/p&gt;

&lt;p&gt;python&lt;br&gt;
def issue_refund(booking_id: str, amount_cents: int, reason: str):&lt;br&gt;
    # Deterministic key — same cancellation always produces the same key&lt;br&gt;
    idempotency_key = f"refund:{booking_id}:{amount_cents}:{reason}"&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;return payment_client.refunds.create(
    booking_id=booking_id,
    amount=amount_cents,
    idempotency_key=idempotency_key,
)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;The key must be derived from the operation, not generated fresh. uuid4() here would defeat the entire purpose — every retry becomes a new refund.&lt;/p&gt;

&lt;p&gt;Note the amount_cents in the key. That's deliberate. A partial cancellation followed by a full cancellation are different operations and should not collide.&lt;/p&gt;

&lt;p&gt;For your own state transitions, guard at the database level rather than in application code:&lt;/p&gt;

&lt;p&gt;sql&lt;br&gt;
UPDATE bookings&lt;br&gt;
SET status = 'cancelled',&lt;br&gt;
    cancelled_at = NOW()&lt;br&gt;
WHERE id = $1&lt;br&gt;
  AND status = 'confirmed'&lt;br&gt;
RETURNING id;&lt;/p&gt;

&lt;p&gt;If this returns zero rows, someone already cancelled it. That's not an error — it's the idempotent path. Handle it as success.&lt;/p&gt;

&lt;p&gt;Doing this check with a SELECT followed by an UPDATE is a race condition. Let the database do it in one statement.&lt;/p&gt;

&lt;p&gt;Step two: stop making network calls inside your transaction&lt;/p&gt;

&lt;p&gt;This is the pattern I see most often, and it's broken in a way that's hard to see:&lt;/p&gt;

&lt;p&gt;python&lt;/p&gt;

&lt;h1&gt;
  
  
  Don't do this
&lt;/h1&gt;

&lt;p&gt;with db.transaction():&lt;br&gt;
    booking.status = "cancelled"&lt;br&gt;
    booking.save()&lt;br&gt;
    release_inventory(booking)&lt;br&gt;
    channel_manager.push_availability(booking.property_id, booking.dates)  # network&lt;br&gt;
    payment_client.refund(booking.id, amount)                              # network&lt;/p&gt;

&lt;p&gt;Two problems.&lt;/p&gt;

&lt;p&gt;If push_availability throws, the transaction rolls back — but the refund may have already gone through, or the channel manager may have processed the push and failed on the response. You've now got a booking marked confirmed in your database and a refund issued in the payment system. That's worse than either failure alone.&lt;/p&gt;

&lt;p&gt;And if the process dies between the two network calls, you've lost the intent entirely. Nothing records that a refund was supposed to happen.&lt;/p&gt;

&lt;p&gt;The fix is the transactional outbox. Commit your local state change and a durable record of what still needs to happen, in the same transaction. Do the network calls afterward.&lt;/p&gt;

&lt;p&gt;python&lt;br&gt;
def cancel_booking(booking_id: str, cancelled_nights: list[date]):&lt;br&gt;
    with db.transaction():&lt;br&gt;
        booking = db.query(&lt;br&gt;
            """&lt;br&gt;
            UPDATE bookings SET status = 'cancelled', cancelled_at = NOW()&lt;br&gt;
            WHERE id = $1 AND status = 'confirmed'&lt;br&gt;
            RETURNING *&lt;br&gt;
            """,&lt;br&gt;
            booking_id,&lt;br&gt;
        )&lt;br&gt;
        if not booking:&lt;br&gt;
            return AlreadyCancelled()&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;    release_inventory_local(booking.property_id, cancelled_nights)

    refund_cents = calculate_refund(booking, cancelled_nights)

    # Same transaction — these commit or roll back together
    db.insert_many("outbox", [
        {"booking_id": booking_id, "task": "push_channel_availability",
         "payload": {"property_id": booking.property_id,
                     "dates": cancelled_nights},
         "status": "pending"},
        {"booking_id": booking_id, "task": "issue_refund",
         "payload": {"amount_cents": refund_cents},
         "status": "pending"},
        {"booking_id": booking_id, "task": "adjust_revenue",
         "payload": {"amount_cents": refund_cents},
         "status": "pending"},
    ])

# Transaction committed. Nothing can be lost now.
outbox_worker.wake()
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;The guarantee this buys you: once the transaction commits, the intent is durable. Your process can die immediately after and a worker will pick the tasks up. No partial failure can leave the system with a cancelled booking and no record that a refund was owed.&lt;/p&gt;

&lt;p&gt;Step three: retry with a backoff and a ceiling&lt;/p&gt;

&lt;p&gt;The worker is straightforward. What matters is what it does when retries run out.&lt;/p&gt;

&lt;p&gt;python&lt;br&gt;
HANDLERS = {&lt;br&gt;
    "push_channel_availability": push_channel_availability,&lt;br&gt;
    "issue_refund": issue_refund,&lt;br&gt;
    "adjust_revenue": adjust_revenue,&lt;br&gt;
}&lt;/p&gt;

&lt;p&gt;MAX_ATTEMPTS = 6&lt;/p&gt;

&lt;p&gt;def process_task(task):&lt;br&gt;
    try:&lt;br&gt;
        HANDLERS&lt;a href="//**task.payload,%20booking_id=task.booking_id"&gt;task.task&lt;/a&gt;&lt;br&gt;
        mark_complete(task.id)&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;except TransientError as e:
    if task.attempts + 1 &amp;gt;= MAX_ATTEMPTS:
        escalate(task, reason=str(e))
    else:
        # 2s, 4s, 8s, 16s, 32s with jitter
        delay = (2 ** (task.attempts + 1)) + random.uniform(0, 1)
        reschedule(task.id, delay_seconds=delay)

except PermanentError as e:
    # Malformed request, rejected refund, invalid property — retrying won't help
    escalate(task, reason=str(e))
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;Two things worth being deliberate about.&lt;/p&gt;

&lt;p&gt;Jitter matters. Without it, a channel manager outage produces a thundering herd the moment it recovers — every queued task retrying in lockstep. The random component spreads them out.&lt;/p&gt;

&lt;p&gt;Separate transient from permanent. A 503 is worth retrying. A 400 saying the refund amount exceeds the original charge is not. Retrying permanent failures burns your attempt budget and delays the escalation that would have actually fixed it.&lt;/p&gt;

&lt;p&gt;And escalate should mean a human sees it. A row in a failed_tasks table that nobody queries is the silent failure you were trying to avoid, relocated.&lt;/p&gt;

&lt;p&gt;python&lt;br&gt;
def escalate(task, reason):&lt;br&gt;
    mark_failed(task.id, reason)&lt;br&gt;
    alerts.page(&lt;br&gt;
        severity="high" if task.task == "issue_refund" else "medium",&lt;br&gt;
        title=f"Cancellation task failed: {task.task}",&lt;br&gt;
        booking_id=task.booking_id,&lt;br&gt;
        reason=reason,&lt;br&gt;
    )&lt;br&gt;
Step four: reconcile, because the outbox isn't enough&lt;/p&gt;

&lt;p&gt;The outbox handles failures you can observe. It doesn't handle the ones you can't.&lt;/p&gt;

&lt;p&gt;The channel manager accepts your push, returns 200, and drops it internally. Your task is marked complete. Your database and theirs now disagree, permanently, and nothing in your retry logic will ever discover it.&lt;/p&gt;

&lt;p&gt;The only defense is periodically comparing state rather than trusting your own event log.&lt;/p&gt;

&lt;p&gt;python&lt;br&gt;
def reconcile_property(property_id: str, window_days: int = 90):&lt;br&gt;
    ours = local_availability(property_id, window_days)&lt;br&gt;
    theirs = channel_manager.fetch_availability(property_id, window_days)&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;for date, our_count in ours.items():
    their_count = theirs.get(date)

    if their_count is None:
        log.warning("missing_date", property_id=property_id, date=date)
        continue

    if our_count != their_count:
        metrics.increment("availability.drift",
                          tags={"property": property_id})
        log.error("availability_drift", property_id=property_id,
                  date=date, ours=our_count, theirs=their_count)
        enqueue_repush(property_id, date, our_count)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;Run it nightly at minimum. Hourly for the next 14 days of inventory, which is where drift costs the most.&lt;/p&gt;

&lt;p&gt;The important part isn't the repush — it's the metrics.increment. Drift count is a health signal. If it's normally 2 and today it's 340, something broke upstream and you want to know before your revenue report tells you.&lt;/p&gt;

&lt;p&gt;What this actually gets you&lt;/p&gt;

&lt;p&gt;The system still fails. That's not the goal.&lt;/p&gt;

&lt;p&gt;What changes is that every failure is either automatically corrected, or visible to someone who can correct it. There's no third state where a room sits unsellable for six days and nobody knows.&lt;/p&gt;

&lt;p&gt;Three properties worth holding onto:&lt;/p&gt;

&lt;p&gt;Durable intent. Once the cancellation commits, every downstream obligation is recorded. Process crashes don't lose work.&lt;br&gt;
Bounded blast radius. A channel manager outage delays availability pushes. It doesn't block refunds or corrupt booking state.&lt;br&gt;
Convergence. Reconciliation catches what the event path missed, including failures that reported success.&lt;/p&gt;

&lt;p&gt;The mental shift is small but load-bearing: stop treating cancellation as a transaction and start treating it as a set of independent obligations with different failure characteristics. The code gets longer. The 3 AM pages get shorter.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>webdev</category>
      <category>devops</category>
      <category>node</category>
    </item>
  </channel>
</rss>
