Microservices and the First Law of Distributed Objects (2 | Mewayz | Mewayz Blog Skip to main content
Hacker News

Microservices and the First Law of Distributed Objects (2014)

Comments

11 min read Via martinfowler.com

Mewayz Team

Editorial Team

Hacker News

The Ghost in the Modern Machine: Revisiting a Foundational Principle

In the relentless drive towards digital agility, microservices have become the architectural pattern of choice for building scalable, resilient applications. By decomposing a monolithic system into a collection of small, independent services, development teams can innovate faster and deploy with greater confidence. However, this distributed power comes with inherent complexity. Years before microservices became ubiquitous, a prescient principle was articulated that cuts to the heart of this challenge. In 2014, Martin Fowler and James Lewis, in their seminal work on microservices, introduced the "First Law of Distributed Objects." This law states a simple, brutal truth: Don't distribute your objects. While seemingly contradictory to the microservices approach, this law is not a condemnation but a crucial warning—a guiding star for navigating the treacherous waters of distributed systems design.

What is the First Law of Distributed Objects?

To understand this law, we must first step back from microservices and consider its predecessor: the distributed object paradigm. Technologies like CORBA, Java RMI, and DCOM promised a world where objects could seamlessly communicate across network boundaries as if they were local. The idea was seductive—a unified programming model that abstracted away the complexities of the network. The reality, however, was a nightmare of tight coupling, brittle connections, and hidden failures. The "First Law" emerged as a hard-earned lesson from this era. It asserts that the network is not transparent; it is unreliable, slow, and fundamentally different from local memory. Trying to pretend otherwise by making remote calls look like local method invocations is a recipe for disaster. It creates a system where a tiny, remote failure can cascade unpredictably, and where performance is unknowable.

"The first law of distributed objects: Don't distribute your objects. It's expensive, it's complex, and it's a source of many bugs. The network is not transparent."

From Warning to Wisdom: Applying the Law to Microservices

If the First Law warns against distribution, how can it possibly apply to microservices, which are inherently distributed? The key is in the interpretation. The law isn't saying "never build distributed systems." It is saying, "don't be naive about it." Microservices, when done correctly, embrace the reality of the network rather than trying to hide it. They accept the consequences of distribution and design for them explicitly. This means:

  • Designing for Failure: Assuming that services will fail and building in resilience patterns like retries, circuit breakers, and graceful degradation.
  • Embracing Asynchronous Communication: Using message queues and event-driven patterns to avoid the tight, synchronous coupling that plagued distributed objects.
  • Defining Clear Boundaries: Creating services around business capabilities, with well-defined APIs, rather than technical concerns, which leads to cleaner, more stable interfaces.
  • Prioritizing Data Ownership: Ensuring each service is the sole owner of its data, avoiding the shared database anti-pattern that recreates the monolithic coupling on the data layer.

In this light, the First Law is a foundational principle for successful microservice architecture. It forces teams to think critically about service boundaries and communication patterns from the outset.

Mewayz: Building on Stable Ground

For modern businesses, the theoretical challenges of distributed systems become very practical very quickly. This is where a platform like Mewayz provides a critical advantage. Building and maintaining a robust microservices architecture from scratch requires immense expertise and continuous effort. Mewayz acts as a modular business OS that internalizes the hard lessons of the First Law of Distributed Objects. It provides the underlying infrastructure—the service discovery, API gateways, event bus, and data persistence layers—that are designed from the ground up to handle the complexities of distribution. Instead of your team wrestling with the intricacies of network reliability and latency, they can focus on developing the business logic that delivers value. Mewayz ensures that the foundational elements of your distributed system are built on stable, proven ground, allowing you to leverage the benefits of a microservices approach without falling into the traps that the First Law so wisely identified.

Conclusion: A Law for the Ages

The First Law of Distributed Objects remains as relevant today as it was in 2014. It serves as a timeless reminder that while technology paradigms evolve, the fundamental constraints of physics and networks do not. For any organization embarking on a microservices journey, respecting this law is the first step toward building a system that is not just distributed, but truly resilient and scalable. It encourages a philosophy of deliberate design over convenient abstraction. By choosing a platform like Mewayz, you are not just adopting technology; you are embedding this wisdom into the very fabric of your business operations, ensuring that your architecture is built to last and perform in the real world.

💡 DID YOU KNOW?

Mewayz replaces 8+ business tools in one platform

CRM · Invoicing · HR · Projects · Booking · eCommerce · POS · Analytics. Free forever plan available.

Start Free →

Frequently Asked Questions

The Ghost in the Modern Machine: Revisiting a Foundational Principle

In the relentless drive towards digital agility, microservices have become the architectural pattern of choice for building scalable, resilient applications. By decomposing a monolithic system into a collection of small, independent services, development teams can innovate faster and deploy with greater confidence. However, this distributed power comes with inherent complexity. Years before microservices became ubiquitous, a prescient principle was articulated that cuts to the heart of this challenge. In 2014, Martin Fowler and James Lewis, in their seminal work on microservices, introduced the "First Law of Distributed Objects." This law states a simple, brutal truth: Don't distribute your objects. While seemingly contradictory to the microservices approach, this law is not a condemnation but a crucial warning—a guiding star for navigating the treacherous waters of distributed systems design.

What is the First Law of Distributed Objects?

To understand this law, we must first step back from microservices and consider its predecessor: the distributed object paradigm. Technologies like CORBA, Java RMI, and DCOM promised a world where objects could seamlessly communicate across network boundaries as if they were local. The idea was seductive—a unified programming model that abstracted away the complexities of the network. The reality, however, was a nightmare of tight coupling, brittle connections, and hidden failures. The "First Law" emerged as a hard-earned lesson from this era. It asserts that the network is not transparent; it is unreliable, slow, and fundamentally different from local memory. Trying to pretend otherwise by making remote calls look like local method invocations is a recipe for disaster. It creates a system where a tiny, remote failure can cascade unpredictably, and where performance is unknowable.

From Warning to Wisdom: Applying the Law to Microservices

If the First Law warns against distribution, how can it possibly apply to microservices, which are inherently distributed? The key is in the interpretation. The law isn't saying "never build distributed systems." It is saying, "don't be naive about it." Microservices, when done correctly, embrace the reality of the network rather than trying to hide it. They accept the consequences of distribution and design for them explicitly. This means:

Mewayz: Building on Stable Ground

For modern businesses, the theoretical challenges of distributed systems become very practical very quickly. This is where a platform like Mewayz provides a critical advantage. Building and maintaining a robust microservices architecture from scratch requires immense expertise and continuous effort. Mewayz acts as a modular business OS that internalizes the hard lessons of the First Law of Distributed Objects. It provides the underlying infrastructure—the service discovery, API gateways, event bus, and data persistence layers—that are designed from the ground up to handle the complexities of distribution. Instead of your team wrestling with the intricacies of network reliability and latency, they can focus on developing the business logic that delivers value. Mewayz ensures that the foundational elements of your distributed system are built on stable, proven ground, allowing you to leverage the benefits of a microservices approach without falling into the traps that the First Law so wisely identified.

Conclusion: A Law for the Ages

The First Law of Distributed Objects remains as relevant today as it was in 2014. It serves as a timeless reminder that while technology paradigms evolve, the fundamental constraints of physics and networks do not. For any organization embarking on a microservices journey, respecting this law is the first step toward building a system that is not just distributed, but truly resilient and scalable. It encourages a philosophy of deliberate design over convenient abstraction. By choosing a platform like Mewayz, you are not just adopting technology; you are embedding this wisdom into the very fabric of your business operations, ensuring that your architecture is built to last and perform in the real world.

All Your Business Tools in One Place

Stop juggling multiple apps. Mewayz combines 208 tools for just $49/month — from inventory to HR, booking to analytics. No credit card required to start.

Try Mewayz Free →

Try Mewayz Free

All-in-one platform for CRM, invoicing, projects, HR & more. No credit card required.

Start managing your business smarter today

Join 6,208+ businesses. Free forever plan · No credit card required.

Ready to put this into practice?

Join 6,208+ businesses using Mewayz. Free forever plan — no credit card required.

Start Free Trial →

Ready to take action?

Start your free Mewayz trial today

All-in-one business platform. No credit card required.

Start Free →

14-day free trial · No credit card · Cancel anytime