<?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 Zulily Tech News on Medium]]></title>
        <description><![CDATA[Stories by Zulily Tech News on Medium]]></description>
        <link>https://medium.com/@ZulilyPR?source=rss-3b1066965ec------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*7f7s1hHk7RtUtHtBJm9LcA.jpeg</url>
            <title>Stories by Zulily Tech News on Medium</title>
            <link>https://medium.com/@ZulilyPR?source=rss-3b1066965ec------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 13:53:10 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ZulilyPR/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[Orchestrating the Refunds Process at Zulily]]></title>
            <link>https://medium.com/zulily-tech-blog/orchestrating-the-refunds-process-at-zulily-661d2592b760?source=rss-3b1066965ec------2</link>
            <guid isPermaLink="false">https://medium.com/p/661d2592b760</guid>
            <category><![CDATA[solution-architecture]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[zulily]]></category>
            <category><![CDATA[refund]]></category>
            <dc:creator><![CDATA[Zulily Tech News]]></dc:creator>
            <pubDate>Wed, 01 Sep 2021 23:42:55 GMT</pubDate>
            <atom:updated>2021-09-01T23:44:27.755Z</atom:updated>
            <content:encoded><![CDATA[<h4>By: Nanya Origbo, Senior Software Engineer, Shopping Experience, Zulily</h4><p>As Zulily scaled to serve millions of customers, it needed to modernize its refunds process. Its initial refunds system was highly distributed and complex, which meant it was unreliable and created gaps in customers’ experiences. We will share how our team was able to evolve our refunds technology stack and create a shopping experience that customers trust.</p><h3><strong>Problem Statement</strong></h3><p>The organic evolution of Zulily’s refunds system led to increased complexity in its architecture, with multiple teams owning different pieces of the refunds process.</p><p>The primary consequence of this evolution was a reduction in the system’s reliability, which refers to the rate at which refund requests were successfully processed. For example, the distributed nature of the system meant that it was difficult to determine when and where refunds failed. In certain cases, customers had to contact customer service in order to move their refunds along.</p><p>Furthermore, the system’s complexity reduced developers’ productivity. Debugging issues and adding new features became difficult and time consuming. Also, we did not have robust retry mechanisms which meant that retrying certain failed refunds was manual and expensive.</p><h3><strong>Proposed Solution</strong></h3><p>Addressing the above challenges required us to build a service that reliably serves as a single source of truth for anything related to refunds at Zulily.</p><p>To accomplish this, we needed to:</p><ul><li>Define <strong>service endpoints</strong> that allow clients to create a refund request as well as retrieve details about a refund request.</li><li>Implement<strong> </strong>a <strong>reliable asynchronous workflow execution mechanism </strong>that maintains a history of workflow events and proactively catches and resolves transient errors.</li><li>Implement a <strong>messaging system</strong> to alert subscribed consumers of predetermined events relevant to their use case (IE workflow success, failure etc)</li><li>Implement robust <strong>monitoring mechanisms</strong> that provide visibility into the overall system health.</li></ul><p>At the heart of our solution was the asynchronous workflow execution mechanism. The most suitable “out of the box” implementation of this mechanism that matched our use case was the Simple Workflow Service (SWF), an AWS service that provides simple workflow orchestration management and state persistence via the AWS Flow Framework library.</p><p>Other implementations of workflow orchestration and management considered include:</p><ul><li><strong>Homegrown orchestration engine: </strong>Building a custom solution to address the issues we faced was going to take longer and require more effort. Thus, leveraging an existing solution within a cloud environment that Zulily was already a part of was more appealing and cost-effective. This approach of “not reinventing the wheel” allowed us to focus on what mattered which included building a reusable workflow library for other microservices at Zulily.</li><li><strong>AWS Step Functions: </strong>Step functions were considered for the workflow execution mechanism. However, for our use case, we had two requirements that could not be achieved using Step Functions. The first requirement was we needed to implement business logic in our workflows using code instead of JSON. This was easily achieved using the AWS flow framework which provided a better developer experience. Secondly, our refund workflows had a parent-child relationship where a parent workflow could launch one or more child workflows that return a result to the parent. At the time of implementation, this parent-child feature was not available in Step Functions.</li></ul><h3><strong>Solution Architecture</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/938/1*fW0A_wDQLkAKezkPYICZew.png" /><figcaption><strong>Fig 1:</strong> High Level Architecture Diagram</figcaption></figure><p><strong>a. Service Endpoints</strong></p><p>For the service endpoints, we defined RESTful APIs for a variety of client use cases. These APIs abstract clients and consumers from the implementation details of the refund workflow and database. We decided to go with REST APIs because it was sufficient for our use case and it is an architectural pattern understood within Zulily.</p><p><strong>b.</strong> <strong>Workflow Execution</strong></p><p>When refund requests are received, they are processed in two steps:</p><ul><li>Request data are persisted in the refunds database.</li><li>Execution of the Refund workflow is initiated</li></ul><p>Refunds Database: This is the single source of truth for Zulily refunds. That is, business and engineering teams can query this database for details regarding a refund request. The base entity in this database is a refund workflow, which could be modeled as a single denormalized table. Therefore, we decided to adopt NoSQL as the database technology for our service. DynamoDB was our chosen NoSQL solution. We picked DynamoDB for the following reasons:</p><ul><li>DynamoDB is an AWS service and integrates seamlessly with other AWS services used across Zulily.</li><li>It is a fully managed solution with capabilities such as redundancy and replication provided out of the box.</li><li>It is a highly available service that offers three-way replication which suited our refunds use case.</li></ul><p>Refunds workflow: At Zulily, refunds are a multi-step process that we modeled as a workflow. When a refund request is received, the refunds workflow is started asynchronously. A workflow consists of one or more tasks and its execution involves the coordination and management of these tasks. For a simplified and reliable processing of refunds, we decided on Amazon’s SWF as our orchestration service. For our use case, the benefits of SWF include:</p><ul><li>Maintenance of a workflow execution history which makes debugging issues much easier for engineers</li><li>Automatic retries for failed tasks using exponential backoff which helps proactively resolve transient errors.</li><li>Quick and easy definitions of workflows and their associated activities in code using libraries provided with the SWF flow framework.</li></ul><p><strong>c. Workflow Completion</strong></p><p>The completion of a workflow involves updating the workflow status in the refunds database and notifying clients. For client notification, we use AWS Simple Notification Service (SNS) to publish the refund workflow entity to an SNS topic. Clients can subscribe to this topic to track the status of their refund request.</p><p><strong>d. Workflow Monitoring</strong></p><p>Monitoring of our refund requests involved implementing a reliability metric to ensure that refunds are being processed successfully. We also implemented additional metrics such as availability, latency, and throughput to track the overall health of the system.</p><p>All metrics were visualized using Grafana dashboards. We also used Grafana to implement alerts that catch spikes or dips in our metrics.</p><p>Zulily takes customer trust seriously. By evolving the technology stack that powers Zulily refunds, we were able to significantly improve the reliability of our refund process, and consistently deliver shopping experiences that our customers trust.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=661d2592b760" width="1" height="1" alt=""><hr><p><a href="https://medium.com/zulily-tech-blog/orchestrating-the-refunds-process-at-zulily-661d2592b760">Orchestrating the Refunds Process at Zulily</a> was originally published in <a href="https://medium.com/zulily-tech-blog">Zulily Tech Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Rapid Mobile App Updates at Scale, Speed and Consistency]]></title>
            <link>https://medium.com/zulily-tech-blog/rapid-mobile-app-updates-at-scale-speed-and-consistency-62fced2cb8a?source=rss-3b1066965ec------2</link>
            <guid isPermaLink="false">https://medium.com/p/62fced2cb8a</guid>
            <category><![CDATA[mobile-application]]></category>
            <category><![CDATA[mobile-development]]></category>
            <category><![CDATA[mobile]]></category>
            <dc:creator><![CDATA[Zulily Tech News]]></dc:creator>
            <pubDate>Mon, 30 Aug 2021 16:58:18 GMT</pubDate>
            <atom:updated>2021-09-01T23:13:41.788Z</atom:updated>
            <content:encoded><![CDATA[<h4><strong>By: Sophia Miyazaki, Senior Software Engineer, Zulily</strong></h4><p>Mobile is the future of retail. For online retailer Zulily, 74% of customer purchases are placed via mobile devices. How can an organization balance the agility of development with the reality of app marketplace bottlenecks? In this article, learn how Zulily’s tech team favors rapid back-end deployments over client updates and builds a reusable component system to scale its work while maintaining quality.</p><p>Keeping the app experience fresh for our customers is a Zulily core value. The need for constant change requires significant dev resources. Previously, daily requests for new features would take weeks and were not scalable, thus a way to add more features more efficiently was imperative. In order to address this need, a developer-led initiative started in 2015. The group had to solve the biggest problem at hand: releasing features and changes at a faster rate.</p><p>As Zulily grew, we built up our mobile team to keep up with customer needs, but we also needed to build up a framework to work more efficiently.</p><p>There were two problems to solve in order to release features and changes at a faster rate:</p><ol><li>Cut down on the app release bottleneck</li><li>Design and develop faster</li></ol><p>We started by looking closely at the feature screens we were building. We considered what part of this development could be carved out to deliver app updates to our user’s hands quickly.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tym9T5lelrYxcuw-YYDFoA.jpeg" /><figcaption><strong><em>Fig. 1</em></strong><em>: Examples of feature screens</em></figcaption></figure><p>Feature screens were always composed of stacked or a grid of items (Fig. 1). The industry trend was moving toward modular development, so thinking of one entire screen as multiple components felt like a natural approach. We posited that if we could break down any screen to be composed of reusable UI components that are controlled by the back-end application program interface (API), we could solve both pieces of the problem.</p><h3><strong>Problem #1 — Cut down on the app release bottleneck</strong></h3><p>Because Zulily can control the timing and frequency of our own back-end server deployments, if we could have the Mobile API handle content delivery, we could bypass the need for an app review from the Play Store (Android) or the App Store (iOS). This meant a reduction in the time it takes to roll out a new app version to customers.</p><p>For example, a Mobile API release takes only a few minutes to roll to 100% of our customers, as compared to an Android release taking approximately five days to get 70% of our users to update to the latest app version, and about a week for an iOS update to be circulated to users.</p><h3><strong>Problem #2</strong> <strong>— Design and develop faster</strong></h3><p>We also found that reusable UI components can be used like a plug-and-play system. Once UI and data models had survived a group review (Fig. 2 &amp; Fig. 3), we could document them well enough to be easily reused across teams.</p><p>We called these components “Sections”, and this was the beginning of the Zulily Sections Architecture.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*VXm397njSHPS7W-bAWzDtA.jpeg" /><figcaption><strong><em>Fig. 2:</em></strong><em> Whiteboard brainstorming session showing some different components that compose a screen</em></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/991/1*yGLoh33-1rR_JUc7H4WByw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZusgUaW0sn_PR0ywjliviA.png" /><figcaption><strong><em>Fig. 3</em></strong><em>: Example JSON payload generated by the Mobile API and the corresponding app display</em></figcaption></figure><p>In order to show how robust this system could be, let’s look at what can be handled by purely Mobile API deployments.</p><h3><strong>Content</strong></h3><p>We built custom Spannable functionality for Android and custom NSAttributedStrings for iOS to handle specific spans attributes that the Mobile API sends as part of the page payload.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/288/1*l8z_S8lMCaXPs0dxAIs7Dw.png" /></figure><p>We also expanded the Span functionality to handle a custom Zulily icon font, so instead of hardcoding an image resource into the app client, the Mobile API payload includes a span that maps to an icon, which can then be sized and stylized.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/248/1*fcVyMXYuLZHdH0-jgAX7qA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/314/1*4RDFmpCVn2h4jQJ5AGmQlQ.png" /><figcaption><strong><em>Fig. 4:</em></strong><em> Text copy, font size and color + font icons</em></figcaption></figure><p>In the Shipping Options example (Fig. 4), the text and the icons are sent to the clients in the Mobile API payload.</p><h3><strong>Layout</strong></h3><p><strong>Order of sections</strong>: The API output can control the order in which sections appear and the clients will display them accordingly. This allows us to personalize screens for customers or test variants easily.</p><p><strong>Multivariant testing</strong>: Logic around which sections show for a subset of customers that are part of an AB or Multivariant test is handled by the API.</p><p>Looking back at our sample mocks (Fig. 1), the Mobile API can change the order of the Search tabs and contents or can dictate where on the screen the Order button should be shown.</p><p>When content, styling, order, and show-or-display logic became handled on the server side, the expense of new features and iterative updates considerably decreased.</p><h3><strong>Next Steps</strong></h3><p>Zulily mobile development rallied around this Sections Architecture from 2015 until now, which allowed us to build fast, but we came across several pain points. While we reused many Sections, in order to keep the look of the app fresh over five years, many Sections were slight variations of past UI. This resulted in a lot of copy-paste Sections.</p><p>As the number of Sections increased, our original Section naming convention also became problematic. We couldn’t tell the difference between Header Variation 1 through Header Variation 9 from the names alone, unless we dug into the documentation or implementation.</p><p>To tackle these new problems, in early 2021 we began developing the next generation of the component architecture. We are aligning our approach with UX designers much earlier in the tech design process to develop a new “Design Language System”, where the designers would have a component library to build mocks from. Subsequently, engineers would use these components to compose new screens and layouts. These components would be even more granular. For example, individual Text Input fields or Buttons would have their own specs. Currently, the new Design Language System components are being incorporated inside of new Sections, where we have already seen examples of a <strong>50% reduction in engineering time</strong>.</p><p>By setting up an architecture where back-end server deployments provide an increasing amount of control over what is displayed on the Zulily app screens, we have increased the output of features and iterative changes while also cutting down on the time it takes to make them. But there’s always room for improvement. It’s imperative to continue to dig into the challenges our own architectures may form, so that we can keep getting better and faster, all while keeping our eye on the ball — and ensuring Zulily’s customers are happy.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=62fced2cb8a" width="1" height="1" alt=""><hr><p><a href="https://medium.com/zulily-tech-blog/rapid-mobile-app-updates-at-scale-speed-and-consistency-62fced2cb8a">Rapid Mobile App Updates at Scale, Speed and Consistency</a> was originally published in <a href="https://medium.com/zulily-tech-blog">Zulily Tech Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>