Code is meant to be thrown away. Not to mention there exists industrial-strength automated code refactoring which will just get cheaper and smarter.
So write code you can deploy today, monolith or micro serves, in the not-to-distant future we'll be able to cheaply refactor it at scale into any style you want.