Legacy Modernization with Integrated Efficiency and Security

6 min. read 4/12/2026

65% less time spent on environment provisioning and a threefold increase in efficiency for automated processes

Foursys supported a company with large-scale technology operations in modernizing a monolithic mainframe environment. In six months, 450,000 lines of COBOL code were migrated to .NET Core and 2,400 API methods were implemented, along with the restructuring of applications into microservices and the migration of the DB2 database to SQL Server.

The need for change went beyond a simple technology upgrade. High licensing costs, poor scalability, and batch processes lasting about six hours limited operational agility and the business’s capacity for innovation.

The initiative combined application modernization, DevOps automation, observability, and cybersecurity to transform the technology stack and the way the environment is operated.


The Challenge: When the Mainframe Limits Evolution

The client relied on a legacy mainframe system with a monolithic architecture, which hindered application evolution and the expansion of operational capacity.
Licensing costs put pressure on operations, while batch processes lasting about six hours restricted processing agility. Poor scalability also compromised the ability to keep pace with new business demands.

Modernization required migrating a large volume of COBOL code, restructuring the architecture, transforming the data layer, and quickly training the team. All of this had to be accomplished in six months, with a focus on high availability and performance.


Key challenges:

  • High licensing costs: reliance on a mainframe environment with high technology maintenance costs.

  • Slow processing: batchroutines lasting about six hours, impacting operational agility.
    Limited scalability: a monolithic architecture that hindered application evolution.

  • Code volume: migration of 450,000 lines of COBOL to .NET Core.

  • Architectural transformation: restructuring the monolith into microservices and migrating from DB2 to SQL Server.

  • Team training: preparing professionals to work with the new architecture and the adopted tools.

  • Timeline: Delivery of the modernization program in six months.


Why Foursys?

In this scenario, Foursys’ contribution was to align legacy modernization with operational evolution, rather than treating code migration as a standalone initiative.

The project combined assisted transpilation, architectural restructuring, data migration, and the implementation of a DevOps pipeline. Automation, monitoring, and cybersecurity were integrated into the program to support the development and operation of the modernized applications.

In addition to transforming the technology stack, the project involved training the team to work with microservices, containers, and automated processes.

The key differentiators of this project were:

  • Integrated modernization: transformation of applications, architecture, and the database within the same program.

  • Assisted transpilation: support for migrating a large volume of COBOL code to .NET Core.
  • Automated deployments: implementation of CI/CD pipelines using Jenkins and AWS CodePipeline.
  • Operational observability: monitoring with Grafana and Prometheus.
  • Cybersecurity within the scope: protection of web applications as part of the transformation.
  • Technical training: preparing the team to work in the modernized environment.

The solution: modernizing the architecture and transforming operations

Foursys migrated the COBOL mainframe code to .NET Core and restructured the monolithic architecture into microservices. The transformation also included migrating the database from DB2 to SQL Server.


Assisted transpilation supported the code conversion, accompanied by the implementation of unit tests. To automate deliveries, CI/CD pipelines were deployed using Jenkins and AWS CodePipeline.


The applications now use Docker containers and Kubernetes orchestration. Monitoring with Grafana and Prometheus brought observability to the environment, while Zena scripts supported the automation of batch processes.


The cybersecurity team integrated the program with measures to protect web applications against malicious access.

The delivery included:

  • Code migration: conversion of 450,000 lines of COBOL to .NET Core.
  • Microservices architecture: restructuring of applications previously concentrated in a monolith.
  • API implementation: delivery of 2,400 API methods.
  • Database modernization: migration from DB2 to SQL Server.
  • Unit testing: support for validating the modernized code.
  • CI/CD pipelines: automation of deployments using Jenkins and AWS CodePipeline.
  • Containerization and orchestration: use of Docker and Kubernetes.
  • Observability: monitoring with Grafana and Prometheus.
  • Batch automation: implementation of Zena scripts.
  • Cybersecurity: protecting web applications against malicious access

Key Technologies and Methodologies

  • COBOL and mainframe: core technologies of the legacy environment.
  • .NET Core: target platform for application modernization.
  • Microservices: architecture adopted for monolith restructuring.
  • DB2 and SQL Server: source and target databases for migration.
  • Assisted transpilation: support for transforming legacy code.
  • Unit tests: validation of modernized code units.
  • Jenkins and AWS CodePipeline: tools used in CI/CD pipelines.
  • Docker: containerization of applications.
  • Kubernetes: container orchestration.
  • Grafana and Prometheus: monitoring and observability of the environment.
  • Zena: automation of batch processes.
  • DevOps: integration of automation with development and operations practices.

Success Factors and Challenges Overcome

The transformation required more than just converting code between languages. It was necessary to coordinate the migration of applications and data, restructure the architecture, and prepare the team for a new way of developing and operating the systems.


The six-month timeline made the integration of these areas particularly important. Assisted transpilation, testing, and delivery automation supported the execution, maintaining a focus on availability and performance.


The key factors were:

  • Large-scale migration: transformation of 450,000 lines of COBOL code to .NET Core.

  • Architectural restructuring: evolution from a monolith to microservices.
  • Data layer modernization: migration from DB2 to SQL Server as part of the program.
  • Delivery cycle automation: implementation of CI/CD pipelines and standardization of container usage.
  • Operational visibility: adoption of monitoring tools to track the environment.
  • Rapid training: preparing the team for the adopted technologies and practices.

  • On-time execution: completion of deliverables within six months.


Results

The program demonstrated how legacy modernization, combined with automation and cybersecurity, can enhance operational efficiency and lay the groundwork for application evolution.

The reported results were:

  • A 65% reduction in environment provisioning time.

  • A threefold increase in operational efficiency for automated processes.

  • More than 39,000 monthly blocks of malicious access attempts to web applications.

  • 450,000 lines of code migrated.

  • 2,400 API methods implemented.

  • Program delivered in six months.


The project also established a microservices-based architecture, with a DevOps pipeline, containerization, and observability to support ongoing technological evolution.


This case study underscores that modernizing a legacy system goes beyond simply replacing a programming language or a database.

The value lies in aligning architecture, engineering, automation, and security with operational needs.

With this approach, Foursys reduced provisioning time, increased the efficiency of automated processes, and integrated application security into the transformation.

Is your legacy system limiting your business’s growth? Talk to Foursys and find out how to integrate application modernization, DevOps, and cybersecurity into your digital transformation.

Technology, innovation and people to drive your business.

At Foursys, we connect strategy, innovation, digital engineering, data, AI, cybersecurity and organizational agility to build complete, secure and scalable solutions. We work from concept to sustained operation, helping companies modernize, accelerate delivery, make smarter decisions and generate continuous value across their digital transformation journey.

Barueri - SP Tamboré | Headquarters

Av. Tamboré, 267 - Torre Norte

9º Floor |+55 (11) 4134-2222

São Paulo - Brazil Paulista Avenue Office

Av. Paulista, 1009

8th Floor | +55 11 4861-8560

Paraná - Southern Brazil Curitiba Office

R. Comendador Araújo, 499

10th Floor | +55 (41) 2106-6709

Rio de Janeiro - Brazil Rio de Janeiro Office

Av. Pres. Vargas, 3131 - Suite 604

Cidade Nova, Rio de Janeiro

Florida (USA) Florida Office

980 N. Federal Highway #110

Boca Raton, Florida 33432

Israel Israel Office

Dedicated to Information Security and AI​

Lisbon Office Lisbon (Portugal)

Avenida da Liberdade, 110

1269-046 Lisboa, Portugal