I describe Rails’ scope as “everything from the front-end JavaScript needed to make live updates to how the database is migrated from one version to another in production.”
I want Rails’ broad scope to remain “realistic to understand for a single person.”
I say Rails seeks to “equip generalist individuals to make these full systems.”
I define an integrated system as “A whole system that addresses an entire problem.”
I don’t want to “segregate specialists into small niches and then require whole teams of such in order to build anything of enduring value.”
I connect the integrated system to “empowering the individual.”
I see much of systems development’s complication as coming from “introducing new boundaries between the elements that restrict how you make calls between A and B.”
I warn that distribution brings “failure states, latency issues, and dependency update schedules.”
I recognize that “Sometimes this distribution is simply necessary.”
I describe the cost of necessary distribution as “a limited amount of damage inflicted on your own personal development experience.”
I say that sharing application components avoids the supposed tradeoff: “All this without giving up much if anything in terms of speed, user experience, or other attributes that falsely draw developers to premature distribution.”
In an integrated system, I can “cut out many needless abstractions, reduce the duplication between layers (like templates on both the server and the client), and, above all, avoid distributing our system before we absolutely, positively have to.”
I argue that “Method calls between objects is far simpler than remote procedure calls between microservices.”
When an HTTP API is necessary, I note that “handling requests inbound rather than sending them outbound is much easier – your downtime is someone else’s failure state!”
I warn against the point at which “systems are prematurely disintegrated and broken into services or, even worse, microservices.”
I reject the misconception that a modern internet application must “build the systems many times over.”
I argue that it is possible to “share large chunks of the entire application across multiple apps and accesses.”
I describe reusing Rails components as being able to “use the same controllers and views for the desktop web as for embedded in native mobile apps.”
I favor the integrated monolith: “centralize as much as possible within that glorious, majestic monolith.”
The tradeoff I seek is “All the power of individually tuned and distributed applications with the ease-of-use and understanding of a single, integrated system.”
I was excited by the possible conceptual compressions ahead, while treating single-tenancy at scale as a strategy whose success remained to be seen.
I was terribly excited about what conceptual compressions might lie just around the corner.
I framed the possibility conditionally: if single-tenancy at scale pans out as a strategy.
I invited people to find out whether the strategy would pan out.
I’m skeptical of engineering for a hypothetical scale milestone before it arrives. My criticism of premature scale assumptions fits my broader preference for the principles of simplicity and for avoiding needless complexity.
I agreed with the criticism by saying, “Bingo.”
I described developers who anticipate imminent massive scale as “temporarily embarrassed Web Scale operators” who are “just days away from dealing with Meta-levels of traffic and load.”
The point is skepticism toward acting as though extraordinary traffic and load are just around the corner, not a practical scaling prescription.
I criticized the microservices craze not only as an architectural fashion but as a way of creating unnecessary work for programmers. My characterization connects with my broader critique of microservices and preference for principles of simplicity.
I called the microservices craze perhaps the purest example of a ZIRP.
I said Roosevelt couldn't have designed a better full-employment program for programmers if he tried.
I posted this characterization on 2024-05-11 15:20 UTC.
I said merchants of complexity never go away; they merely migrate.
I named a progression from WS-DeathStar to microservices to premature k8s to auth services to GraphQL and beyond as examples of where complexity merchants migrate.
I said there's always a new insecurity popping up to prey on.
I see complexity-selling as recurring: its pitch moves on to new technologies and anxieties rather than disappearing. This connects to my preference for principles of simplicity and resisting needless complexity.
The Rails monolith at @GustoHQ is a concrete example relevant to my view that monoliths can scale. @edawerd reported that it had crossed 10M lines of code and had a Ruby Code:Ruby Test ratio of 1:1.4; I congratulated Gusto on the milestone.
I called the ten-million-line milestone incredible: “TEN MILLION LINES OF CODE.”
I argue that prematurely turning an application into a range of services violates the #1 rule of distribute computing: Don’t distribute your computing!
I argue that the majestic monolith remains undefeated for the vast majority of web apps.
I argue that replacing method calls with network calls makes everything harder, slower, and more brittle, so it should be the absolute last resort.
In an account I quoted, @yatish_me described engineering leaders choosing to split a Ruby on Rails application into a Go microservices mesh, using detailed design documents, architecture diagrams, Kubernetes, gRPC, and service templates. The quoted account attributed the approach to senior leaders’ Amazon experience, where teams owned distinct services.
I called the recordables pattern the single-most important architectural pattern we’ve used on both Basecamp and HEY.
I said the recordables pattern is a key reason both code bases are still a joy to work on.
I said Jeff breaks down the magic in this new podcast.
I shared https://t.co/RYB4lMr6Qp for Jeff’s podcast about the recordables pattern.
A separate Fizzy SaaS gem proved difficult to coordinate with the main code base, so we brought it back into the primary repository. That experience reinforces my preference for a disciplined monolith over the coordination burden of distributed services, alongside principles of simplicity and resisting needless complexity.
I said, “Turned out to be a hassle to coordinate a separate fizzy-saas gem with the main fizzy code base”.
I said, “so we repatriated the gem within the primary repo”.
I said, “Can't fathom how people live with having to coordinate a fleet of microservices on cross-cutting deploys!”
I argue that small teams generally move better with a disciplined monolith than with microservices. Service boundaries can fragment shared context and accountability while adding operational and coordination work; this connects with my broader preference for principles of simplicity and resistance to resisting needless complexity.
I called microservices “the software industry’s most successful confidence scam.”
I argued that microservices convince small teams that they are “thinking big” while destroying their ability to move.
I said small teams run on shared context, which lets everyone reason end-to-end and change anything.
I said microservices replace shared understanding with distributed ignorance and leave everyone owning a shard rather than the whole system.
I described the operational burden this way: “Each service demands its own pipeline, secrets, alerts, metrics, dashboards, permissions, backups, and rituals of appeasement.”
I said that with microservices, “You don’t ‘deploy’ anymore—you synchronize a fleet.”
I argued that a bug can require a multi-service autopsy and a feature release can become coordination across artificial borders.
I criticized premature service boundaries: “You are forced to define APIs before you understand your own business.”
I said that with premature APIs, guesses become contracts and bad ideas become permanent dependencies.
I contrasted a monolith’s correction mechanism with service infrastructure: “In a monolith, wrong thinking is corrected with a refactor.”
I argued that microservices turn wrong thinking into infrastructure that teams must host, version, and monitor.
I said “this architecture was invented to cope with organizational dysfunction at planetary scale,” and criticized prescribing it to teams that still share a Slack channel and lunch table.
I rejected the claim that monoliths do not scale, saying that chaos and process cosplay are what do not scale.
I said monoliths scale just fine when teams have discipline, tests, and restraint.
I called microservices for small teams a philosophical failure that signals the team does not trust itself to understand its system.
I said microservices replace accountability with protocol and momentum with middleware, concluding: “You get permanent drag.”
I warned that teams may lose speed, clarity, and product instincts before earning the scale that might justify microservices.
I use a simple resilience calculation to show how depending on multiple services can reduce end-to-end system uptime; it illustrates another cost of distributed architecture.
In my example, a system depends on 10 microservices.
Each of the 10 microservices has 99.9 uptime.
I said the total uptime of the system would be only 99.0.
I characterized that system uptime as “Literally 10x worse.”
I compared 88h v 8h downtime pr year.