VOOZH about

URL: https://thenewstack.io/is-apache-spark-too-costly-an-aws-engineer-tells-his-story/

⇱ Is Apache Spark Too Costly? An Amazon Engineer Tells His Story - The New Stack


TNS
SUBSCRIBE
Join our community of software engineering leaders and aspirational developers. Always stay in-the-know by getting the most important news and exclusive content delivered fresh to your inbox to learn more about at-scale software development.
REQUIRED
It seems that you've previously unsubscribed from our newsletter in the past. Click the button below to open the re-subscribe form in a new tab. When you're done, simply close that tab and continue with this form to complete your subscription.
The New Stack does not sell your information or share it with unaffiliated third parties. By continuing, you agree to our Terms of Use and Privacy Policy.
Welcome and thank you for joining The New Stack community!
Please answer a few simple questions to help us deliver the news and resources you are interested in.
REQUIRED
REQUIRED
REQUIRED
REQUIRED
REQUIRED
Great to meet you!
Tell us a bit about your job so we can cover the topics you find most relevant.
REQUIRED
REQUIRED
REQUIRED
REQUIRED
REQUIRED
Welcome!

We’re so glad you’re here. You can expect all the best TNS content to arrive Monday through Friday to keep you on top of the news and at the top of your game.

What’s next?

Check your inbox for a confirmation email where you can adjust your preferences and even join additional groups.

Follow TNS on your favorite social media networks.

Become a TNS follower on LinkedIn.

Check out the latest featured and trending stories while you wait for your first TNS newsletter.

PREV
1 of 2
NEXT
VOXPOP
As a JavaScript developer, what non-React tools do you use most often?
Angular
0%
Astro
0%
Svelte
0%
Vue.js
0%
Other
0%
I only use React
0%
I don't use JavaScript
0%
Thanks for your opinion! Subscribe below to get the final results, published exclusively in our TNS Update newsletter:
NEW! Try Stackie AI
From clobbered drafts to real-time sync
Apr 14th 2026 10:00am, by David Moore
TypeScript 6.0 RC arrives as a bridge to a faster future
Mar 14th 2026 9:00am, by Darryl K. Taft
Mastra empowers web devs to build AI agents in TypeScript
Jan 28th 2026 11:00am, by Loraine Lawson
2024-11-21 10:45:02
Is Apache Spark Too Costly? An Amazon Engineer Tells His Story
podcast,sponsor-amazon-web-services-aws,sponsored-podcast-day-of-podcasting,video,
Data

Is Apache Spark Too Costly? An Amazon Engineer Tells His Story

Patrick Ames, a principal engineer and "go-to" guy at Amazon, tells what led to the company's move from Spark to Ray in this episode of The New Stack Makers.
Nov 21st, 2024 10:45am by Alex Williams
👁 Featued image for: Is Apache Spark Too Costly? An Amazon Engineer Tells His Story
Alex Williams (left) with Patrick Ames at All Things Open 2024.
AWS sponsored this post.

RALEIGH, N.C. — Is Apache Spark too costly?

On LinkedIn, Amazon Principal Engineer Patrick Ames is recommended as the “go-to” guy for explaining how things work. You get that kind of reputation when you manage exabyte-scale data transfers from Apache Spark to Ray, a unified framework for scaling AI and Python applications.

Ray, by the way, is the new hotness. According to its GitHub page, open source Ray consists of a core distributed runtime and a set of AI libraries for simplifying machine learning compute.

We talk to a lot of engineers. Sometimes, it’s insightful to learn a bit about who they are.

“I guess I’ve alway approached things with a certain goal in mind,” Ames said in an interview at All Things Open for The New Stack Makers. “I’ve been a person who’s always set out on engineering projects or other pursuits of curiosity with some ends in mind. So, here at Amazon, and in other projects in life, it’s usually just me learning what I need to do to get past some problem that I’m having, or to make something easier in life for myself.

“I’d say I’ve taken a very kind of goal-oriented approach to engineering over the years, where I’m looking at some problem, looking at something that is difficult to do, and trying to find out ways of making it less difficult or easier to approach that sort of problem. So, a goal-driven pursuit of curiosity throughout my life.”

Does that mean Ames is the around-the-house project guy who makes the house more user-friendly? Why, yes.

“You’ve got daily chores, you got daily things you want to do,” he said. “How do you make that easier? How do you make it more painless? How do you make it more fun?”

The Tradeoffs of Spark

Software engineering reduces the act of repeatedly thinking through the same problems by codifying solutions, Ames said. Then, it comes down to revising that approach to the solution and making it more optimal over time.

That’s comparable to large-scale data projects such as moving from Spark to Ray, the talked-about technology that has replaced Spark at Amazon.

But why use Spark in the first place? First of all, it was a popular open source technology that was simple to stand. It merges inserts, updates and deletes with a few simple lines of Spark SQL.

The team at Amazon gave different tools a go, such as AWS Redshift, Apache Hive, and Flink. Sprak entered the picture to cache the results of merging data. Architects worked with Spark, designing it for a decoupled model over data stored in Amazon Simple Storage Service (S3). It wasn’t a coupled model like historic data warehouse databases of storage and compute.

But some tradeoffs led Ames and his team to try Ray.

Spark worked well. The Amazon team went through some growing pains. Using Spark required implementing a serverless job management infrastructure, managing thousands of Spark jobs daily, which means thousands of different Spark clusters daily. But business issues started to surface. Scaling problems popped up.

Recalled Ames, “Once individual partitions of inserts, updates and deletes or unpartitioned tables of these same change data capture logs grew to, say, hundreds of terabytes or petabyte scale,  we were again encountering this familiar scaling problem of, OK, Spark jobs are taking an onerously long time to complete, data consumers are complaining that it’s taking too long to receive their data insights that they need to run their business, and it’s also costing us too much money just to run these gargantuan Spark clusters.”

And so attention eventually turned to Ray. The Amazon team experimented at first and soon found a substantial difference in efficiency.

What was that efficiency? We’ll leave that to you, dear listener, to hear from Ames in this edition of The New Stack Makers.

Since its inception, Amazon Web Services (AWS) has been the best place for customers to build and run open source software in the cloud. AWS is proud to support open source projects, foundations, and partners.
Learn More
The latest from AWS
Hear more from our sponsor
TRENDING STORIES
Alex Williams is founder and publisher of The New Stack. He's a longtime technology journalist who did stints at TechCrunch, SiliconAngle and what is now known as ReadWrite. Alex has been a journalist since the late 1980s, starting at the...
Read more from Alex Williams
AWS sponsored this post.
SHARE THIS STORY
TRENDING STORIES
SHARE THIS STORY
TRENDING STORIES
TNS DAILY NEWSLETTER Receive a free roundup of the most recent TNS articles in your inbox each day.
The New Stack does not sell your information or share it with unaffiliated third parties. By continuing, you agree to our Terms of Use and Privacy Policy.