Key Takeaways: MSA migration is not a one-time rebuild but a gradual process of placing a request-splitting point in front of the existing system and moving functions one by one to new services. It is effective when there are actual issues with deployment, scaling, and team composition, and as the number of services increases, inter-service authentication, API management, and log tracing must be designed concurrently.
- Clearly diagnose the deployment cycle, impact of failures, and inter-team dependency issues of the currently operating monolithic system.
- Carefully evaluate whether MSA migration is suitable for business objectives and operational capabilities.
- Clearly define service boundaries based on business domains and data ownership.
- Prepare the essential technical foundation for MSA operations, including container platforms, CI/CD, and integrated monitoring.
- Establish security designs for inter-service communication and data consistency in advance, alongside a gradual migration strategy.
Last Updated: November 2026
What is MSA? Differences from Monolithic Architecture
MSA is an architecture that divides a single application into small, business-unit services that communicate via APIs. Each service can be independently developed, deployed, and scaled, allowing for flexible management of complex systems.
Monolithic architecture consists of a single large application where all functionalities are tightly coupled. In contrast, MSA is a collection of small services separated by function, with each service having an independent lifecycle. These structural differences significantly impact system development, operation, and scaling methods.
| Category | Monolithic | MSA |
|---|---|---|
| Deployment Unit | A single, massive application | Small, business-unit services |
| Scaling Method | Vertical/horizontal scaling of the entire application | Independent scaling for each service |
| Data Storage | Use of a shared database | Independent data storage per service (ideal) |
| Scope of Failure Impact | A single failure impacts the entire system | Isolated between services, limiting impact |
| Team Structure | Feature-based teams, shared codebase | Small, independent teams per service |
| Operational Complexity | Simple deployment, complex code management | Distributed system management, complex infrastructure |
| Security Boundary | A single, broad security boundary | Granular security boundary for each service |
When MSA Migration is Appropriate and Inappropriate
When considering MSA migration, it is crucial to thoroughly analyze the current system's issues and the organization's readiness. While MSA is effective for solving specific problems, it is not the optimal solution for every system.
When MSA Migration is Appropriate
MSA migration can yield positive effects in the following situations:
- When small functional changes necessitate redeploying the entire system, leading to slow release cycles.
- When load is concentrated on a specific function, causing inefficiencies that require scaling the entire system.
- When multiple development teams work on a single codebase and affect each other's changes.
- When only a portion of an older tech stack system needs to be replaced with newer technologies.
When MSA Migration is Inappropriate
In the following situations, it is advisable to consider MSA migration carefully or explore alternative solutions:
- When the system is small and a single team can manage all functionalities.
- When business domain boundaries frequently change, making service separation difficult.
- When the capabilities and infrastructure required for distributed system operations, such as containers, CI/CD, and monitoring, are not prepared.
- When the existing system needs to be completely replaced quickly (when gradual migration is not suitable).
The essence of MSA migration is to clearly define service boundaries based on business domains and ensure each service owns its data. Without proper design, services may become separated but still operate as a 'distributed monolithic' system, requiring joint deployment and operation, which is an inefficient state.
6-Step MSA Migration Method (Strangler Pattern)
The Strangler Pattern is an effective method for migrating to MSA by gradually replacing functions of an existing system with new services. This pattern helps minimize risks when it is challenging to replace an entire complex monolithic system at once. Clients continue to use services through the same interface during the transition, and the existing system and new services operate concurrently throughout the migration period.
1) Current State Analysis and Goal Definition
Clearly document and analyze the current system's deployment cycle, scope of impact during failures, and inter-development team dependencies. This step involves defining specific goals to be achieved through MSA migration (e.g., improved deployment speed, enhanced scalability for specific functions, replacement of particular tech stacks).
2) Service Boundary Definition
Identify and define independent service boundaries based on business domains. Establish principles for which data each service will own and manage, clarifying data ownership.
3) Foundation Preparation
Prepare the technical foundation for operating microservices. Establish container platforms like Docker and Kubernetes, automated CI/CD pipelines, and a system for integrated tracking of logs, metrics, and requests from distributed services.
4) Establish a Request Splitting Point
Install a point that can divide and route client requests between the existing monolithic system and the newly developed microservices. Typically, an API Gateway or proxy fulfills this role, and clients send requests through the same interface.
5) Function Migration and Legacy Function Deactivation
Prioritize functions with minimal changes and clear boundaries for development and deployment as microservices. Route requests for these functions to the new services via the splitting point, then deactivate or remove the corresponding functions from the existing monolithic system. This process is repeated to gradually migrate functionalities.
6) Operational Stabilization and Legacy System Reduction
Continuously monitor the newly migrated microservices for stable operation and optimize their performance. Once all functionalities have been migrated to MSA, gradually reduce the role of the existing monolithic system and ultimately remove it.
MSA Data Separation: From Shared Database to Service-Specific Storage
In MSA, data separation is a crucial principle for ensuring the independence of each service and preventing the spread of failures. Ideally, each microservice owns and manages its data and is designed not to directly access data from other services.
Even if a shared database from an existing monolithic system is initially used, the process should begin by clearly defining which tables each service will own. Subsequently, data storage can be gradually separated so that each service has its own repository, depending on the service's independence and scalability requirements.
Inter-Service Data Consistency and Query Processing
When data storage is separated by service, data consistency can be maintained by utilizing event-based communication instead of distributed transactions. For instance, data synchronization between services can be achieved by publishing and subscribing to events via a message queue, and if necessary, compensatory processing mechanisms like the Saga Pattern can be applied to ensure eventual consistency for transactions. When data queries spanning multiple services are required, the API Composition pattern is used to integrate data from each service.
| Method | Description | Points to Confirm |
|---|---|---|
| Retain Shared DB (Initial) | Temporarily share the existing monolithic database, clearly defining table ownership per service. | Data dependencies between services still exist, leading to limitations in failure impact scope and deployment independence. |
| Service-Specific Schema Separation | Separate within a single physical database instance so that each service uses an independent schema. | While providing logical separation, physical resources are shared, so scaling and fault isolation scope must be separately verified. |
| Service-Specific Storage Separation | Each service has its own physical database instance or storage. | Ensures complete service independence and scalability, but distributed transaction and data consistency management become complex. |
MSA Security Checklist
As MSA increases service boundaries, new security strategies and checks tailored for distributed environments are essential. Important security checklist items should be verified based on NIST and OWASP guidelines.
a) External Entry Point Authorization
- Perform primary authentication and authorization for all external requests via the API Gateway.
- Implement rate limiting functionality to prevent Denial of Service (DoS) attacks.
- Minimize unnecessary external exposure, and only expose essential APIs.
b) Service-Level Authorization
- Do not solely rely on primary authorization at the API Gateway; each microservice should re-verify its own authorization for requests.
- Verify at the object level whether the user has permission to access specific objects (e.g., documents, records) (OWASP API1: Broken Object Level Authorization).
- Verify at the function level whether the user has permission to execute specific functions (e.g., administrator functions) (OWASP API5: Broken Function Level Authorization).
c) Inter-Service Authentication
- Apply mutual TLS (mTLS) or token-based authentication for secure identity verification in internal service communication.
- Design a mechanism to securely transmit external user identity information to internal services.
- Apply authentication to the Service Discovery mechanism to ensure only authorized services are registered.
d) Secrets and Configurations
- Manage and separate credentials such as database connection information and API keys for each service, and do not share them.
- Do not directly include sensitive secrets like passwords or API keys in source code or Docker images.
- All secrets should be rotated periodically and stored securely in an encrypted format.
e) Log/Trace and API Inventory Management
- Assign a Correlation ID to requests spanning multiple services to easily link and analyze distributed logs.
- Establish a centralized log collection system and utilize it for security monitoring and anomaly detection.
- Systematically manage the inventory of operational APIs and their versions to prevent exposure of unnecessary or outdated APIs (OWASP API9: Improper Inventory Management).
NIST SP 800-204A covers guidelines for building microservices security using a service mesh architecture. A service mesh is an option for consistently applying inter-service TLS, authentication, and traffic policies at the infrastructure level, rather than within the application code.
Common Issues During MSA Migration
While MSA migration offers several benefits, organizations may encounter unexpected issues due to the nature of distributed systems. Response strategies for each issue should be included in the migration plan.
Distributed Monolith
This refers to a state where services are logically separated but still share a single deployment unit or retain strong data dependencies, thus failing to achieve the benefits of MSA. True independent service separation must be achieved through thorough analysis of business domains and adherence to data ownership principles.
Cascading Failures Due to Synchronous Inter-Service Call Chains
If a service makes long synchronous calls to other services, delays or failures in one service can rapidly propagate to others. Setting timeouts, applying the Circuit Breaker pattern, and limiting retry attempts are essential to prevent cascading failures.
Data Consistency Issues
When each service has its independent data store, implementing distributed transactions can be challenging, leading to difficulties in maintaining eventual data consistency. It is necessary to manage data consistency asynchronously using event-driven architectures and the Saga pattern, and to design compensatory transactions as required.
Increased Operational Burden
As the number of services increases, operational complexity significantly rises in areas such as deployment, monitoring, logging, and fault tracing. Building a centralized observability system, automating deployment and infrastructure, and assigning dedicated teams per service are necessary to reduce operational burden and enhance efficiency.
API Style Selection
Selecting the inter-service communication method in MSA significantly impacts the architecture's performance and flexibility. It is essential to choose an appropriate communication protocol by considering the characteristics and use cases of each API style, such as REST, GraphQL, and gRPC. For more details, please refer to MSA API Architecture Selection Guide: REST, GraphQL, gRPC.
SeekersLab's MSA Migration Support
SeekersLab supports MSA migration from design to operational handover. This includes defining service boundaries through domain analysis and architectural design, decomposing monolithic systems (data separation, API design, defining inter-service communication methods), and building Kubernetes- and Docker-based container platforms. Additionally, SeekersLab assists with implementing authentication, authorization, routing, and rate limiting features via API Gateway, managing inter-service communication through service mesh, and establishing CI/CD pipelines. SeekersLab's migration process includes current state analysis, architectural design, infrastructure setup, gradual migration based on the Strangler Pattern, and operational stabilization phases. You can learn more about MSA Migration Services.
Frequently Asked Questions
Here are common questions to consider when evaluating MSA migration.
How long does MSA migration take?
The duration of MSA migration varies significantly depending on the size and complexity of the existing system, the scope of migration, and the organization's readiness, making it difficult to provide a precise numerical estimate. Generally, it is more realistic to gauge the overall migration period by performing the initial step of moving a single function to a microservice using the Strangler Pattern.
Must all systems be converted to MSA?
No. While MSA is an effective architecture for solving specific problems, a monolithic architecture may be more efficient for smaller systems or when business requirements are not clearly defined. Rather than migrating all systems to MSA, it is advisable to gradually apply it to core functions where the need for migration is higher.
Is Kubernetes absolutely necessary?
Kubernetes is not an absolute requirement for MSA. However, as the number of microservices increases, the complexity of deployment, scaling, and management grows. In such cases, Kubernetes provides a means to automate and manage the deployment and operation of containerized services. It is advisable to decide on its adoption considering operational capabilities and system scale.
When should databases be separated?
Database separation is a crucial part of MSA migration and is typically performed gradually. Initially, organizations can begin by clearly defining table ownership for each service within a shared database. Subsequently, physical data storage can be separated per service as needed to enhance service independence and scalability.
Does migrating to MSA improve security?
MSA offers the advantage of independent security boundaries for each service, thereby reducing single points of failure risk and preventing the spread of security breaches through inter-service isolation. However, as the number of services increases, if security design and management tailored for distributed environments—such as authentication, authorization, API management, and log tracing—are not concurrently implemented, the attack surface can expand, potentially increasing security vulnerabilities. Security design should be conducted alongside the migration planning phase.
References
- NIST SP 800-204: Security Strategies for Microservices-based Application Systems
- NIST SP 800-204A: Building Secure Microservices-based Applications Using Service-Mesh Architecture
- OWASP Microservices Security Cheat Sheet
- OWASP API Security Top 10 2023
- Azure Architecture Center: Strangler Fig Pattern







