# Groupon Engineering

Tech blog from Groupon's Product & Engineering team - Medium

This is one page of public article previews, not the complete archive. Follow Next page to continue. Summaries are not the original full articles.

## Migrating to Optimizely at Groupon

DevFeed: [Migrating to Optimizely at Groupon](<https://devfeed.tech/articles/migrating-to-optimizely-at-groupon-26223.md>)

Original publisher: [Read original article](<https://medium.com/groupon-eng/migrating-to-optimizely-at-groupon-27fa56f86d12?source=rss----5c13a88f9872---4>)

Author: Andres Otarola

Published: 2022-09-12T21:17:34Z

Content type: article

Language: en

Sources: [Groupon Engineering](<https://devfeed.tech/sources/groupon-engineering-medium.md>)

Topics: [Data pipelines](<https://devfeed.tech/topics/data-pipelines.md>), [schema-evolution](<https://devfeed.tech/topics/schema-evolution.md>), [Tool](<https://devfeed.tech/topics/tool.md>), [Cache](<https://devfeed.tech/topics/cache.md>)

Tags: [article](<https://devfeed.tech/tags/article.md>), [base](<https://devfeed.tech/tags/base.md>), [based](<https://devfeed.tech/tags/based.md>), [button](<https://devfeed.tech/tags/button.md>), [can](<https://devfeed.tech/tags/can.md>), [cause](<https://devfeed.tech/tags/cause.md>), [central](<https://devfeed.tech/tags/central.md>), [challenges](<https://devfeed.tech/tags/challenges.md>), [client](<https://devfeed.tech/tags/client.md>), [cloud](<https://devfeed.tech/tags/cloud.md>), [compatibility](<https://devfeed.tech/tags/compatibility.md>), [component](<https://devfeed.tech/tags/component.md>), [components](<https://devfeed.tech/tags/components.md>), [customer](<https://devfeed.tech/tags/customer.md>), [data](<https://devfeed.tech/tags/data.md>), [data-driven](<https://devfeed.tech/tags/data-driven.md>), [details](<https://devfeed.tech/tags/details.md>), [dive](<https://devfeed.tech/tags/dive.md>), [easily](<https://devfeed.tech/tags/easily.md>), [either](<https://devfeed.tech/tags/either.md>)

### AI overview

Groupon describes migrating its in-house experimentation pipeline to Optimizely by replacing selected components while preserving backward compatibility and supporting both web and mobile. The existing pipeline separates data transport, which canonicalizes experiment impression events without knowing engine details, from the experiment engine, which evaluates experiments and provides active experiments to clients. In the mobile flow described, the app fetches a pre-bucketed list of experiments from a public API at launch; experiments are evaluated for the device without triggering impressions, and the results stay in memory for the app session. The excerpt says this mobile migration was not difficult and mentions a cache refresh policy, but cuts off before explaining it or the broader implementation.

### Source excerpt

Sharing experiences and learnings 🧪Photo by Alex Kondratiev on Unsplash Experimentation is a key indicator of whether a feature will be appealing to users, maybe fall flat, or worse: cause a negative impact on them. Here at Groupon, we have been data driven for years, so it is in our nature to A/B Test everything that we present to our customer base. The objective of this article is to give you some insights into how we migrated our existing experimentation pipeline onto Optimizely's solution by swapping certain components from our pipeline. Let's dive in. As mentioned, we already had an existing experimentation pipeline, which can be generally split into two main components: Data transport Experiment engine Generalised diagram of experiment eventsData transport This is the layer that is responsible for transporting the events of an experiment. "What is an impression event?" you may inquire. It's an interaction of a unique user with the treatment of an experiment. For Example, an experiment that presents either a red button or a green button to a user will be counted as an impression event with the chosen variation (either a red button or a green button). Such events are handed over to specialized channels which end up being cleaned up by a central process in charge of canonicalizing the events so upstream services can easily parse the data. It is important to emphasize that the Data transport layer is ignorant of the details of the experiment engine. Experiment engine This is the actual component that decides how an experiment is performing based on the events it is receiving, as well as providing the information of the currently available experiment to query from. (In our case this implementation varies per client; more on this later on.) Enter Optimizely When we decided to switch from our in-house experimentation solution to a cloud-based one, in this case, Optimizely, we immediately faced various challenges: Keep backward compatibility (Even more so for Mobile!)

## Exporting Node Modules in 2022

DevFeed: [Exporting Node Modules in 2022](<https://devfeed.tech/articles/exporting-node-modules-in-2022-26220.md>)

Original publisher: [Read original article](<https://medium.com/groupon-eng/exporting-node-modules-in-2022-e8fd97f0f5a9?source=rss----5c13a88f9872---4>)

Author: David Bushong

Published: 2022-09-01T20:01:47Z

Content type: tutorial

Language: en

Sources: [Groupon Engineering](<https://devfeed.tech/sources/groupon-engineering-medium.md>)

Topics: [CommonJS](<https://devfeed.tech/topics/commonjs.md>), [npm](<https://devfeed.tech/topics/npm.md>), [ECMAScript](<https://devfeed.tech/topics/ecmascript.md>), [TypeScript](<https://devfeed.tech/topics/typescript.md>), [Webpack](<https://devfeed.tech/topics/webpack.md>), [import](<https://devfeed.tech/topics/import.md>)

Tags: [babel](<https://devfeed.tech/tags/babel.md>), [commonjs](<https://devfeed.tech/tags/commonjs.md>), [compatibility](<https://devfeed.tech/tags/compatibility.md>), [import](<https://devfeed.tech/tags/import.md>), [javascript](<https://devfeed.tech/tags/javascript.md>), [node](<https://devfeed.tech/tags/node.md>), [npm](<https://devfeed.tech/tags/npm.md>), [typescript](<https://devfeed.tech/tags/typescript.md>), [webpack](<https://devfeed.tech/tags/webpack.md>)

### AI overview

This tutorial explains CommonJS and native ES Module exports in Node.js, including how modules can be imported across module systems. It also compares the output of Babel, Webpack, and TypeScript with native Node.js module behavior, highlighting compatibility concerns and TypeScript's non-standard export syntax.

### Source excerpt

Groupon maintains literally hundreds of NPM modules, both open source and internal. Many of these are consumed by our custom NodeJS-based middleware web layer we call "The Interaction Tier" (itself a topic for another post someday). As folks write new modules, a common question is "what's the best way to export things from our published modules to maximize compatibility?" -- and that is the topic of this post. First, some background and history: Flavors of exported modulesCommonJS in Node In the beginning, there was CommonJS: Here are 3 sample files with exports: // export1.js - exporting individual properties w/ CommonJS 'use strict';function foo() { } exports.foo = foo; exports.bar = 42;// export2.js - exporting a single object w/ CommonJS 'use strict';function baz() { } const garply = 88; module.exports = { baz }; // dynamically (conditionally!) exported! if (Math.random() > 0.5) module.exports.garply = garply;// export3.js - exporting a bare function w/ CommonJS 'use strict';function quux() { } module.exports = quux;// sometimes there are extra properties added to the bare function quux.yadda = 42; Those CommonJS exports can be imported either into other CommonJS files or into ES Module (more on that below) files: // import.js - importing CommonJS modules into a CJS file 'use strict';const { foo, bar } = require('./export1'); const { baz, garply } = require('./export2'); if (Math.random > 0.9) { // can also dynamically decide when to import const quux = require('./export3'); // can poke into properties tacked onto functions const { yadda } = require('./export3'); }// import.mjs - importing CommonJS modules into an ESM file // node is willing to turn exported objects into named exports import { foo, bar } from './export1.js'; import { baz, garply } from './export2.js'; import quux from './export3.js'; // cannot access added property "yadda" directly; hence: const { yadda } = quux; You can read more elsewhere, but the key features are: The module files are synchron

## Varnish to Redis Migration

DevFeed: [Varnish to Redis Migration](<https://devfeed.tech/articles/varnish-to-redis-migration-26226.md>)

Original publisher: [Read original article](<https://medium.com/groupon-eng/varnish-to-redis-migration-887ad6d805d2?source=rss----5c13a88f9872---4>)

Author: Ravikumar

Published: 2022-03-22T15:39:20Z

Content type: article

Language: en

Sources: [Groupon Engineering](<https://devfeed.tech/sources/groupon-engineering-medium.md>)

Topics: [Redis](<https://devfeed.tech/topics/redis.md>), [Cache](<https://devfeed.tech/topics/cache.md>), [cache-invalidation](<https://devfeed.tech/topics/cache-invalidation.md>), [Amazon ElastiCache](<https://devfeed.tech/topics/amazon-elasticache.md>), [cloud-migration](<https://devfeed.tech/topics/cloud-migration.md>), [Amazon Elastic Kubernetes Service](<https://devfeed.tech/topics/amazon-elastic-kubernetes-service.md>), [Cloud Architecture](<https://devfeed.tech/topics/cloud-architecture.md>), [Publish-subscribe pattern](<https://devfeed.tech/topics/pubsub.md>), [Concurrency](<https://devfeed.tech/topics/concurrency.md>)

Tags: [aws-eks](<https://devfeed.tech/tags/aws-eks.md>), [cache-invalidation](<https://devfeed.tech/tags/cache-invalidation.md>), [caching](<https://devfeed.tech/tags/caching.md>), [cloud-migration](<https://devfeed.tech/tags/cloud-migration.md>), [distributed-transaction](<https://devfeed.tech/tags/distributed-transaction.md>), [kafka](<https://devfeed.tech/tags/kafka.md>), [kubernetes](<https://devfeed.tech/tags/kubernetes.md>), [migration](<https://devfeed.tech/tags/migration.md>), [redis](<https://devfeed.tech/tags/redis.md>), [varnish](<https://devfeed.tech/tags/varnish.md>)

### AI overview

Groupon chose Redis with client-side caching for its place read service as it moved workloads to AWS EKS. The service handles over a billion calls daily, peaking at about 2 million requests per minute; four 40 GB Varnish servers deliver a 95% hit rate. Randomized 30-60 minute TTLs reduce simultaneous expirations, but expire still-valid keys and lower hit rate. The team considered Kubernetes-hosted Varnish, Guava with Kafka invalidation, and Redis. Varnish offered the best performance and request coalescing, but duplicates data across pods and needs frequent cache warming. Guava offers key-level invalidation, but raises dual-write consistency concerns; Groupon planned a transactional outbox job every 30 minutes to publish invalidations, while heap limits, duplication, and scalability remained concerns. Redis 6 client-side caching suited a workload where the top 1% of keys receive over 90% of traffic. The excerpt says this nearly matched Varnish latency; managed ElastiCache and horizontal scaling also supported the choice.

### Source excerpt

At Groupon, we are in the process of migrating our app workloads to AWS EKS. As part of the migration, we are also in the process of re-architecting our services to make them cloud & Kubernetes optimised. In this article, we will focus on the impact of cloud migration on Varnish caching at Groupon. For the uninitiated, Varnish is a high-performance reverse caching proxy. For simplicity, you can think of it as a general proxy such as HAProxy or Nginx with caching support so that it doesn't have to go to a backend service every time it receives a request. Internally, Varnish cache uses pthreads heavily(to the tune of 1000s) to serve the requests. In contrast, Redis is single-threaded. Varnish at Groupon & Place Read Service We have been using Varnish for many of our high-traffic services. These read-heavy services get traffic to the tune of millions of RPM. One such service is our place read service which is called on each & every deal page visit; it will be the focus of this article. Place read service stores all the locations a deal can be redeemed. Ex: Redemption location details of the deal https://www.groupon.com/deals/parent-big-littles-3 is highlighted below. Traffic pattern of place read service The service is called more than a billion times a day with peak traffic of ~2 million requests per minute. Current architecture (simplified) The traffic is served by a cluster of 4 Varnish servers (40GB RAM). The current Varnish hit rate is 95%. This is admittedly a low hit rate for a read-heavy service, the main reason being our TTL-based cache invalidation logic. Varnish cache invalidation We are using TTL-based cache invalidation. This usually leads to a problem where Varnish starts bombarding the backend service when most of the keys expire at the same time. Request coalescing is not very helpful when the unique keys count is in millions (which is the case with our service). As a workaround, we use randomised TTLs (between 30 to 60 mins) so that all the keys don't

## CX90: Rethinking, Redesigning and Reimplementing the Groupon User Experience

DevFeed: [CX90: Rethinking, Redesigning and Reimplementing the Groupon User Experience](<https://devfeed.tech/articles/cx90-rethinking-redesigning-and-reimplementing-the-groupon-user-experience-26219.md>)

Original publisher: [Read original article](<https://medium.com/groupon-eng/cx90-rethinking-redesigning-and-reimplementing-the-groupon-user-experience-59a03b6c306c?source=rss----5c13a88f9872---4>)

Author: Avleen Kaur

Published: 2021-12-22T16:57:17Z

Content type: article

Language: en

Sources: [Groupon Engineering](<https://devfeed.tech/sources/groupon-engineering-medium.md>)

Topics: [User Experience](<https://devfeed.tech/topics/user-experience.md>), [UI/UX Design](<https://devfeed.tech/topics/ui-ux-design.md>), [User interface design](<https://devfeed.tech/topics/ui-design.md>), [product analytics](<https://devfeed.tech/topics/product-analytics.md>), [product-experimentation](<https://devfeed.tech/topics/product-experimentation.md>), [browser](<https://devfeed.tech/topics/browser.md>), [Web](<https://devfeed.tech/topics/web.md>), [human centric design](<https://devfeed.tech/topics/human-centric-design.md>)

Tags: [agile](<https://devfeed.tech/tags/agile.md>), [categories](<https://devfeed.tech/tags/categories.md>), [design](<https://devfeed.tech/tags/design.md>), [desktop](<https://devfeed.tech/tags/desktop.md>), [discovery](<https://devfeed.tech/tags/discovery.md>), [engineering](<https://devfeed.tech/tags/engineering.md>), [home](<https://devfeed.tech/tags/home.md>), [inventory](<https://devfeed.tech/tags/inventory.md>), [ion](<https://devfeed.tech/tags/ion.md>), [mobile](<https://devfeed.tech/tags/mobile.md>), [modules](<https://devfeed.tech/tags/modules.md>), [product-analytics](<https://devfeed.tech/tags/product-analytics.md>), [search](<https://devfeed.tech/tags/search.md>), [text](<https://devfeed.tech/tags/text.md>), [user](<https://devfeed.tech/tags/user.md>), [user-experience](<https://devfeed.tech/tags/user-experience.md>), [user-intent](<https://devfeed.tech/tags/user-intent.md>), [user-interface-design](<https://devfeed.tech/tags/user-interface-design.md>)

### AI overview

Groupon's CX90 effort shifted its experience from a deal-first feed to category-led discovery, aiming to expose users to more of its inventory. The Ion team rebuilt Home, Browse, and Search for desktop and mobile: the homepage gained prominent category modules, while Browse and Search moved filters into a left-side navigation ordered by interaction data, with options expanded and selections kept visible during scrolling. The article reports a 3% lower bounce rate on desktop and mobile. In mobile Browse experiments, a basic template with subcategory tiles produced 7% more engagement and a 1% conversion lift; a more detailed template with filtering produced 12% more engagement and a 5% lift. Analytics also prompted replacing eight horizontally scrollable homepage tiles with a two-row layout after users mainly engaged with the first few. At the time described, CX90 was released in North America, with expansion to EMEA and APAC still planned.

### Source excerpt

All Grouponers who haven't been living under a rock this past year probably know what CX90 is. But for the few that missed out on this extraordinary project and the rest of the world, CX90 was a huge effort across the Product and Engineering Teams at Groupon where all of us came together to redesign our user experience and interface within a period of 90 days. It was an "all hands on deck" situation and probably one of the greatest collaborations we've seen across the organization where people from different backgrounds and areas of expertise joined forces to transform a simple vision into reality. Why? The old Groupon interface focused primarily on a deal feed that allowed our users to scroll through the entire depth of our inventory either for all types of deals or for specific categories of interest. We soon realized that our users were missing out on all the wonderful opportunities we had to offer. We wanted to help them discover new experiences and "Grab Life by the Groupon" by going out of their comfort zones. Our new interface solved exactly this problem. We changed our feed from being deal focused to category focused in order to understand user intent and preferences, expose them to the breadth of the inventory that we had to offer, and to help them explore experiences they could potentially enjoy if only they took a chance. And to be honest, we were also long overdue for a design refresh. 😅 What? Since I'm a part of Web Search and Discovery team, also internally known as Ion, I'll focus on my own experiences and that of my team. We were responsible for reimplementing the Groupon Home, Browse and Search pages both for desktop and mobile browsers. For the Homepage, we transitioned from a plain deal feed and deal carousels to bigger and bolder modules with engaging text and images that highlighted the different categories from our inventory, allowing users to explore specific deals that might interest them instead of aimlessly scrolling through a generic feed.

## Felix, the "DevOps" between designers and developers

DevFeed: [Felix, the "DevOps" between designers and developers](<https://devfeed.tech/articles/felix-the-devops-between-designers-and-developers-26221.md>)

Original publisher: [Read original article](<https://medium.com/groupon-eng/felix-the-devops-between-designers-and-developers-c2976572e9f?source=rss----5c13a88f9872---4>)

Author: Junmin Liu

Published: 2021-12-20T16:23:45Z

Content type: article

Language: en

Sources: [Groupon Engineering](<https://devfeed.tech/sources/groupon-engineering-medium.md>)

Topics: [Design system](<https://devfeed.tech/topics/design-system.md>), [DevOps](<https://devfeed.tech/topics/devops.md>), [CI/CD](<https://devfeed.tech/topics/cicd.md>), [Test automation](<https://devfeed.tech/topics/test-automation.md>), [designer developer handoff](<https://devfeed.tech/topics/designer-developer-handoff.md>), [Developer experience](<https://devfeed.tech/topics/developer-experience.md>), [software-development](<https://devfeed.tech/topics/software-development.md>)

Tags: [collaboration](<https://devfeed.tech/tags/collaboration.md>), [component](<https://devfeed.tech/tags/component.md>), [components](<https://devfeed.tech/tags/components.md>), [design](<https://devfeed.tech/tags/design.md>), [design-system](<https://devfeed.tech/tags/design-system.md>), [design-systems](<https://devfeed.tech/tags/design-systems.md>), [design-tokens](<https://devfeed.tech/tags/design-tokens.md>), [designer](<https://devfeed.tech/tags/designer.md>), [designers](<https://devfeed.tech/tags/designers.md>), [developer](<https://devfeed.tech/tags/developer.md>), [developers](<https://devfeed.tech/tags/developers.md>), [devops](<https://devfeed.tech/tags/devops.md>), [engineering](<https://devfeed.tech/tags/engineering.md>), [experience-design](<https://devfeed.tech/tags/experience-design.md>), [platforms](<https://devfeed.tech/tags/platforms.md>), [product-development](<https://devfeed.tech/tags/product-development.md>), [project-management](<https://devfeed.tech/tags/project-management.md>)

### AI overview

Groupon's Felix design system helps teams deliver some features in one sprint instead of the two to three sprints they previously took, according to the article. Started in 2020, Felix uses shared design tokens and reusable components across Groupon and LivingSocial, web and mobile, giving designers and developers a common vocabulary and reducing repeated UI clarification. Its decentralized contributors work in biweekly sprints. Automation turns token updates from a Google Spreadsheet into platform specific packages and pull requests; merged SVGs become icon components, documentation updates publish to the Docsite, and build checks flag UI values outside the token range. The Docsite gives design, engineering and product a shared reference. The article says Felix has reached Groupon's main web system, while design testing automation remains a work in progress.

### Source excerpt

-- Building Felix, the Design System for Groupon Several new features have been released on Groupon.com recently, such as the QR code in the navigation bar to download the app, and a banner carousel to display multiple banner messages within a single view. In the past, similar product features might take 2-3 sprints to complete, but now all of these features are developed and tested in a single sprint. The reason why we can finish the development and testing efficiently is mainly credited to Felix, the design system we're building for Groupon. What is a design system? Design Systems are not new to the world of product development. There are many successful cases in the industry, such as Google's Material Design, Microsoft's Fluent Design System, IBM's Carbon, Adobe's Spectrum, and so on. With their design systems, these companies have successfully changed the way they design and develop their software products by establishing a set of reusable components and usage guidelines to inform design and development. The result? Delivering faster and better product experiences to our customers, at scale. Felix, the early days In 2020, Groupon's consumer experience design and engineering teams began partnering to bring to life a comprehensive design system-now named Felix-to be used throughout Groupon's many brands, platforms, and products. Initially, I believed a design system to be simply a set of design specifications and component libraries -- an unoriginal concept. After diving into the architectural design and project management of Felix's development with Lead Product Designer, Michelle Witkowski, I realized Felix's true potential: a fundamental change in collaboration between designers and developers. This year, we have built out the initial implementation of Felix, and several of our development teams have begun leveraging it. Through the use of design tokens within Felix, we have developed themes to support Groupon's multiple brands (Groupon and LivingSocial) and plat

## The Responsibility of Tech: Reflections from Grace Hopper Celebration

DevFeed: [The Responsibility of Tech: Reflections from Grace Hopper Celebration](<https://devfeed.tech/articles/the-responsibility-of-tech-reflections-from-grace-hopper-celebration-26225.md>)

Original publisher: [Read original article](<https://medium.com/groupon-eng/the-responsibility-of-tech-reflections-from-grace-hopper-celebration-bc2a4c84775f?source=rss----5c13a88f9872---4>)

Author: Nida Pervez

Published: 2021-11-11T15:33:52Z

Content type: opinion

Language: en

Sources: [Groupon Engineering](<https://devfeed.tech/sources/groupon-engineering-medium.md>)

Topics: [Web Accessibility (a11y)](<https://devfeed.tech/topics/web-accessibility.md>), [software-development](<https://devfeed.tech/topics/software-development.md>), [inclusive design](<https://devfeed.tech/topics/inclusive-design.md>), [Machine learning](<https://devfeed.tech/topics/machine-learning.md>)

Tags: [about](<https://devfeed.tech/tags/about.md>), [ai](<https://devfeed.tech/tags/ai.md>), [attention](<https://devfeed.tech/tags/attention.md>), [behavior](<https://devfeed.tech/tags/behavior.md>), [but](<https://devfeed.tech/tags/but.md>), [can](<https://devfeed.tech/tags/can.md>), [career](<https://devfeed.tech/tags/career.md>), [celebration](<https://devfeed.tech/tags/celebration.md>), [college](<https://devfeed.tech/tags/college.md>), [company](<https://devfeed.tech/tags/company.md>), [computing](<https://devfeed.tech/tags/computing.md>), [conference](<https://devfeed.tech/tags/conference.md>), [contributions](<https://devfeed.tech/tags/contributions.md>), [days](<https://devfeed.tech/tags/days.md>), [development](<https://devfeed.tech/tags/development.md>), [grace-hopper](<https://devfeed.tech/tags/grace-hopper.md>), [hopper](<https://devfeed.tech/tags/hopper.md>), [reflections](<https://devfeed.tech/tags/reflections.md>), [responsibility](<https://devfeed.tech/tags/responsibility.md>), [tech](<https://devfeed.tech/tags/tech.md>)

### AI overview

The author argues that responsibility for ethical and inclusive technology rests with individual contributors as well as companies. They recount Timnit Gebru's account of being dismissed from Google's ethical AI team after refusing to withdraw from a paper warning about large language models, and Kathy Pham's examples of biased or harmful technology, including facial recognition failures, uneven same-day delivery, and Google Photos mislabeling Black people. Haben Girma's talk prompted the author to view ableism, rather than disability, as a barrier and to examine hiring and product accessibility. At Groupon, the author reports accessibility scores of 100 on mobile and 94 on desktop, and suggests checking the product with different screen readers. They also point to simple inclusion practices, such as describing images in presentations.

### Source excerpt

The end of September was marked by one of the most exciting events for women in technology: Grace Hopper Celebration of Women in Computing (GHC). For those who do not know, GHC is a yearly conference that highlights women's contributions/involvement in different aspects of the tech industry. In a field that is overwhelmingly dominated by men, it's important to acknowledge the feats of women which otherwise might be drowned out. The week-long conference is packed with speakers, panels, interactive sessions, networking events, and a career fair. In my college days most of my attention admittedly was on the career fair -- but this year I had the opportunity to attend virtually through Groupon, a platinum sponsor of the conference. This year's theme was #DareTo, and I saw that play out in many of the talks, but the sessions that impacted me the most dared me to take responsibility for tech I produced. Three talks that especially left an impression on me were Dr.Timnit Gebru's keynote, Integrating Ethics and Responsibility in the Product Development Cycle by Kathy Pham, and Disability is an Opportunity for Innovation by Haben Girma. Each speaker speaks on the effect of taking responsibility (or lack thereof) for one's technological feats. Dr.Gebru's talk highlighted how large tech corporations can take advantage of freedom for the sake of technological "advancement". In her talk, Gebru explained in detail about her dismissal from the co-lead position of Google's ethical AI team. There were two main aspects to this song that I understood. One being the sexism she faced and the other was the blatant unethical behavior of Google. Gebru addresses the inequality between men and women in the workforce at Google and highlighted that she was fired for doing the right thing, whereas many of her male counterparts could do ethically wrong things and still get by. As a company that is an Emerald sponsor (highest degree of sponsorship) of GHC, she asked what kind of message does that

## Pinion -- The Load Framework Part-2

DevFeed: [Pinion -- The Load Framework Part-2](<https://devfeed.tech/articles/pinion-the-load-framework-part-2-26224.md>)

Original publisher: [Read original article](<https://medium.com/groupon-eng/pinion-the-load-framework-part-2-e6a47586e7be?source=rss----5c13a88f9872---4>)

Author: Saurabh Jain

Published: 2021-10-29T16:50:24Z

Content type: article

Language: en

Sources: [Groupon Engineering](<https://devfeed.tech/sources/groupon-engineering-medium.md>)

Topics: [data lake](<https://devfeed.tech/topics/data-lake.md>), [Framework](<https://devfeed.tech/topics/framework.md>), [Data Quality](<https://devfeed.tech/topics/data-quality.md>), [Transactions](<https://devfeed.tech/topics/transactions.md>), [Streaming](<https://devfeed.tech/topics/streaming.md>), [Open Source](<https://devfeed.tech/topics/open-source.md>)

Tags: [acid](<https://devfeed.tech/tags/acid.md>), [audit](<https://devfeed.tech/tags/audit.md>), [aws](<https://devfeed.tech/tags/aws.md>), [cloud](<https://devfeed.tech/tags/cloud.md>), [data-validation](<https://devfeed.tech/tags/data-validation.md>), [delta-lake](<https://devfeed.tech/tags/delta-lake.md>), [deltalake](<https://devfeed.tech/tags/deltalake.md>), [hdfs](<https://devfeed.tech/tags/hdfs.md>), [logging](<https://devfeed.tech/tags/logging.md>), [optimization](<https://devfeed.tech/tags/optimization.md>), [reporting](<https://devfeed.tech/tags/reporting.md>), [s3](<https://devfeed.tech/tags/s3.md>), [schema](<https://devfeed.tech/tags/schema.md>), [science](<https://devfeed.tech/tags/science.md>), [spark](<https://devfeed.tech/tags/spark.md>), [streaming](<https://devfeed.tech/tags/streaming.md>), [transactions](<https://devfeed.tech/tags/transactions.md>)

### AI overview

This second post in the Pinion -- The Load Framework series explains how Pinion extends Apache Delta Lake APIs for slowly changing dimension operations. It covers data validation, compaction, auditing, streamlined logging, and chained APIs, and introduces Delta Lake capabilities such as ACID transactions, schema enforcement, batch and streaming interfaces, and time travel.

### Source excerpt

Pinion -- The Load Framework Part-2 This post is the 2nd part of the "Pinion -- The Load Framework" series. In case you have not read the 1st post, you can read it here. In this post, we are going to cover the following topics. How does Pinion use Delta Lake for SCD operations? Small file problem with Delta Lake and its resolution. Before we dive into the topics of this post, let's look at the definition of DeltaLake to set the context right. Apache Delta Lake - Apache Delta Lake is an open-source framework that enables the addition of ACID transactions support to a new data lake or an existing data lake created on top of S3, GCS, and HDFS. In addition to this, it provides other features such as scalable metadata handling, unified interface for both batch and streaming application, schema enforcement, time travel, and a rich interface of APIs to enable complex use cases like change-data-capture (CDC) and slowly-changing-dimension (SCD) operations. To keep the post concise and to the point, I won't go into much detail here about Delta Lake, since there is already great documentation available about it, that you can read it here. How does Pinion use Delta Lake for SCD operations? - Apache Delta Lake provides a rich set of APIs to handle slowly-changing dimensions, however, those APIs were not enough alone to build the features that we want to have in The Pinion Framework. So, we decided to enrich the APIs provided by Delta Lake by adding the following features to it: Data Validation Compaction Audit Streamlined logging infrastructure to make the data engineer's life easier during debugging of a failed job Chained APIs Let's dive a little further into the features that we had listed above. Data Validation -- By default, schema enforcement is enabled in Pinion for all the APIs where we have a need of inserting rows from source data(LRFs) into the target table. In case of a schema mismatch, Pinion raises an error and stops processing of further stages. It ensures the data a

## 3 Guidelines to Reduce Implementation Flaws

DevFeed: [3 Guidelines to Reduce Implementation Flaws](<https://devfeed.tech/articles/3-guidelines-to-reduce-implementation-flaws-26217.md>)

Original publisher: [Read original article](<https://medium.com/groupon-eng/3-guidelines-to-reduce-implementation-flaws-958511e2a82f?source=rss----5c13a88f9872---4>)

Author: Pratik Shekhar

Published: 2021-09-03T17:06:05Z

Content type: article

Language: en

Sources: [Groupon Engineering](<https://devfeed.tech/sources/groupon-engineering-medium.md>)

Topics: [implementation](<https://devfeed.tech/topics/implementation.md>), [Programming](<https://devfeed.tech/topics/programming.md>), [Unit testing](<https://devfeed.tech/topics/unit-testing.md>), [Software Testing](<https://devfeed.tech/topics/software-testing.md>), [code beautification](<https://devfeed.tech/topics/code-beautification.md>), [Boilerplate](<https://devfeed.tech/topics/boilerplate.md>)

Tags: [code-quality](<https://devfeed.tech/tags/code-quality.md>), [coding](<https://devfeed.tech/tags/coding.md>), [coding-style](<https://devfeed.tech/tags/coding-style.md>), [culture](<https://devfeed.tech/tags/culture.md>), [easier](<https://devfeed.tech/tags/easier.md>), [function](<https://devfeed.tech/tags/function.md>), [functions](<https://devfeed.tech/tags/functions.md>), [guideline](<https://devfeed.tech/tags/guideline.md>), [guidelines](<https://devfeed.tech/tags/guidelines.md>), [implementation](<https://devfeed.tech/tags/implementation.md>), [quality](<https://devfeed.tech/tags/quality.md>), [repeat](<https://devfeed.tech/tags/repeat.md>), [responsibility](<https://devfeed.tech/tags/responsibility.md>), [reuse](<https://devfeed.tech/tags/reuse.md>), [review](<https://devfeed.tech/tags/review.md>), [rules](<https://devfeed.tech/tags/rules.md>), [scope](<https://devfeed.tech/tags/scope.md>), [software-development](<https://devfeed.tech/tags/software-development.md>), [tech](<https://devfeed.tech/tags/tech.md>), [test](<https://devfeed.tech/tags/test.md>), [unit-testing](<https://devfeed.tech/tags/unit-testing.md>)

### AI overview

The excerpt recommends keeping functions focused on one responsibility: split functions with multiple responsibilities into smaller ones so their logic is easier to implement, test, and reuse. It also begins a guideline about avoiding repetition and writing readable code, saying readability helps people follow and review code. The excerpt ends before explaining that guideline further and does not provide the third guideline.

### Source excerpt

3 Rules/Guidelines to Reduce Implementation Flaws When I hear the word "rule", I think back to grade school. "Be quiet when the teacher is talking." "No interrupting, you must raise your hand with a question." But what makes this different than following a set of guidelines? There was always that one kid who never listened to the rules. In coding, we may talk about rules, whereas in reality, we're following some sort of guideline. Think of guidelines as a scene from the Ghostbusters movie when Bill Murray told Sigourney Weaver that he never sleeps with a possessed woman. Then she kissed him and he said, "Actually, this is more of a guideline than a rule." A standard guideline is important because it helps improve the existing code quality, a guideline also makes it more readable and also somewhere sets the team culture. Over the last few years of gaining more experience in coding, rules have changed into guidelines; however, there are three top guidelines I always follow. After being curious if other colleagues follow any specific coding guidelines, I reached out to several within Groupon and companies like Google, Morgan Stanley, Apple, Lutron, L Brands, Capitol One, GoPuff, and Vertex Inc. Specifically, I asked if they follow any guidelines that reduce implementation flaws. To not much surprise, we all follow similar guidelines. Take a moment and ask yourself, do you have any specific rules or guidelines? We may all have similar guidelines that we follow, mine are listed below- Guideline 1 -> Break down your functions My first rule is merely following the single responsibility principle. A function should be responsible for doing one specific thing. If a function has too many responsibilities, then it should be broken down into multiple smaller functions. Its logic is limited in scope, which makes it easier to implement and test its end-to-end functionality. A friend of mine once said that "If the function you end up unit testing requires tests for multiple separat