Engineer cuts AWS Glue pipeline runtime by 56% with four targeted optimizations
A software engineer reduced the end-to-end runtime of a production AWS Glue and PySpark pipeline — handling Oracle-to-S3 ingestion, encryption, and downstream transfer — by approximately 56% without altering any business logic. Key gains came from raising Step Functions Map concurrency from 30 to 50, eliminating redundant multi-pass file rewrites in the publish layer, and threading CPU-bound ZIP compression while lowering DEFLATE to level 1. Two additional investigations yielded lessons rather than wins: parallelizing GPG encryption caused out-of-memory crashes due to multi-GB files being loaded fully into RAM, and an SFTP transfer job proved bandwidth-bound rather than concurrency-limited. The engineer ultimately moved the SFTP job to a lighter Glue Python Shell instance, cutting infrastructure cost while maintaining the same throughput.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in