Monoliths are bad! Microservices are good! These are the "obvious" truths that many engineers hold close to heart. So, why is it that I've been slowly merging some of my Microservices back into my Monolith? It turns out that a Monolith - like a Microservice - is a valid architectural choice that carries its own set of pros and cons. And, for me, my team, and our particular set of skills, the Monolith is proving to contain the right set of trade-offs.
This week, the crew talks about my journey; why InVision started using Microservices in the first place; and, what made us realize that it was time to start pulling services back into the core Monolith. There are no hard truths here - only thoughtful, context-aware considerations.
Listen to Episode 005, with:
- Adam Tuttle → Website, Twitter, LinkedIn
- Carol Hamilton → Twitter, LinkedIn
- Tim Cunningham → Twitter, LinkedIn
- Ben Nadel (That's me) → Website, Twitter, LinkedIn
Triumphs & Failures
Adam's Triumph - He took the week off! He's usually not that good about taking time off; so, taking a whole week off between Christmas and New Year's was actually quite relaxing.
Ben's Triumph - He managed to stay production at work during the "deployment freeze" that takes place during the holidays! This meant creating lots of small, parallel git branches tied up in a bow, ready and waiting for the 2021 deployments to begin.
Carol's Triumph - She stayed up until 3am writing Unit Tests!. She doesn't often work in an environment that does much testing; so, this was a new and thrilling experience. Who knew that one could be so happy thinking about the unhappy path!
Tim's Triumph - He also took the week off (his company always takes Christmas week off)! But, he's not used to taking so much time off; and, he started to get bored by Thursday (such a classic engineer).
Notes & Links
- GitHub "Draft" pull-requests - it's just like a regular Pull Request (PR); but, it's intended to be a "work in progress" (WIP).
- Silento - Watch Me (Whip/Nae Nae) - official music video.
- Archer - a wonderfully raunchy animated series about spies (for adults). Sploosh!
- Microservices - an architectural choice, write-up by Martin Fowler
- Monolithic application - an architectural choice.
- Conway's Law - how organizational structure relates to programming structure:
Any organization that designs a system (defined broadly) will produce a design whose structure is a copy of the organization's communication structure.
- Single-Tenant architecture - configuration in which one customer shares no resources with another customer.
- Multi-Tenant - configuration in which many customers share the same set of resources (such as all existing in the same database).
- Single Page Application (SPA) - a common front-end application architecture in which the front-end dynamically re-renders the UI based on data-fetches.
- Distributed Monolith / Microlith - an architectural anti-pattern in which you combine the worst properties of both monoliths and microservices while reaping none / few of the rewards.
- ColdFusion / Lucee CFML - a modern web programming language for dynamic server-side rendering.
- Mark Richards - The Rise and Fall of Microservices - presentation from O'Reilly Software Architecture Conference 2019.
- Sam Newman - Building Microservices - the canonical book on Microservices.
- Sam Newman - Monolith To Microservices: Evolutionary Patterns To Transform Your Monolith - Sam's follow-up book to Building Microservices - it should be required reading.
- Simon Brown - Modular Monoliths - presentation from DevNexus 2016 that famously had the slide:
If you can't build a well-structured monolith, what makes you think microservices is the answer?
- Amazon AWS Lambda - serverless compute services.
- Amazon AWS Fault-Injection Simulator - aka, Chaos Monkey as a Service.
- Amazon Cloudwatch - a reliable, scalable, and flexible monitoring solution.
- Kevin Conway - Principal engineer at InVision and a strong proponent for microservices.
- Chris Richardson - he was doing Microservices before there were Microservices. He's the maintainer of microservices.io.
- Hype Cycle - from the "Peak of Inflated Expectations" to the "Trough of Disillusionment" and every emotion in between, this is how the technology world experiences new technology.
- Reactive Manifesto - an approach to building robust applications.
- Lagom Reactive Microservices framework - an opinionated microservices framework.