By using this site, you agree to the Privacy Policy and Terms of Use.
Accept
World of SoftwareWorld of SoftwareWorld of Software
  • News
  • Software
  • Mobile
  • Computing
  • Gaming
  • Videos
  • More
    • Gadget
    • Web Stories
    • Trending
    • Press Release
Search
  • Privacy
  • Terms
  • Advertise
  • Contact
Copyright © All Rights Reserved. World of Software.
Reading: How Allegro Does Automated Code Migrations for over 2000 Microservices
Share
Sign In
Notification Show More
Font ResizerAa
World of SoftwareWorld of Software
Font ResizerAa
  • Software
  • Mobile
  • Computing
  • Gadget
  • Gaming
  • Videos
Search
  • News
  • Software
  • Mobile
  • Computing
  • Gaming
  • Videos
  • More
    • Gadget
    • Web Stories
    • Trending
    • Press Release
Have an existing account? Sign In
Follow US
  • Privacy
  • Terms
  • Advertise
  • Contact
Copyright © All Rights Reserved. World of Software.
World of Software > News > How Allegro Does Automated Code Migrations for over 2000 Microservices
News

How Allegro Does Automated Code Migrations for over 2000 Microservices

News Room
Last updated: 2025/05/19 at 2:43 PM
News Room Published 19 May 2025
Share
SHARE

Allegro shared the details of the process it uses to manage code migrations at scale. The company combined GitHub’s Dependabot and OpenRewrite projects into a custom solution that helps developers perform mundane code migration tasks automatically across numerous source code repositories. The company tackled many edge cases to ensure the process operates smoothly, relieving initial trust issues among developers.

Allegro created and manages a large microservices platform, spanning over 2000 services. At such a scale, code migrations can become a headache. Bartosz Gałek, principal engineer at Allegro, describes the challenges with applying code migrations manually:

Migrating code across numerous repositories is incredibly painful when new versions of a company-wide library introduce breaking changes. Traditionally, developers must follow migration guides in release notes, identify the required changes, and manually update their code. This process is not only time-consuming but also prone to human error, which can lead to inconsistencies and potential issues in production. It also raises many questions on Slack support channels.

The company opted to automate as many code migrations as possible and settled on using GitHub’s Dependabot and OpenRewrite project. Engineers created a custom GitHub application named allegro-rewrite and set themselves a mission to provide a developer-friendly process for supporting automated code migrations at scale. The team behind the project wanted to achieve specific goals, such as supporting easy adoption of new tools, providing auditability and reversibility, implementing a deadline process for time-sensitive migrations, and ensuring the migration can be easily re-run if needed.

The solution relies on Dependabot continuously monitoring Allegro’s GitHub organization for outdated dependencies. When Dependabot creates a pull request, the custom allegro-rewrite GitHub application triggers a workflow, which applies a series of OpenRewrite recipes to address breaking changes, based on the change use case.

Automated Code Migration Flow (Source: Allegro Technology Blog)

The team extended the initial implementation in many ways. Engineers introduced comment commands for GitHub pull requests, enabling interactions between PR reviewers and the allegro-rewrite application. Additionally, the application supports force-merging time-sensitive changes, such as when security vulnerabilities affecting many repositories must be addressed by a specific deadline. They also made the same application available as a CLI one so that the company’s engineers can use it locally and potentially leverage it for other use cases, beyond GitHub-related workflows.

Using CLI to run a custom OpenRewrite recipe (Source: Allegro Technology Blog)

Rolling out the automated process for code migrations faced some challenges. Initially, the company’s developers were quite sceptical about performing massive migrations in an automated fashion, worrying about the number of changes applied and the possibility of issues being introduced at scale. Furthermore, unforeseen post-deployment issues were encountered with code parsing and YAML formatting on a few occasions. Still, the team swiftly improved recipe test coverage to avoid such problems in the future. Lastly, the automated migration process resulted in an extra effort for internal library maintainers if they needed to implement OpenRewrite recipes to help deal with breaking changes introduced in new library versions.

Allegro developers are still working on further improvements and plan to open-source the solution so that other organizations can benefit from their experiences.

Mark Brown commented on the blog post:

This is amazing. We were just attempting to solve the same problem. Looking forward to being able to use this tool. Nice job, guys!

Sign Up For Daily Newsletter

Be keep up! Get the latest breaking news delivered straight to your inbox.
By signing up, you agree to our Terms of Use and acknowledge the data practices in our Privacy Policy. You may unsubscribe at any time.
Share This Article
Facebook Twitter Email Print
Share
What do you think?
Love0
Sad0
Happy0
Sleepy0
Angry0
Dead0
Wink0
Previous Article Toncoin Investors Pivot to Bitcoin Solaris: Last Chance Presale Before Potential 100x Returns
Next Article Douyin tests AI avatars for 24/7 livestreaming · TechNode
Leave a comment

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Stay Connected

248.1k Like
69.1k Follow
134k Pin
54.3k Follow

Latest News

PM threatens ‘further action’ if Israel doesn’t abandon plan to take over Gaza
News
China’s smartphone shipments reach 289 million units, up 6.5% y-o-y in 2023 · TechNode
Computing
How AI factories are reshaping enterprise infrastructure – News
News
Today's NYT Connections Hints, Answers for May 24, #713
News

You Might also Like

News

PM threatens ‘further action’ if Israel doesn’t abandon plan to take over Gaza

2 Min Read
News

How AI factories are reshaping enterprise infrastructure – News

8 Min Read
News

Today's NYT Connections Hints, Answers for May 24, #713

3 Min Read
News

Gigabyte Makes Bold Desktop Debut With AI-Driven PC Lineup at Computex

9 Min Read
//

World of Software is your one-stop website for the latest tech news and updates, follow us now to get the news that matters to you.

Quick Link

  • Privacy Policy
  • Terms of use
  • Advertise
  • Contact

Topics

  • Computing
  • Software
  • Press Release
  • Trending

Sign Up for Our Newsletter

Subscribe to our newsletter to get our newest articles instantly!

World of SoftwareWorld of Software
Follow US
Copyright © All Rights Reserved. World of Software.
Welcome Back!

Sign in to your account

Lost your password?