Menu
How Rakuten freed itself of Hadoop investment in two years

How Rakuten freed itself of Hadoop investment in two years

US arm of the Japanese e-commerce giant has moved away from Hadoop in a bid to cut hardware costs and ease the management of its estate

Credit: Dreamstime

Based in San Mateo, California, Rakuten Rewards is a shopping rewards company that makes money through affiliate marketing links across the web. In return, members earn reward points every time they make a purchase through a partner retailer and get cash back rewards.

Naturally this drives a lot of user insight data – hundreds of terabytes on active recall with more in cold storage, to be exact.

In 2018 the business started to get serious about giving more users access to this insight – without having Python or Scala coding chops – while also reducing its capital expenditure on hardware, and started looking to the cloud.

‘SQL server machines don’t scale elegantly’

Formerly known as Ebates, the business was acquired in 2014 by the Japanese e-commerce giant Rakuten, and has been growing fast since, forcing a drive to modernise its technology stack and become more data-driven in the way it attracts and retains customers.

This starts with the architecture. In the past three years Rakuten Rewards has moved its big data estate from largely on-prem SQL to on-prem Hadoop to, today, a cloud data warehouse courtesy of Snowflake.

“SQL server machines don’t scale elegantly, so we went on-premises Hadoop with Cloudera, using Spark and Python to run ETL, and got some performance out of that,” vice president for analytics at Rakuten Rewards, Mark Stange-Tregear, told InfoWorld.

“Managing that [Hadoop] structure is not trivial and somewhat complicated, so when we saw the cloud warehouses coming along we decided to move and have this centralised enterprise-level data warehouse and lake,” he said.

As former Bloomberg developer and big data consultant Mark Litwintschik argues in his blog post 'Is Hadoop Dead?', the world has moved on from Hadoop after the halcyon days of the early 2010’s.

Now, cloud frameworks which take much of the heavy lifting away from data engineering teams are proving more popular with enterprises looking to reduce the cost of having on-prem machines sit idle – and to streamline their analytics operations overall.

Moving on from Hadoop

So Stange-Tregear and lead data engineer Joji John decided in mid-2018 to start a major data migration from its core systems to the Snowflake cloud data warehouse on top of Amazon Web Services (AWS) public cloud infrastructure.

That migration started with the reporting layer and some of the most-used data sets across the business, before moving ETL and actual data generation workloads, all of which was completed towards the end of 2019, barring some more sensitive HR and credit card information.

By leveraging cloud computing, Rakuten is better able to scale up and down for peak shopping times. Snowflake also allows the company to split its data lake into a series of different warehouses of different shapes and sizes to meet the requirements of different teams, even spinning up new ones for one-off projects as required, without teams competing for memory or CPU capacity on a single cluster.

Previously, “a big SQL query from one user could effectively block or bring down other queries from other users, or would interrupt parts of our ETL processing,” Stange-Tregear explained. “Queries were taking longer and longer to run as the company grew and our data volumes exploded.

“We ended up having to try and replicate data onto different machines just to avoid these issues, and then introduced a series of other issues as we had to handle the scope for large-scale data replication and syncing.”

How Rakuten rewards its analysts

Now Rakuten can more easily reprocess customer segments, down to a single user’s entire shopping history, every day. It can then remodel their interest areas for more effective marketing targeting or recommendations modelling. This helps hit a customer with a targeted offer at the moment they are really considering buying that new pair of shoes, rather than giving them time to think about it.

“For tens of millions of accounts, we can crank that through several times a day,” Stange-Tregear explained. “Then package that for each user to a JSON model, for each member profile to recalculate for all users multiple times a day,” to be queried with just a few lines of SQL.

This greatly democratises the analytics, from granular insights from data scientists with Python or Spark skills to any analyst familiar with SQL.

“It’s easier to find people who code in SQL than Scala, Python, and Spark,” Stange-Tregear admits. “Now my analytics team – some with Python skills and less with Scala – can create data pipelines for reporting, analytics, and even feature engineering more easily as it comes in a nice SQL package.”

Other big data jobs, like processing payment runs, now also take significantly less time thanks to the performance boost of the cloud.

“Processing hundreds of millions of dollars in payments takes a lot of work,” Stange-Tregear said. “Those runs used to be a material quarterly effort which took weeks, now we can rescore and process that and recalibrate in a couple of days.”

Life after Hadoop

All of this effort comes with some cost efficiencies, too. Stange-Tregear, Joji John, and the CFO now all get daily Tableau reports detailing daily data processing spend, split by business function.

“We can see the effective cost for each [function] and make that consistent over time,” Stange-Tregear explained. “We can easily go in and see where we are spending and where to spend time optimising, and new workloads show us the cost immediately. That was difficult with Hadoop.”

Like many companies before them, Rakuten Rewards milked as much value out of its Hadoop investment as possible, but when an easier way to maintain that platform emerged – while enabling a much wider range of users to benefit – the rewards far outweighed the costs.


Follow Us

Join the newsletter!

Or

Sign up to gain exclusive access to email subscriptions, event invitations, competitions, giveaways, and much more.

Membership is free, and your security and privacy remain protected. View our privacy policy before signing up.

Error: Please check your email address.

Tags hadoopRakuten

Events

Featured

Slideshows

Meet the Reseller News 30 Under 30 Tech Awards 2020 winners

Meet the Reseller News 30 Under 30 Tech Awards 2020 winners

This year’s Reseller News 30 Under 30 Tech Awards were held as an integral part of the first entirely virtual Emerging Leaders​ forum, an annual event dedicated to identifying, educating and showcasing the New Zealand technology market’s rising stars. The 30 Under 30 Tech Awards 2020 recognised the outstanding achievements and business excellence of 30 talented individuals​, across both young leaders and those just starting out. In this slideshow, Reseller News honours this year's winners and captures their thoughts about how their ideas of leadership have changed over time.​

Meet the Reseller News 30 Under 30 Tech Awards 2020 winners
Reseller News Exchange Auckland: Beyond the myths — how partners can master cloud security

Reseller News Exchange Auckland: Beyond the myths — how partners can master cloud security

This exclusive Reseller News Exchange event in Auckland explored the challenges facing the partner community on the cloud security frontier, as well as market trends, customer priorities and how the channel can capitalise on the opportunities available. In association with Arrow, Bitdefender, Exclusive Networks, Fortinet and Palo Alto Networks. Photos by Gino Demeer.

Reseller News Exchange Auckland: Beyond the myths — how partners can master cloud security
Reseller News welcomes industry figures at 2020 Hall of Fame lunch

Reseller News welcomes industry figures at 2020 Hall of Fame lunch

Reseller News welcomed 2019 inductees - Leanne Buer, Ross Jenkins and Terry Dunn - to the fourth running of the Reseller News Hall of Fame lunch, held at the French Cafe in Auckland. The inductees discussed the changing face of the IT channel ecosystem in New Zealand and what it means to be a Reseller News Hall of Fame inductee. Photos by Gino Demeer.

Reseller News welcomes industry figures at 2020 Hall of Fame lunch
Show Comments