Better Programming

Advice for programmers.

Follow publication

Member-only story

The Hidden Cost of Parallel Processing in GitHub Actions

Wenqi Glantz
Better Programming
Published in
6 min readApr 5, 2023
Image source: The Blue Diamond Gallery

In my recent effort to optimize our GitHub Actions workflows, I came across a surprising fact I was unaware of. I feel it’s important to share my finding in this article.

Parallel Processing in GitHub Actions

Parallel processing in GitHub Actions workflows is a common “best practice” for the many benefits it brings:

  • Faster execution: By distributing a job across multiple parallel processors, the overall execution time can be reduced significantly.
  • Scalability: Parallel processing can help scale workflows to handle larger and more complex projects.
  • Resource optimization: With parallel processing, it is possible to allocate resources more efficiently, allowing for better resource utilization.

If we compare a sequential workflow job to a monolithic application, parallel processing can be regarded as the light-weight microservices, with many smaller workflow jobs which focus on their specific purposes.

In the CI/CD world, using parallel processing to tackle unit tests, integration tests, security scanning…

Create an account to read the full story.

The author made this story available to Medium members only.
If you’re new to Medium, create a new account to read this story on us.

Or, continue in mobile web

Already have an account? Sign in

Wenqi Glantz
Wenqi Glantz

Written by Wenqi Glantz

Mom, wife, architect with a passion for technology and crafting quality products linkedin.com/in/wenqi-glantz-b5448a5a/ twitter.com/wenqi_glantz

Write a response