<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Massimiliano Peluso on Medium]]></title>
        <description><![CDATA[Stories by Massimiliano Peluso on Medium]]></description>
        <link>https://medium.com/@m.peluso?source=rss-17a893f00e39------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*qhRkKTNfo6vawy2qC-kGGg.jpeg</url>
            <title>Stories by Massimiliano Peluso on Medium</title>
            <link>https://medium.com/@m.peluso?source=rss-17a893f00e39------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 14:32:16 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@m.peluso/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[I Tested My Bitcoin Forecaster on Two Years It Had Never Seen]]></title>
            <link>https://medium.com/@m.peluso/i-tested-my-bitcoin-forecaster-on-two-years-it-had-never-seen-da3a60b84420?source=rss-17a893f00e39------2</link>
            <guid isPermaLink="false">https://medium.com/p/da3a60b84420</guid>
            <category><![CDATA[forecasting]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[bitcoin]]></category>
            <category><![CDATA[statistics]]></category>
            <category><![CDATA[side-project]]></category>
            <dc:creator><![CDATA[Massimiliano Peluso]]></dc:creator>
            <pubDate>Thu, 19 Nov 2026 13:13:55 GMT</pubDate>
            <atom:updated>2026-11-19T13:19:04.475Z</atom:updated>
            <content:encoded><![CDATA[<h3>The ranges held. My own test didn’t. And there’s one problem nobody seems to have solved.</h3><p>How often the 90% range held over 2024–2025, overall and after quiet spells</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5Nmogx2GgrAnD5PJGd06rQ.png" /></figure><p>A month ago I launched <a href="https://btcforecaster.com/">BtcForecaster</a>. It doesn’t try to say whether Bitcoin will go up or down; every model I built for that lost to the laziest guess there is, that the price stays where it is. Instead, every five minutes it publishes how far the price is likely to move over the next 1, 4, 12 and 24 hours, as a 50% range and a 90% range. Then it scores itself in public.</p><p>A 90% range should be wrong about one time in ten. If it’s never wrong it’s too wide to be useful, and if it’s wrong more often it’s overconfident. That’s the whole game.</p><p>After two weeks of live forecasts, the 1-hour range was right on target and the 24-hour one wasn’t. This is what I did about it, and what I found when I finally tested the model on data it had never seen.</p><h3>Two weeks live: the scorecard</h3><p>From 28 October to 11 November, live forecasts only:</p><p>Time ahead Forecasts Inside the 90% range Margin of error1 hour3,99190.6%±3.24 hours3,95588.5%±6.524 hours3,71580.6%±16.4</p><p>That ±16 on the last row matters. The forecaster makes a new 24-hour forecast every five minutes, so a day’s 288 forecasts are mostly the same bet made 288 times. Two weeks of them is really only about 14 independent results, and with 14 results you can’t tell an 80% forecaster from a 90% one.</p><p>Both bad stretches had the same shape. Bitcoin was quiet for a few days, the ranges narrowed to match, and then a big move went straight through them: once after the Fed decision on 28 October, once on 5–6 November.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*899ZqdgHQpAK-S9P5883jA.png" /></figure><h3>A stranger’s comment, and what it led to</h3><p>When I posted the day-by-day numbers on Reddit, a commenter suggested the problem might be the formula that stretches a short-term volatility estimate out to 24 hours. If that were wrong, the ranges would be too wide at short horizons and too narrow at long ones.</p><p>It was a good idea, so I tested it properly: the same model at every horizon from 10 minutes to 24 hours, on five months it hadn’t been tuned on. The stretch was fine. The ranges held between 88.6% and 90.1% at every horizon from 15 minutes to a day.</p><p>But the test turned up the real cause. After the model estimates volatility, a final step adjusts the range width based on how the last 14 days of forecasts actually went. At 24 hours, 14 days is about 14 results, so after a quiet fortnight that step shrinks the range on very little evidence. Going into 30 October, it was at its 10th percentile for the year.</p><p>The fix was almost embarrassingly simple: look back 90 days instead of 14. I called it v3 and started running it live, quietly, next to the real model.</p><h3>My first live test was badly designed</h3><p>Before starting, I wrote down a rule: after 14 days, v3 replaces the current model only if it’s at least 2% better on live data, with less than a 5% chance that the difference is luck.</p><p>The problem is the same one as above. Fourteen days is about 14 independent 24-hour results. Almost no improvement of a few per centcan clear that bar in 14 results, however real it is. I’d set a test that any candidate would almost certainly fail.</p><p>Its first week didn’t help. On 13 November, Bitcoin dropped hard, and v3, with its narrower ranges, missed more often than the current model did. It was about 9% worse that week.</p><p>So I needed more evidence. A lot more.</p><h3>Two years the model had never seen</h3><p>Every test so far used 2026 data. So I ran all three models (the original baseline, the current model and v3) on <strong>2024 and 2025</strong>: two years that played no part in building or choosing any of them, about 730 independent 24-hour results. Same code, no adjustments, each day’s model refitted only on data available at the time. I wrote down how I’d read the result before running it.</p><p><strong>The ranges held.</strong></p><p>Time aheadInside the 90% rangeInside the 50% range1 hour89.8%50.1%4 hours89.8%50.2%12 hours89.0%50.6%24 hours88.2% (±2.2)50.6%</p><p>Every horizon was within its margin of error, and the current model beat the simple baseline at every horizon in both years.</p><p><strong>And v3 was better.</strong> At 24 hours its score was 3.7% better than the current model’s over the two years, with less than a 0.1% chance of that being luck. It was better in 2024 and better in 2025 separately, better in 22 of the 24 months, and its ranges were slightly narrower on average. It held 89.5% against 88.2%.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Y5EWm7isUllmi2ThEeDMjg.png" /></figure><p>It also explained the bad live week. Right after a shock, v3’s 90-day memory widens its range more slowly than the 14-day version does. 13 November was a second shock soon after the first, exactly its weak case. The week after that, when the market calmed down and the old model’s ranges stayed far too wide for days, v3’s were about 30% narrower and every one held.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VabFxRF4jJctZOw-_TXhvA.png" /></figure><h3>Changing my own rule, in public</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*V5fEUbvFSU8KqcvFG08tfg.png" /></figure><p>So I had a problem. The rule I’d published will almost certainly retire v3 on 23 November, and two years of clean evidence say v3 is better.</p><p>Changing the rule after seeing a good result is exactly what pre-registering a test is meant to stop, so I didn’t. The original rule stays on the methodology page, word for word, and its result will be reported there as written.</p><p>Instead I registered a <strong>second</strong> test, dated, before any of its data existed: v3 becomes the headline model on <strong>7 December</strong> unless, on live forecasts made from 17 November onward, it turns out significantly worse than the current model. The week I’d already seen is excluded. The two years of history are the main evidence; the live window is a safety check that nothing has broken.</p><h3>The problem nobody has solved</h3><p>Here’s the part I can’t fix yet.</p><p>Over the two years, the 24-hour range held 88–89% of the time overall. But <strong>after two or more quiet days, it held only 75% of the time</strong> (81% with v3). Of the 15 biggest moves that followed a quiet spell, the models missed 13 or 14. The worst days were the ones you’d expect: the 5 August 2024 crash, the day after the US election, 26 February 2024 (+12% out of nowhere) and 24 February 2025 (−9%).</p><p>Along the way I tested six outside signals that people swear by: options-implied volatility, futures funding and open interest, Wikipedia attention, options expiry dates, the stock market’s fear index, and weighting recent days more heavily. None of them helped. Recent price behaviour already contains what they contain.</p><p>Some moves can’t be foreseen at 8 in the morning. A forecaster that claims otherwise is selling something. What I can do is make the ranges honest about when they’re most likely to fail, and show every miss.</p><h3>Check it yourself</h3><p>The forecasts, every past outcome and the live scores are at <a href="https://btcforecaster.com/">btcforecaster.com</a>, with a free API for anyone who wants the raw numbers. The methodology page has both test rules, with their dates. On 7 December I’ll write up which model won, either way.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=da3a60b84420" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Even the Machines Needed an Architect]]></title>
            <link>https://medium.com/@m.peluso/even-the-machines-needed-an-architect-0a442ad39dac?source=rss-17a893f00e39------2</link>
            <guid isPermaLink="false">https://medium.com/p/0a442ad39dac</guid>
            <category><![CDATA[software-architecture]]></category>
            <category><![CDATA[future-of-work]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[solution-architecture]]></category>
            <category><![CDATA[insuretech]]></category>
            <dc:creator><![CDATA[Massimiliano Peluso]]></dc:creator>
            <pubDate>Thu, 19 Nov 2026 11:03:31 GMT</pubDate>
            <atom:updated>2026-11-19T11:04:09.169Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Even in the Matrix, the machines needed an Architect. I don’t think our future will be very different.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xmJFyaqSv6kug4Y1_rwrhQ.png" /></figure><p>In <a href="https://www.youtube.com/watch?v=cHZl2naX"><em>The Matrix Reloaded</em></a>, Neo finally reaches the place where the whole system is run. He doesn’t find a monster or a big final boss. He finds an old man in a white suit, sitting in a room full of screens. He’s called the Architect.</p><p>I’ve always liked that. In that story, machines run almost everything. But someone still had to design the system and deal with what happens when it goes wrong.</p><p>Today AI really is changing how we build software. I think that scene is a good way to explain why the architect role will matter more, not less.</p><h3>AI makes building faster</h3><p>AI tools can now write code, tests, scripts and documents in seconds. A small team can do in a week what used to take months. This affects everyone in IT, not just one role.</p><p>But faster doesn’t mean better. If it’s easy to build things, it’s also easy to build the wrong things. You can end up with lots of pieces that each work fine on their own but don’t fit together. Someone still needs to look at the whole picture.</p><h3>The hard part is deciding what to build</h3><p>The hardest questions in a project were never about how fast we can write code. They’re things like:</p><ul><li>What problem are we really trying to solve?</li><li>What are we willing to trade off? Cost, speed, risk, compliance.</li><li>How will this fit with the systems we already have?</li><li>Who is responsible if it goes wrong? In insurance and banking, “the AI built it” won’t satisfy a regulator.</li><li>Will this still make sense in five years, or are we tying ourselves to one vendor or one AI model?</li></ul><p>AI can help with these questions, but it can’t answer them for you. They need people who know the business, the rules and the history. That’s the architect’s job.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HemAJot9O-md9q26g_xe3Q.png" /></figure><h3>This isn’t about one role being better than another</h3><p>I’m not saying architects matter more than developers, testers or anyone else in IT. Every role is changing. Most of us will spend less time on repetitive work and more time thinking and checking.</p><p>Good developers already think about design. Good testers already think about how things break. Good ops people know where the real problems are. AI doesn’t replace that. If anything, it makes it more important, because someone has to check what the tools produce.</p><p>What I am saying is that big-picture thinking will become a bigger part of everyone’s work. The architect is just the person who does it full time.</p><h3>What I think architects should do now</h3><ol><li>Use the AI tools yourself. Try things and see what works and what doesn’t.</li><li>Spend more time with the business. Understanding the problem is now worth more than writing the code.</li><li>Keep designs flexible. Tools, vendors and prices change every few months, so make it easy to swap parts out.</li><li>Write down your decisions and why you made them. When more of the system is generated, people need to know the reasoning behind it.</li><li>Share what you know. Help the whole team think about the bigger picture.</li></ol><h3>It depends</h3><p>People like to joke that architects answer every question with “it depends”. I think that’s about to become a strength. It means someone is actually thinking about the context and the risks, instead of just taking whatever the machine gives them.</p><blockquote>Even in the Matrix, the machines needed an Architect. I don’t think our future will be very different.</blockquote><p><em>What do you think? Will AI make this kind of thinking more important where you work? I’d really like to hear from people in insurance, banking and beyond.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0a442ad39dac" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why SOV Cleansing Is the Hardest Part of Insurance Quoting]]></title>
            <link>https://medium.com/@m.peluso/why-sov-cleansing-is-the-hardest-part-of-insurance-quoting-052d8e0a3eda?source=rss-17a893f00e39------2</link>
            <guid isPermaLink="false">https://medium.com/p/052d8e0a3eda</guid>
            <category><![CDATA[insurtech]]></category>
            <category><![CDATA[data-quality]]></category>
            <category><![CDATA[insurance]]></category>
            <category><![CDATA[catastrophe-modeling]]></category>
            <category><![CDATA[underwriting]]></category>
            <dc:creator><![CDATA[Massimiliano Peluso]]></dc:creator>
            <pubDate>Wed, 11 Nov 2026 13:34:00 GMT</pubDate>
            <atom:updated>2026-11-11T13:35:19.892Z</atom:updated>
            <content:encoded><![CDATA[<p><em>One wrong cell in a Schedule of Values can quietly mis-price a whole quote.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_NOhFUFYp19w2LBQy3xq4w.png" /></figure><p>Every property quote starts with a spreadsheet, and that spreadsheet is almost never ready to use. The Schedule of Values (SOV) is the list of locations and values a broker sends to an insurer, and cleaning it is the slowest, most error-prone step between submission and a quote. A wrong SOV does not fail loudly. It produces a quote that looks fine and is quietly mispriced.</p><p>I have worked on SOV cleansing from the inside, as a solution architect helping an insurer decide how to fix it. This article sets out why the problem is harder than it looks, what it costs when it goes wrong, and how to think about solving it.</p><h3>What an SOV is</h3><p>An SOV is a detailed list of insured locations and their values, supplied by a broker as part of a submission. Underwriters use it to assess risk and set a price. Catastrophe (CAT) models use it to estimate loss from floods, storms and earthquakes.</p><p>A typical SOV carries these fields:</p><ul><li><strong>Location name:</strong> identifier of the site</li><li><strong>Address:</strong> street, city, region, postal code, country</li><li><strong>Building value:</strong> replacement cost or insured value of the structure</li><li><strong>Contents value:</strong> value of what is inside</li><li><strong>Business interruption (BI):</strong> income lost if operations stop</li><li><strong>Total insured value (TIV):</strong> building + contents + BI + other</li><li><strong>Occupancy:</strong> how the site is used (office, retail, warehouse)</li><li><strong>Construction type:</strong> wood frame, steel, concrete and so on</li><li><strong>Year built:</strong> year of construction</li><li><strong>Deductibles:</strong> what the insured pays before cover applies</li></ul><p>Nearly every field feeds a calculation downstream. That is why an error in one cell rarely stays in one cell.</p><h3>Why SOVs arrive dirty</h3><p>The root cause is simple: nobody owns the format. Each broker builds its own template, and the insurer has to make sense of all of them.</p><ul><li><strong>Inconsistent formats.</strong> Layouts, column names and sheet structures change from broker to broker, and sometimes from one renewal to the next without notice. Merged cells and multi-tab workbooks are common.</li><li><strong>Missing data.</strong> Occupancy, construction type, year built and deductibles are often blank or only partly filled.</li><li><strong>Subjective classification.</strong> The same building can be described as “Office” by one party and coded “OC1” by another. Two analysts can map one free-text description to two different codes.</li><li><strong>Messy addresses.</strong> Typos, missing postcodes and ambiguous place names break geocoding, and a bad geocode puts a building in the wrong hazard zone.</li><li><strong>Duplicates.</strong> The same location appears twice, sometimes with different values, and must be merged without losing the record’s identity.</li></ul><p>None of these is hard on its own. The difficulty is the combination, repeated across hundreds or thousands of rows, under time pressure, for every submission.</p><h3>What a wrong SOV costs</h3><p>A dirty SOV costs money in three places, and only the first is visible.</p><ul><li><strong>Time.</strong> Manual cleansing takes hours per submission, which slows quotes and binding decisions. Brokers go to the insurer that answers first.</li><li><strong>Pricing accuracy.</strong> A wrong occupancy or construction code changes the risk class. A wrong year built or missing sprinkler flag changes vulnerability. A wrong TIV changes the premium base directly.</li><li><strong>CAT modelling.</strong> A mis-geocoded location can sit in the wrong flood or windstorm zone. Misallocated values skew modelled loss, and with it the capital held against the portfolio.</li></ul><p>There is also a governance cost. When cleansing is done by hand in spreadsheets, there is often no audit trail. Nobody can show what the broker sent, what was changed, and why. That matters at renewal, in a dispute, and with regulators.</p><p>Finally, manual processing does not scale. If volume grows, headcount must grow with it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zVDw24E3edA07ntIQGsc4g.png" /></figure><h3>What good cleansing looks like</h3><p>Whatever tool is used, the process has the same shape. A sound SOV pipeline does these steps in order:</p><ol><li><strong>Receive</strong> the SOV from the broker in whatever format it comes.</li><li><strong>Validate the file.</strong> Check the file type and structure, and confirm the required columns exist.</li><li><strong>Validate and enrich the data.</strong> Check values and addresses, geocode to precise coordinates, map occupancy and construction to the coding schemes the CAT models expect, and add modifiers such as year built, sprinklers and roof shape.</li><li><strong>Apply policy details</strong> such as limits and deductibles.</li><li><strong>Identify duplicates and exceptions</strong> and keep the unique record identifier intact.</li><li><strong>Human quality control.</strong> A person reviews what the automation could not settle with confidence.</li><li><strong>Create the output and audit trail.</strong> Produce model-ready data and a record that links every change to its source and rule.</li><li><strong>Handle endorsements and later changes</strong> without starting again from scratch.</li></ol><p>The point of automation is not to remove step 6. It is to make sure human attention goes only to the rows that need it, and that steps 2, 3 and 5 are fast, consistent and traceable.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HlsXj8lioBgD2GjZuKe6HA.png" /></figure><h3>Buy or build, and how to test either</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LlHRPJAT_wuPw21PG2U3ig.png" /></figure><p>Most insurers face the same decision: buy a specialist cleansing product, or build an engine in-house, often around a large language model (LLM). Building is tempting because an LLM can read almost any layout. It brings its own problems, each with a known mitigation:</p><ul><li><strong>Variable formats.</strong> Brokers change templates without notice. <em>Mitigation:</em> an LLM-first mapping engine that adapts to the layout.</li><li><strong>Hallucination.</strong> A wrong mapping on a high-value location is costly. <em>Mitigation:</em> confidence scoring, with human review below a set threshold.</li><li><strong>Distrust of “black box” output.</strong> Underwriters will not rely on what they cannot trace. <em>Mitigation:</em> a transparent audit log linking each change to its rule.</li><li><strong>Cost and latency at volume.</strong> Calling an LLM on every row is slow and expensive. <em>Mitigation:</em> two passes, where the LLM builds a mapping once and fast deterministic code applies it.</li></ul><p>Whichever route you take, do not decide on demos. Benchmark against your current manual process using a fixed set of real, anonymised files and agreed success measures: processing time, data quality, automation rate and operational effort. Build the test files around the hard cases:</p><ul><li>complex layouts and merged cells</li><li>non-standard column names</li><li>messy addresses</li><li>diverse occupancy and construction descriptions</li><li>values and BI allocation that must add up</li><li>duplicates</li><li>external data enrichment</li><li>large files, to test speed at scale</li></ul><p>Finally, check that the output loads cleanly into the CAT models you use, with the right peril codes, hierarchy and geocoding precision. A clean-looking file that fails on import has not solved the problem.</p><h3>Takeaways</h3><ul><li>SOV quality drives quote speed, pricing accuracy and CAT model output, so treat cleansing as core underwriting infrastructure, not admin.</li><li>The hard part is variety: formats, gaps and subjective classification, multiplied by volume.</li><li>Auditability is as important as accuracy. Every change should trace to a rule and a source value.</li><li>Keep humans in the loop, but only where confidence is low.</li><li>Test any solution, bought or built, against your own difficult files and your own CAT models before committing.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=052d8e0a3eda" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[I Tried to Predict Bitcoin. The Laziest Guess Won.]]></title>
            <link>https://blog.cubed.run/i-tried-to-predict-bitcoin-the-laziest-guess-won-825e1681c7fe?source=rss-17a893f00e39------2</link>
            <guid isPermaLink="false">https://medium.com/p/825e1681c7fe</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[crypto]]></category>
            <category><![CDATA[predictions]]></category>
            <category><![CDATA[bitcoin]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Massimiliano Peluso]]></dc:creator>
            <pubDate>Wed, 04 Nov 2026 09:11:55 GMT</pubDate>
            <atom:updated>2026-11-09T10:15:10.885Z</atom:updated>
            <content:encoded><![CDATA[<h4>So I built something smaller and more honest: a site that tells you how far Bitcoin might move, and then shows you how often it was right.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mKjKKApgHqRMFieHXEQ6QQ.png" /><figcaption>“See today’s live range at btcforecaster.com”.</figcaption></figure><p>When I started this project, I wanted to answer a simple question. Where will Bitcoin be in an hour?</p><p>I’m a Solution Architect who started my career as a senior developer, so I did what developers do. I pulled down a lot of price data and built models. One used a technique called singular spectrum analysis, which tries to find repeating patterns in a price chart. Another used gradient-boosted trees, a popular machine learning method. A third looked at how much money traders had tied up in Bitcoin futures, on the theory that it might hint at where the price was heading.</p><p>Then I compared all three against the laziest forecast I could think of: the price in an hour will be exactly what it is now.</p><p>The lazy forecast won. Not by a little. On data the models had never seen, my three models were between 17% and 21% worse than just assuming nothing would change.</p><p>That was humbling.</p><blockquote>“See today’s live range at <a href="http://btcforecaster.com/">btcforecaster.com</a>”.</blockquote><h3>What I built instead</h3><p>Once I stopped trying to guess the direction, I noticed something else in the data. Bitcoin’s direction looked random over the next few hours, but the<em>size</em>of its moves didn’t. Quiet hours tend to be followed by more quiet hours. Wild hours tend to be followed by more wild hours.</p><p>So I changed the question. Instead of “where will the price go?”, I asked “how far is it likely to move?”</p><p>That became <a href="https://btcforecaster.com/">BtcForecaster</a>. Every five minutes it gives two ranges for the next hour, the next 4 hours and the next 24 hours:</p><ul><li>a <strong>90% range</strong>, where the price should end up about 9 times out of 10</li><li>a <strong>50% range</strong>, where it should end up about half the time</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aXIa7LpRwmIYZro3ne7IEQ.png" /><figcaption><em>The darker band is the 50% range, the lighter one the 90% range. Illustration, not real data.</em></figcaption></figure><p>So a forecast reads something like this: Bitcoin is $77,400 now, and there’s a 90% chance it will be between $77,000 and $77,900 in an hour.</p><p>The range sits evenly around the current price. Same amount of room above and below. There’s no hidden bet on up or down in there, because I couldn’t find any evidence that I’d be right about the direction.</p><p>Notice that a 90% range is<em>supposed</em>to miss sometimes. About one time in ten, the price should land outside it. If it never missed, that would mean the ranges are too wide to be of any use. “Bitcoin will be between zero and a million dollars” is always right and completely pointless.</p><h3>How it works, without the maths</h3><p>The site uses free price data from Binance, one of the biggest Bitcoin exchanges. It looks at the BTC/USDT price in 5-minute steps, and it only ever uses data up to the moment it makes a forecast. It never gets to peek at what happened next. That sounds obvious, but it’s a surprisingly common mistake in this kind of work, and it’s the main reason so many trading models look brilliant on paper and fall apart in real life.</p><p>From there, four things decide how wide the range is.</p><p><strong>How jumpy the market has been.</strong> The model looks at how much the price has moved recently, over a short window, a medium one and a longer one, and blends them. Sudden one-off jumps are counted separately from normal choppiness. This approach comes from academic research on volatility and has a long name, HAR-RV-J. I switched to it from a simpler method last month, and in live testing it gave 1-hour ranges about 16% narrower than before while still catching the price 90% of the time.</p><p><strong>How far ahead you’re looking.</strong> Four hours leaves more room for movement than one hour, but not four times as much, because some ups and downs cancel each other out. The model scales the range accordingly.</p><p><strong>The time of day and the calendar.</strong> Bitcoin trades all day and night, but it isn’t equally busy. It tends to move more around the time US stock markets open, for example. The model learns these patterns and adjusts the 4-hour and 24-hour ranges for the hours they cover. It also knows when big scheduled announcements are coming, like US interest rate decisions, jobs reports and inflation figures, and gives the range extra room around them.</p><p><strong>What actually happened recently.</strong> Textbook statistics assume big surprises are rare. In crypto they aren’t. So instead of textbook assumptions, the model looks at its own recent forecasts and asks a simple question: how big was the real move compared with what I expected? It uses those answers to decide where the edges of the 50% and 90% ranges should go.</p><h3>How you can tell if it’s any good</h3><p>This is the part I care about most.</p><p>A range forecaster has a very simple test. If it says 90%, does the price land inside the range about 90% of the time? If it lands inside much more often, the ranges are too cautious. If it lands inside much less often, the forecaster is overconfident.</p><p>The site keeps score of every forecast it makes in real time and publishes the results. Backtests don’t count towards it, only live forecasts made before anyone knew the outcome. You can see the raw numbers yourself at <a href="https://btcforecaster.com/api/live-stats">btcforecaster.com/api/live-stats</a>.</p><p>Here’s how the first five days went (28 October to 2 November 2026):</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QGIshJ3x0neEfPRq6op-Dw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DRpBqebOD1DUXqyRZZCRLQ.png" /><figcaption><em>The dashed line is the 90% target. The longer the line through a dot, the less we can say yet.</em></figcaption></figure><p>The 1-hour forecast hit its target almost exactly. I was pleased about that.</p><p>The 4-hour and 24-hour numbers look worse, but look at the margin of error. Because a new forecast is made every five minutes, they overlap a lot. Five days of 24-hour forecasts are really only about five independent tests, which isn’t enough to say much at all.</p><h3>The worst day so far</h3><p>Almost all of those longer misses came from one stretch.</p><p>On 28 October the US Federal Reserve announced its interest rate decision. Bitcoin didn’t just react for an hour. It kept falling for more than a day. On 30 October the 24-hour range caught the price only about 20% of the time, and every single miss was the price dropping below the range.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aAxNlbmOITvBbTdFVPyHSA.png" /><figcaption><em>One bad day did almost all the damage. The ranges held every time from 31 October onwards</em></figcaption></figure><p>The model gives extra room for the hour of a big announcement. It gives almost nothing a day later. This time the market was still reacting long after the news.</p><p>My first instinct was to fix it straight away. Add a “Fed effect”, rerun the tests, watch the numbers improve. But there are only a handful of Fed decisions in my test data, and anything I fitted to so few examples would mostly be memorising the past. So I’m waiting for 14 days of live data, and then I’ll test any fix on old data it has never seen before it goes anywhere near the live site.</p><p>From 31 October to 2 November, by the way, the 24-hour range caught the price every single time.</p><h3>The improvement that didn’t work</h3><p>While I was waiting, I tried something that looked like an obvious win. I added data from the options and futures markets: how much movement options traders were pricing in, plus funding rates and changes in open interest. Plenty of research says this kind of data helps.</p><p>It didn’t help here. Recent price movement already contained almost everything those extra sources knew about the next few hours. So I left them out, and the site stays simpler and doesn’t depend on extra data feeds.</p><p>I’ve started keeping a list of ideas that failed. It’s getting longer than the list of ideas that worked, and I think that’s probably healthy.</p><h3>What it can’t do</h3><p>I’d rather you trust it a bit less than you’re tempted to.</p><ul><li><strong>It can’t see surprise news.</strong> It knows when scheduled announcements are due. It has no idea when an exchange is about to collapse or a government is about to ban something.</li><li><strong>It reacts after things change.</strong> It learns from recent movement, so when a calm market suddenly turns wild, it’s always a step behind.</li><li><strong>The 24-hour forecast needs time.</strong> It will take weeks of live data before its results really mean anything.</li><li><strong>It doesn’t tell you what to do.</strong> It says nothing about whether Bitcoin will go up or down, and it isn’t financial advice. Please don’t treat it as a signal to buy or sell anything.</li></ul><h3>Why I’m sharing this</h3><p>It’s a side project. I built it with Blazor and .NET, a PostgreSQL database and Chart.js for the charts, and it runs in Docker on DigitalOcean. Nothing fancy.</p><p>What I like about it is that it can be checked. It makes a claim every five minutes, and a few hours later anyone can see whether the claim held. Most forecasts I see online don’t work like that.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7CLwg8EdTXmwZoobVVwDGw.png" /></figure><p>If you’re curious, check out <a href="https://btcforecaster.com/">btcforecaster.com</a>. Switch between the 1-hour, 4-hour and 24-hour views, open the “Actual vs predicted” tab, and see for yourself how the ranges held up. And if something looks wrong, tell me. That’s the whole point.</p><p><em>BtcForecaster is an experimental tool for information only. It is not financial advice.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=825e1681c7fe" width="1" height="1" alt=""><hr><p><a href="https://blog.cubed.run/i-tried-to-predict-bitcoin-the-laziest-guess-won-825e1681c7fe">I Tried to Predict Bitcoin. The Laziest Guess Won.</a> was originally published in <a href="https://blog.cubed.run/">Cubed</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[I Can’t Tell You Where Bitcoin Will Be in an Hour. Here’s What I Can Tell You.]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/@m.peluso/i-cant-tell-you-where-bitcoin-will-be-in-an-hour-here-s-what-i-can-tell-you-f6b06639b6b9?source=rss-17a893f00e39------2"><img src="https://cdn-images-1.medium.com/max/1390/1*uOeAleRHpiS2u-Xb5Y3Y4w.png" width="1390"></a></p><p class="medium-feed-snippet">I built a live forecaster that predicts a price range, not a price &#x2014; and it keeps a public report card so you can check whether it&#x2019;s&#x2026;</p><p class="medium-feed-link"><a href="https://medium.com/@m.peluso/i-cant-tell-you-where-bitcoin-will-be-in-an-hour-here-s-what-i-can-tell-you-f6b06639b6b9?source=rss-17a893f00e39------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://medium.com/@m.peluso/i-cant-tell-you-where-bitcoin-will-be-in-an-hour-here-s-what-i-can-tell-you-f6b06639b6b9?source=rss-17a893f00e39------2</link>
            <guid isPermaLink="false">https://medium.com/p/f6b06639b6b9</guid>
            <dc:creator><![CDATA[Massimiliano Peluso]]></dc:creator>
            <pubDate>Mon, 26 Oct 2026 10:47:03 GMT</pubDate>
            <atom:updated>2026-11-02T10:26:35.066Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[AI Is Making Developers Faster. So Why Isn’t Software Shipping Faster?]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/@m.peluso/ai-is-making-developers-faster-so-why-isnt-software-shipping-faster-6a98de3654a6?source=rss-17a893f00e39------2"><img src="https://cdn-images-1.medium.com/max/1536/1*cdYSCxqyP1cCc7vacaR3oA.png" width="1536"></a></p><p class="medium-feed-snippet">A few years ago, the biggest challenge in software development was producing enough code.</p><p class="medium-feed-link"><a href="https://medium.com/@m.peluso/ai-is-making-developers-faster-so-why-isnt-software-shipping-faster-6a98de3654a6?source=rss-17a893f00e39------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://medium.com/@m.peluso/ai-is-making-developers-faster-so-why-isnt-software-shipping-faster-6a98de3654a6?source=rss-17a893f00e39------2</link>
            <guid isPermaLink="false">https://medium.com/p/6a98de3654a6</guid>
            <dc:creator><![CDATA[Massimiliano Peluso]]></dc:creator>
            <pubDate>Tue, 18 Aug 2026 09:26:22 GMT</pubDate>
            <atom:updated>2026-08-18T09:30:24.272Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Creating Effective Project Governance: The Importance of Structure and Artefacts]]></title>
            <link>https://medium.com/@m.peluso/creating-effective-project-governance-the-importance-of-structure-and-artefacts-c1c0275eccad?source=rss-17a893f00e39------2</link>
            <guid isPermaLink="false">https://medium.com/p/c1c0275eccad</guid>
            <category><![CDATA[solution-architecture]]></category>
            <category><![CDATA[project-governance]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[agile]]></category>
            <dc:creator><![CDATA[Massimiliano Peluso]]></dc:creator>
            <pubDate>Fri, 25 Jul 2025 08:43:40 GMT</pubDate>
            <atom:updated>2025-07-30T12:05:30.783Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*XaPc5sU6VncVkHM5" /></figure><p>When I step into a new project, one of the first things I notice is often the absence of transparent governance and structured processes. It’s not unusual to find that the ways we gather requirements, manage meetings, and define project milestones are unclear.<strong> Too often, meetings occur without a set agenda or clear objectives</strong>, leaving everyone uncertain about the expected outcomes. I believe that every meeting should aim to produce actionable results and push the project forward.</p><p><strong>Effective project management isn’t just about having the right people around the table; it’s also about making sure everyone knows their role and the goals of the discussion</strong>. This thoughtful approach to project governance can truly boost collaboration and productivity.</p><p><strong>Creating artefacts</strong> — like documents, prototypes, or models — is essential throughout a project’s different phases. These tangible items help clarify the project’s direction and serve as handy reference points for everyone involved as the project progresses.</p><p>I’m a strong advocate for organising meetings with only the key individuals needed. This keeps discussions focused and allows everyone to contribute meaningfully. By limiting the number of attendees to those directly involved with the agenda, we can minimise distractions and ensure that the team stays aligned with the project’s goals.</p><ol><li><strong>To tackle these challenge</strong>s, I’ve developed a structured approach that creates a straightforward workflow for managing projects effectively. This method includes:</li><li><strong>Setting Clear Objectives</strong>: Every project begins with defined goals that outline what we aim to achieve. By establishing clear objectives upfront, we ensure that everyone understands the project’s purpose and direction.</li><li><strong>Organising Effective Meetings</strong>: I prioritise scheduling meetings with a clear agenda and desired outcomes. This way, every participant knows what to expect and how they can contribute, making discussions more productive and effective.</li><li><strong>Gathering Requirements Thoughtfully</strong>: I advocate for structured techniques, such as interviews and workshops,to gather requirements. This ensures we capture diverse perspectives and fully understand the needs of all stakeholders.</li><li><strong>Creating Meaningful </strong>Artefacts: Throughout the project, I emphasise the importance of producing artefacts such as documents, prototypes, and models. These tangible items clarify decisions and serve as references for everyone involved.</li><li><strong>Engaging Relevant Participants</strong>: meetings should include only those who are directly involved in the agenda. This helps keep discussions focused and encourages meaningful contributions from each participant.</li><li><strong>Regular Progress Reviews:</strong> I implement regular check-ins to assess our progress against objectives and address any challenges that arise. This keeps the team aligned and allows us to make adjustments as needed.</li></ol><p>By adopting this structured approach, I have found that projects run more smoothly, stakeholders are more engaged, and outcomes are clearer. Ultimately, effective project governance is about creating a framework that promotes collaboration, accountability, and continuous improvement.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mCUk88LpN53TY3_vpPlX4g.png" /></figure><p><a href="https://www.dropbox.com/scl/fi/0ux4n96t2ufhxhmnogidx/WayOfWorking.png?rlkey=4ng0nza7nf1wxykjz07llg4tx&amp;st=zrq0hkna&amp;dl=0"><strong>Download high-resolution Diagram</strong></a></p><h3>Defining Effective Project Governance: A Structured Approach</h3><p>When embarking on a new project, establishing a clear vision and governance framework is crucial for success. Below is a structured approach that outlines key meetings, participants, discussion topics, and artifacts to ensure a smooth project workflow.</p><h3>1. Define Vision and Goals</h3><p><strong>📅 Meeting:</strong> Product Planning Event<br> <strong>👥 Attendees:</strong> Product Owner, Product Manager, Key Stakeholders, Senior Management, Architect</p><p><strong>📄 Artifacts:</strong></p><ul><li><strong>Vision Statement</strong> — A document outlining the project’s long-term vision and mission.</li><li><strong>Goals and Objectives</strong> — SMART goals (Specific, Measurable, Achievable, Relevant, Time-bound).</li><li><strong>Project Charter</strong> — A high-level summary of scope, objectives, stakeholders, and delivery approach.</li><li><strong>Success Criteria</strong> — Metrics and KPIs used to define what success looks like.</li></ul><h3>2. Gather High-Level Requirements</h3><p><strong>📅 Meeting:</strong> Requirements Gathering Session<br> <strong>👥 Attendees:</strong> Product Manager, Business Analysts, Product Owner, Architect</p><p><strong>📄 Artifacts:</strong></p><ul><li><strong>Requirements Document</strong> — A comprehensive list of high-level needs.</li><li><strong>Use Case Diagrams</strong> — Visuals showing user-system interactions.</li><li><strong>Stakeholder Requirements</strong> — Specific needs captured from business stakeholders.</li><li><strong>Functional &amp; Non-Functional Requirements</strong> — Key functional behaviors and performance expectations.</li></ul><h3>3. Identify Key Features and Capabilities</h3><p><strong>📅 Meeting:</strong> Increment Review<br> <strong>👥 Attendees:</strong> Product Manager, Agile Delivery Lead, Business Analysts, Architects, Dev Team Leads</p><p><strong>📄 Artifacts:</strong></p><ul><li><strong>Feature List</strong> — A prioritized inventory of core features.</li><li><strong>Capability Map</strong> — A visual map of the system’s capabilities.</li><li><strong>Feature Descriptions</strong> — Detailed breakdown of each feature’s purpose and value.</li><li><strong>Prioritization Matrix</strong> — A matrix comparing features by business value and feasibility.</li></ul><h3>4. Develop High-Level Roadmap</h3><p><strong>📅 Meeting:</strong> Roadmap Review Meeting<br> <strong>👥 Attendees:</strong> Product Manager, Agile Delivery Lead, Lead Analyst, Dev Team Leads</p><p><strong>📄 Artifacts:</strong></p><ul><li><strong>High-Level Roadmap</strong> — A timeline of major deliverables and phases.</li><li><strong>Milestone Plan</strong> — Key delivery checkpoints with target dates.</li><li><strong>Dependency Map</strong> — Visuals showing interdependencies.</li><li><strong>Risk Assessment</strong> — Identified risks with mitigation strategies.</li></ul><h3>5. Define Building Blocks</h3><p><strong>📄 Artifacts:</strong></p><ul><li><strong>Building Block Architecture</strong> — Logical and physical views of core system components.</li><li><strong>Component Descriptions</strong> — Detailed explanation of each module and its interactions.</li><li><strong>Dependency Analysis</strong> — Analysis of relationships and dependencies.</li><li><strong>Integration Plan</strong> — Strategy for integrating components into a working solution.</li></ul><h3>6. Develop Epics</h3><p><strong>📅 Meeting:</strong> Epic Development Session<br> <strong>👥 Attendees:</strong> Product Manager, Business Analysts, Architects, Dev Team Leads</p><p><strong>📄 Artifacts:</strong></p><ul><li><strong>Epic User Stories</strong> — High-level stories representing large system functionalities.</li><li><strong>Epic Descriptions</strong> — Purpose, goals, and acceptance criteria for each epic.</li><li><strong>Epic Prioritization</strong> — Ordered list of epics by value and dependencies.</li><li><strong>Epic Roadmap</strong> — Timeline indicating when each epic will be delivered.</li></ul><h3>7. Create User Stories</h3><p><strong>📅 Meeting:</strong> Product Refinement Session<br> <strong>👥 Attendees:</strong> Product Manager, Agile Delivery Lead, Business Analysts, Dev Team, QA</p><p><strong>📄 Artifacts:</strong></p><ul><li><strong>User Stories</strong> — Detailed stories that break down epics into executable tasks.</li><li><strong>Acceptance Criteria</strong> — Completion conditions for each story.</li><li><strong>User Story Mapping</strong> — Visual layout of stories to show user flow and dependencies.</li><li><strong>Backlog</strong> — Prioritized list of all user stories for upcoming sprints.</li></ul><h3>8. Prioritize and Plan Roadmap Implementation</h3><p><strong>📅 Meeting:</strong> Implementation Planning Meeting<br> <strong>👥 Attendees:</strong> Project Manager, Agile Delivery Lead, Dev Leads, QA Lead</p><p><strong>📄 Artifacts:</strong></p><ul><li><strong>Implementation Plan</strong> — A step-by-step plan for delivering prioritized stories.</li><li><strong>Sprint Plans</strong> — Goals and timelines for each sprint.</li><li><strong>Resource Allocation Plan</strong> — Assigned responsibilities and team capacity planning.</li><li><strong>Risk Management Plan</strong> — Active risk monitoring and mitigation strategy.</li></ul><h3>9. Solution Design (High-Level Design)</h3><p><strong>📄 Artifacts:</strong></p><ul><li><strong>High-Level Design (HLD)</strong> — Summary of overall architecture and design approach.</li><li><strong>System Architecture Diagram</strong> — Structural view of the complete solution.</li><li><strong>Flow Diagrams</strong> — Representations of system and data workflows</li><li><strong>Component Diagrams</strong> — Detailed diagrams of system modules and their interactions.</li><li><strong>Interface Specifications</strong> — Protocols and contracts between system components.</li></ul><h3>10. Review and Adapt</h3><p><strong>📄 Artifacts:</strong></p><ul><li><strong>Progress Reports</strong> — Regular updates on project status.</li><li><strong>Retrospective Reports</strong> — Lessons learned and continuous improvement areas.</li><li><strong>Action Items</strong> — Follow-up tasks based on review outcomes.</li><li><strong>Updated Roadmap</strong> — Revised delivery roadmap to reflect changes or new priorities.</li></ul><p>By producing these artefacts at each phase, you build a foundation of clarity, collaboration, and accountability. This governance model ensures alignment with vision and goals while allowing for adaptability and continuous value delivery.</p><p>To help you get started, we’ve created a set of downloadable templates for some essential artefacts, including the Project Charter, Vision Statement, Feature List, and Epic/User Story formats.</p><p>👉 <a href="https://www.dropbox.com/scl/fo/c5s8qcr3681c8v91fh20l/AKZjhkkqdWEdqzCpiI735rM?rlkey=teb1d5ockvb6kcc0twcmhmghu&amp;st=w0cmxbv8&amp;dl=0">Download the templates here</a></p><p>By producing these artefacts at each step, we ensure that the project is well-documented, organised, and aligned with the overall vision and goals. This structured approach not only fosters collaboration but also enhances project success and stakeholder satisfaction.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c1c0275eccad" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Making Microservices Work: Essential Steps for Success]]></title>
            <link>https://medium.com/@m.peluso/making-microservices-work-essential-steps-for-success-68fe92f26a1f?source=rss-17a893f00e39------2</link>
            <guid isPermaLink="false">https://medium.com/p/68fe92f26a1f</guid>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[microservices]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[insurance-tech]]></category>
            <category><![CDATA[solution-architecture]]></category>
            <dc:creator><![CDATA[Massimiliano Peluso]]></dc:creator>
            <pubDate>Tue, 22 Jul 2025 08:04:32 GMT</pubDate>
            <atom:updated>2025-07-22T08:19:12.445Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*I1m9yC5IqThg1r7i" /></figure><p>Many companies are eager to adopt microservices due to their scalability, flexibility, and resilience. Industry leaders like Netflix and Amazon have successfully leveraged microservices to enhance performance and manage large-scale applications. However, implementing microservices effectively requires careful planning and adherence to key best practices. Without a robust strategy, organisations may encounter challenges such as increased operational complexity, difficulty in maintaining data consistency, and higher infrastructure costs. This article explores the essential steps necessary to make microservices efficient and ensure a seamless transition</p><h3>Objectives</h3><p>The primary objectives of implementing a microservices architecture include:</p><ul><li>Ensuring high maintainability and testability</li><li>Achieving loose coupling between services</li><li>Enabling independent deployment</li><li>Organising services around business capabilities</li><li>Developing systems with a simple yet effective architecture that fully supports business processes</li><li>Creating a standard design pattern and technology stack</li><li>Minimising the full life-cycle support costs of products</li><li>Facilitating quick onboarding of new team members</li><li>Ensuring the application is easy to understand and modify</li><li>Practising continuous deployment</li><li>Leveraging emerging technologies such as new frameworks and programming languages</li></ul><h3>Key Design Considerations</h3><p>Determining the decomposition strategy is one of the most crucial decisions when designing a microservices architecture. The first question organisations should ask is what approach to decomposition best aligns with their business needs and technical goals. Whether using domain-driven design, business capability-driven decomposition, or another strategy, selecting the correct decomposition method is fundamental to ensuring service autonomy, scalability, and maintainability.</p><ul><li>How should the system be partitioned into microservices? (e.g., decomposition by business capabilities or domain-driven design)</li><li>What aggregation pattern should be used to avoid point-to-point communication?</li><li>What orchestration approach should be adopted to manage interactions between services?</li><li>How will data consistency be maintained (eventual consistency vs. strong consistency)?</li><li>How will cross-cutting concerns such as security, monitoring, and logging be handled</li></ul><h3>Constraints and Considerations</h3><ol><li>Agile development may lead to evolving requirements, so the architecture must be able to accommodate new integrations and changes quickly.</li><li>Implementation may involve in-house development and outsourcing, necessitating independent team workflows.</li><li>Non-functional requirements (NFRs) are often undefined, requiring a scalable architecture by design.</li><li>Integration with third-party and legacy APIs must support both synchronous and asynchronous interactions.</li><li>The architecture should minimise reliance on human intervention and be self-reliant to reduce failure points.</li><li>Services must be “pluggable,” enabling the addition or removal of components with minimal or zero downtime.</li></ol><h3>Decomposition Strategies</h3><p>A microservice should be small enough to be developed and tested by a small team. The decomposition strategy plays a crucial role in defining how services are structured.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/540/1*AM_IqSeJ_tGcTwaYGzcGFA.png" /></figure><h4>The key difference between Decomposition by Subdomain (DDD) and Decomposition by Business Capability lies in their approach to structuring microservices within an application:</h4><h3>1. Decomposition by Subdomain (DDD)</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vEqk4EsBXXoNxz1cPRg2Jg.png" /></figure><ul><li>Based on <strong>Domain-Driven Design (DDD)</strong> principles.</li><li>Focuses on breaking down a system into <strong>bounded contexts</strong> that align with business domains.</li><li>A <strong>subdomain</strong> represents a specific business area, such as <strong>Billing, Inventory, or Customer Management</strong>.</li><li>Each <strong>bounded context</strong> has its <strong>domain model, database, and logic</strong>, ensuring autonomy.</li><li>Works well for <strong>complex business domains</strong> where different teams manage separate subdomains.</li></ul><p><strong>Example:</strong></p><ul><li>An <strong>e-commerce platform</strong> may have subdomains like:</li><li><strong>Order Management</strong> (handles order creation and tracking)</li><li><strong>Payment Processing</strong> (manages transactions)</li><li><strong>Product Catalog</strong> (maintains product listings)</li></ul><h3>2. Decomposition by Business Capability</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eCgOEYmGeHmmRH_hWmmCtA.png" /></figure><ul><li>Focuses on breaking down a system into <strong>stable business functions</strong> rather than domain-specific models.</li><li>Business capabilities represent <strong>what a business does</strong>, such as <strong>User Authentication, Reporting, or Payments</strong>.</li><li>Ensures services are aligned with real-world <strong>business operations</strong>, making them more reusable.</li><li>Works well for <strong>large enterprises</strong> where teams own and operate specific business capabilities.</li></ul><p><strong>Example:</strong></p><ul><li>A <strong>banking application</strong> may have business capabilities like:</li><li><strong>Fraud Detection</strong> (monitors suspicious transactions)</li><li><strong>Loan Processing</strong> (handles loan approvals)</li><li><strong>Customer Support</strong> (manages client interactions)</li></ul><p><strong>In summary:</strong></p><ul><li><strong>Subdomain Decomposition (DDD)</strong> is better for systems with <strong>complex domain logic</strong>, where <strong>business concepts and rules</strong> are crucial.</li><li><strong>Business Capability Decomposition</strong> is best for <strong>large organizations</strong> that need <strong>clear service ownership</strong> based on business functions.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_1gNBuPPn4gBt3X-mNXHEQ.png" /></figure><h3>When should we use decomposition by subdomain (DDD) vs. business capability?</h3><p>The choice between <strong>Decomposition by Subdomain (DDD)</strong> and <strong>Decomposition by Business Capability</strong> depends on factors like domain complexity, team structure, and business needs. Here’s when to use each approach:</p><h3>Use Decomposition by Subdomain (DDD) When:</h3><p>✅ Your application has <strong>complex domain logic</strong> with well-defined <strong>business rules</strong>.<br>✅ You are following <strong>Domain-Driven Design (DDD)</strong> principles with <strong>bounded contexts</strong>.<br>✅ You need <strong>substantial autonomy</strong> for each domain, with <strong>separate databases</strong> and logic.<br>✅ You have <strong>multiple teams</strong> specialising in different <strong>business domains</strong>.<br>✅ Your system requires <strong>event-driven architecture</strong> with clear domain <strong>ownership</strong>.</p><p><strong>Example Use Cases:</strong><br>🔹 <strong>E-commerce</strong>: Order Management, Payment Processing, Product Catalog.<br>🔹 <strong>Healthcare</strong>: Patient Records, Prescription Management, Insurance Claims.<br>🔹 <strong>Banking</strong>: Loan Processing, Fraud Detection, Account Management.</p><blockquote><strong><em>Best for:</em></strong><em> Domain-heavy applications where different areas have unique rules, processes, and behaviors.</em></blockquote><h3>Use Decomposition by Business Capability When:</h3><p>✅ Your business processes are <strong>stable</strong>, and services align with <strong>business functions</strong>.<br>✅ Your focus is on <strong>functional capabilities</strong> (e.g., Authentication, Payments, Reporting).<br>✅ You want to <strong>reuse services</strong> across different domains or applications.<br>✅ Your organisation is <strong>structured around business units</strong> (e.g., Sales, Customer Support).<br>✅ You need a <strong>scalable architecture</strong> with a clear separation of <strong>business concerns</strong>.</p><p><strong>Example Use Cases:</strong><br>🔹 <strong>Retail</strong>: Inventory Management, Order Fulfillment, Customer Support.<br>🔹 <strong>Finance</strong>: Risk Assessment, Payment Processing, Tax Calculation.<br>🔹 <strong>SaaS Platforms</strong>: Authentication, Billing, Subscription Management.</p><blockquote><strong><em>Best for:</em></strong><em> Large enterprises or platforms that need reusable, scalable services with a focus on </em><strong><em>business processes rather than domain complexity</em></strong><em>.</em></blockquote><h3>Hybrid Approach?</h3><p>Sometimes, <strong>combining both approaches</strong> works best!</p><ul><li>Use <strong>Business Capabilities</strong> for high-level service boundaries.</li><li>Use <strong>Subdomains (DDD)</strong> within those capabilities for deeper domain logic.</li></ul><p><strong>Example:</strong></p><p>A <strong>banking system</strong> could have <strong>business capabilities</strong> like <strong>Payments, Fraud Detection, and Customer Support. Within</strong>the <strong>Payments capability</strong>, you could have <strong>subdomains</strong> like <strong>Wire Transfers, Credit Card Processing, and Loan Repayments</strong>.</p><h3>Final Recommendation</h3><ul><li>If your system is <strong>highly domain-driven</strong> (e.g., banking, insurance, healthcare) → <strong>Use Subdomain (DDD).</strong></li><li>If your business has <strong>well-defined functional units</strong> and wants <strong>scalability &amp; reuse</strong> → <strong>Use Business Capability Decomposition.</strong></li><li>If you need both <strong>domain separation and business alignment</strong> → <strong>Consider a hybrid approach.</strong></li></ul><h3>Choosing the Right Architectural Pattern</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4S63QrJwbbfMmqVY_ZZU5Q.png" /></figure><h3>Communication Pattern</h3><p>Once the decomposition strategy has been assessed, we must decide how the services will communicate. In a monolithic application, all parts of the app access a shared database, and each component can easily invoke the functionality of another. However, in a microservices architecture, an application is composed of multiple microservices, each potentially managing its own database. Furthermore, in a monolithic system, much of the communication happens internally, whereas in microservices, we break the system into independent parts, each with a well-defined role (as demonstrated above). Often, a microservice will require data managed by another service or need to utilize another service’s functionality.</p><h3>Coordination Strategies</h3><p>There are three main approaches to coordinating microservices:</p><ul><li><strong>Choreography</strong></li><li><strong>Hybrid Choreography</strong></li><li><strong>Orchestration</strong></li></ul><p>Choosing between microservices choreography and orchestration significantly impacts how services interact behind the scenes. The right coordination strategy ensures efficient service collaboration while maintaining system resilience and performance.</p><h3>Orchestration</h3><p>In my experience, I have frequently encountered architectures like this. <strong>Point-to-point communication</strong> is often the simplest and fastest approach, making it a suitable choice for <strong>small projects</strong> or when rapidly developing a <strong>proof of concept (POC)</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/390/1*lAVxnxYhp1x-v7yeYR7NTg.png" /></figure><h3>Pros and Cons of Point-to-Point Communication</h3><h4>✅ Pros:</h4><ul><li><strong>Simple to implement</strong> — Requires minimal setup and configuration.</li><li><strong>Low latency</strong> — Direct communication reduces processing overhead.</li><li><strong>Quick for small projects</strong> — Ideal for POCs and systems with limited services.</li><li><strong>Easier debugging</strong> — Straightforward request-response interaction.</li></ul><h4>❌ Cons:</h4><ul><li><strong>Scalability issues</strong> — Become difficult to manage as the number of services grows.</li><li><strong>Tightly coupled services</strong> — Changes in one service can directly impact others.</li><li><strong>Difficult to maintain</strong> — Increased complexity with multiple dependencies.</li><li><strong>Error handling challenges</strong> — Failure in one service can impact the entire system.</li></ul><h3>Choreography</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/375/1*A0rdtWrxB6ry2c2LaYN7MQ.png" /></figure><p>An alternative approach to orchestrated communication is <strong>Choreography</strong>, as shown in the diagram.</p><p>In this approach, there is no centralized orchestrator synchronizing interactions between microservices. Instead, each service <strong>independently listens to events</strong> in an <strong>event stream</strong> and reacts accordingly. The <strong>flow control is distributed</strong> across services, meaning that each microservice contains its own logic to determine when and how it should respond to specific events in the system.</p><h3>Benefits of Choreography Pattern</h3><p>✅ <strong>Faster processing</strong> — Services can execute <strong>in parallel or asynchronously</strong>, improving overall system responsiveness.<br>✅ <strong>Scalability &amp; Flexibility</strong> — New services can be <strong>easily added or removed</strong> from the event stream without affecting existing services.<br>✅ <strong>Agile-friendly</strong> — Teams can develop and deploy services <strong>independently</strong>, without needing to update a centralized orchestrator.<br>✅ <strong>Improved fault tolerance</strong> — Since there is no single orchestrator, there is no central <strong>point of failure</strong>.<br>✅ <strong>Supports additional patterns</strong> — Can be combined with:</p><ul><li><strong>Event Sourcing</strong> — Storing all events in the stream allows for <strong>event replay</strong>, so services can recover from downtime without losing data.</li><li><strong>CQRS (Command Query Responsibility Segregation)</strong> — Separates <strong>read and write operations</strong>, enabling <strong>independent scaling</strong> for read-heavy or write-heavy applications.</li></ul><h3>Challenges &amp; Drawbacks</h3><p>❌ <strong>Increased complexity</strong> — Each service must <strong>independently manage</strong> event subscriptions and responses.<br>❌ <strong>Harder to debug</strong> — Since control flow is <strong>distributed</strong>, tracing errors across multiple services requires good <strong>observability</strong> and logging.<br>❌ <strong>Eventual consistency</strong> — Services process events <strong>asynchronously</strong>, which may lead to <strong>delays in data synchronization</strong>.<br>❌ <strong>Difficult failure handling</strong> — Unlike orchestrated workflows, failure recovery requires <strong>event replay mechanisms</strong> to ensure consistency.</p><blockquote><strong>A Note on the CAP Theorem</strong></blockquote><blockquote>When designing <strong>event-driven microservices</strong>, it is important to consider the <strong>CAP theorem</strong>, which states that a distributed system can provide only <strong>two</strong> of the following three guarantees:</blockquote><blockquote>1️⃣ <strong>Consistency </strong>— All nodes see the same data at the same time.<br>2️⃣ <strong>Availability (A)</strong> — Every request receives a response, even if some nodes fail.<br>3️⃣ <strong>Partition Tolerance (P)</strong> — The system continues to operate despite network failures.</blockquote><blockquote>In event-driven architectures like Choreography, <strong>Consistency is often sacrificed in favor of Availability and Partition Tolerance</strong>. This means that services may process events <strong>at different times</strong>, leading to <strong>eventual consistency</strong> rather than strict consistency.</blockquote><h3>When to Choose Choreography Over Orchestration?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*gUT27qUKe8IpovjH" /></figure><h3>Hybrid Pattern</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/406/1*u8OFET5HQF3GirBDC2a6_A.png" /></figure><p>The <strong>Hybrid Pattern</strong> combines elements of both <strong>Orchestration and Choreography</strong>, allowing us to <strong>leverage the benefits of both approaches</strong> while minimizing their drawbacks. The diagram below illustrates how this pattern works.</p><h3>How the Hybrid Pattern Works</h3><p>In this approach, we <strong>retain the advantages of a centralized orchestrator</strong> while ensuring that <strong>services remain loosely coupled</strong>. Unlike a traditional orchestrator-based pattern, where the orchestrator directly invokes services, the <strong>coordinator communicates through events</strong>, eliminating <strong>point-to-point dependencies</strong> between services.</p><h3>Key Benefits</h3><p>✅ <strong>Decoupled services</strong> — While services remain autonomous, there is a degree of coupling between the services and the coordinator.<br>✅ <strong>Asynchronous processing</strong> — Events enable efficient, event-driven interactions between services.<br>✅ <strong>Centralized visibility</strong> — The <strong>reactive coordinator</strong> provides an overview of the <strong>workflow execution</strong> while still allowing services to operate independently.<br>✅ <strong>Supports both patterns</strong> — This architecture allows for a <strong>mix of Orchestration and Choreography</strong>, providing flexibility for different use cases.</p><h3>Challenges &amp; Drawbacks</h3><p>❌ <strong>Increased complexity</strong> — Managing both event-driven and orchestrated workflows requires additional design effort.<br>❌ <strong>Potential coordination bottleneck</strong> — The orchestrator, though event-driven, still introduces a <strong>central control point</strong>, which may limit scalability.<br>❌ <strong>Higher operational overhead</strong> — Requires <strong>monitoring both the event stream and orchestrator</strong> to ensure the system functions correctly.<br>❌ <strong>Partial coupling</strong> — While services communicate via events, they still depend on a <strong>centralized coordinator</strong>, which introduces some degree of coupling.</p><h3>Choosing Between Choreography and Hybrid</h3><p>The decision to use <strong>Choreography or Hybrid</strong> should be driven by <strong>specific use cases and non-functional requirements (NFRs)</strong>. The Hybrid pattern is particularly useful when you need <strong>some level of control</strong> over execution flow while still benefiting from <strong>asynchronous, event-driven interactions</strong>.</p><p>Would you like a <strong>comparison table</strong> between <strong>Hybrid, Orchestration, and Choreography</strong>? 🚀</p><h3>Events</h3><p>In this section, I want to focus on <strong>events</strong>. This term is often misused, and many people are unaware of the differences between <strong>integration events, state transfer events, and other event types</strong>.</p><p>In this context, an <strong>event</strong> is a message that notifies other systems about a <strong>change in their domain or an event </strong>that has <strong>already happened</strong>.</p><p>A key characteristic of event notifications is that the <strong>source system does not expect a direct response</strong>. In many cases, it doesn’t anticipate any response at all. Even if a reaction occurs, it remains <strong>independent</strong> of the original logic that triggered the event. This separation ensures <strong>loose coupling</strong> between services, making the system more scalable and resilient.</p><blockquote>Note: Events vs. Commands</blockquote><blockquote>It’s important to distinguish between <strong>events</strong> and <strong>commands</strong>, as they serve different purposes in microservices communication:</blockquote><blockquote><strong>Events</strong> notify other systems about something that <strong>has already happened</strong> (e.g., <em>“Payment Processed”</em>, <em>“Order Shipped”</em>). The sender does not expect a response, and multiple services can <strong>react asynchronously</strong>.</blockquote><blockquote><strong>Commands</strong> are <strong>requests for an action to be performed</strong> (e.g., <em>“Process Payment”</em>, <em>“Create Order”</em>). They are <strong>directed at a specific service</strong>, and the sender <strong>expects a response</strong>.</blockquote><blockquote>In this section, we focus primarily on <strong>events</strong>, as they are crucial for <strong>loosely coupled, event-driven architectures</strong>.</blockquote><p>In this article, I will explore the <strong>main types of events</strong> that can be used within the patterns described earlier.</p><h3>Type of events</h3><h3>Integration Events (Event Publisher)</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*seFJo3rZeGUMsUUxxXh3Ig.png" /></figure><p>In a <strong>microservices architecture</strong>, you often need to <strong>send asynchronous events</strong> to propagate changes from an <strong>originating domain model</strong> (such as a microservice or bounded context) to multiple <strong>subscribed microservices</strong> or even <strong>external applications</strong>. This event-driven approach allows services to remain <strong>loosely coupled</strong>, enhancing <strong>scalability and flexibility</strong>.</p><p>However, due to the <strong>asynchronous nature</strong> of this communication, it is crucial to ensure that <strong>integration events are only published once the original operation has been successfully completed</strong>. This means the event must be <strong>persisted in a database or another durable storage system</strong> before being published.</p><p>If integration events are published prematurely — before the original transaction is confirmed — you risk <strong>data inconsistencies</strong> across microservices, bounded contexts, or external systems. Some services may receive and act upon an event related to an operation that never actually took place, leading to <strong>corrupt or misleading data</strong>.</p><p>To mitigate this risk, <strong>domain events</strong> should be used as an internal mechanism to ensure that changes are <strong>atomically recorded</strong> before being published as <strong>integration events</strong>. This guarantees <strong>reliable and consistent</strong> communication across the distributed system, preventing data discrepancies and maintaining system integrity.</p><h3>Events from dependencies</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1T72JZswmTNYtd4_aqcX2A.png" /></figure><p>An <strong>event from a dependency</strong> refers to an <strong>integration event</strong> produced by another service that your service needs to be notified of. Subscribing to and relying on such events means that your service <strong>depends on the producing service</strong> to stay updated.</p><p>These events are often used to implement the <strong>Event-Carried State Transfer</strong> pattern. For example, a <strong>Risk service</strong> may emit events whenever an update modifies its internal state (such as a change in <strong>risk type</strong>). These events carry details of the data that was changed, allowing other services to react accordingly.</p><p>A subscribing service can then <strong>update its own copy of the risk record</strong> based on the received event. This eliminates the need for constant direct communication with the <strong>main customer system</strong>, enabling the service to function independently while maintaining an up-to-date local state.</p><p>Maintaining <strong>local copies of data</strong> facilitates <strong>Cross-Context Queries</strong>, where data from multiple microservices is combined without requiring real-time inter-service calls. This approach enhances <strong>performance, scalability, and resilience</strong>, ensuring that services remain decoupled while still sharing crucial business information.</p><h3>Event-Carried State Transfer</h3><p>The <strong>Event-Carried State Transfer</strong> pattern is used when you want to <strong>update dependent services</strong> without requiring themto query the source system for further operations. Instead of making <strong>real-time calls</strong>, services receive <strong>asynchronous events</strong> containing the updated state, allowing them to maintain a <strong>local copy</strong> of relevant data.</p><p>For example, a <strong>Customer Management System</strong> may emit events whenever a customer’s details change (such as an <strong>address update</strong>). These events carry the updated information, enabling recipient services to <strong>synchronize their local copies</strong> accordingly.</p><p>By following this approach, dependent services can function <strong>independently</strong> without frequent interactions with the <strong>source system</strong>, improving <strong>performance, resilience, and scalability</strong>. This pattern is particularly useful in <strong>distributed architectures</strong>, where reducing cross-service dependencies leads to more <strong>efficient and fault-tolerant</strong> systems.</p><h3>Ensuring Consistency in an Event-Driven Architecture</h3><p>One of the key challenges in an <strong>event-driven architecture</strong> is maintaining <strong>consistency</strong> when both <strong>updating the database</strong> and <strong>publishing an event</strong> need to happen <strong>atomically</strong>. Without proper safeguards, a failure between these two steps can lead to <strong>inconsistencies</strong> across the system.</p><p>For example, in an <strong>Order Service</strong>, when an order is created, the service must <strong>insert a record into the ORDER table</strong> and <strong>publish an Order Created event</strong>. If the service <strong>crashes after updating the database but before publishing the event</strong>, other services relying on that event will never receive it, resulting in an <strong>incomplete and inconsistent system state</strong>.</p><p>To prevent this, solutions like the <strong>Transactional Outbox Pattern</strong> can be used, where events are stored in the <strong>same database transaction</strong> as the original operation. A separate <strong>message relay mechanism</strong> then ensures the event is <strong>reliably published</strong>, even if the service crashes. Other approaches, such as <strong>Change Data Capture (CDC) with Event Streaming</strong>, can also be leveraged to ensure <strong>eventual consistency</strong> while minimizing failure points.</p><p>By implementing <strong>atomic event publishing strategies</strong>, services can ensure <strong>data integrity, reliability, and consistency</strong> in an event-driven system.</p><h3>Publishing Events Using Local Transactions</h3><p>One approach to ensuring <strong>atomicity</strong> when publishing events is to use a <strong>multi-step process</strong> based on <strong>local transactions (SQL Transactions)</strong>.</p><p>The key idea is to introduce an <strong>EVENT table</strong> within the database, which acts as a <strong>message queue</strong> or <strong>event store</strong>. This ensures that event publication remains <strong>consistent with business state updates</strong>.</p><h4>Process Overview:</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5sCBziVRYghZ6jN_ULBuqw.png" /></figure><p>1️⃣ The application starts a <strong>local database transaction</strong>.<br>2️⃣ It updates the relevant <strong>business entities</strong> in the database.<br>3️⃣ It <strong>inserts an event</strong> into the <strong>EVENT table</strong>.<br>4️⃣ The transaction is then <strong>committed</strong>, ensuring both state changes and event persistence happen atomically.<br>5️⃣ A <strong>separate process</strong> (e.g., a background job, worker thread, or <strong>Azure Function</strong>) reads from the <strong>EVENT table</strong>, publishes the events to a <strong>Message Bus</strong>, and then marks them as <strong>published</strong> using another local transaction.</p><p>This approach guarantees <strong>event durability</strong> and prevents <strong>event loss</strong> due to failures between business logic execution and event publication. The following diagram illustrates the design.</p><h3>Handling Data Aggregation in Microservices</h3><p>One of the key challenges in a <strong>one-database-per-service</strong> architecture is <strong>data aggregation</strong>. Since each microservice manages its own database, it is no longer straightforward to execute <strong>queries that join data across multiple services</strong>. This requires alternative strategies to efficiently <strong>aggregate and retrieve data</strong> without violating service boundaries.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/498/1*YX3v9XM_-w2k-9tlWn0now.png" /></figure><p>One cons of this approach is that if <strong>Service B</strong> is down, the aggregation process will <strong>fail gracefully</strong>, preventing incomplete or inconsistent data from being returned. However, a key drawback is that the <strong>API Gateway becomes tightly coupled</strong> to the underlying services, similar to the <strong>orchestrator pattern</strong> mentioned earlier. This can introduce <strong>dependency and scalability challenges</strong>, as changes in services may require updates to the aggregation logic within the gateway.</p><h3>Dependency Data — Composition</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/953/1*7q5S_y3wikfKdd6Ie5Sj4A.png" /></figure><p>As discussed earlier, a special type of event called <strong>“Event-Carrier State”</strong> is used to <strong>carry and notify other services</strong> about internal state changes. This allows each service to maintain its <strong>own local copy of relevant data</strong> from other services, ensuring that it remains updated by consuming <strong>Event-Carrier State</strong> events.</p><p>In the diagram above, <strong>Dependency Data</strong> represents the <strong>local copy</strong> of data used to simulate a <strong>“join”</strong> between information coming from different microservices.</p><h3>Key Advantages:</h3><p>✅ <strong>Improved Resilience</strong> — If a dependent microservice is temporarily <strong>unavailable</strong>, the local copy of <strong>dependency data</strong> ensures that queries can still be processed, even if the data is slightly outdated.<br>✅ <strong>Eventual Consistency</strong> — Since this approach is based on an <strong>eventually consistent pattern</strong>, once the unavailable service is restored, the <strong>dependency data</strong> will automatically sync and update.<br>✅ <strong>Optimized Query Performance</strong> — Keeping local copies <strong>reduces the need for cross-service queries</strong>, improving system responsiveness and reducing network load.</p><p>This approach ensures a <strong>balance between data availability and consistency</strong>, making it a powerful solution for <strong>distributed systems</strong>.</p><h3>Handling Distributed Transactions: The Saga Pattern</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/947/1*_Ov6f1JJEfP24NVlai7sww.png" /></figure><p>In a microservices architecture, there are scenarios where <strong>multiple services</strong> must participate in a <strong>single transactional operation</strong>. However, with each microservice managing its own <strong>independent data storage</strong>, there is a risk of <strong>data inconsistency</strong> if any step in the process fails.</p><p>The <strong>Saga Pattern</strong> is a widely used approach for ensuring <strong>data consistency across multiple microservices</strong>. Sagas provide <strong>application-level distributed coordination</strong> by breaking a <strong>global transaction</strong> into a sequence of <strong>local transactions</strong>, each of which updates its database and triggers the next step in the workflow through an <strong>event or message</strong>.</p><p>If any step in the saga <strong>fails</strong>, a series of <strong>compensating transactions</strong> is executed to <strong>undo</strong> the changes made by the previous steps, ensuring the system remains in a <strong>consistent state</strong>.</p><h3>Happy Path: Successful Saga Execution</h3><p>✅ <strong>Step 1:</strong> <strong>Service 1</strong> starts the transaction and publishes an event to continue.<br>✅ <strong>Step 2:</strong> <strong>Service 2</strong> consumes the event from <strong>Service 1</strong>, processes it, and publishes an event to continue.<br>✅ <strong>Step 3:</strong> <strong>Service 3</strong> consumes the event from <strong>Service 2</strong>, processes it, and publishes a final event to complete the transaction.</p><h3>Unhappy Path: Handling Failures with Compensation</h3><p>❌ <strong>Step 1:</strong> <strong>Service 1</strong> starts the transaction and publishes an event to continue.<br>❌ <strong>Step 2:</strong> <strong>Service 2</strong> consumes the event from <strong>Service 1</strong>, processes it, and publishes an event to continue.<br>❌ <strong>Step 3:</strong> <strong>Service 3</strong> consumes the event from <strong>Service 2</strong> but encounters a failure. It <strong>publishes a rollback (compensation) event</strong>.<br>❌ <strong>Step 4:</strong> <strong>Service 1 and Service 2</strong> consume the rollback event and execute compensating transactions, restoring <strong>data consistency</strong>.</p><h3>Key Benefits of the Saga Pattern</h3><p>✅ <strong>Ensures eventual consistency</strong> in distributed transactions.<br>✅ <strong>Avoids locking resources</strong> across multiple microservices, improving system scalability.<br>✅ <strong>Provides resilience</strong> by allowing partial failures to be handled through compensating transactions.<br>✅ <strong>Supports both choreography-based and orchestration-based approaches</strong>, depending on system requirements.</p><p>Alternatively, we can introduce a <strong>Coordinator</strong> to <strong>centralize</strong> the compensation logic, rather than distributing it across multiple services, as illustrated below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/965/1*fo-uuC0CfZVO7jXkTb1B8A.png" /></figure><h3>B2B Integration: Request/Response Pattern</h3><p>In some cases, a service needs to communicate with a <strong>third-party or legacy API</strong>. To manage this integration effectively, an <strong>orchestrator</strong> (which also acts as a wrapper) is introduced to <strong>handle interactions</strong> with the external API.</p><p>If the third-party API supports a <strong>request/response pattern</strong>, the orchestrator will:<br>1️⃣ Send a request to the external API.<br>2️⃣ Wait for a response.<br>3️⃣ Once a response is received, the orchestrator <strong>publishes an event</strong> to the message bus, allowing other services to react accordingly.</p><p>This approach <strong>abstracts the complexities of third-party integrations</strong>, ensuring a <strong>consistent and reliable communication flow</strong> within the system.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/580/1*EcsboWbuMkj43_9lZZg9Iw.png" /></figure><p><strong>Service A</strong> and <strong>Service B</strong> can communicate asynchronously through the <strong>message bus</strong>, allowing <strong>Service A</strong> to be triggered by events published by <strong>Service B</strong>.</p><p>To ensure resilience, <strong>Service A</strong> should implement the <strong>Circuit Breaker Pattern</strong> to handle scenarios where the external API becomes <strong>unresponsive or fails</strong>, preventing excessive retries and maintaining system stability.</p><h3>Asynchronous Communication</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/931/1*4bxcWM9XgbTwf3dDFlgjWw.png" /></figure><p>If a third-party API operates using <strong>asynchronous communication</strong>, <strong>Service A</strong> should expose a <strong>callback endpoint</strong> to receive notifications when the triggered operation is completed.</p><p>Once <strong>Service A</strong> receives the callback from the API, it can then <strong>publish the corresponding event</strong> to the message bus, allowing other services to react accordingly, as illustrated below.</p><h3>Identifying and Handling Failure Scenarios in Microservices</h3><p>To ensure a <strong>fault-tolerant microservices architecture</strong>, it is essential to design services with <strong>resilience mechanisms</strong> that mitigate failures. Below are some key patterns that help address common failure scenarios.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/902/1*3wOmXSPPQ2zhrn1DM3Y_ww.png" /></figure><h3>1️⃣ Circuit Breaker Pattern</h3><p>When a microservice encounters <strong>repeated failures</strong>, the <strong>Circuit Breaker Pattern</strong> ensures that the system <strong>fails fast</strong> by <strong>opening the circuit</strong>, preventing further calls to the failing service. Once the circuit is <strong>open</strong>, requests <strong>immediately return an exception</strong> instead of repeatedly attempting a failing operation.</p><p>This pattern also includes <strong>failure monitoring</strong>, allowing the circuit to <strong>automatically close</strong> when the service recovers, restoring normal functionality.</p><p>🔹 <strong>Use case in event-driven architecture:</strong></p><ul><li>This pattern is particularly relevant in <strong>B2B integrations</strong>, where a service <strong>directly calls</strong> a third-party API (point-to-point communication).</li></ul><h3>2️⃣ Dead Letter Queue (DLQ)</h3><p>Failures are inevitable in <strong>distributed systems</strong>, and messages may not always be processed successfully. <strong>Dead Letter Queues (DLQ)</strong> help capture <strong>unprocessed messages</strong> so that they can be analyzed, retried, or manually inspected.</p><p>Common reasons for message failures:<br>✔️ The <strong>consumer service is down</strong> and unable to process messages.<br>✔️ The consumer is <strong>up and running</strong> but <strong>message validation fails</strong> (e.g., incorrect payload format).<br>✔️ The consumer is active but <strong>unable to process the message</strong> due to an internal issue (e.g., database outage).</p><p><strong>Azure Service Bus</strong> provides <strong>Dead Letter Queue (DLQ) support</strong> to handle such scenarios effectively.</p><p>📌 More details: <a href="https://docs.microsoft.com/en-us/azure/service-bus-messaging/service-bus-dead-letter-queues">Azure Service Bus Dead Letter Queues</a></p><h3>3️⃣ Durable Queue for Handling Consumer Failures</h3><p>If a service goes <strong>offline</strong>, it <strong>cannot consume messages</strong> from the message bus. In such cases, a <strong>durable queue</strong> ensures that messages <strong>persist</strong> until the service is available again.</p><p>Durable queues work by <strong>storing messages persistently</strong> until a suitable consumer retrieves them. Unlike volatile queues, they do not discard messages if no consumers are available, ensuring <strong>no message loss</strong> in case of temporary service failures.</p><p>🔹 <strong>Key benefits of durable queues:</strong><br>✔️ Messages remain available even if the consumer is temporarily <strong>offline</strong>.<br>✔️ Any suitable consumer can retrieve the message when <strong>available</strong>.<br>✔️ Ensures <strong>reliable message delivery</strong> in event-driven systems.</p><p><strong>Azure Service Bus</strong> provides <strong>built-in support</strong> for durable queues, making them easy to implement in microservices architectures.</p><p>📌 More details: <a href="https://docs.microsoft.com/en-us/azure/service-bus-messaging/service-bus-queues-topics-subscriptions">Azure Service Bus Queues &amp; Topics</a></p><h3>Local Queue for Each Microservice</h3><p>An alternative approach is to have each <strong>microservice maintain its own local queue</strong>, ensuring that messages are consumed from the bus <strong>immediately upon being published</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/896/1*J7QSZGh-C2oDSzuB3T4SJg.png" /></figure><h3>Key Advantages:</h3><p>✅ <strong>Ensures message persistence during downtime</strong> — If a service goes offline, all unprocessed messages remain in the <strong>local queue</strong>. Once the service is back online, it resumes message consumption without data loss.</p><p>✅ <strong>Improved visibility &amp; troubleshooting</strong> — By maintaining a <strong>per-service queue</strong>, it becomes easier to <strong>identify which microservice</strong> has pending or unprocessed messages, simplifying debugging.</p><p>✅ <strong>Enhanced failure handling</strong> — If a message <strong>fails validation</strong>, it can be moved to a <strong>local dead-letter queue (DLQ)</strong> for later processing or recovery.</p><p>This approach provides <strong>better control over message processing</strong>, improves <strong>resilience</strong>, and makes <strong>error handling more manageable</strong>.</p><h3>Dead Letter or Retry?</h3><p>When handling message failures, it is important to determine whether the message should be <strong>sent to a Dead Letter Queue (DLQ)</strong> or <strong>retried</strong>. Here are the general guidelines:</p><p>🔹 <strong>Dead Letter Queue (DLQ):</strong></p><ul><li>If a message <strong>fails validation</strong> (e.g., incorrect payload, missing required fields), it should be moved to the <strong>dead letter queue</strong>.</li><li>Since reprocessing the message <strong>would result in repeated failures</strong>, manual intervention is often required to investigate and resolve the issue.</li></ul><p>🔹 <strong>Retry Mechanism:</strong></p><ul><li>If a message <strong>fails due to a temporary issue</strong> (e.g., a system is down, a timeout occurs), it should be <strong>retried</strong>.</li><li>Adding a <strong>delay or priority</strong> to the retry mechanism increases the chances of successful processing once the issue (e.g., service outage) is resolved.</li></ul><p><strong>Azure Service Bus</strong> provides built-in support for both <strong>dead-lettering and retries</strong>, making it easy to configure resilient message processing.</p><p>📌 More details: <a href="https://docs.microsoft.com/en-us/azure/service-bus-messaging/service-bus-queues-topics-subscriptions">Azure Service Bus Queues &amp; Topics</a></p><h3>Final Conclusion</h3><p>Designing and implementing microservices requires thoughtful consideration of <strong>decomposition strategies, communication patterns, data consistency mechanisms, failure handling, and system resilience</strong>. Choosing the right approach depends on the specific business and technical requirements of the system. By leveraging <strong>event-driven architectures, distributed coordination patterns, and robust fault tolerance mechanisms</strong>, organizations can build highly scalable and maintainable microservices ecosystems. As microservices evolve, continuous monitoring, optimization, and adapting to new technologies will be essential to keep the system <strong>resilient, performant, and future-proof</strong>.</p><h3>Microservices Cheat Sheet</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*2tkJNDmkASwWYkms" /></figure><h3>Decomposition Strategies</h3><p>✅ <strong>By Business Capability</strong> — Organizes services based on stable business functions. ✅ <strong>By Subdomain (DDD)</strong> — Uses Domain-Driven Design (DDD) principles to structure services.</p><h3>Communication Patterns</h3><p>✅ <strong>Synchronous (Request/Response)</strong> — Uses API Gateway, REST, or gRPC for direct calls. ✅ <strong>Asynchronous (Event-Driven)</strong> — Uses Message Bus (Azure Service Bus, Kafka) for decoupled interactions.</p><h3>Ensuring Data Consistency</h3><p>✅ <strong>Saga Pattern</strong> — Handles distributed transactions using event-driven state management. ✅ <strong>CQRS (Command Query Responsibility Segregation)</strong> — Separates read and write operations for performance. ✅ <strong>Event Sourcing</strong> — Stores all state changes as an immutable sequence of events.</p><h3>Failure Handling &amp; Resilience</h3><p>✅ <strong>Circuit Breaker</strong> — Prevents repeated calls to failing services (Netflix Hystrix, Resilience4j). ✅ <strong>Dead Letter Queue (DLQ)</strong> — Captures failed messages for later analysis and reprocessing. ✅ <strong>Durable Queue</strong> — Ensures message persistence when a consumer service is down.</p><h3>Service Coordination</h3><p>✅ <strong>Choreography</strong> — Services react to events without a central orchestrator. ✅ <strong>Orchestration</strong> — A central service coordinates interactions between microservices. ✅ <strong>Hybrid</strong> — Combines both Choreography and Orchestration for flexibility.</p><h3>B2B &amp; External API Integration</h3><p>✅ <strong>Request/Response</strong> — Direct API calls with retry mechanisms. ✅ <strong>Event-Driven Integration</strong> — Uses messaging systems for loose coupling. ✅ <strong>Callback Handling</strong> — Asynchronous processing through exposed endpoints.</p><h3>Scaling &amp; Deployment Strategies</h3><p>✅ <strong>Service-per-Container</strong> — Deploys each microservice in an independent container. ✅ <strong>Azure Kubernetes Service (AKS)</strong> — Manages containerized microservices efficiently. ✅ <strong>Azure Service Fabric</strong> — Provides built-in service discovery and stateful microservices.</p><h3>Monitoring &amp; Observability</h3><p>✅ <strong>Centralized Logging</strong> — Aggregates logs from all services (Azure Monitor, ELK Stack). ✅ <strong>Health Checks</strong> — Periodically checks service availability. ✅ <strong>Distributed Tracing</strong> — Tracks requests across services for performance analysis (Azure Application Insights).</p><p>By following these <strong>best practices and patterns</strong>, teams can build <strong>scalable, fault-tolerant, and maintainable microservices</strong> that align with business needs and technical requirements.</p><p>References:</p><p><a href="https://docs.microsoft.com/en-us/azure/service-bus-messaging/service-bus-queues-topics-subscriptions">Azure Service Bus Queues &amp; Topics</a></p><p><a href="https://docs.microsoft.com/en-us/azure/service-bus-messaging/service-bus-dead-letter-queues">Azure Service Bus Dead Letter Queues</a></p><p><a href="https://microservices.io/">https://microservices.io/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=68fe92f26a1f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[From Blueprints to Building Blocks: Redefining the Architect’s Role in Agile Software Development]]></title>
            <link>https://medium.com/@m.peluso/from-blueprints-to-building-blocks-redefining-the-architects-role-in-agile-software-development-e560e005524c?source=rss-17a893f00e39------2</link>
            <guid isPermaLink="false">https://medium.com/p/e560e005524c</guid>
            <category><![CDATA[insurance]]></category>
            <category><![CDATA[agile-methodology]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[software-architecture]]></category>
            <dc:creator><![CDATA[Massimiliano Peluso]]></dc:creator>
            <pubDate>Fri, 18 Jul 2025 09:50:09 GMT</pubDate>
            <atom:updated>2025-07-18T09:50:09.178Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*onoG-HcxOZueZKXO" /></figure><h3>Introduction: The Changing Landscape</h3><p>There was a time when solution architects sat in ivory towers, crafting perfect blueprints in isolation before handing them off to delivery teams. We spent weeks, sometimes months, designing systems that had to be reviewed in dense TDA (Technical Design Authority) sessions, where attendees, unfamiliar with the rationale behind the design, were expected to absorb a massive amount of detail in a short time. It was well-intentioned, but fundamentally flawed. In today’s fast-paced world of agile delivery and evolving requirements, this approach is no longer practical. The role of the architect is shifting — from perfectionist planner to adaptive guide.</p><h3>The Old Way: Heavy Upfront Architecture</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*zEzv458RyvYhM000" /></figure><p>In the traditional model, <strong>architecture was primarily developed upfront</strong>. We used to produce detailed solution architecture documents early in the project, expecting them to serve as definitive guides.<strong> These documents were then presented at TDA sessions where various stakeholders had to quickly ingest complex technical designs, often with little to no context about the journey that led to them</strong>. This created a disconnect — not just in understanding, but also in ownership. Decisions were made too early, based on assumptions that would inevitably change.</p><h3>Real Use Case: Before and After</h3><p><strong>Before:</strong> In a large insurance organisation, the architecture team designed an entire underwriting platform upfront. The blueprint covered integration with legacy systems, data flow models, and user interface guidelines.</p><p><strong>The document exceeded 80 pages. When presented at the TDA, stakeholders struggled to grasp the rationale and challenged components they didn’t fully understand.</strong> As development began, the team quickly encountered changes — new regulatory requirements, updated data sources, and vendor limitations. The architecture document became obsolete within weeks, causing rework and frustration.</p><p><strong>After:</strong> In a later phase, the same organisation adopted a different approach. The architecture team defined high-level principles and a minimal viable architecture to get started. Instead of completing all design upfront, they created Architecture Decision Records (ADRs) and evolved the system design incrementally with the delivery teams. TDA sessions were replaced with focused, collaborative reviews that addressed only the relevant issues at the time. This allowed the platform to adapt naturally to change while maintaining alignment and shared understanding across teams.</p><h3>The Reality of Change in Enterprises</h3><p><strong>In large enterprises, change is constant</strong>. New integrations, policy shifts, vendor constraints, and unexpected user needs surface throughout the lifecycle of a project. Trying to fix the architecture too early is a recipe for rework and frustration. <strong>We must accept that not everything can — or should — be known at the beginning</strong>. Architecture must be treated as a living artefact, evolving alongside the product.</p><h3>The Modern Architect’s Dilemma</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*zw1sqnqWazWUA7Jb" /></figure><p>Today’s architect is caught between two extremes: doing too much upfront and being accused of waterfall thinking, or doing too little and risking architectural drift. The key is balance. Good architects now act more like hypothesis testers. They sketch possibilities, set boundaries, and adapt based on feedback and learning. It’s about building optionality, not rigidity.</p><h3>A New Way Forward</h3><p>Modern architecture is iterative. Lightweight artefacts, such as Architecture Decision Records (ADRs), evolving diagrams, and collaborative modelling sessions, replace monolithic documents. Architects embed themselves in delivery teams, co-designing solutions in real-time. Decisions are time-boxed, contextual, and revisited as needed. Instead of trying to prevent all possible risks, we design systems to be resilient to change.</p><h3>What Happens to the HLD?</h3><p>In the new way of working, the traditional <strong>High-Level Design (HLD) document is not eliminated — it is transformed</strong>. Instead of producing a static, exhaustive HLD upfront, architects create a set of evolving, modular artefacts that reflect the current state of understanding:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*1OlssysclEGlH2ke" /></figure><ul><li><strong>Architecture Decision Records (ADRs):</strong> Capture key choices, rationale, and alternatives considered.</li><li><strong>Context and Component Diagrams:</strong> Lightweight, high-level views (often <a href="https://icepanel.medium.com/how-to-create-common-architecture-diagrams-with-the-c4-model-77c595945486">C4 Model-based</a>) showing system boundaries, principal components, and interactions.</li><li><strong>Principles and Guardrails:</strong> A set of agreed technical constraints and guidelines to steer delivery decisions.</li><li><strong>Solution Overview or MVP Design Pack:</strong> A slim, goal-oriented document that outlines the initial scope, integration points, and assumptions — created just-in-time.</li><li><strong>Architecture Backlog:</strong> A living list of architectural concerns, spikes, and pending decisions, maintained with the delivery team.</li></ul><p>These artefacts together form a dynamic, modular HLD that evolves with the system.</p><h3>Practical Tips for Architects</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*7f-ysR7c8_beQkXJ" /></figure><ul><li><strong>Design for change</strong>: Prioritise modularity and clear boundaries.</li><li><strong>Communicate visually</strong>: Use evolving diagrams over static documents.</li><li><strong>Document decisions, not just designs</strong>: Capture why, not just what.</li><li><strong>Be present</strong>: Join team ceremonies, listen to developers, and co-create solutions.</li><li><strong>Promote shared understanding</strong>: Architecture is everyone’s responsibility.</li></ul><h3>Conclusion: Embrace Change, Don’t Fight It</h3><p>Architecture is no longer a phase. It’s a continuous activity that thrives on collaboration, feedback, and adaptation. As architects, our role is to guide — not control — the evolution of systems. By letting go of the illusion of perfection and embracing uncertainty, we unlock better solutions and more empowered teams.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e560e005524c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Generative AI in Insurance: Real-World Use Cases, Architecture, and When to Use It]]></title>
            <link>https://medium.com/@m.peluso/generative-ai-in-insurance-real-world-use-cases-architecture-and-when-to-use-it-bb79df40ca81?source=rss-17a893f00e39------2</link>
            <guid isPermaLink="false">https://medium.com/p/bb79df40ca81</guid>
            <dc:creator><![CDATA[Massimiliano Peluso]]></dc:creator>
            <pubDate>Tue, 03 Jun 2025 09:04:57 GMT</pubDate>
            <atom:updated>2025-06-03T09:04:57.240Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*YGg75pf2P-lqKRzJ" /></figure><p>The insurance industry is evolving fast , digitally and operationally. With a mix of structured, semi-structured, and unstructured data, legacy systems, and rising expectations for speed and insight, insurers are turning to new technologies to modernise underwriting, claims, and customer experience.</p><p>One of the most promising innovations is <strong>Generative AI (GenAI)</strong>. But how effective is it in practice? And when should we still rely on traditional systems like <strong>Data Warehouses (DWH)</strong>?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*yV_vrWnZUZ5wNn4W" /></figure><p>In this article, we’ll explore:</p><ul><li>What GenAI is in an insurance context</li><li>High-impact use cases</li><li>Diagrams for workflows and architecture</li><li>GenAI vs DWH: When to use what</li><li>Realistic limitations and how to overcome them</li></ul><h3>What is Generative AI in Insurance?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*A4Fa0y5pWutFi1HAjr02uA.png" /></figure><p>Generative AI refers to systems that produce new content, text, summaries, and decisions based on vast volumes of input data. In insurance, it’s handy for making sense of <strong>unstructured data</strong> like emails, submission documents, loss runs, and broker notes.</p><blockquote><strong><em>Think of GenAI as an assistant that turns data chaos into usable, decision-ready insights.</em></strong></blockquote><h3>High-Impact Use Cases for GenAI in Insurance</h3><h3>1. Underwriting Triage and Risk Summary</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*c4sBWVSRFqTm8aMi2oVWWg.png" /></figure><ul><li>Extracts key facts from submission packs</li><li>Flags missing data or unusual risk patterns.</li><li>Summarises exposure and pre-screens for appetite</li></ul><h3>2. Claims Process Automation</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*JDz1y8_auTDkACxH" /></figure><ul><li>Auto-generates responses based on claim type and history</li><li>Highlights anomalies or potential fraud</li><li>Speeds up low-complexity claim triage</li></ul><p><em>Image: Side-by-side of original claim note and GenAI-generated response</em></p><h3>3. Policy Document Drafting</h3><ul><li>Generates draft policies based on product type and customer profile</li><li>Reduces legal review time</li><li>Improves consistency and compliance</li></ul><h3>4. Broker &amp; Customer Support Bots</h3><ul><li>GenAI-powered assistants can respond to quote requests, FAQs, and policy questions</li><li>Always on, context-aware</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/868/1*lm1VLK7L5OQgSzvCEYuVGw.png" /></figure><h3>Reference Architecture: GenAI + DWH</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*xrpPbt0Wk1uye0JR" /></figure><p>Components:</p><ul><li>Azure AI Foundry for managing and deploying models</li><li>Azure OpenAI or hosted LLMs for inference</li><li>Azure Synapse as an enterprise DWH</li><li>API layer for orchestration</li><li>Secure data handling with compliance filters (FCA, GDPR)</li></ul><h3>Final Thoughts</h3><p>GenAI is not a silver bullet but a powerful complement to traditional systems.</p><ul><li>Let DWH be your <strong>governed source of truth</strong>.</li><li>Let GenAI be your <strong>insight accelerator</strong>.</li></ul><p>Together, they create an intelligent, scalable foundation for modern insurance workflows.</p><blockquote>✅ Want to explore how GenAI fits into your underwriting or claims process?</blockquote><p><strong>Book a free consultation at </strong><a href="https://www.cloudelevate.co.uk/"><strong>CloudElevate.co.uk</strong></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bb79df40ca81" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>