Background Image
DIGITAL TRANSFORMATION

APIs and the Walls They Build: Do Good Fences Make Good Neighbors?

November 6, 2024 | 3 Minute Read

Good fences make good neighbors. In his poem, Mending Wall, Robert Frost repeats this line. Two neighbors repair their mutual fence. By doing so together, they ensure that neither has moved the property line. This fence separates their mutual domains. Their fence likely had a handful of approved entry points between them. In software, we'd call such a fence an API. 

Application Programming Interfaces, or APIs, are the way one developer interacts with another's code. This could be as simple as a class interface.  Or it could be as complex as the facade on a library, or even the REST API of a vendor's microservice. Just like that fence, there are a handful of approved entry points.  And the API makes a clear distinction between what is mine, and what is not. This is incredibly useful, but also potentially limiting. What happens when I'm using another internal team's API, and discover a bug just beyond the entry point? This API marks a clear distinction between mine and theirs. So, I can't just reach into their yard and fix it... can I? After all, it's clearly on their side of the fence.  

Asset - Image 1 APIs and the Walls They Build: Do Good Fences Make Good Neighbors? 

Software Engineering depends heavily on abstraction. We tend to wrap lots of details in metaphorical boxes. Then we interact with that abstraction/box in more predictable ways. Sometimes, I stack my boxes with my neighbors to build our box fort. It can be incredibly helpful with large systems, but what does it do to our communication? In the example above, the abstraction, aka the fence, encouraged me to *not* fix the bug and leave it for my neighbor. In another way, my system design encouraged a pattern of human communication. That's Conway's Law hard at work! Organizations tend to develop systems that mirror the organization's own communication structure! 

Some organizations take this issue by the horns. Amazon’s famous Team APIs memo is one such example. By raising this API issue from a mere Software challenge to a ‘how we do business’ challenge, Bezos fundamentally changed how his organization would run. Apocryphally, that memo laid the groundwork for the giant which is AWS. But it doesn’t take the CEO to write a memo for your software to constrain the future of your company. Consider the banks. Most banks today are still running COBOL applications from the late 1970s and 1980s. About $3 Trillion in daily transactions touch those systems today. Incredibly successful but that software now constrains the way the business can operate. 

This reveals a new question we should ask ourselves when designing software. "Does this Architecture encourage the kinds of behaviors the company needs?" Our designs can either foster better communication or hinder it.  What does it mean to be 'good neighbors' in your organization? Do you want mutual support, like with InnerSource Commons? Or do you believe in strong API fences and a strong separation of duties? What you mean by 'good fences', tells you what you mean by 'good neighbors'. 

If you’d like to start building better ‘fences’ within your organization, ones that foster effective collaboration and agility, reach out to us here at Improving! Let’s create APIs that not only get the job done but create good neighbors within your organization! Contact us today and let's start building a better future, one API at a time.

Digital Transformation
Software Development

Most Recent Thoughts

Explore our blog posts and get inspired from thought leaders throughout our enterprises.
Asset - Image 1 APIs and the Walls They Build: Do Good Fences Make Good Neighbors? 
DIGITAL TRANSFORMATION

APIs and the Walls They Build: Do Good Fences Make Good Neighbors?

The document compares API design to "good fences make good neighbors" from Robert Frost's poem, showing how APIs can aid or hinder communication.