Urgent.News

What's breaking now, across hundreds of outlets.

Tech

Microservices Won't Fix Your Architecture. They Might Expose It.

The hidden costs of distributed systems. A monolith becomes difficult to maintain. Deployments take longer. Teams start stepping on each other's code. A small change requires running thousands of tests. Someone suggests microservices. Break the application into smaller services. Give each team ownership. Deploy independently. Scale only what needs scaling. It sounds like the natural next step.…

Microservices are often touted as a solution to fix complex architectures. However, they may actually expose these complexities rather than solve them. As applications grow, deploying monoliths becomes cumbersome, requiring longer deployments and increased coordination between teams. This is when microservices are suggested - breaking the application into smaller, independently deployable units, each with its own team ownership and deployment pipeline.

But six months after implementing microservices, companies often end up with 20 services, multiple databases, and a deployment pipeline nobody wants to touch. It appears that microservices don't inherently reduce complexity. Instead, they shift it around. What was once a single application now has multiple deployment points, each with its own set of challenges like timeouts, authentication, retries, and distributed tracing.

The problem wasn't necessarily the monolith itself. Common issues like unclear module boundaries, poorly organized business logic, and too many dependencies between features aren't solved by simply splitting the codebase into services. A modular monolith can provide many of the same benefits as microservices without introducing the added complexity of network boundaries. Teams can establish separate modules, ownership rules, internal contracts, and dependency restrictions while keeping a single deployable application.

Independent deployment is the true test of a microservices architecture. A service may be physically separated, but if it's still tightly coupled with other services, it's not truly independent. This leads to a distributed monolith - an architecture that has the operational overhead of microservices without the flexibility that initially attracted teams.

One of the easiest mistakes during a microservices migration is keeping shared databases. This can create coordination issues when teams need to make changes to a shared database. A stronger design gives each service authority over its own data, establishing clearer ownership. Services can then communicate through defined APIs or consume published events, rather than directly accessing another service's private data.

This approach introduces challenges around synchronization and consistency, but it also enables clearer ownership and independence.

Lastly, distributed transactions change everything in a microservices architecture. Monoliths often use database transactions for consistency, such as creating an order and reducing inventory within a single database transaction. However, this approach doesn't scale well in a microservices environment. Transactions across multiple services become complex, error-prone, and difficult to manage.

Rewritten by urgent.news; may contain errors — check the original.

Source: dev.to

Read the original at dev.to →

Report a problem with this story

More in Tech

Moving a small business site to a new domain or platform: build the redirect map first

A rebuild or a domain change looks like a design job. For the owner's search traffic it is a plumbing job. Every old address that used to bring in a visitor, a customer or a link needs somewhere to go, and if nobody writes that list down before launch, it gets written by a search engine after launch, one 404 at a time.

  • Collect all old URLs from site crawl, Search Console, and physical materials
  • Map each old URL to closest equivalent new page, redirect removed pages appropriately
  • Use 301 permanent redirects, avoid chains of redirects, test map before migration

How a TCM culture-learning site keeps itself from looking like a medical product

HealGardens is a browser-based pixel town for learning Chinese herbal-food culture, materia medica, seasonal food traditions, and classic formula culture. Visitors walk the town. The project is explicit that this is cultural learning, not a clinical tool.

  • HealGardens is a virtual town for learning about Chinese herbal-food culture.
  • Site publishes safety rules, committing not to diagnose, prescribe, or collect health info.
  • Project aims to provide cultural knowledge, not medical treatment or prescriptions.

More from Sunday, 29 November 2026 →