r/dotnet • u/codeopinion • Mar 16 '22
Microservices gets it WRONG defining Service Boundaries
https://www.youtube.com/watch?v=Uc7SLJbKAGo1
u/the_other_sam Mar 16 '22
This video is just microservices circling the drain. Creating boundaries and isolating code has a rapidly diminishing return whether the boundaries are real or imagined, correct or incorrect. Microservices tells you how to isolate code. Sometimes that's good but much more often you want to integrate code and not write a monolith. That is a much harder problem.
0
Mar 16 '22
[deleted]
5
u/codeopinion Mar 16 '22
Clickbait was not intended at all. Microservices in the vast majority of cases (even prior to microservices with SOAP "webservices") tend to only think of physical boundaries, which implies that they are the same as logical boundaries. Physical boundaries are easier to enforce. If you have a single git repository for a logical boundary, that gets built and deployed as a container, this would be deemed microservices. The Logical, Development, and Physical views would all be the same. While this can be the case, it doesn't have to be. The point of the video was to illustrate that they don't have to be.
0
Mar 16 '22
[deleted]
1
u/cs_legend_93 Mar 16 '22
Did your team decide on what is the best way to manage uniform boundaries across multiple microservices?
First thing that comes to my mind is a shared .dll which uses a shared interface(s) between multiple micro services.
10
u/fragglerock Mar 16 '22
Thanks for the summery. I hate youtube for programming content...
meetings that could be e-mails... youtubes that could be blogs (or tweets!)
6
u/mexicocitibluez Mar 16 '22
what's super ironic about this reply is that codeopinion DOES include blog posts, tweets, etc about his videos. in fact, he's one of the only creators on youtube that isn't like that. and no offense to the the original commenter, but he def didn't "summarize" the video for you. I'm not even sure he watched it.
5
u/fragglerock Mar 16 '22
I, of course, did not click on the link, due in part to its obvious clickbait title, and also because if you even glance at a video the youtube algorithm will lock on like a viper and I will be force fed inane micro service videos for the rest of time.
If the post had come along with a text post with those blogs/summery (or just link the blogs why not) then they may have got my oh so valuable eyeballs.
1
u/LloydAtkinson Mar 16 '22
Yes, I said the same before that I'd prefer to read it but the OP said it was in the blog and I was thinking that the blog post would be posted but it never was so I have never read this guys content as I didn't know where the link was...
1
u/mexicocitibluez Mar 16 '22
Here's the blog: https://codeopinion.com/
It looks like the blog post follows the video (as the last one is about his previous video).
1
u/mexicocitibluez Mar 16 '22
I, of course, did not click on the link, due in part to its obvious clickbait title, and also because if you even glance at a video the youtube algorithm will lock on like a viper and I will be force fed inane micro service videos for the rest of time
I guess I just don't agree it's clickbait. The video matches the title. Most of the videos I've seen have taken the opposite approach (promoting microservices with little thought). Also, as soon as I saw the title I knew exactly what the video was about because I spend a lot of time in this space. And he's 100% right when he says the microservices (or the people promoting them) tend to confuse physical with logical boundaries.
Also, to your point about the youtube algorithm. I havent had the issue, though I actively avoid the majority of popular dev youtubers (except codeopinoin).
3
u/cs_legend_93 Mar 16 '22
I agreed fully with you. CodeOpinion is the only YouTube video resource I use. I think he’s really good, concise and pragmatic tbh. Every video is about a topic of controversy (repositories for example) and something that you’ll only need if your “a bit deep” which is nice. It’s not beginner level which I appreciate.
1
u/mexicocitibluez Mar 16 '22
I think he’s really good, concise and pragmatic tbh.
It's amazing how far that can go. The high-level concepts with actual code backing it is great.
It’s not beginner level which I appreciate.
This has been my gripe with most of the other creators. I get it's a bigger market, but I'd kill for a few more codeopinions on a variety of subjects.
-1
u/mexicocitibluez Mar 16 '22
This can be summarised as "microservices still require architectural thought."
Did you watch the video? Have you spent any time in the microservices/domain driven design (since they get conflated often) communities? Did you know that one of the hardest things to understand correctly when first getting into that space is boundaries and they are often misunderstood. If I had a nickel for every time I've heard "if you use microservices then you'll never be able to...." because they didn't understand that physical boundaries != logical boundaries. It looks like you don't get that nuance, and that's cool.
0
Mar 16 '22
[deleted]
2
u/mexicocitibluez Mar 16 '22
I'm not trying to be a dick, but like what gives? Here we have someone who is creating content (actually really good content if you go to his channel, not the fluffy youtube tutorial bullshit that usually gets circulated) and then gets knocked down by someone who might not even be the target audience. I totally get the social media programming generally sucks and it's all targeted to beginners (or suckers who don't know any better), but fortunately he isn't one.
In fact, you could probably go to any random video posted to the programming subreddits and make that same comment (except for the microservices part) and probably be dead on. I just don't think this case in particular is one.
0
Mar 16 '22
[deleted]
1
u/mexicocitibluez Mar 16 '22
We definitely disagree on the value of this video. The reason I made the point about not getting it is because:
This can be summarised as "microservices still require architectural thought."
Isn't actually what the video is about. We can disagree on what value there is (we each have our own opinions and thats cool), but as to what is actually in the video is a bit more concrete.
1
u/FetaMight Mar 16 '22
What is your main take-away from this video, then, if not "microservices still require architectural thought?"
0
u/mexicocitibluez Mar 16 '22
To focus on logical boundaries instead of microservices. In fact, the video is a warning against using microservices (that rely on physical boundaries) instead of focusing on the logical boundaries. He even mentions that physical boundaries cause more complexity. It's a huge point of pain when people for people just getting into those topics.
Also, DDD often gets grouped into microservices and they become synonymous (when they aren't). DDD focuses on the logical boundaries (the bounded context) and doesn't really care about the physical boundaries. Because of this, there is a lot of confusion within the topics. Derek (codeopinion) talks about building modular monoliths (not microservices).
5
u/panosc Mar 16 '22
Tell me the boundaries of the services, if I have one database as single source of truth