<?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 Kuba Szczybura on Medium]]></title>
        <description><![CDATA[Stories by Kuba Szczybura on Medium]]></description>
        <link>https://medium.com/@kuba.szczybura?source=rss-7d7a1143c84d------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*dmbNkD5D-u45r44go_cf0g.png</url>
            <title>Stories by Kuba Szczybura on Medium</title>
            <link>https://medium.com/@kuba.szczybura?source=rss-7d7a1143c84d------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 22:44:07 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@kuba.szczybura/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[Proactive Order Flow Monitoring — detection before the problem occurs]]></title>
            <link>https://engineering.dunelm.com/proactive-order-flow-monitoring-detection-before-the-problem-occurs-182ad45e91f0?source=rss-7d7a1143c84d------2</link>
            <guid isPermaLink="false">https://medium.com/p/182ad45e91f0</guid>
            <category><![CDATA[dashboard]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[monitoring]]></category>
            <category><![CDATA[data-engineering]]></category>
            <category><![CDATA[customer-service]]></category>
            <dc:creator><![CDATA[Kuba Szczybura]]></dc:creator>
            <pubDate>Thu, 08 Aug 2019 12:21:53 GMT</pubDate>
            <atom:updated>2019-08-08T12:59:28.882Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong><em>Proactive Order Flow Monitoring — detection before the problem occurs</em></strong></h3><p>Dunelm is all about helping customers build the home they love. That’s our slogan. All too often however slogans fail to be translated into action. This article will discuss just one of many customer centric initiatives coming from Dunelm Digital Team — <strong>Proactive Order Flow Monitoring.</strong></p><p>Our final goal is a happy customer. Having provided great choice and ease of shopping, we want our orders to be delivered first time, on time and in full. With hundreds of orders every hour, operations teams need to know how we’re doing against our Delivery Promise to Customer. With a complex array of systems, first and third party carriers, multitude of delivery options and possibilities of mixed baskets (different kinds of delivery, click &amp; collect, …), there are a multitude of scenarios for a product to flow through the systems. It quickly becomes impractical to set measures and deadlines for each of those eventualities.</p><p>Our data science &amp; engineering team applies machine learning algorithms to monitor order flow and learn what ‘usual’ looks like. This works well for the ‘systems’ part of order processing: information about an order is being passed from the browser, to basket, checkout and order management services whilst liaising with tens of other microservices (pricing, availability, delivery options, route planning, …). With certain additions this approach extends to cater for the ‘batch’ operation such as couriers picking up several pallets of orders at set times of day.</p><p>In the world of microservices any new information such as status update is being passed on in the form of a message. If a message/piece of information tells us anything about the order progress through the systems, we engage a service which processes it immediately into a relevant business oriented data mart.</p><p>Core information required for order monitoring is: originating system, timestamp of creation in the originating system, timestamp received in data lake, new status.</p><p>We create a timeline of events for all orders:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cefR-v64T_UfLZ22D_MBGw.png" /><figcaption>order status overview table</figcaption></figure><p>Based on this view we can:</p><ol><li>Track orders through the systems</li><li>Carry out analytics on how fast or slow different stages or systems take</li><li>Track the latency of microservice integration with the data lake</li><li>Run anomaly detection algorithms alerting us of any unusual behaviours and latencies.</li></ol><p>Point 4 is the key, because it can highlight potential problems or unexpected bottlenecks before the issue starts affecting customers (or becomes visible in the systems involved).</p><p>With microservice infrastructure the ability to monitor and analyse inter-service flows is an important challenge to address.</p><p>Here, with order monitoring, there are tens of points through which an order passes, depending on what we define as ‘status update’. It’s important to be flexible with the definition because for the tech stack monitoring we want to operate on a fine level of detail whereas for various business functions we would offer a greatly simplified view of order progress, e.g.:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UCGd7tFeIdxhTvFiQF3FEw.png" /><figcaption>Major milestones in order flow — Click &amp; Collect</figcaption></figure><p>The order journey continues — and we start from the end goal and trace back: a happy customer receiving our product. The first question we ask our algorithms to answer is: what, when and where needs to happen so that this order reaches the customer on the promised date and time? This flags orders which are at risk of not reaching the customer on time. The dashboard is readily available on colleagues’ devices and allows them to dig into the details of the potentially late orders and influence their journey. Each team can have a customised view highlighting information they can use to fix potential problems, for example warehouse staff will be focusing on assigned carrier, item size and position in the warehouse.</p><p>We also analyse what time it takes from statusA to status B: on average, what the distribution is, by order type, by fulfilment type, … why not device, browser or search-service version?</p><p>Our algorithms track tens of segments to detect what a single dashboard cannot display, allowing us to react to the inception of a potential issue rather than wait until it has built up to a size visible on dashboards or actually affecting our customers.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*AJLeJ54l0bxo62ac" /><figcaption>Order status flow — dashboard with basic stats; among other uses, this dashboard helps to evaluate how sensitive we should be with sending out alerts, e.g. should we alert as soon as the processing times exceed mean plus 2 standard deviations as compared to similar periods in the past, or select another trigger?</figcaption></figure><p>_______________________________________________________________</p><p><strong>The base for order flow monitoring in a microservice world</strong></p><p>In order for this to work, data engineers must first orchestrate all of those services’ data to flow into a single repository — a data lake. The data lake, as well as data marts produced based on the data from the data lake, feed the order monitoring app near real time.</p><p>Some points on data integration:</p><ol><li>Microservices exchange information between one another; they also post messages to the data lake where the big picture of how an order passes through services and systems is drawn;</li><li>Most companies have a few monolithic systems which cannot be ridden of just yet (usually ERP [enterprise resource planning], warehouse software etc.); these systems are often more difficult to integrate in a modern way;</li><li>If we want full tracking of our deliveries, we need to integrate with every courier we use; some of them won’t offer an API and other integrations must be made, e.g. SFTP solution.</li></ol><p>Solutions to the 3 points should be as simple as they can be. We are creating a microservice-based architecture hosted on AWS. To illustrate one of the possible ELT (extract, load, transform) processes here’s one of the ways a microservice can be connected to the data lake using serverless functions:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_RoEGLlNvX0dqaZvMX8daA.png" /><figcaption>Simplified view on the ELT process; there will be use cases (e.g. when you need to process thousands requests per second) where a very different approach is needed, but this works well for most transactional-type of information in our case (typically the vast majority of data is in such form).</figcaption></figure><p>During our experimentation with ways of connecting to services’ data streams, we have developed a generic API (application programming interface) to which any new service can post. This means that as soon as there is a new source of data available, the data lake receives the stream out of the box with practically no overhead from the microservice dev team.</p><p>There are types of data streams which require special treatment. The blending of new data with existing entries (e.g. decision point: create new customer entity or append to existing one?) requires potentially complex transformations, which include scans through Elasticsearch storage, joins with data in relational data stores or/and an ad hoc API call to internal or external service. We found that we needed the flexibility that no ETL tool offered and we write our own serverless ETL functions in Python to query the data lake and blend &amp; transform the data into functional marts for business use. This proved to be the most effective approach in terms of flexibility and cost for us.</p><p>_______________________________________________________________</p><p>What’s next in terms of data engineering?</p><ul><li>Efforts to make data easily available for analysis, monitoring and anomaly detection continue. It is a perpetual goal to create and improve the capability to use our data to better our service to customers and improve systems integrations;</li><li>There will always be another useful data source;</li><li>We’re always in search for better ways to process the data with lower latency and cost — so let’s continually iterate through improvements to our systems and processes;</li><li>We’re always in search for effective ways to blend, display and monetise data.</li></ul><p>What’s next in terms of data and customer science? Maintain and develop a mindset of experimentation:</p><ul><li>Start from the customer’s point of view and trace back from there;</li><li>Ask first what the customer needs, then analyse what in our power contributes to achieving that;</li><li>Small steps, often;</li><li>Track change by starting with clearly defined performance indicators, test, evaluate, iterate.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=182ad45e91f0" width="1" height="1" alt=""><hr><p><a href="https://engineering.dunelm.com/proactive-order-flow-monitoring-detection-before-the-problem-occurs-182ad45e91f0">Proactive Order Flow Monitoring — detection before the problem occurs</a> was originally published in <a href="https://engineering.dunelm.com/">Dunelm Technology</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>