Give Me Back My Monolith
I&#x27;ve built my personal side project as microservices. I started with an initial POC in Python and then I had a clear vision for what services to build.<p><a href="https:&#x2F;&#x2F;github.com&#x2F;insanitybit&#x2F;grapl" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;insanitybit&#x2F;grapl</a><p>&gt;  I’d have the readme on Github, and often in an hour or maybe a few I’d be up and running when I started on a new project.<p>I can deploy all of my services with one command. It&#x27;s trivial - and I can often just deploy the small bit that I want to.<p>I don&#x27;t use K8s or anything like that. Just AWS Lambdas and SQS based event triggers.<p>One thing I found was that by defining what a &quot;service&quot; was upfront, I made life a lot easier. I don&#x27;t have snowflakes - everything uses the same service abstraction, with only one or two small caveats.<p>I don&#x27;t imagine a Junior developer would have a hard time with this - I&#x27;d just show them the service abstraction (it exists in code using AWS-CDK)[0].<p>&gt;  This in contrast to my standard consolidated log, and lets not forget my interactive terminal&#x2F;debugger for when I wanted to go step by step through the process.<p>It&#x27;s true, distributed logging is inherently more complex. I haven&#x27;t run into major issues with this myself. Correlation IDs go a really long way.<p>Due to serverless I can&#x27;t just drop into a debugger though - that&#x27;s annoying if you need to. But also, I&#x27;ve never needed to.<p>&gt; But now to really test my service I have to bring up a complete working version of my application.<p>I have never seen this as necessary. You just mock out service dependencies like you would a DB or anything else. I don&#x27;t see this as a meaningful regression tbh.<p>&gt; That is probably a bit too much effort so we’re just going to test each piece in isolation, I’m sure our specs were good enough that APIs are clean and service failure is isolated and won’t impact others.<p>Honestly, enforcing failure isolation is trivial. Avoid synchronous communication like the plague. My services all communicate via async events - if a service fails the events just queue up. The interface is just a protobuf defined dataformat (which is, incidentally, one of the only pieces of shared code across the services).<p>Honestly, I didn&#x27;t find the road to microservices particularly bumpy. I had to invest early on in ensuring I had deployment scripts and the ability to run local tests. That was about it.<p>I&#x27;m quite glad I started with microservices. I&#x27;ve been able to think about services in isolation, without ever worrying about accidental coupling or accidentally having shared state. Failure isolation and scale isolation are not small things that I&#x27;d be happy to throw away.<p>My project is very exploratory - things have evolved over time. Having boundaries has allowed me to isolate complexity and it&#x27;s been extremely easy to rewrite small services as my requirements and vision change. I don&#x27;t think this would have been easy in a monolith at all.<p>I think I&#x27;m likely going to combine two my microservices - I split up two areas early on, only to realize later that they&#x27;re not truly isolated components. Merging microservices seems radically simpler than splitting them, so I&#x27;m unconcerned about this - I can put it off for a <i>very</i> long time and I still suspect it will be easy to merge. I intend to perform a rewrite of one of them before the merge anyways.<p>I&#x27;ve suffered quite a lot from distributed monolith setups. I&#x27;m not likely to jump into one again if I can help it.<p>[0] <a href="https:&#x2F;&#x2F;github.com&#x2F;insanitybit&#x2F;grapl&#x2F;blob&#x2F;master&#x2F;grapl-cdk&#x2F;index.ts#L65" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;insanitybit&#x2F;grapl&#x2F;blob&#x2F;master&#x2F;grapl-cdk&#x2F;i...</a>