<?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[trivago tech blog - Medium]]></title>
        <description><![CDATA[With employees from all over the world, trivago is an international IT company operating on a very large scale to provide the best hotel search possible. This blog is the ideal place to talk about our ideas, our prototypes and our tech stack which make our vision become reality. - Medium]]></description>
        <link>https://medium.com/trivago-tech?source=rss----105836bc7635---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>trivago tech blog - Medium</title>
            <link>https://medium.com/trivago-tech?source=rss----105836bc7635---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 22:09:07 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/trivago-tech" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Rethinking the Next-gen Analytics Web App at trivago]]></title>
            <link>https://medium.com/trivago-tech/rethinking-the-next-gen-analytics-web-app-at-trivago-88a0b0ea29d0?source=rss----105836bc7635---4</link>
            <guid isPermaLink="false">https://medium.com/p/88a0b0ea29d0</guid>
            <category><![CDATA[web-app-development]]></category>
            <category><![CDATA[business-intelligence]]></category>
            <category><![CDATA[frontend]]></category>
            <dc:creator><![CDATA[trivago]]></dc:creator>
            <pubDate>Tue, 09 Feb 2021 14:46:17 GMT</pubDate>
            <atom:updated>2021-02-09T14:45:58.985Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*R-TwjjTcfDePdI_m.png" /></figure><p><em>How trivago Frontend Engineering revamped the company’s Business Intelligence web application.</em></p><p>After almost a decade, we decided to rebuild our in-house Business Intelligence web application to better support the organization. It is always challenging to replace software with a long history and a high degree of complexity. Nevertheless, we successfully completed the project because we fundamentally challenged and re-thought all aspects of the project.</p><p>The result at the end of the revamp was extraordinary. We were able to build a reliable product that is user-friendly and capable of data processing at scale. We were able to ship our first stable version within half of the time budget and sunset the legacy application.</p><h3>Story Time</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*TGqLVLoE-eW4uPPj.png" /></figure><p>Since the very beginning, trivago maintained its own analytics application for A/B testing (We call them C-tests). This application lists all running tests and their status including exposure, client distribution, conversion rate, and a lot more. It is a critical internal tool for every developer and product team at trivago.</p><p>The Frontend technology landscape has evolved since we started. We created application on top of <a href="https://jquery.com/">jQuery</a> almost ten years ago. Throughout the years, we have extended the capabilities by adding more user control and metrics to look at the data from different perspectives. It was an amazing accomplishment to scale the application the way we did and it had supported trivago well.</p><p>However, it became a complex and critical point of failure: The legacy code piled up and made it an unpleasant application to maintain. Some long-lasting challenges include the following.</p><ul><li>There was no regression testing in place.</li><li>There were no clear data flow and datatype definitions that led to high unpredictability.</li><li>There were UI elements generated from the Backend. The Frontend had no control over those elements.</li><li>There was no design system in place to provide a cohesive user experience.</li></ul><p>We recognized that there was a need to rebuild the application. It was clear to us that to undertake the project, we could not simply start building. We needed to focus on the core problems and find a creative approach to not only meet the timeline but also set up a strong foundation for the next decade to come.</p><h3>Rethink Began</h3><p>We believe that there were a few key questions that we raised that fundamentally changed our development mindset and set us up for success:.</p><ul><li>What does UX research mean to a pure engineering team?</li><li>What is the relationship between data and UI components?</li><li>How do we best utilize our engineering expertise to create a thoughtful user experience?</li></ul><h3>Rethink User Journeys</h3><p>Our engineering approach is human-centric.</p><p>Why does it matter to an engineering team without designers or UX researchers? We believe that analyzing user journey helps us crystalize concepts and blueprint implementation plans more effectively.</p><p>We laid out user stories as the foundation of our development. By identifying who our audiences were, what their intentions were, and how they extracted information from the application, we are able to design a solid system that supports our users’ daily workflows.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*1QWZTyQiDqk_4kq9.png" /></figure><p>For example, we decluttered the application and added impactful features based on our user research. We consolidated all the data controllers into a cohesive user interaction. It yielded more room to capitalize on an enhanced data table that is engineered to display years of historical data at once. The table also offered personalization for filtering, sorting, grouping, column reordering, and more customizable adjustments to cater to the users’ needs.</p><p>Furthermore, we fine-tuned our <a href="https://en.wikipedia.org/wiki/Behavior-driven_development">Behavior-driven development</a> (BDD) approach to create clarity across functions in the team. We were able to translate user stories into state diagrams, acceptance criteria, and collection of E2E tests, integration tests, and unit tests.</p><p>Translating user journeys into engineering requirements helped us stay on target and focused throughout the project. It greatly reduced revisions and improved our development velocity.</p><h3>Rethink Architecture</h3><p>“How do we rebuild effectively?”</p><p>Our primary focus was to engineer a data-driven application that is reliable, scalable, and human-centric while sustaining continuous releases. To achieve the productivity we needed, we introduced a few fundamental changes to our tech stack:</p><ul><li>Introducing a new multi-thread release pipeline that offered comprehensive automation and analysis.</li><li>Integrating E2E testing, integration testing, and unit testing with <a href="https://www.cypress.io/">Cypress</a>, <a href="https://jestjs.io/">Jest</a>, and <a href="https://testing-library.com/">Testing Library Frameworks</a> that helped us guard against regressions.</li><li>Shifting to <a href="https://www.typescriptlang.org/">TypeScript</a> that allowed us to define data types and prevent unexpected runtime errors.</li><li>Deploying a well-defined design system in <a href="https://reactjs.org/">React</a> that created a cohesive aesthetic and a collection of components for reusability.</li></ul><p>All this groundwork accelerated our shippability and provided us with a great framework to follow.</p><p>Knowing the scale of our datasets, we aim for a performant architecture that can accommodate a large number of data entries while providing users with a smooth experience when searching, filtering, sorting, and rearranging data.</p><p>Apart from the ability of handling data, we wanted to create a highly scalable architecture and aimed to provide a clean structure and clear data flow to our engineers.</p><p>We adopted a <strong>store-first</strong> approach that puts state management at the center of the application. We created a single-directional data flow and defined a clear relationship between the data layer and the user interface.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*TZSGoYSvP4ggUSvE.png" /></figure><p><strong>Store</strong> was the centerpiece of our application. We used a <a href="https://redux.js.org/">Redux</a> store to host the application state and all the datasets that we acquired from headless resources. It was responsible for dispatching signals for side effects, such as fetching data or reading browser properties.</p><p>We structured our <a href="https://reactjs.org/">React</a> components as <strong>Foundational Components</strong> and <strong>Logical Components</strong>. We defined Foundational Components as <strong>leaf presentational components</strong> in a component tree. They were the visual building blocks for the application. They were pure components without business logic and their prop types are defined independently from the dataset. We built and tested them independently, and documented them with <a href="https://storybook.js.org/">Storybook</a>. The Logical Components were the components that possessed business logic and layouts. They had the freedom to connect to the store.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*6ntHuwDS_zBbeX6c.png" /></figure><p>To connect components with the dataset in the store, we applied <a href="https://github.com/reduxjs/reselect">memoized selectors</a> to transform raw data into the data types that components can consume while preventing unnecessary rendering.</p><p>To make sure the application is performant on extra-large monitors, we utilize the <a href="https://reactjs.org/docs/optimizing-performance.html#virtualize-long-lists">virtualization</a> technique for large lists and grids.</p><p><a href="http://reactivex.io/">Observable streams</a> were deployed to observe user interactions and to perform all side effects that react to the user intents. To optimize the performance, we integrated a caching layer in the browser for responses from resource servers.</p><h3>Rethink Observables</h3><p>“Can we use observables to create a thoughtful user experience?”</p><p>Observables are great for performing side effects like data fetching. Here is a typical <a href="https://redux-observable.js.org/">Epic</a> example in our application. It fetches data from a service with fetching criteria in the state and information in the URL pathname.</p><p>If you would like to learn more about redux-observable and how to test Epics, <a href="https://itnext.io/better-marble-test-70c7676a1e2">I wrote an article that takes you through the methods and reasoning behind them</a>.</p><p>Now, if you look closer at observables, what makes them suitable for fetching data?</p><blockquote><em>It is the ability to </em><strong><em>describe behaviors over time</em></strong><em>.</em></blockquote><p><strong>Knowing that the user events in browsers are asynchronous, we applied observables to describe user interactions in components</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/0*S5WzMwfw3dJGUlWm.gif" /></figure><p>Take our bottom navigation bar for example: We utilized observables with React Hooks to describe the interaction between the virtualized list item and the navigation bar for mobile viewports. By observing the list item number, we created a subtle yet meaningful microinteraction to hide and show the navigation bar when users selects a list item. This subtle animation gave our users a clear visual feedback that indicated the change of navigation.</p><pre>import { useObservable } from &quot;rxjs-hooks&quot;; /** * We capture every click on the list item as an input signal and apply the * following steps to create a hide-and-show microinteraction animation. * 1. Use the list item&#39;s index number as an input signal. * 2. Create a timer that ticks every 300ms. * 3. Take the first 2 ticks. * 4. Combine the ticks with the input signal. * 5. Output &#39;isHidden = true&#39; on the first tick. * 6. Output &#39;isHidden = false&#39; on the second tick if we selected a list item. * 7. Output &#39;isHidden = true&#39; on the second tick if we unselected a list item. */ function useNavigationHideState( expandedItemNumber: number ) { const isHidden = useObservable&lt;boolean , number []&gt;( (input$) =&gt; input$.pipe( mergeMap((input) =&gt; timer(0, 300).pipe( take(2), withLatestFrom(input$), map(([tick, [itemNumber]]) =&gt; tick === 0 ? true : itemNumber === - 1 ) ) ) ), true, [expandedItemNumber] ); return isHidden; }</pre><h3>To Sum Up</h3><p>We were able to deliver a high-quality product with merely half the time budget.</p><p>By breaking down the user stories, we were able to look at things from a fresh perspective. The clarity enabled the team to design a highly scalable and performant application with a structured and thoughtful user experience.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*HDffO2v24EWx2XCp.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*FQG5UHj7wUfEkoCr.png" /></figure><p>All of this allowed us to add features like dark mode, personalization, and a responsive layout for mobile users with the architecture and development methodology in place. To continue testing and improve the scalability, we will be adding more horizontal features in the future.</p><p>We hope that this gives you some inspiration for building data-driven web applications with agility.</p><p><em>Originally published at </em><a href="https://tech.trivago.com/2021/02/09/rethinking-the-next-gen-analytics-web-app-at-trivago/"><em>https://tech.trivago.com</em></a><em> on February 9, 2021.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=88a0b0ea29d0" width="1" height="1" alt=""><hr><p><a href="https://medium.com/trivago-tech/rethinking-the-next-gen-analytics-web-app-at-trivago-88a0b0ea29d0">Rethinking the Next-gen Analytics Web App at trivago</a> was originally published in <a href="https://medium.com/trivago-tech">trivago 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[trivago tech tips — #14 Selenium Edition]]></title>
            <link>https://medium.com/trivago-tech/trivago-tech-tips-14-selenium-edition-d30885d3d583?source=rss----105836bc7635---4</link>
            <guid isPermaLink="false">https://medium.com/p/d30885d3d583</guid>
            <category><![CDATA[test-automation]]></category>
            <category><![CDATA[tech-tips]]></category>
            <category><![CDATA[selenium]]></category>
            <dc:creator><![CDATA[trivago]]></dc:creator>
            <pubDate>Tue, 26 Jan 2021 07:21:21 GMT</pubDate>
            <atom:updated>2021-01-26T07:21:19.119Z</atom:updated>
            <content:encoded><![CDATA[<h3>trivago tech tips — #14 Selenium Edition</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*KWDs5kAnNSMvSu7K.png" /></figure><p>New week, new topic! This week we’re sharing our tips for using <a href="https://www.selenium.dev/about/">Selenium</a> — a tool used to automate web browsers and which we use in our end-to-end tests at trivago. You know the drill, we’ll be adding a new tip every day, so keep an eye out. If you’re a frequent user with some tips of your own to share, let us know in the comments below!</p><h3>Tip #1: Scroll to the top or bottom of the page</h3><p>Sometimes it can be helpful to navigate to the top or bottom on a website under test, especially if this triggers other elements such as floating headers.</p><p>To accomplish this, you can use Selenium’s JavascriptExecutor combined with JavaScript’s <strong>scrollTo</strong> method. This method takes an x and a y position and scrolls to those coordinates.</p><p>When scrolling to the top of the page, you just pass 0,0 as coordinates:</p><pre>// Top of the page<br>((JavascriptExecutor) driver).executeScript(<br>  &quot;<strong>window.scrollTo(0, 0);</strong>&quot;);</pre><p>When scrolling to the bottom, the y coordinate is determined by the current height of the website’s body content:</p><pre>// Bottom of the page<br>((JavascriptExecutor) driver).executeScript(<br>  &quot;<strong>window.scrollTo(0, </strong>document.body.scrollHeight<strong>);</strong>&quot;);</pre><h3>Tip #2: Log the current session ID</h3><p>Selenium generates a unique session ID for every browser it interacts with. Internally, this id is used to only send commands to this specific browser — this is especially important when executing tests in parallel. For debugging purposes, it is helpful to know this ID.</p><p>Since Selenium’s generic WebDriver class does not have a method to get the session ID directly, it can be cast to RemoteWebDriver to retrieve it.</p><p>Since the return value is of type SessionId, you additionally need to call its toString method to get the session ID string.</p><pre><strong>((RemoteWebDriver) driver).getSessionId()</strong>.toString()<strong>;</strong></pre><h3>Tip #3: Use a different page load strategy</h3><p>For some Selenium tests, it might not be necessary to completely load a website including all images and stylesheets, especially if a test only needs to check the contents of specific elements.</p><p>Since the default page load strategy (called normal) always waits for a full load of the page (meaning that the document ready state has the value complete), using the alternative eager strategy can speed up your test (internally it waits for the DOMContentLoaded event):</p><pre>options.setPageLoadStrategy(PageLoadStrategy.EAGER);<br>WebDriver driver = new ChromeDriver(options);<br>driver.get(&quot;https://www.trivago.de&quot;);</pre><p>There even is a third one called none that only waits until the website is downloaded but not parsed — this should be used with caution, though.</p><h3>Tip #4: Use robust fluent waits</h3><p>Waits are one of the most important parts of Selenium. Explicit waits should be avoided at all costs (e.g. “Wait for 2 seconds”) as they most likely introduce flakiness.</p><p>The “normal” WebDriverWait is much better since it allows waiting until a specific condition is met. It lacks customization options though: every 500 milliseconds it checks if the condition it should wait for is met and it’s not easy to deal with certain exceptions that can occur during this period.</p><p>FluentWait is more flexible. It allows you to customize your web driver wait timeout and polling frequency as well as ignore certain exceptions.</p><pre>Wait&lt;WebDriver&gt; fluentWait = new FluentWait&lt;WebDriver&gt;(driver)<br>  .withTimeout(Duration.ofSeconds(20))<br>  .pollingEvery(Duration.ofSeconds(1))<br>  .ignoring(NoSuchElementException.class);</pre><h3>Tip #5: Search web elements near others</h3><p>Selenium 4, which is currently in Alpha 7, introduced a concept that was initially called “Friendly Locators” and is now known as “Relative Locators”. Those allow you to locate elements in relation to another known element.</p><p>You can search for elements</p><ul><li>left of (leftOf(..))</li><li>right of (rightOf(..))</li><li>above (above(..))</li><li>below (below(..)) or</li><li>near (near(..))</li></ul><p>another element.</p><p>All these methods can also be chained in order to perform more detailed searches such as “to the left and below”.</p><p>Here is an example that locates a tag to the left of a specific image (specified by the id `trivago-logo`):</p><p>driver.findElement(withTagName(&quot;a&quot;).toLeftOf(By.id(&quot;trivago-logo&quot;));</p><p>Please note that all relative locator methods work in conjunction with Selenium’s standard By locators or specific WebElements which makes them really flexible!</p><p>And it’s a wrap! 🌮</p><p>All credit to Benjamin Bischoff, Test Automation Engineer at trivago, for compiling our Selenium tips for the week!</p><p>More tips coming soon in this space.</p><p><em>Originally published at </em><a href="https://trivago.substack.com/p/trivago-tech-tips-14-selenium-edition"><em>https://trivago.substack.com</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d30885d3d583" width="1" height="1" alt=""><hr><p><a href="https://medium.com/trivago-tech/trivago-tech-tips-14-selenium-edition-d30885d3d583">trivago tech tips — #14 Selenium Edition</a> was originally published in <a href="https://medium.com/trivago-tech">trivago 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[Keeping up the Open Source promise for 2021]]></title>
            <link>https://medium.com/trivago-tech/keeping-up-the-open-source-promise-for-2021-89af9dd5e026?source=rss----105836bc7635---4</link>
            <guid isPermaLink="false">https://medium.com/p/89af9dd5e026</guid>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[open-source-intelligence]]></category>
            <category><![CDATA[open-source-software]]></category>
            <dc:creator><![CDATA[trivago]]></dc:creator>
            <pubDate>Tue, 26 Jan 2021 07:19:31 GMT</pubDate>
            <atom:updated>2021-01-26T07:18:51.078Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*3gwsA4Zcb7FUmy0e.png" /></figure><p>COVID-19 has impacted the travel industry very severely. Even in these hard times, trivago remains committed to contributing to open source. As a tech company working on large-scale projects, we feel a responsibility towards supporting the open source community.</p><h3>webpack, Preact and the CNCF</h3><p>This year we will continue supporting projects and organisations that are having a major impact on the products we build and the happiness of our engineers who use them on a daily basis. These projects are <a href="https://webpack.js.org/">webpack</a>, <a href="https://preactjs.com/">Preact</a> and the <a href="https://www.cncf.io/">Cloud Native Computing Foundation</a>.</p><p><a href="https://webpack.js.org/">webpack</a> has been a key component of our frontend toolchain for the past 5 years. Either being directly configured for our needs or powering frameworks that are used across trivago projects. webpack has taken care of asset bundling, development experience, build performance and so much more for our projects. All of these are getting better by the day thanks to the huge community behind the project. We want to support the community to keep this vigour going.</p><p><a href="https://preactjs.com/">Preact</a> has gained amazing traction in the past couple of years in the frontend view layer framework space, and for all the right reasons. Excellent rendering performance, tiny size and compatibility with the large React ecosystem are just some of the reasons Preact captured our attention. At trivago, we have already adopted Preact for key projects and initiatives. Vibrant community, clear project goals and a great core team are the things that we want to help flourish even more.</p><p>The <a href="https://www.cncf.io/">CNCF</a> is the hosting organisation of many of the OSS tools we use to build our applications. These tools include Kubernetes, gRPC, Prometheus, Helm, envoy, CoreDNS, OpenTracing, and more. As members of these communities, and because we benefit so much from these projects, we want to support the foundation and thus play a more active role in the community.</p><h3>A healthy relationship means giving back</h3><p>As critical as open source software is for our products and services, we are really proud to also contribute back as much as possible to the community. Aside from financial support, we always consider sharing our solutions from our daily struggles and it makes us really happy to frequently release open source libraries and patches on the projects we use. A recent example of that is the release of the <a href="https://github.com/trivago/preact-hooks-testing-library">preact-hooks-testing-library</a> which is now integrated in the official <a href="https://github.com/testing-library">testing-library</a> project.</p><p>That is exactly what we are aiming to do for 2021 and the years to come. By closely collaborating with the maintainers of these projects and interacting with the communities, we are keeping our promise of giving back to open source as much as possible.</p><h3>Our commitment for 2021</h3><p>This year we will invest in both Preact and webpack through <a href="https://opencollective.com/">Open Collective</a></p><ul><li>$24.000 for Preact</li><li>$40.000 for webpack</li></ul><p>and maintain our <a href="https://tech.trivago.com/2020/04/07/trivago-joins-the-cloud-native-computing-foundation/">CNCF End User Supporter</a> benefit program.</p><p>trivago understands its position as a company that benefits from the Open Source projects we rely upon. Without them, we would not be able to focus on building the products that our users enjoy and that help our business flourish.</p><p>We hope these resources will allow these projects to become a bit more viable for the maintainers, promote great work in technological innovation and work on even better development experience for engineers around the world.</p><p>Finally a word from our dear folks at Open Collective:</p><p>“trivago’s ongoing support of open source is a model for so many others to hear.. and follow. Now more than ever, the agility and innovation of open source is responding to a challenging world. trivago’s investment in open source makes a difference both to these open source communities and complementary to the success of trivago.” — Alyssa Wright, Director of Partnerships and Community.</p><p><em>Originally published at </em><a href="https://tech.trivago.com/2021/01/25/keeping-up-the-open-source-promise-for-2021/"><em>https://tech.trivago.com</em></a><em> on January 25, 2021.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=89af9dd5e026" width="1" height="1" alt=""><hr><p><a href="https://medium.com/trivago-tech/keeping-up-the-open-source-promise-for-2021-89af9dd5e026">Keeping up the Open Source promise for 2021</a> was originally published in <a href="https://medium.com/trivago-tech">trivago 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[trivago tech tips — Kibana Edition]]></title>
            <link>https://medium.com/trivago-tech/trivago-tech-tips-kibana-edition-2ef20607d4cb?source=rss----105836bc7635---4</link>
            <guid isPermaLink="false">https://medium.com/p/2ef20607d4cb</guid>
            <category><![CDATA[elasticsearch]]></category>
            <category><![CDATA[kibana]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[tech-tips]]></category>
            <dc:creator><![CDATA[trivago]]></dc:creator>
            <pubDate>Mon, 11 Jan 2021 11:00:21 GMT</pubDate>
            <atom:updated>2021-01-11T11:00:21.770Z</atom:updated>
            <content:encoded><![CDATA[<h3>trivago tech tips — Kibana Edition</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ugkQXqp8WVpR5U9c.png" /></figure><p>Happy New Year from trivago’s engineering teams! 🥂<br>We hope you have a great start into the new year.</p><p>Also, we missed you during the holidays, but it was important to spend some time away from the computer. Now however we’re happy to bring back our popular trivago tech tips.</p><p>Let’s kick it off with a very special <a href="https://www.elastic.co/kibana">Kibana</a> edition. Kibana is a search frontend for Elasticsearch. It allows you to query a lot of log data quickly — at least that’s what we mostly use it for here at trivago.</p><p>Kibana has a lot of awesome but mostly unknown features as we’ll see this week. Let’s go and change that!</p><p><strong>Tip #1:</strong> <strong>Don’t uselessly stress your Elasticsearch</strong></p><p>Don’t forget the basic tips to speed up your searches. Before requesting additional hardware or <a href="https://www.elastic.co/blog/advanced-tuning-finding-and-fixing-slow-elasticsearch-queries">tuning indexes</a>, use some basic optimizations.</p><p>1. Use filters instead of queries for binary searches or when looking for exact values, because frequently used filters are cached by Elasticsearch.</p><p>2. Use the appropriate wildcards in your queries. Using question mark (<strong>?</strong>) would replace any single character, so don’t always use asterisk (<strong>*</strong>) if not needed, it would just waste time and resources.</p><p><strong>Tip #2:</strong> <strong>Search across logs the easy way</strong></p><p>Speed up searches across logs by linking different indexes, using hyperlinks in String fields. For example a unique user identifier can link from an application’s access logs index to another more specific index, directly filtering search results in the other index, based on the specific value that has been clicked in the access logs.</p><p>How to do that? In your Kibana Index Patterns select the desired field and use the URL template text field to add a link to another index with filtering applied, the field name in the other index can of course also be different from the one in the source index.</p><p>An example would be</p><p><a href="http://example.com/app/kibana#/discover?_g=(filters:!())&amp;_a=(columns:!(unique_identifier),filters:!((&#39;$state&#39;:(store:appState),meta:(alias:!n,disabled:!f,index:&#39;tracking_logs&#39;,key:tracking_id,negate:!f,params:(query:{{value}}),type:phrase,value:{{value}}),query:(match:(tracking_id:(query:{{value}},type:phrase))))),index:&#39;tracking_logs&#39;,interval:auto,query:(language:kuery,query:&#39;&#39;),sort:!(&#39;@timestamp&#39;,desc))">http://example.com/app/kibana#/discover?_g=(filters:!())&amp;_a=(columns:!(unique_identifier),filters:!((&#39;$state&#39;:(store:appState),meta:(alias:!n,disabled:!f,index:&#39;tracking_logs&#39;,key:tracking_id,negate:!f,params:(query:{{value}}),type:phrase,value:{{value}}),query:(match:(tracking_id:(query:{{value}},type:phrase))))),index:&#39;tracking_logs&#39;,interval:auto,query:(language:kuery,query:&#39;&#39;),sort:!(&#39;@timestamp&#39;,desc))</a></p><p>where {{value}} is the original field value of the source index</p><p>See <a href="https://www.elastic.co/guide/en/kibana/current/field-formatters-string.html">https://www.elastic.co/guide/en/kibana/current/field-formatters-string.html</a> for info on String fields and URL template.</p><p><strong>Tip #3:</strong> <strong>Try adding input controls to dashboards</strong></p><p>Consider adding input fields to control dashboards. That way you’ll have easily accessible filters, which save time and are also user friendly for the less tech-savvy in your organization.</p><p>A range slider for example can be really useful as quick filtering option, on top of a dashboard. The input controls can be added to a dashboard by creating a visualization of type Controls. It’s marked as a feature that could be removed in the future, but it’s still there in Kibana 7.9, so chances are it will be available for longer. See (older) official documentation for additional details <a href="https://www.elastic.co/guide/en/kibana/6.8/add-input-controls.html">https://www.elastic.co/guide/en/kibana/6.8/add-input-controls.html</a></p><p><strong>Tip #4:</strong> <strong>Always check split series size in visualizations</strong></p><p>When creating visualizations with split series that have a Terms sub-aggregation (a common case), don’t overlook the split series size. It could be too limited for your use-case and showing just the 5 top values.</p><p>You can increase that, but if you suddenly fall into an opposite issue and too many values make the visualization slow and unresponsive, try checking “Group other values in separate bucket” to solve it without losing the global picture. We know from experience that not seeing all the data can really make the difference sometimes…</p><p><strong>Tip #5:</strong> <strong>Know your query language</strong></p><p>Version 7 brought Kibana Query Language into the spotlight, making it the default, even though Lucene can still be activated through the toggle next to the search field.</p><p>Lucene might also be active on your existing saved searches and visualizations, so always remember that the differences between the two can significantly alter your results. Some examples: `400 or 500` is ok in KQL, but you need either `400 500` or `400 OR 500` in Lucene, because Lucene would consider `or` as a search term, not an operator! KQL brings you some more advantages: you can for example exploit the power of range queries made simple; something like `response&gt;=400`. KQL also supports querying nested fields, a specialized version of the object data type that allows arrays of objects to be indexed in a way that they can be queried independently of each other. That means that a query like `operating_system: {name:windows and version=&gt; 10}` will get all nested documents that have logged Windows version 10 or higher in our operating_system nested field.</p><p>Aaand that’s about it for this week’s Kibana edition. We hope you learned something and we’re looking forward to the next round of tips. Have a great weekend!</p><p><em>For regular frontend and backend tech tips, join our trivago tech community at </em><a href="https://trivago.substack.com/p/trivago-tech-tips-13-kibana-edition"><em>https://trivago.substack.com</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2ef20607d4cb" width="1" height="1" alt=""><hr><p><a href="https://medium.com/trivago-tech/trivago-tech-tips-kibana-edition-2ef20607d4cb">trivago tech tips — Kibana Edition</a> was originally published in <a href="https://medium.com/trivago-tech">trivago 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[Exploring the Page Visibility API for Detecting Page Background State]]></title>
            <link>https://medium.com/trivago-tech/exploring-the-page-visibility-api-for-detecting-page-background-state-48e707bfe107?source=rss----105836bc7635---4</link>
            <guid isPermaLink="false">https://medium.com/p/48e707bfe107</guid>
            <category><![CDATA[mobile]]></category>
            <category><![CDATA[frontend]]></category>
            <category><![CDATA[page-visibility]]></category>
            <dc:creator><![CDATA[trivago]]></dc:creator>
            <pubDate>Fri, 27 Nov 2020 15:34:26 GMT</pubDate>
            <atom:updated>2020-11-27T15:34:15.520Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*dqG_c23vLKBOLXqy.png" /></figure><p>At trivago we are working heavily on the web platform and, based on the scale that we need to serve our users, our applications need to cater for many different kinds of environments and conditions.</p><p>As one of our use cases demanded we look into how a background (and possibly terminating) state is defined in the modern web, we investigated the options and discovered a few interesting points, specifically about the <a href="https://www.w3.org/TR/page-visibility-2/">Page Visibility API</a>. We would like to share our experience working on this topic, a few suggestions and hopefully inspire and give you new perspectives on how you can tackle your own similar use cases.</p><h3>Scenario from the Good Old Times</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*AOYo0XUs8jPnW3Hf.png" /></figure><p>Engineers working on the web for quite some time have likely come across the requirement of triggering an event log request or popping an alert prompt to the user before they leave the page. As though reflexively, the first implementation that would come to mind is the beforeunload or unload browser events that have served web developers in these kinds of situations in the past.</p><p>Each of those events respectively are fired just before and at the time the document is about to unload its resources. For example, when you navigate from Page A to Page B or when you try to close a visible tab on your session. For most desktop browsers, these scenarios are covered reliably enough, with only a few caveats to be aware of.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*03kDb4PcHbPDnbM1.png" /></figure><p>However, this appears not to be the case for the mobile platform and the fact could be attributed to a couple of good reasons that render these events mostly unreliable.*</p><p>*Apart from the reliability aspect of the unload handlers on modern platforms, there is also the fact that these handlers do not allow browsers to use an important internal implementation, commonly known as back/forward cache, degrading page navigation performance.</p><p>As the world started moving towards a more modern and mobile-first web, the intricacies and new capabilities of the mobile platform have introduced a new context we need to account for when designing and evaluating web experiences.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/348/0*ZD8g5pcfJ2E9UAMN.png" /></figure><h3>Modern Constraints</h3><p>As mobile devices are much more constrained in resources than desktop devices, mobile operating systems will go to great lengths in order to save and reclaim resources. When required, they will simply shut down an application without further ceremonies. This could well be the browser displaying your page, and as you can probably imagine , the unload handlers you have registered will not be triggered in such a case.</p><h3>Modern States</h3><p>More importantly, what we can think of as regular mobile interactions result in many new states and transitions that a page might record in its lifecycle. Examples include:</p><ul><li>The user locks the screen so the page is no longer visible.</li><li>The user presses the Home button to be presented with the homescreen.</li><li>The user switches between apps using the App Switcher.</li></ul><p>In the above interactions, the page could be deemed as shifting in a background state and has the probability to be terminated without any possible way for us to get notified about it — either from the user swiping the app away or the OS re-allocating resources. In none of these above state changes will the unload handlers be fired.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*ZG_U1uh_LYI6e8H2.png" /></figure><h3>Modern Requirements</h3><p>The bloom in frequency that people are engaged in what we can call the “mobile web” as well as the new possible page states have brought forth the mental shift from web pages to something close to web applications. This shift has surfaced a whole new wave of requirements that we as web engineers need to implement in this new paradigm.</p><p>Some of these requirements and best practises clearly connect with detecting a background state.</p><ul><li>A video player should not continue playing when we lock the phone screen.</li><li>Heavy animations, as they tend to be resource intensive, could preemptively stop.</li><li>The valuable offers that we might include in an auto-rotating carousel should not keep shifting if we want to treat all our deals fairly.</li><li>Polling activity to our server should be significantly reduced or even paused completely. (Actually browsers have already implemented a minimum timeout and a max-time budget strategy for us)</li></ul><h3>Modern Solutions demand Page Visibility</h3><p>Since we went through all the constraints, new states and requirements that are closely related to when a page can shift in and out of a background state, we are going to now reveal that there is (and has been for quite a long time) a browser API that is used to capturing shifts between these states.</p><p>This is the Page Visibility API that, as officially stated, defines a means to programmatically determine the visibility of a document.</p><h3>Page Visibility 101</h3><p>The addition of this new API gives developers access to a new Document event which is called “visibilitychange”, and a Document attribute called visibilityState.</p><p>By registering a listener for this specific event, you are guaranteed to be notified when the browser detects a change in the visibility of the page. This change then can be safely detected by querying the document.visibilityState attribute inside the event handler.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*8Lr9oraKVuOwmO9-.png" /></figure><p>The visible state signifies that a document is in a usable state and partially observable in the viewport.</p><p>The hidden state is the one that interests us the most in the context we have been discussing up until now. The hidden state is active when a document can be considered not visible on a screen. That seems like a simple term, but listing some cases that are covered by the hidden state can give us web engineers a lot of inspiration for our modern requirements and implementations.</p><p>Examples where we can consider the document as hidden:</p><ul><li>When from the foreground tab in the browser, the document goes to a background tab.</li><li>When the browser is minimized.</li><li>When the user refreshes the page or navigates to another one.</li><li>When the lock-screen of the operating system is invoked.</li><li>When another app is selected from the App Switcher other than the browser with the page previously on the foreground.</li></ul><p>Covering all these scenarios, the “visibilitychange” event is a great fit for our own use case.</p><h3>Solving our use case</h3><p>Just as a reminder, our implementation requirement was to run a cleanup process whenever the page could be considered shifting to the background or a user initiating a navigation.</p><p>For the specific project we are referring to, we are using React (actually Preact) as our view-layer library, so it made sense for us to create a custom hook that could be re-used for similar requirements.</p><pre>export const useOnPageHidden = (sideEffectCb) =&gt; { useEffect(() =&gt; { const onHideHandler = (event) =&gt; { if (document.visibilityState === &#39;hidden&#39;) { sideEffectCb(); } }; document.addEventListener( &#39;visibilitychange&#39;, onHideHandler, ); return () =&gt; { document.removeEventListener( &#39;visibilitychange&#39;, onHideHandler, ); }; }, [sideEffectCb]); };</pre><p>If you are not React-savvy, you can just ignore the useEffect wrapping, consider the returned function as cleanup for when the caller of the function is removed from the DOM and focus on the onHideHandler.</p><h3>An unexpected issue</h3><p>Initially this seemed like an amazingly simple and solid implementation, but for the Safari browser, it does not cover the basic case of page navigations, which was important for the use-case. You can see the issue referenced in the WebKit issue tracker: <a href="https://bugs.webkit.org/show_bug.cgi?id=151234">https://bugs.webkit.org/show_bug.cgi?id=151234</a></p><p>(The funny thing is that it was considered fixed as we were developing our solution).</p><p>To cover this portion of interactions, we decided to combine the visibilitychange event with another one called pagehide . We will not go into details about this Window event, but only mention that it is fired when the “current page” entry changes in a session, making up for our case in Safari.</p><p>Attentive readers can already notice that there is an overlap between these two events. In browsers where Page Visibility works as expected, we would have both visibilitychange and pagehide running for scenarios like page navigation, and we would prefer to avoid that.</p><p>The possible solutions here would be to do some Safari detection and adjust events accordingly. That would be the more resource-friendly way. However, when going through the specification repositories and browser issue trackers, we quickly see that there are reported cases where, in other browsers like Chrome, the visibilitychange is still not firing in all the cases that pagehide covers.</p><p>Taking the above into consideration, we decided to move our thinking away from the internals of browsers and examine the actual nature of the events we can use.</p><h3>Taking a step back</h3><p>The pagehide event is fired before the current page is no longer the current one for the browser session. That essentially means that it runs before the page is hidden or terminated, meaning there won’t be any chance for the user to keep interacting with the same instance of the page.</p><p>Taking into account that the visibilitychange will additionally be triggered when the page could possibly be reused by the user (switching tabs etc.), we can see that the only intersection between the two events is when the page is either going to be reloaded, navigated away from, or ultimately terminated. In those cases, we want our side effect to run only once.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*m2Lg1CxPXgiCQ_4_.png" /></figure><p>To achieve this goal, we can use a flag between the two events that will let our code know if the page is moving towards a terminating state and prevent either of the listeners from runing the side-effect process a second time.</p><p>However, in that logic, there is a little caveat based on the facts we stated about the two events. Since the visibilitychange event can possibly run many times before a termination, we need to understand the order in which visibilitychange and pagehide are fired, and also if the order is consistent among browsers. The place to look for these facts initially is the HTML specification.</p><h3>Digging into the Specs</h3><p>When we went through the HTML spec about a month ago, it stated that the visibility state change events would be run before the pagehide event. Testing this statement in the field, however, we found that it was actually the opposite. The visibilitychange event handlers were run after the pagehide ones, conflicting with what was stated.</p><p>Luckily for our case, the specific topic was actively discussed in the Web Performance Working Group, which is responsible for the Page Visibility API, and as it turns out, user agents had in fact implemented the opposite of what the spec has stated. This, in turn, resulted in a recent change in the HTML specification that now correctly states the order of events.</p><p>You can find the specific pull request here <a href="https://github.com/whatwg/html/pull/5949">https://github.com/whatwg/html/pull/5949</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*OU0oaR5dQ6GkK51h.png" /></figure><h3>Final Proposal</h3><p>Having all this information in hand, we now are sure that the pagehide event will signal page termination and is run before the visibilitystatechange for the same scenarios. Flagging the event as terminating after the pagehide event has been executed, is all we need.</p><p>Finally we can come up with an implementation that would address the needs of our use case across the majority of our audience.</p><p>As a trivia, there is an additional case that needs to be addressed that has to do with the scenario of the user switching a tab and then shutting down our page from a background state — let’s see how you can creatively solve this with the information you have!</p><h3>A word of caution: Page Visibility is “alive”</h3><p>If we were developing in a perfect web, where all the implementations were behaving the same across devices, browsers and operating systems, and where there was only one version in effect at a time, we would be able to guarantee 100% reliability for these states.</p><p>In reality though, we are in an imperfect web ecosystem that does not provide these guarantees, and this probably won’t change in the foreseeable future. The web is alive and so are its workings. Proposals are written, new specifications are published and current ones are continuously getting refined and enriched. W3C Working Groups and other technical steering committees are working together with browser vendors to do their best to cover all the use cases that move us towards a better web both for users and developers.</p><p>Conformance work, browser bug fixes and specification fine tuning are done at a really fast pace. If you want to follow the latest discussion and changes, you can check the open GitHub repositories of these specifications or if you’re really interested, the issue tracking lists of different browsers.</p><p>Happy coding!</p><p><em>Originally published at </em><a href="https://tech.trivago.com/2020/11/17/exploring-the-page-visibility-api-for-detecting-page-background-state/"><em>https://tech.trivago.com</em></a><em> on November 17, 2020.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=48e707bfe107" width="1" height="1" alt=""><hr><p><a href="https://medium.com/trivago-tech/exploring-the-page-visibility-api-for-detecting-page-background-state-48e707bfe107">Exploring the Page Visibility API for Detecting Page Background State</a> was originally published in <a href="https://medium.com/trivago-tech">trivago 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[Deep Dive Into Data Science at trivago · trivago tech blog]]></title>
            <link>https://medium.com/trivago-tech/deep-dive-into-data-science-at-trivago-trivago-tech-blog-aa61f8f5025e?source=rss----105836bc7635---4</link>
            <guid isPermaLink="false">https://medium.com/p/aa61f8f5025e</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[data]]></category>
            <dc:creator><![CDATA[trivago]]></dc:creator>
            <pubDate>Fri, 27 Nov 2020 15:31:49 GMT</pubDate>
            <atom:updated>2020-11-27T15:31:49.442Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*6GIM4oVc7mlp-Kss.jpg" /></figure><p>What does Data Science at trivago look like in practice? Which major challenges have we encountered as a travel-tech company since the COVID-19 outbreak? What’s it like to work in Data Science at trivago? In this Q&amp;A with James Neaves (Business Intelligence Lead), Andrea Fernandez (Data Science Team Lead), and Sheetij Jain (Product Manager in User Profiling) we’ll answer all these questions and more.</p><p><strong>Too Long; Didn’t Read?</strong> Jump directly to the questions!</p><p>Note: This article has been adapted from the <a href="https://blog.correlation-one.com/c1insights.blog/data-science-at-work-trivago/">original Q&amp;A</a> conducted by C1 Insights.</p><h3>Meet the Interviewees:</h3><p>Andrea Fernández, Ranking-Data Science Lead, joined trivago January 2014</p><p>My undergrad education started in the UK where I studied Mathematics. I then went on to do a PhD in Applied Mathematics, modeling chemical reactions before moving to Germany and starting my industry career at trivago. I have been at trivago for 6 years. I started as a business analyst for Public Relations releases. After 1.5 years I moved into SEM (search engine marketing) where I specialized in bidding algorithms and moved into a leadership role overseeing the Marketing algorithms team. In March 2019, I decided to take another jump from Marketing to Product. As part of our product team, I am now responsible for the data science and analytics team in ranking. At trivago, I am also involved in talent leadership.</p><p>Sheetij Jain, Alternative Monetization — Product Manager, joined trivago January 2018</p><p>Even with a background in Electronics and Communication, it was difficult for me to resist jumping on the ‘Data Analytics’ stream. Data is the new oil they say, and five years ago I started my quest to do more work with this vital resource. Over that period, I got the opportunity to work as an analytics consultant for multiple companies — Microsoft, T-Mobile and Cisco before working at Amazon as a Data Analyst, then ultimately joining trivago as a Data Analyst. With a mindset to productize powerful algorithms to deliver better user experiences, I made the switch to Product Management. As a PM in the Alternative Monetization team, I work on integrating different products within the trivago ecosystem and take data driven decisions on optimizing the overall experience of trivago users while adding a revenue boost to trivago’s topline.</p><p>James Neaves, Hotel Search-Business Intelligence Lead, joined trivago June 2015</p><p>I have an educational background in mathematics and history, so data science and analytics was not necessarily an obvious choice. Before working at trivago I started my career at the NHS in the UK, before moving into data analytics for university management at Cardiff and Bristol Universities. Six years ago, I made the jump from the academic to the business world, starting as a data analyst for our website and apps at trivago. Since then, I have developed into a team and strategic leadership role, leading the team responsible for user behaviour analysis and a/b testing for our core products. Alongside my team lead role, I am also involved in strategic leadership within the organization both for company strategy and talent leadership.</p><h3>What is it like working at trivago — both on the data science team, and at the company more generally?</h3><p>James Neaves: At trivago, data is at the heart of everything we do. This was apparent to me from my first days at the organization. We have really flat hierarchies and even as a junior data analyst, I was involved in discussions with senior leaders at the company who deeply understood the power of data.</p><p>I enjoy my work because it’s meaningful, and I have the ability to make an impact, free from organizational roadblocks. Decisions at trivago are made using data and insights, so as soon as I can prove I am going in the right direction, I get the support I need. The company also encourages personal development, internal growth, and job rotations.</p><p>We also move fast! When we make decisions, we do it with confidence and put our full energy behind it. This was a big contrast to the traditional annual cycles of the academic calendar.</p><p>As an organization, we have six core values — (1) trust, (2) authenticity, (3) entrepreneurial passion, (4) power of proof, (5) unwavering focus and (6) fanatic learning.</p><p>In my opinion, Fanatic Learning is what allows data science to drive the business forward. Our team is involved in so many key areas including product testing, marketing spend experimentation, hotel search, marketplace, and advertiser relations. This shows that as an organization, we value data, learning, and experimentation, while also giving team members at all levels the ability to make a real impact.</p><p>Andrea Fernández: I agree and would add more detail to James’ point on Fanatic Learning — specifically about the exchange of information across different data science teams throughout the company.</p><p>We have several initiatives that originated from individual team members — created by data scientists for data scientists. We also have several specialized guilds in different subjects as well as a more general “meetup” where team members from different departments get the opportunity to present learnings and projects.</p><h3>What’s the biggest difference between data science in academia vs data science on-the-job?</h3><p>Andrea: Business is faster-paced, less structured, and more hands-on than academia.</p><p>At work, a more pragmatic approach is needed in which one needs to understand the tradeoff between complexity and impact. One should not be afraid to take a more iterative approach, pushing one version at a time, rather than waiting until all the research is done before presenting findings or making crucial decisions.</p><p>Another distinction between research and academia is the ground data. Although I believe this is changing, industry datasets tend to have more hiccups, outliers and bugs. When analyzing or building models in industry, one needs to be pragmatic and develop techniques to deal with inconsistencies and data that isn’t clean. In research, however, the outlier is sometimes the most interesting part worth researching.</p><p>James: From my experience, the largest skill gap is related to the practical application of data science theory. Our data scientists cannot just focus on building the most accurate model or the best prediction. They must also consider the impact on the business.</p><p>At trivago, we try to remain conscious of opportunity costs and return-on-investment. While we encourage failure and fully embrace trial and error, we need to be comfortable dropping projects that don’t show promise while doubling down on projects that do. Understanding the practical impact of data science work is an incredibly valuable skill in becoming an effective team member.</p><p>When recruiting, I often look for candidates who have at least one year of experience (including internships), to help bridge this gap. The good news? Most people pick up the ‘business impact’ concept pretty quickly once they begin working.</p><h3>What is trivago’s unique approach to problem solving?</h3><p>Sheetij Jain: Data is absolutely our most valuable resource when it comes to solving problems. Once we identify an opportunity, we develop an idea, then substantiate it with data points to truly understand the depth of the problem. Once we have the problem prioritized, we “build a skateboard” instead of thinking about the entire car (see image below). With data science projects in particular, we’ve learned the importance of providing value at small intervals (in smaller shipments) as opposed to waiting too long to get feedback on our models. Here’s what we mean by building a skateboard before working on the whole car:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*Z7QmJ9BoY3j_rAT1.png" /></figure><p>The skateboard is our MVP (Minimum Viable Prototype) that we use to test and gather valuable feedback for future iterations. This is how we approached our most recent project “Concept Recommender” — where the first version of the recommender was based on analysis and a naive model to understand the potential impact of solving this problem. Once we understood the potential impact and gathered the necessary feedback and data from users, it was time to iterate and get closer and closer to our dream car!</p><p>For context, the Concept Recommender powers trivago’s ‘More Filters’ section.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*7yJV5fbxw3Kuvdjj.png" /></figure><p>This feature provides users a personalized recommendation of the hotel amenities (“concepts” as we call them) taking a user’s context into consideration.Before this feature went live, our recommendations were based on intuition and business rules. We replaced that old business logic with the power of an algorithm.</p><h3>What were the biggest data science challenges you encountered since the COVID-19 outbreak?</h3><p>Andrea: The biggest challenge we faced was the impact on our traffic levels. This prevented us from continuing with our usual iterative testing approach. Furthermore, the testing traffic quality was also impacted. As travel demand dropped worldwide, even the core users that did come to our product had a different travel intent and we could no longer rely on the data to better understand user behaviour. This change to the quantity and quality of our data required a complete makeover of our priorities. We decided to use the time to learn via bolder tests and, on the other hand, also focus on model fundamentals.</p><p>Bolder testing gave us the opportunity to bring to life all those ideas that never made it to the top of the list before, because of their anticipated impact or due to its ‘nice to have’ status. We are now using these data sets to have a new basis for our metrics and further understand the dynamics in extreme scenarios, helping us to educate our idea generation.</p><p>Model fundamentals took us back to basics and gave us the time to work on our code base, data enhancements and model assumptions. This ensured that once traffic picked up, we could go back to our iterative testing approach with a much more robust and efficient set up.</p><p>Another important challenge was the fully remote office set up. In our teams, we are used to having ad-hoc discussions and brainstormings, which were immediately reduced. We needed to quickly adapt to not having someone you can turn around to briefly to get some input. We agreed on a set of guidelines which we continuously revisit in our team meetings and virtual coffee breaks to continue. Some specific initiatives we follow are using our team channel to pose those questions that we would have made to the “room” before, setting up result sharing sessions within the team or adding socialising sessions in which we all have managed to successfully mimic those coffee break conversations.</p><h3>How have you handled product and A/B testing in a data-scarce environment?</h3><p>James: At trivago we have an in house A/B testing set up, along with testing tooling adapted to our specific traffic performance. As the effects of COVID-19 on our traffic levels became increasingly clear, we realised we would be in a situation that we hadn’t faced before — one where we had significantly less data to experiment with and learn from.</p><p>The first step we took was to change the data used to fuel our understanding of performance to a much shorter time frame, which we use to schedule test durations. Rather than considering the last month when calculating base rates and volume, we switched to a more reactive one week approach. When finishing this, we realised that in a COVID-19 world, our testing duration would require more time that we were really willing to invest for some of our metrics. In a fast-moving product development environment, we want to be able to quickly interpret test results.</p><p>The next step we took was to make the decision to make preliminary acceptance decisions based on much lower confidence thresholds or significance levels. In cases where we expected a low effect size, or smaller product changes, we guarded against changes large enough to be concerning from a business standpoint. This allowed us to test even with a lower volume, through taking on more risk. This is fine for smaller changes, but for our bigger product changes we needed a different solution.</p><p>This led to our approach of a ‘deactivation test’. This meant keeping a subset of major tests in our codebase, even after we had ‘accepted’ them from a product development point of view. As traffic returned, we were able to make a bundled deactivation test to look at the cumulative impact of the major product decisions we had made in a low data environment. Turning all these features off at once allows us to see the overall change in business performance, though individual cause and effect was less easy to determine.</p><p>On running this deactivation test, we were able to understand the cumulative effect of the large feature changes and see that there was an overall positive impact on our key metrics, measurable now that traffic was on the rise. This gave us the confidence in our codebase to fully integrate these features and maximise the benefits of the growth in traffic volume.</p><h3>What did you learn in the process of these reactions to the situation?</h3><ul><li>Data scarcity can be alarming, especially when you are used to a very data-rich environment. It is very easy to take for granted how lucky we are to have so much data to work with, but we miss it if it isn’t there!</li><li>As data scientists and analysts, it’s important to be pragmatic and get comfortable with risk. Explore ways to validate assumptions or confirm findings at a later date.</li><li>A really interesting learning was to see how fundamental statistical concepts are visible in real world settings. Looking at confidence intervals over long running tests and seeing the corresponding effect on our performance measurements from a major increase in variance was a really nice way to see statistics in action.</li><li>Even when our main requirement to be able to do our jobs, data, suffers a big change, it is possible to adapt and continue learning. We had the opportunity to design tests that would have not been possible before due to their bold nature and anticipated high impact.</li><li>Communication once again is key. We made sure to have clear home office guidelines that focus on creating transparency of our work and regularly hold discussions to ensure no big potential opportunity is lost.</li></ul><h3>How do you communicate results on projects like these up the org chart and across departments?</h3><p>James: Communicating around data science projects can take many forms and we have different forums for this. We respect data science as a key competency within trivago and increasingly it is at the heart of many key initiatives. In Hotel Search, we often highlight the work of data science teams in our quarterly ‘all hands’ presentations or in our weekly meetups, which are open to everyone from product owners to designers to software engineers.</p><p>Outside of our routine business communication, we also have data science and analytic groups dedicated to certain topics, such as machine learning or language specific groups such as Python or R. These groups collaborate on different topics and meet semi-regularly to discuss projects, applications of their work and best practices. Internally, these groups are referred to as ‘guilds’. As a learning organization, cross-department knowledge exchange is really important in getting the most out of our collective experience.</p><p>We also reach out to the data science community outside of the organization. We run events such as the Data Science After Work, which we hosted at our campus (pre COVID-19) where we’ve shared insights into the projects we work on with data scientists outside the organization, both in industry and academia. This is also a great opportunity for our people to grow and practice their presentation skills in a familiar environment.</p><h3>What skills, characteristics, and attributes are trivago looking for in new data science hires?</h3><p>James: Obviously, keen analytical ability and data science skills are important for us- though we can be flexible with regard to technical skills. For example, on my team I have people using both Python and R. I try to encourage all of us to grow as a team and continually invest in professional development and acquiring new skills.</p><p>There are some additional characteristics I look for when hiring, that may not be quite as standard. I am interested in finding people with strong communication skills. Our data science people must often work with product owners and business stakeholders. In these cases, knowing the technical side of data science is not enough, you must also be able to discuss results in a way that non-experts can understand. Great communication skills can turn data into truly actionable insights.</p><p>Another aspect that is important is fit within the company. In data science, I see three of our core values that really resonate with exceptional data science talent — fanatic learning, power-of-proof and entrepreneurial passion. While the benefits of a data-driven approach and continuous learning may be quite clear, our ‘entrepreneurial passion’ value means we should all take an ownership and business-oriented approach to the projects we work on while maintaining passion for the work we are doing.</p><p>Andrea: Specific data science skills I look for can be broken down into 5 areas. All these should be more or less present and not all are expected to be developed to the same extent. A good team would be able to complement each other in these areas.</p><ul><li>Visualisation — This is in line with James’ comments regarding communication skills. It is important to be able to present and communicate results and insights in an understandable way so all audiences can follow and act.</li><li>Programming skills — Capability to embrace and learn different programming languages to analyse and create models.</li><li>Data Wrangling/ETL Skills: Getting data to a usable format is a challenge in and of itself.</li><li>Modelling: Application and evaluation of different models such as machine learning models.</li><li>Math and Stats: Ground knowledge of the theory behind models and evaluation/testing methods.</li></ul><p>Regarding “soft” skills, I totally agree with James. Entrepreneurial passion and willingness to connect data science with business impact is also vital.</p><p>If you’re interested in applying for a data science position at trivago, keep an eye out for open jobs <a href="https://company.trivago.com/open-positions/">here</a>.</p><p><em>Originally published at </em><a href="https://tech.trivago.com/2020/10/22/deep-dive-into-data-science-at-trivago/"><em>https://tech.trivago.com</em></a><em> on October 22, 2020.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=aa61f8f5025e" width="1" height="1" alt=""><hr><p><a href="https://medium.com/trivago-tech/deep-dive-into-data-science-at-trivago-trivago-tech-blog-aa61f8f5025e">Deep Dive Into Data Science at trivago · trivago tech blog</a> was originally published in <a href="https://medium.com/trivago-tech">trivago 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[How Working as a Product Owner Helped Me Be a Better Engineer (and vice versa)]]></title>
            <link>https://medium.com/trivago-tech/how-working-as-a-product-owner-helped-me-be-a-better-engineer-and-vice-versa-c090c209d165?source=rss----105836bc7635---4</link>
            <guid isPermaLink="false">https://medium.com/p/c090c209d165</guid>
            <category><![CDATA[development]]></category>
            <category><![CDATA[product-ownership]]></category>
            <dc:creator><![CDATA[trivago]]></dc:creator>
            <pubDate>Tue, 03 Nov 2020 14:59:32 GMT</pubDate>
            <atom:updated>2020-11-03T14:55:14.900Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*LgbBuWH7bGn4u-KL.png" /></figure><p>Over the past few months, I was given the opportunity to try out the life of a Product Owner (PO), alongside retaining my responsibilities as an engineer. The life of a PO has always intrigued me since I joined trivago 2 years ago, and I always found myself unofficially taking on roles that were traditionally done by them. Things like reaching out to stakeholders for collaboration, thinking about KPIs and impact, and general “aligning”. Perhaps it’s because I simply love the sound of my own voice, but I’ve always felt a particularly high level of gratification from contributing in meetings. “Aligning” is an overused word in the workplace, but it is the best to describe where I derive my professional gratification from, outside of building things with code.</p><p>So like with most things, trivago was the perfect place to try out something I’d never done before. I made my intentions clear to my responsibility chain and sure enough, I was eventually given the opportunity to run an initiative as both the PO and sole engineer of the project. I was given a simple vision statement, to find “A method of conveying to the user that there is a cheaper deal within a few days from their selected date.” After a quarter of working with design, building the data pipeline, and thinking about every relevant KPI, we ended up with a price graph in our overview section. We tested it with over 2 million people, saw the potential for a positive impact and therefore decided to continue iterating on it this quarter!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*JF7XKXrcK0-CHshn.png" /></figure><p>The best talent is the one that has the full context of every single aspect of the company, from Creative Production all the way to Accounting. Of course, that talent would also need to work about 72 hours per day to get close to that level of experience, but it’s no surprise that some of our most skilled talents at trivago have worked in so many <a href="https://life.trivago.com/humans/7-things-i-learned-when-i-stepped-away-from-a-leadership-position.html">different parts of the company</a>. Understanding how things work outside the scope of your job description is always a beneficial tool to keep on your belt. So what better role to start learning in depth than one of your closest co-worker?</p><h3>How working as a PO helped me be a better engineer</h3><p>When you throw the lengthy job description of a Product Owner into a blender and then strain it through a coffee filter, what comes out is one idea — understanding the user problem. All other responsibilities of a PO are auxiliary to this primary objective. This was something I struggled with in the very beginning when I began trying to practice my PO abilities.</p><p>As an engineer, we base our whole career on solutions, solutions and solutions. We are evaluated on how well designed our solutions are, we comment on each other’s Pull Requests to advise each other on how to improve our solutions, and we safely ignore the wider context and implications of what we are helping build. This isn’t inherently bad, but understanding the context definitely makes you better.</p><p>When I sat through design sprints, I always hated the part in the beginning where we would spend 30 minutes defining the problem. Why waste all this time pedantically defining the problem when we could be working towards the solution? What I didn’t quite grasp at the time was that if you don’t figure out the exact problem, you will waste time solving the wrong thing. Truly understanding the problem, will make every solution obvious. Because you become the user. And the user knows what they want.</p><p>I have had the great fortune of working with some fantastic POs since joining trivago. One thing that always impressed me was when I approached them with a question about how the feature should behave in some obscure scenario, they always seemed to know the answer after only a second of thinking. But what I didn’t realise was when you live and breathe the user’s problem day in and day out, it’s not hard to think of the exact right behaviour for a given scenario. It’s a skill, just like any skill, that is built up over time and experience.</p><p>I didn’t even realise I myself had begun building this intuition until after my first three month stint as a PO was over and I was working as an engineer on a logging task for another PO. The task required me to log a user’s click on a new feature once per session. The QA found this strange and asked if it was a mistake in the requirements and whether it should be logged once per search instead. My answer came quick and without hesitation: “The once per session will be useful for Penetration metrics. We don’t necessarily care how many times it is clicked, or if they click more after changing search. We just want to see how many people who see the feature, end up clicking on it at any point.” This was supported by the PO once they had read the message.</p><p>In that answer, I had put aside my engineer brain, which was just repeating “I’m just following the spec” over and over again, and flexed my PO muscle that looked at the user problem and saw why we only needed a single logging per session. And just like any muscle, it can only grow when trained slowly and consistently over a period of time.</p><p>With only three months of experience, I have managed to save plenty of time avoiding conversations that normally would’ve happened for the sake of “alignment”. Now, the answers were obvious. By spending time better understanding the problem, I don’t need to ask as many questions anymore. The benefits don’t stop there however, in the next part, I’m going to describe&amp;mldr;</p><h3>How working as an engineer helped me be a better PO</h3><p>Coming into the PO role as an engineer felt like I walked into an exam with a cheat sheet of secret engineering hand signals that we use to communicate. Like I could speak a language that many other POs can’t. And to an extent, it isn’t far from the truth. The engineering lingo is heavy, and just understanding the words isn’t always enough, understanding how they connect is an equally large part of the puzzle. I can’t count the number of times that a PO I’ve worked with has had to just nod and trust me when I explain why we “need to pipe the data through X instead of Y, and Z doesn’t even connect to X in that way and… it’s hard to explain.”</p><p>It’s no surprise that understanding the details of how the system works helps on a daily, if not hourly basis. The best example of this would be when I was trying to request a new data stream from our data team for the feature I was building. The thing about trivago is, we have a lot of hotels. A lot. And when experimenting with building features, it isn’t necessary to test the feature on every single hotel because then we’d need data for every single hotel. And all that data needs to be stored somewhere. This is how the question arose from the data team, “how many hotels do you want us to include?”</p><p>What would’ve normally been a few alignment meetings between the PO, data team and engineer, was reduced to just a small Slack conversation. I knew just how I wanted to structure and store each key, I estimated the size each key would take, and subsequently found the exact amount of keys (and therefore hotels) we can store within our size restriction. All this happening within an hour of being asked the question.</p><p>This was an extreme example of how my engineering experience saved us from a lot of conversations and alignment meetings that would normally be necessary. But this knowledge still applies all across the spectrum. It is far easier to create a shipment plan when I can personally guesstimate the work load and complexity of a given feature. What could look easy may actually be very hard simply because of where it sits in the codebase. Likewise, what may look like a difficult feature could actually be quite trivial. Just having a surface level understanding of the code base’s structure, how the data is stored, and where it comes from, can already give you heaps of context off of which you can incorporate into the PO cycle.</p><p>Another thing that being an engineer has given me insight into is something I’ll call the “engineer grump”. If you’ve ever seen an engineer completely apathetic to something you’re saying, you may have been a victim of the Engineer Grump™. This phenomenon occurs when an engineer goes through multiple quarters of half-finished features that never get a second iteration. The PO shows up with a three quarter long plan about how they are going to change everything, the engineer gets enthusiastic and motivated, only to switch to a completely different project next quarter becomes “priorities changed”. Working as a PO, the diminishing returns of a feature are obvious. The more you work on it, the less value you’ll be able to extract from it. However, this was not something that came to me intuitively when I started as a PO. Engineers work with edge cases all the time. From thinking about every line of code and its consequences, to working with QA on the most obscure bugs. Fixing everything and making everything as close to perfect as possible is the only point where code becomes acceptable.</p><p>Whereas for a PO, the whole point is to make high impact change, after high impact change. Fixing niche use cases is not a valuable use of time when there are a hundred other high impact features that address a significantly larger audience’s problems. The engineer doesn’t have that context by default. All they see is a really cool feature, that never really got finished. All they see are the bugs they missed. And the feature will sit there, as a testament to the engineer’s shortcomings. Never getting a chance to fix it.</p><p>Coming to the world of being a PO as an engineer has really shone a light on what was previously really confusing behaviour. It explained why a PO could be so hopeful for a feature one quarter, only to change to a completely different tune the next. And coming with engineering knowledge has definitely been a major boon to my capabilities.</p><p>With all that being said, I am not advocating that one becomes a “jack of all trades”. Mostly because I still strongly believe in the second part of the phrase, “jack of all trades, master of none.” I am militantly against putting my brain power towards anything design related. The best example of this was when I was in high school and I designed a website with a purple background and blue text and thought it looked good. Clearly I have a long way to go before I become even halfway decent with design. I prefer to leave the cognitive load of thinking about the design to the people who know it best, the designers. I only have so much brain power and I would personally prefer to use it to deep dive into a couple of topics. What I do advocate is truly spending some time and effort on understanding your closest stakeholder’s role. The value from that effort comes quicker than you’d think.</p><p>The experiences I have gained from just a few months have been invaluable to say the least. What I once found frustrating about certain PO behaviour, I now understand and agree with. What I once found confusing about feature behavior, I now have a more intuitive knowledge for. I have been able to apply the things I’ve learnt over the past few months on a daily basis. And at the end of all this, the next time you scroll through trivago, I hope you take a second to look at the little feature that I poured my heart and soul into, before scrolling on.</p><p>Thank you for reading :)</p><p><em>Originally published by Pejman Poh at </em><a href="https://tech.trivago.com/2020/08/19/how-working-as-a-product-owner-helped-me-be-a-better-engineer-and-vice-versa/"><em>https://tech.trivago.com</em></a><em> on August 19, 2020.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c090c209d165" width="1" height="1" alt=""><hr><p><a href="https://medium.com/trivago-tech/how-working-as-a-product-owner-helped-me-be-a-better-engineer-and-vice-versa-c090c209d165">How Working as a Product Owner Helped Me Be a Better Engineer (and vice versa)</a> was originally published in <a href="https://medium.com/trivago-tech">trivago 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[ElasticWars Episode IV: A new field]]></title>
            <link>https://medium.com/trivago-tech/elasticwars-episode-iv-a-new-field-20cac032e653?source=rss----105836bc7635---4</link>
            <guid isPermaLink="false">https://medium.com/p/20cac032e653</guid>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[backend]]></category>
            <dc:creator><![CDATA[trivago]]></dc:creator>
            <pubDate>Wed, 19 Aug 2020 12:55:27 GMT</pubDate>
            <atom:updated>2020-08-19T12:45:34.654Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/720/0*fhoOFrauwtP4d4Wo.png" /></figure><p>On a normal day, we ingest a lot of data into our ELK clusters (~6TB across all of our data centers). This is mostly operational data (logs) from different components in our infrastructure. This data ranges from purely technical info (logs from our services) to data about which pages our users are loading (intersection between business and technical data).</p><p>At trivago, <a href="https://de.slideshare.net/ClemensValiente/kafka-at-trivago">we use Kafka</a> as a central hub for moving data between our systems (including logs). We also use <a href="https://developers.google.com/protocol-buffers/">Protocol Buffers</a> extensively for encoding the data and enforcing a contract between producers and consumers. My team <a href="https://tech.trivago.com/2016/01/19/logstash_protobuf_codec/">wrote a protocol buffers codec for Logstash</a> that it is extensively used (and maintained) in our setup.</p><p>At the end of last year, on a normal Tuesday, we got notified that the lag of some of our Logstash consumers processing data from some critical Kafka topics was increasing. Data was not being ingested into Elasticsearch, and our client nodes were dropping out of the cluster.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*CoyN6sJDNqqpjO_H.png" /></figure><p>Going through our Logstash logs confirmed the issue:</p><pre>[ERROR][logstash.outputs.elasticsearch] Attempted to send a bulk request to elasticsearch&#39; but Elasticsearch appears to be unreachable or down! {:error_message=&gt;&quot;Elasticsearch Unreachable: [http://127.0.0.1:9200/][Manticore::SocketTimeout] Read timed out&quot;, :class=&gt;&quot;LogStash::Outputs::ElasticSearch::HttpClient::Pool::HostUnreachableError&quot;, :will_retry_in_seconds=&gt;16} [ERROR][logstash.outputs.elasticsearch] Attempted to send a bulk request to elasticsearch, but no there are no living connections in the connection pool. Perhaps Elasticsearch is unreachable or down? {:error_message=&gt;&quot;No Available connections&quot;, :class=&gt;&quot;LogStash::Outputs::ElasticSearch::HttpClient::Pool::NoConnectionAvailableError&quot;, :will_retry_in_seconds=&gt;2}</pre><p>Besides that, the Elasticsearch logs also showed that the client nodes were running out of memory and that the garbage collection cycles were taking too long:</p><pre>[WARN ][o.e.m.j.JvmGcMonitorService] [logparser10-dus] [gc][352] overhead, spent [10.3s] collecting in the last [10.3s] [WARN ][o.e.m.j.JvmGcMonitorService] [logparser10-dus] [gc][353] overhead, spent [1.6s] collecting in the last [1.6s] [ERROR][o.e.b.ElasticsearchUncaughtExceptionHandler] [logparser10-dus] fatal error in thread [Thread-8], exiting java.lang.OutOfMemoryError: Java heap space [ERROR][o.e.ExceptionsHelper ] [logparser10-dus] fatal error At org.elasticsearch.ExceptionsHelper.lambda$maybeDieOnAnotherThread$2(ExceptionsHel er.java:264) at java.util.Optional.ifPresent(Optional.java:159) At org.elasticsearch.ExceptionsHelper.maybeDieOnAnotherThread(ExceptionsHelper.java:254) At org.elasticsearch.transport.netty4.Netty4MessageChannelHandler.exceptionCaught(Netty4 essageChannelHandler.java:74) At io.netty.channel.AbstractChannelHandlerContext.invokeExceptionCaught(AbstractChannel andlerContext.java:285) At io.netty.channel.AbstractChannelHandlerContext.invokeExceptionCaught(AbstractChannel andlerContext.java:264) At io.netty.channel.AbstractChannelHandlerContext.fireExceptionCaught(AbstractChannelHan lerContext.java:256)</pre><p>We use the Prometheus <a href="https://github.com/justwatchcom/elasticsearch_exporter">elasticsearch exporter</a> for monitoring our Elasticsearch infrastructure. Our monitoring data confirmed the issue. Restarting the affected client node only kept the instances alive for a few minutes, and after that, the same pattern of errors would emerge.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*CawaTstqt1Tzpdw0.png" /></figure><p>Allocating more memory to our client nodes only slightly increased the time that the node would remain healthy, indicating that this was a symptom and not the root cause of the incident.</p><p>Logstash logs showed that the cluster was rejecting write/bulk requests before the client nodes became unhealthy:</p><pre>[INFO ][logstash.outputs.elasticsearch] Retrying individual bulk actions that failed or were rejected by the previous bulk request. {:count=&gt;1} [INFO ][logstash.outputs.elasticsearch] retrying failed action with response code: 429 ({&quot;type&quot;=&gt;&quot;es_rejected_execution_exception&quot;, &quot;reason&quot;=&gt;&quot;rejected execution of processing of [2376771431][indices:data/write/bulk[s][p]]: request: BulkShardRequest [[accesslogs][0]] containing [index {[accesslogs][logs][XGKuBTP@VP5eU9UdskUgLAAAAAM], source[n/a, actual length: [2.5kb], max length: 2kb]}], target allocation id: cuS8lFYZSP2PZQKu8vltaA, primary term: 1 on EsThreadPoolExecutor[name = elastic-storage7/write, queue capacity = 1000, org.elasticsearch.common.util.concurrent.EsThreadPoolExecutor@62d1e48f[Running, pool size = 24, active threads = 24, queued tasks = 1000, completed tasks = 2343795117]]&quot;})</pre><p>When an Elasticsearch cluster starts to reject write operations (under normal circumstances), it could mean that the cluster cannot cope with the write load anymore. In practice, this can happen because of <a href="https://www.elastic.co/blog/why-am-i-seeing-bulk-rejections-in-my-elasticsearch-cluster">many different reasons</a>. But we can agree that it is never a good sign.</p><p>Inspecting the monitoring data available in our dashboards, we noticed that the storage nodes in our cluster were hitting the maximum number of active write threads. This means that all threads in the write thread pool were being used.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*GS1UekYyYqeM-dsm.png" /></figure><p>As expected, at the same time the data nodes would start to queue a lot of write operations until the limit (1000) is reached.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*l-HOzRVt_Kcf7nvg.png" /></figure><p>Looking at this data, we concluded that we saw a manifestation of a <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/mapping.html#mapping-limit-settings">field mapping explosion</a>:</p><blockquote><em>Defining too many fields in an index can lead to a mapping explosion, which can cause out of memory errors and difficult situations to recover from.</em></blockquote><blockquote><em>Consider a situation where every new document inserted introduces new fields, such is the case with </em><a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/dynamic-mapping.html"><em>dynamic mapping</em></a><em> enabled. Each new field has to be added to the index mapping, which can become a problem as the mapping grows.</em></blockquote><p>Immediately we moved to the next questions: How and why?</p><p>After going through the recent changes to our logstash configuration repository, we noticed that a new instance was deployed to ingest data from a new Kafka topic into Elasticsearch. We do this on a fairly regular basis, so this action doesn’t indicate an immediate problem. Nevertheless, checking the index’s mapping revealed an alarmingly high number of fields.</p><p>This particular logstash instance was ingesting protobuf encoded data that included a <a href="https://developers.google.com/protocol-buffers/docs/proto3#maps">nested</a> <a href="https://developers.google.com/protocol-buffers/docs/proto3#maps">map field</a>. The data in this field looked like this:</p><pre>{ &quot;map_field&quot;: [ {&quot;1&quot;: 1} {&quot;200&quot;: 4} {&quot;315&quot;: 9} {&quot;100&quot;: 16} {&quot;201&quot;: 25} {&quot;612&quot;: 36} ] }</pre><p>Elasticsearch supports <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/nested.html">nested objects</a>, but this particular dataset is very problematic. The nested/object type will create a field for each unique key of map_field. In the previous example, the key is dynamic, which means that internally Elasticsearch will create a lot of new fields for every new document.</p><p>The recommended way of structuring the data in these cases is to use a nested object like:</p><pre>{ &quot;map_field&quot;: [ {&quot;key&quot;: &quot;1&quot;, &quot;value&quot;: 1} {&quot;key&quot;: &quot;200&quot;, &quot;value&quot;: 4} {&quot;key&quot;: &quot;315&quot;, &quot;value&quot;: 9} {&quot;key&quot;: &quot;100&quot;, &quot;value&quot;: 16} {&quot;key&quot;: &quot;201&quot;, &quot;value&quot;: 25} ] }</pre><p>Although it might seem like a more verbose representation of the data, Elasticsearch will only need to create two new fields map_field.key and map_field.value and the cardinality (number of different values) of the field will not matter anymore, because what changes is the value of the field and not the name of the field.</p><p>Elasticsearch limits the <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/mapping.html#mapping-limit-settings">total number of fields</a> that an index can have (1000 by default). This limit makes perfect sense if not all the fields are created at the same time. In our case, new fields were created almost constantly due to the cardinality of map_field.</p><p>Every time that a new key was found in a document, the mapping of the index needed to be updated. Updating the mapping for an index is a heavy operation. Taking a look at the pending_tasks endpoint of Elasticsearch, we could see that the put-mappings actions were queuing:</p><pre>GET _cat/pending_tasks?v=true</pre><pre>insertOrder timeInQueue priority source 9432 26.1s HIGH put-mapping [cr] 9433 26.1s HIGH put-mapping [cr] 9434 26.1s HIGH put-mapping [cr] 9435 26.1s HIGH put-mapping [cr] 9438 26.1s HIGH put-mapping [cr] 9439 26.1s HIGH put-mapping [cr] 9436 26.1s HIGH put-mapping [cr]</pre><p>The put-mapping tasks have a higher priority, so they are processed before the rest of the write/bulk operations, but they still count against the write thread pool size/limit.</p><p>The high number of mapping updates combined with the high cardinality of the nested field caused a lot of extra activity in our data nodes. Especially if we consider that the mapping is part of the cluster state that is sent to all nodes. Eventually, the queue was filled and the data nodes couldn’t write anymore.</p><p>In recent versions, Elasticsearch introduced a new <a href="https://www.elastic.co/guide/en/elasticsearch/reference/master/flattened.html">flattened datatype</a> to deal with object fields with a large or unknown number of unique keys. When a field is declared as flattened, the entire object will be mapped as a single field. This approach could be very useful when the format of ingested data is difficult to change.</p><h3>Conclusion</h3><p>This incident showed us that sometimes small changes in how your data is structured could have a massive impact on the availability and health of an Elasticsearch cluster. In this particular case, a seemingly normal looking field affected the entire cluster and slowed down (eventually stopped) data ingestion for all topics. Needless to say that we keep an eye on those map fields now when we add new topics/indices to our cluster.</p><p>We decided to add an alert for a couple of metrics: the number of active write threads and the number of queued write operations. Adding alerts after our normal incident review process is not common: We don’t want to have too many alerts. Nevertheless, these two metrics provide a good view of the cluster’s health (from a data ingestion perspective). If the cluster starts to queue write operations or uses all the threads in the write pool, it usually indicates that the cluster is struggling to keep up with the data ingestion and it is best to investigate.</p><p><em>Originally published at </em><a href="https://tech.trivago.com/2020/06/03/elasticwars-episode-iv-a-new-field/"><em>https://tech.trivago.com</em></a><em> on June 3, 2020.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=20cac032e653" width="1" height="1" alt=""><hr><p><a href="https://medium.com/trivago-tech/elasticwars-episode-iv-a-new-field-20cac032e653">ElasticWars Episode IV: A new field</a> was originally published in <a href="https://medium.com/trivago-tech">trivago 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[Cross-Cluster Traffic Mirroring with Istio]]></title>
            <link>https://medium.com/trivago-tech/cross-cluster-traffic-mirroring-with-istio-3610b7008b4e?source=rss----105836bc7635---4</link>
            <guid isPermaLink="false">https://medium.com/p/3610b7008b4e</guid>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[backend]]></category>
            <category><![CDATA[cloud]]></category>
            <dc:creator><![CDATA[trivago]]></dc:creator>
            <pubDate>Wed, 19 Aug 2020 12:55:17 GMT</pubDate>
            <atom:updated>2020-08-19T12:52:55.103Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*JEmNR9Tz8WCkkNK1.jpg" /></figure><blockquote><em>The price of reliability is the pursuit of the utmost simplicity.<br>- C.A.R. Hoare, Turing Award lecture</em></blockquote><p>Have you ever enthusiastically released a new, delightful version to production and then suddenly started hearing a concerning number of notification sounds? Gets your heart beating right? After all, you didn’t really expect this to happen because it worked in the development environment.</p><p>This <em>“But it worked in the development environment!”</em> problem is uncomfortably common amongst software developers and has been attempted to be solved for many years. Fortunately, we’ve progressed significantly. One of the most consequential concepts to solve this problem is containerization, thus, “ <a href="https://www.docker.com/">Docker</a>”. We now have immutable images, meaning the delta of the application codebase/configuration between the environments is <em>almost</em> 0. Emphasis on almost, because containerization doesn’t cover the whole problem.</p><p>Let’s specifically investigate one of the uncovered parts that we’ve faced recently. We developed a feature for one of the services and deployed it to the development environment. No issues were seen, thus, we proceeded with production deployment. Deployment went well, as expected. Yet, after ~30 minutes, we started to see alarms being triggered because the Kubernetes log volume was exceeded by a factor of two over the previous day. Can you see the problem here?</p><p>The issue was simple: There is traffic in the production environment, but not during development. Since the access log is populated with each request, you kind of expect this issue to happen in production. Of course, we could’ve unearthed this in the development environment by executing the same size of mock traffic -but is it the best solution?</p><p>Mocking the traffic means either you have to rely on a 3rd party tool such as <a href="https://github.com/h2non/gock">gock</a> and <a href="https://github.com/h2non/pook">pook</a>, or you have to code one by yourself. In both cases, you have the following disadvantages:</p><ul><li>You introduce one more dependency,</li><li>You have to make sure that you mock the traffic as accurately as possible,</li><li>You create a workload on the server that you generate the mock traffic.</li></ul><p>There is a better alternative, eliminating these disadvantages. By mirroring traffic with Istio, you can develop features based on the actual, live traffic. No extra dependencies, the exact same traffic and no server to generate the mock traffic. Another beauty of Istio is that you can configure the mirrored traffic percentage easily, just by adjusting one parameter namely mirror_percent. All this means, we are reducing the delta between the environments even more.</p><h3>Cross-Cluster Traffic Mirroring with Istio</h3><p>If you are using <a href="https://kubernetes.io/">Kubernetes</a> with <a href="https://istio.io/">Istio</a>, make yourself comfortable because Istio has a <a href="https://istio.io/docs/tasks/traffic-management/mirroring/">traffic mirroring feature</a> and it’s really straightforward, <em>if you mirror traffic in the same cluster</em>. This feature gets a bit complex when you try to mirror the traffic between two clusters. For extra complexity, imagine these two are in different regions.</p><h4>Scenario</h4><p>In trivago, we deploy services across multiple geographic regions to improve resiliency, high-availability and quality. However in this case, the service in question was special in that it was deployed and receiving traffic only in the US region and we wanted to mirror that traffic to our stage environment. Our stage cluster is only booted in the EU region to stay close to the trivago talents for them to work efficiently. So, we had to mirror traffic between clusters running in two different regions.</p><p>From now on, the word Prod Cluster is used interchangeably with source cluster and the word Stage Cluster is used interchangeably with target cluster.</p><h4>Additional Requirements</h4><p>To achieve intra-cluster traffic mirroring, you create two different versions of Deployment for the Service, you create a Destination Rule to define subsets (versions) and you create a Virtual Service to mirror the traffic. Fairly easy. Assuming that you already implemented this - <a href="https://istio.io/docs/tasks/traffic-management/mirroring/">Istio Traffic Mirroring Documentation</a> -, the following are the <strong>additional</strong> requirements to accomplish cross-cluster traffic mirroring:</p><ul><li>Deploying the services(i.e httpbin) that you’d like to mirror to Prod Cluster and Stage Cluster, separately.</li><li>Making sure that the source cluster can connect to the target cluster — The good thing about GCP is that you can span single VPCs to different regions, thus, you can utilize internal Load Balancers with Istio Gateways using annotations to allow cross-region communication, further information <a href="https://cloud.google.com/kubernetes-engine/docs/how-to/internal-load-balancing#global_access">here</a>(Annotations) and <a href="https://cloud.google.com/load-balancing/docs/internal/setting-up-internal#ilb-global-access">here</a>(Global Routing for Internal Load Balancers).</li><li>You need to create a Service Entry inside the Prod Cluster to introduce Stage service, since Stage service is not a part of Prod Cluster&#39;s mesh. This step is required if your <a href="https://istio.io/docs/tasks/traffic-management/egress/egress-control/#envoy-passthrough-to-external-services">meshConfig.outboundTrafficPolicy.mode</a> configuration is set to REGISTRY_ONLY. By default, it&#39;s set to ALLOW_ANY.</li><li>You need to catch the mirrored hostname by the Istio Ingress Gateway inside the Stage Cluster.</li><li>After catching the mirrored hostname by Istio Ingress Gateway, you need to forward the mirrored traffic to Stage Service by creating a Virtual Service inside the Stage Cluster.</li></ul><h4>Connectivity</h4><p>Before we get ahead of ourselves and try to implement traffic mirroring, let’s first test if we can connect to the target cluster from the source cluster. It’s best to progress one by one. I’d even encourage you to first try intra-cluster. Anyway, we need a Service Entry in Prod Cluster to introduce the external Stage Service, also Gateway and Virtual Service resources in Stage Cluster to catch and act on the incoming traffic as explained before.</p><p><a href="https://istio.io/docs/reference/config/networking/service-entry/"><strong>Service Entry</strong></a><strong> (Prod Cluster)</strong></p><p>Above Service Entry introduces httpin.frontend.stage.eu.trv.cloud hostname to the service mesh of the source cluster.</p><p><a href="https://istio.io/docs/tasks/traffic-management/ingress/ingress-control/"><strong>Ingress Gateway</strong></a><strong> (Stage Cluster)</strong></p><p>Notice the hosts section having &#39;*&#39; wildcard. It means, the target cluster is listening to all incoming traffic on port 80, regardless of hostname.</p><p><a href="https://istio.io/docs/reference/config/networking/virtual-service/"><strong>Virtual Service</strong></a><strong> (Stage Cluster)</strong></p><p>Above Virtual Service ensures that any traffic received with the *.frontend.stage.eu.trv.cloud hostname from port 80 will be forwarded to httpbin Service on port 8000 in the Stage Cluster.</p><p>After creating the resources, let’s try to connect to the Stage Service with the sleep Pod that we&#39;ve created.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*54CyRQsfF3mIaakV.png" /></figure><p>Voilà! We can connect from Prod Cluster to Stage Cluster. That means, mirroring should work if configured properly, but before continuing, I’d like to explain some potential non-successful response status codes that you might see at this point:</p><p><strong>502 — Bad Gateway</strong></p><p>This means that likely your Service Entry in the source cluster or Gateway in the target cluster is configured wrong. Please check them.</p><p><strong>404 — Not Found</strong></p><p>This means that likely your Virtual Service in the target cluster is configured wrong.</p><h4>Mirroring</h4><p>There are two steps left to implement traffic mirroring. We need to create a Virtual Service inside the source cluster to configure the mirroring and we need to configure the Virtual Service in the target cluster. Here is what the configuration looks like.</p><p><strong>Virtual Service (Prod Cluster)</strong></p><p>This is similar to what we’d have with intra-cluster mirroring — the only difference is that we now give the exact hostname of the Service Entry as the mirroring target. It is worth mentioning that this is NOT a host rewrite, this is a service registry lookup.</p><p>Now, if you have the eagle’s eye, you’ll remember the comment I put in the Virtual Service of the target cluster before. The <strong>crucial, vital, critical - you name it -</strong> thing here is that the mirrored traffic has -shadow postfix in the Host header. That means, if you execute curl httpbin.frontend.svc.cluster.local command in the source cluster, the mirrored traffic will be sent to the target cluster as httpbin.frontend.svc.cluster.local-shadow. It is worth noting that the request yields a different hostname depending on how you curl. Knowing this, we have to configure the Virtual Service in the target cluster and add the host with -shadow postfix.</p><p><strong>Virtual Service (Stage Cluster)</strong></p><p>After adding the Host entry, to see whether the mirroring works or not, we have to send requests to our Prod Service. We&#39;ll use the sleep pod again to send some requests to the Prod Service in this case. We can say it works if we see the traffic <strong>also</strong> in the Stage Service.</p><p>This is the curl command that I’m using:</p><p>kubectl exec -it httpbin-sleep-669b559684-6lm6l -c sleep -- sh -c &#39;curl http://httpbin.frontend.svc.cluster.local/headers -v&#39;</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*4Z3HBsfJj1EaG94j.gif" /></figure><p>On the left terminal, I’m sending requests to Prod Service from the sleep pod. The right terminal is attached to the logs of Stage Service. You can see that the requests sent to Prod Service are also received from the Stage Service.</p><p><strong>Fun fact:</strong> When we were implementing this at trivago, we couldn’t see the traffic mirroring happening even though there was a connection, because we weren’t catching the Host header with the -shadow postfix on it. To debug what was wrong, we had to use the <a href="https://github.com/eldadru/ksniff">ksniff</a> tool and watch the tcpdump of the sleep pod. That way, we found that the mirroring was returning 404s, because the Virtual Service in the target cluster didn&#39;t know anything about a ...-shadow Host header.</p><p>This is all great, now we can develop features on the actual traffic and expect little differences between environments when we release versions.</p><p><strong>BUT</strong> again, is this the best solution? Probably, for now. For now, because if you look at this implementation from an architectural perspective, even though we reduced the element of surprise and accelerated the development, we actually have introduced complexity to our structure and steered a bit away from simplicity. The complexity comes from the fact that now we have to ensure the service in Stage Cluster doesn’t process the mirrored traffic as if it’s the live traffic and we have to ensure that the connection between US and EU is running smoothly. Needlessly to say, compared to the other solutions, the complexity is lower, but it’s there. If you remember what I quoted at the beginning from C.A.R. Hoare, our implementation somehow contradicts with the statement. We have traded simplicity, for quality.</p><p>The point is, there is still plenty of room for improvement with the software development industry and it seems that we still have a long way ahead of ourselves.</p><p><em>Originally published at </em><a href="https://tech.trivago.com/2020/06/10/cross-cluster-traffic-mirroring-with-istio/"><em>https://tech.trivago.com</em></a><em> on June 10, 2020.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3610b7008b4e" width="1" height="1" alt=""><hr><p><a href="https://medium.com/trivago-tech/cross-cluster-traffic-mirroring-with-istio-3610b7008b4e">Cross-Cluster Traffic Mirroring with Istio</a> was originally published in <a href="https://medium.com/trivago-tech">trivago 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[An Open Door to Open Source: Relive our OSS Conference]]></title>
            <link>https://medium.com/trivago-tech/an-open-door-to-open-source-relive-our-oss-conference-d05001f65c50?source=rss----105836bc7635---4</link>
            <guid isPermaLink="false">https://medium.com/p/d05001f65c50</guid>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[conference]]></category>
            <dc:creator><![CDATA[trivago]]></dc:creator>
            <pubDate>Wed, 19 Aug 2020 12:55:08 GMT</pubDate>
            <atom:updated>2020-04-28T08:22:01.099Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*7Xr-TOgYDWv8dtex.png" /></figure><h3>A quick recap</h3><p>At the end of last year, to celebrate our continued sponsorship of the Open Source community, we hosted a <a href="https://tech.trivago.com/2019/11/20/open-source-trivago./">small conference</a> with special guests at our Düsseldorf campus. We initially hoped to welcome <a href="https://twitter.com/wSokra">Tobias Koppers</a> and <a href="https://twitter.com/TheLarkInn">Sean Larkin</a> from Webpack, plus some internal speakers. What we didn’t expect was the huge amount of fantastic speakers who wanted to present their projects to the community. In the end, Sean unfortunately couldn’t make it but we did have a chance to welcome <a href="https://twitter.com/marvinhagemeist">Marvin Hagemeister</a>, <a href="https://twitter.com/jotadeveloper">Juan Picado</a>, <a href="https://twitter.com/NorbertdeLangen">Norbert de Langen</a> and <a href="https://twitter.com/piamancini">Pia Mancini</a> as speakers, plus our own amazing talents.</p><p>We also asked our external guests to donate an amount of their own choice to <a href="https://twitter.com/osdiversity">osdiversity</a>, <a href="https://twitter.com/WomenWhoCode">WomenWhoCode</a>, or <a href="https://twitter.com/BIPOCIT">BIPOCIT</a> and promised to match their donations. In the end we decided to add 1000€. That resulted in a donation of 1231€ that has since been distributed equally between the three organisations.</p><p>In summary we had a fantastic day full of learning, meeting amazing people, sharing stories and contributing towards diversity and inclusion in our community. You can check out the recordings of the talks below!</p><h3>Live Coding: A Custom Localisation Plugin for Webpack</h3><p><a href="https://www.youtube.com/watch?v=GDW9RpFSIeo">https://www.youtube.com/watch?v=GDW9RpFSIeo</a></p><p><a href="https://twitter.com/wSokra">Tobias Koppers</a> live codes a Webpack Plugin for embedded localisation data in an application.</p><h3>Open Source Sustainability</h3><p><a href="https://www.youtube.com/watch?v=LGMuow1kyH8">https://www.youtube.com/watch?v=LGMuow1kyH8</a></p><p><a href="https://twitter.com/piamancini">Pia Mancini</a> explains why Open Collective is such an important partner for both, companies who want to contribute to Open Source communities, and those communities.</p><h3>Why Melody?</h3><p><a href="https://www.youtube.com/watch?v=zwGQiv1ruQc">https://www.youtube.com/watch?v=zwGQiv1ruQc</a></p><p>Patrick Gotthardt talks about why we decided to implement our own frontend framework <a href="https://melody.js.org/">Melody</a> and why we decided to keep it.</p><h3>The Past. The Present. And the Future.</h3><p><a href="https://www.youtube.com/watch?v=0IjgzQa2Gms">https://www.youtube.com/watch?v=0IjgzQa2Gms</a></p><p><a href="https://twitter.com/wSokra">Tobias Koppers</a> takes us through what is happening with Webpack 5 and how it got to be where it is today.</p><h3>Verdaccio</h3><p><a href="https://www.youtube.com/watch?v=A5CWxJC9xzc">https://www.youtube.com/watch?v=A5CWxJC9xzc</a></p><p>Why would you want to run your own NPM Registry? This talk by <a href="https://twitter.com/jotadeveloper">Juan Picado</a> and trivago’s <a href="https://twitter.com/ayusharma_">Ayush Sharma</a> provides all the reasons why. After watching this talk the question will be: Can you afford not to?</p><h3>Storybook</h3><p><a href="https://www.youtube.com/watch?v=lot-uDqegtM">https://www.youtube.com/watch?v=lot-uDqegtM</a></p><p><a href="https://twitter.com/NorbertdeLangen">Norbert de Langen</a> talks about how he ended up being a core maintainer of Storybook and where the project is heading to.</p><h3>Do More With Less</h3><p><a href="https://www.youtube.com/watch?v=OPw_zxmmbrg">https://www.youtube.com/watch?v=OPw_zxmmbrg</a></p><p><a href="https://twitter.com/marvinhagemeist">Marvin Hagemeister</a>, one of the Preact core maintainers, shares his experience with reducing code size and complexity through taking a step back and solid architecture.</p><h3>Lightning Talk: Snippet</h3><p><a href="https://www.youtube.com/watch?v=edGVRJf6uvg">https://www.youtube.com/watch?v=edGVRJf6uvg</a></p><p><a href="https://twitter.com/matthiasendler">Matthias Endler</a>, one of trivago’s own talents, presents Snippet. An open source VS Code extension he wrote to automate the process of finding and copying solutions from Stack Overflow.</p><h3>Lightning Talk: My First Contribution</h3><p><a href="https://www.youtube.com/watch?v=U7siwynJMIk">https://www.youtube.com/watch?v=U7siwynJMIk</a></p><p>What does it feel like to contribute to a prominent Open Source project like Babel as part of your Bachelor Thesis? trivago talent <a href="https://twitter.com/behrang_y">Behrang Yarahmadi</a> takes us through his experience with his first open source contribution and the lessons he learned.</p><h3>Lightning Talk: Buzzers</h3><p><a href="https://www.youtube.com/watch?v=bHfAnRPXvrA">https://www.youtube.com/watch?v=bHfAnRPXvrA</a></p><p><a href="https://twitter.com/andygrunwald">Andreas Grunwald</a>, a Domain Lead at trivago, shows that Open Source can also be fun and that putting an idea out there can sometimes lead to totally unexpected but fantastic results.</p><h3>Lightning Talk: Open Source in the Workplace</h3><p><a href="https://www.youtube.com/watch?v=TQ4fEfVU0IQ">https://www.youtube.com/watch?v=TQ4fEfVU0IQ</a></p><p><a href="https://twitter.com/jorgelbg">Jorge Luis</a>, an engineer at trivago and member of the Apache Foundation, talks about what Open Source means in an engineers daily job. How can we contribute to existing projects? How can we make our own projects accessible to others?</p><h3>Summary</h3><p>We are really happy to have had so many outstanding speakers share their knowledge and perspective with trivago talents and our guests. We celebrated Open Source in the best way possible: By sharing knowledge with the community.</p><p><em>Originally published at </em><a href="https://tech.trivago.com/2020/02/25/an-open-door-to-open-source-relive-our-oss-conference/"><em>https://tech.trivago.com</em></a><em> on February 25, 2020.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d05001f65c50" width="1" height="1" alt=""><hr><p><a href="https://medium.com/trivago-tech/an-open-door-to-open-source-relive-our-oss-conference-d05001f65c50">An Open Door to Open Source: Relive our OSS Conference</a> was originally published in <a href="https://medium.com/trivago-tech">trivago tech blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>