The Problem With Microservices

Поделиться
HTML-код
  • Опубликовано: 21 дек 2024

Комментарии • 514

  • @ContinuousDelivery
    @ContinuousDelivery  Год назад +5

    Focus on the right parts of the problem when you are creating a new microservices system. Here's my FREE 'how-to-guide-book' offering advice on the Microservices basics to help you get started ➡www.subscribepage.com/microservices-guide

  • @SiKeeble
    @SiKeeble 3 года назад +87

    I’m a 30+ years Software Engineer, with clearly a similar path. This is extremely well articulated and should be on the ‘reading’ list of all modern software developers who want to understand concepts from a big-picture level. I don’t often comment on RUclips content but this is worth expressing thanks for a good, down to Earth presentation.

  • @Arvigeus
    @Arvigeus 3 года назад +649

    Expectations: Rant about microservices
    Reality: Misuses of microservices and advices how to avoid mistakes
    10/10 quality content!

    • @alsolh
      @alsolh 3 года назад +10

      Yes i was expecting the same but found gold 👌

    • @doosrajawad
      @doosrajawad 3 года назад +2

      Reality: Clarity on the essence of MS (mistakes and misuses come from that lack of clarity). Still 10/10

    • @c0deventures
      @c0deventures 3 года назад +1

      The same thing happened to me. 100% quality content indeed!

    • @vladimirmoushkov6137
      @vladimirmoushkov6137 3 года назад +4

      I agree. The title is misleading. It is very good content!

    • @IngoBing
      @IngoBing 2 года назад

      Copy that

  • @christophjahn6678
    @christophjahn6678 4 года назад +180

    Wow! With almost 25 years of professional software development under my belt, this was the first video/document on Microservices, which made sense to me. Everything else, and that includes most of the big software conferences, was just a variation of marketing bullshit. It is really fascinating to see that it always comes back to how we deal with "complexity". And that is not technical stuff, but the organizational and domain side of things. Thanks a ton!

    • @ContinuousDelivery
      @ContinuousDelivery  4 года назад +9

      Thanks, I am pleased that you liked it

    • @rafaelrosa3841
      @rafaelrosa3841 3 года назад +8

      YES! Microsservices is a solution to a problem that the majority of companies never had and probably never will.

    • @okharev8114
      @okharev8114 2 года назад

      @@rafaelrosa3841 it absolutly is, otherwise why would every big tech company use it ?

    • @BenjaminDelespierre
      @BenjaminDelespierre 2 года назад

      agree

    • @hudatolah
      @hudatolah 2 года назад

      Would have been even better if presented by Elon Musk

  • @rialpleya
    @rialpleya 4 года назад +461

    Every developer out there should watch this video. Orchestration and monitoring tools vendors made a lot of damage by trying to get everybody adopting microservices so they could sell their shiny tools. Then developers found themselves producing distributed entangled spaghetti aberrations just because nobody taught them what Dave excellently does here.

    • @ContinuousDelivery
      @ContinuousDelivery  4 года назад +21

      Thanks😎

    • @linuxgaminginfullhd60fps10
      @linuxgaminginfullhd60fps10 3 года назад +55

      Developers are usually very aware of the problems and find themselves producing distributed spaghetti aberrations because they are not the ones who makes such decisions. Typical victim blaming.

    • @user-fk8zw5js2p
      @user-fk8zw5js2p 3 года назад +6

      ​@@linuxgaminginfullhd60fps10 It seems to me that @Fran Dayz was saying tools vendors luring developers to purchase their product and then not providing proper support was the issue he had experience with. But you are saying that decision makers forcing those tools onto developers is the issue you are facing? I'm sorry, I do not understand how those situations are the same in a way that is offensive. How does any of that change the point made that Dave's explanation here can help avoid aberration creation in the first place?

    • @josefpharma4714
      @josefpharma4714 3 года назад +36

      As always: Don’t solve Problems you don’t have 😀.

    • @josefpharma4714
      @josefpharma4714 3 года назад +11

      Thanks a lot for your videos.
      Besides the content I really appreciate the way you speak.
      Somehow it feels that are using the words of the English language, optimized for simplicity and information throughput.

  • @podell111
    @podell111 3 года назад +32

    I have been interviewing with a lot of companies lately that want candidates with micro services experience. Unfortunately most of the companies don’t really understand micro services. They think it’s the NEW way to do development. What they don’t realize is that micro-service’s is just one of many ways to implement your project. Great video!

  • @janezbarbic7872
    @janezbarbic7872 3 года назад +64

    This channel is amazing, thank you sir! I am arguably a seasoned engineer at this point but listening to you keeps me motivated to better myself constantly. I think will watch every single video of yours. Keep up the good work!

    • @DodaGarcia
      @DodaGarcia 3 года назад +5

      The way he explains things is amazing

    • @ContinuousDelivery
      @ContinuousDelivery  3 года назад +17

      Great to hear! One of my enduring principles is that we all need to keep learning! and to use software development techniques that help us learn. Thank you for the feedback.

  • @rolandfisher
    @rolandfisher Год назад +3

    The explanation of the bounded context is better than any other I've heard.

    • @joaomonteiro7063
      @joaomonteiro7063 4 месяца назад

      It made me want to read& understand how NASA/ESA build the ISS modules, to see if these two different contexts share the same "Bounded Context" concept. The "Fire-Breaks" idea led me there.

  • @adrianperez8695
    @adrianperez8695 4 года назад +19

    As a relatively new developer (2+ years) I really enjoy your video. Helps me to think at a scale larger than the code immediately in front of me. Thank you for this!

    • @ContinuousDelivery
      @ContinuousDelivery  4 года назад +11

      It's a pleasure, and thank you.
      As a new dev, have you checked out my video on "Career advice"? ruclips.net/video/hjIlTaAMsbI/видео.html

  • @PowerScissor
    @PowerScissor 2 года назад +30

    I'm a 25 year Master Journeyman plumber...but somehow have become fascinated by microservices over the last few weeks.
    I absolutely never plan on coding a single thing in my entire life...but really enjoyed this video.
    Gives me a little perspective when I update some software and wonder how they introduced so many bugs with a simple small update...

    • @petertayler1712
      @petertayler1712 2 года назад +3

      It's remarkable how similar are system architecture and plumbing. Or, at least how I imagine plumbing works. I've come to believe that civil engineering falls in that group too. Basically anything that applies patterns and practices to the management of flow and complexity.

  • @edwardallenthree
    @edwardallenthree 3 года назад +25

    My development is mostly a private affair. I write code that I use, web interfaces that I am the only customer for. This content is still helpful, even for my hobby. This video got me thinking of problems that should be decoupled that aren't, and conversely convinced me not to decouple things just to make them "micro." There is no shame in coupling my front end with my back end code, for example in my latest node.js project.

    • @publicalias8172
      @publicalias8172 2 года назад +2

      Starting monolithic and transitioning to a microservice architecture seems to be a common route when the team GROWS- Because in an ideal world, each microservice deserves it's own team.

  • @destroyonload3444
    @destroyonload3444 3 года назад +8

    Your experience shed light on exactly what I felt was off about people/companies claiming to be doing microservices but most definitely are not. This is an enormous problem for semantics and execution. Not everyone is on the same page. I really think of big monolith companies that want to decompose their design into "microservices", but in the end they will spend a ton of money for little to no benefit (ROI). So much time is often wasted chasing after 'trends' before thinking things through...

    • @ContinuousDelivery
      @ContinuousDelivery  3 года назад

      Yes I see a lot of orgs investing a lot for little in return too.

    • @nerrierr
      @nerrierr 3 года назад

      I don't think their chasing trends, their chasing ways to bring "complexity" somehow under control (probably because they did not pay much attention to that previously at an organizational level, which resulted in a lot legacy code/systems) without understanding all the implications of their decisions and approaches, and as Mr. Farley said, there are many other ways to do that besides microservices.
      But the change is not because it's trendy, it is because the people involved feel the pain in developing and maintaining said legacy system. The company big wigs don't care that much about fancy code or architecture they care about money and they were ill advised that this new shiny architecture will save the system from crumbling from within (and also solve all world problems from global warming to the inevitable demise of human kind), and in the process they sometimes accelerate the decay of the system by over-engineering stuff (that also get polluted by the old way of doing things).

    • @destroyonload3444
      @destroyonload3444 3 года назад +1

      @@nerrierr I think you missed my point entirely by focusing on a single word. Microservices DO NOT attempt to bring complexity under control, it introduces more of it. The core purpose is for scalability and team environments to work on separate code bases in isolation but will work with one another when connected. Monolith and Microservice design are essentially antithetical to one another when done properly. But the point I was making was that companies using monolith design are decomposing their code into microservices for the wrong reasons and doing so in a hybrid way which gives little to no benefit for all the increased difficulty. Doing so is following a trend: see technology adoption lifecycle.

    • @nerrierr
      @nerrierr 3 года назад +1

      @@destroyonload3444 fair enough, but to be honest that still is directly related to the complexity and requirement of the project. You don't scale and parallelize if you don't need to (ex: for a simple console application that just prints a simple message you will not do it in a microservices architecture no matter how misguided you are). As for the fact that it adds more complexity it is like saying that abstraction/encapsulation just adds more classes/methods without a benefit (instead of helping you in the grand scheme of things, nothing is free in life and in this case you pay some extra code "locally" to save your a*s some place else, and you do it because of the complexity of today's systems). In the end I think we agree that you need to pick the right tools for the job and for the right reasons, the difference is why we like/dislike microservices (in that sense it's probably relevant to what we are comparing it to). And that is perfectly fine, no team or project is the same in every aspect and people have different opinions based on their previous experiences (there's a reason why giant companies recommend it, and in fact only they are, but most companies aren't Netflix nor is their product of the same scope/context) (well one of the reasons is obliviously practical and the other is probably more marketing focused but that's another topic, I guess we all have to earn our bread somehow :) )

    • @destroyonload3444
      @destroyonload3444 3 года назад

      @@nerrierr right. You still have abstraction in microservices, but the real complexity comes with multiple middlewares and dealing with events. Statistically, I have no idea what the most used implementation is, but the most I hear about is the use of an event server and eventually consistent design. I think we're more or less on the same page. BTW, I watch this channel often because his methodology seems to make the most practical sense in implementation, and he's been through several major eras of programming milestones. I find it funny that people are still trying to reinvent what he already had working in the 90's! I watch a lot of Computerphile, too. The down-to-earth "old timers" have my utmost respect.

  • @plnmbjj
    @plnmbjj 2 года назад +9

    One problem that I’ve experienced with microservices is that it is really hard to keep everyone up on what are the boundaries of each of you services… sometimes a lot of requirements come from the managers and they want it do be done in service A when it should be done in service B and not all employees know all of the microservices that well to be able to set those boundaries…
    I’ve experienced features being done in a service and then it came up that the same feature was already being done in another service that is called way up in the architecture, way after it was already shipped to production.
    I’ve thought about it if that’s a problem of not having so many people understanding that well the architecture or if that’s a leadership or management issue…
    I feel like there’s a small inner system that developers are capable of understanding, it’s almost impossible to master the design/domain of so many of the microservices.
    I haven’t seen anyone talking about this, I’m always wondering how companies like Netflix deal with that, like, how many other mircroservices do your engineers need to grasp besides the one/ones they are really contributing code to?

    • @hardcorecode
      @hardcorecode 6 месяцев назад

      Netflix originally was a huge monolith. They then became microservices! This is the biggest mistake system designers make. You need to have a fully functioning monolith in production with very clear documentation and perfomance benchmarks before you even think about converting it into microservices!

  • @mno239
    @mno239 3 года назад +14

    The only software engineering processes and practices related content that makes 100% sense.
    I've been a part of multiple discussions around such topics like software architectures, design patterns, agile development, behavior/test driven development etc...none of them make as much as sense as much as your content does.
    Dave, please continue posting such videos. I want you to know that your experience, talks, and discussions make lives easier for many software engineers worldwide! 🙂

  • @stephenmyers4082
    @stephenmyers4082 3 года назад +28

    I've watched a number of your videos now and they are brilliant. Straight talking and oozing knowledge and wisdom. From now on, part of my decision process is going to be 'what would Dave Farley do'

  • @PhilipAlexanderHassialis
    @PhilipAlexanderHassialis 3 года назад +9

    My key takeaway here is this: the API (as in the names of the calls, the expected arguments, the expected results, etc) should be the first thing to be designed and agreed upon when the analysis phase is over. On top of that it must be cast in stone, immutable and stable during a development cycle. Finally it must be the first thing that will be mocked during implementation so the service consumers have something to work upon.
    The mentality to adhere to all of this in an agile environment where there are constant releases every e.g. month or so, this is the real fight, this is the real issue, the fact that people must put down some communication constraints, draw a box and remain in there, no "well, you see, the customer also decided they want this and this and this so we are mutating the API definition".
    A mini lecture on how to keep people in check (both on customer side and on the PM/TechLeads side), now, that would be a treasure!

    • @MikkoRantalainen
      @MikkoRantalainen 2 года назад +2

      I think having any design that is inmutable and cannot adapt to customer demands should be a definite no-go for any serious software project.
      Instead, having stable APIs means that once you create an API, you have to keep it running. To add new features, you introduce new APIs without breaking the old API.
      Some of the old APIs may be implemented as wrappers for the new API but the consumers of the microservice API don't need to mind about that.

    • @НиколайТарбаев-к1к
      @НиколайТарбаев-к1к 2 года назад

      @@MikkoRantalainen Introducing a new API for every change isn't practical either. It leads to growing legacy code base, as it's problematic to find out when it is safe to delete some old API version. That's why big companies end up with monorepos, as in a monorepo there's more control over the consumer's code, as far as the API does not escape the monorepo.

    • @MikkoRantalainen
      @MikkoRantalainen 2 года назад +1

      @@НиколайТарбаев-к1к I'd argue that if you continously modify the API in a way that requires consumers to be modified, too, you don't actually have an API at all. You just have fully custom protocol instead.

  • @wjcvanes
    @wjcvanes 3 года назад +6

    Although I am a software developer with 22 years of experience I am new to microservices and this video really helped to improve my understanding, so thank you very much.
    My immediate conclusion, taking Melvin Conway's wisdom into consideration, is that an organization that wants to adapt to a microservices architecture should be willing to reorganize accordingly. If the management of the organization is not aware of this, the campaign of migrating towards microservices will fail (at least initially). So business consultancy (of good quality) should be involved to make this a success.
    What I have often seen, however, is that new paradigms or technologies are presented to managers as a panacea of all their current problems without any big effort on their part (just buy our product or pay our consultancy fee). Do you have any thoughts on that? How can a senior software developer advice or influence the management of an organization to do the right thing? (either endeavour a reorganization or recognize that microservices are not for them, yet)

    • @JeffCaplan313
      @JeffCaplan313 2 года назад

      Don't work for pointy haired bosses.

  • @danteventresca9954
    @danteventresca9954 3 года назад

    I almost never comment. But I must. This is a must watch by ANYONE involved in solutions development in a modern organization. 10 out of 10. This should even be watched by the non-technical stakeholders. Well done.

  • @MaxPicAxe
    @MaxPicAxe 3 года назад +1

    The idea of "bounded context" is so important. Whenever i discuss architecture with people i talk about my idea of a "module boundary" but i always struggled to explain what i mean. This description of a bounded context is exactly what I was looking for.

  • @DodaGarcia
    @DodaGarcia 3 года назад +70

    I can't with how valuable this content is

    • @ContinuousDelivery
      @ContinuousDelivery  3 года назад +15

      Thank you! I'm glad you find it useful

    • @elgoleminculto
      @elgoleminculto 3 года назад +1

      It is best explanation found so far. Thank you very much

    • @sepg5084
      @sepg5084 3 года назад +1

      You can't what?

  • @s.z.9579
    @s.z.9579 3 года назад +3

    Really great stuff! Thanks so much! Working as a management consultant I see my projects 'moving closer' to the field of technology every year. Thus, usually I can't deliver valuable results for my clients without understanding related technological practices and principles. Your videos are amazing in the way you are able to explain those technological issues! 10/10

  • @joshuanewhouse7589
    @joshuanewhouse7589 4 года назад +3

    I really appreciate all of the work you do to provide clarity and context to the field of technology! As of recently, I landed my first full-time job as a software developer, so this is providing excellent information as to how I can pursue my career with a strong foundation.
    Due to being early on amidst my CIS education, several of these topic areas are new to me which provides its own set of difficulties regarding comprehension, yet I always find a plethora of solid resources from these videos to help elaborate on any confusion. So, again, thank you for setting me in the right direction.

    • @ContinuousDelivery
      @ContinuousDelivery  4 года назад +2

      Thankyou, and congratulations on your new job. I have a new video coming out in a couple of weeks that is intended to offer some advice for new developers, so I hope that you enjoy it.

    • @joshuanewhouse7589
      @joshuanewhouse7589 4 года назад +1

      @@ContinuousDelivery Looking forward to it!

  • @marcosvera1473
    @marcosvera1473 3 года назад +1

    I deal with large deployments and this contents is spot on 100% accurate.

  • @richardistvanthier5620
    @richardistvanthier5620 3 года назад +1

    As a person, who made microservices before people started calling it that way I am happy for this video. Separately deployable is something that I see so many people out there do not grasp. What I do not grasp however is sometimes how heavyweight the infrastructure is around real microservices! In my team I did not use any kind of infrastructure just plain REST and pretty much plain javascript (not even js frameworks) to implement these ideas and yet there was a clean way to achieve copy-paste kind of integration even on the frontend side - and by that I literally mean the code was just copied into its place and was magically working. Never saw a lightweight solution like that later, but only heavy solutions where they used some tool to "help" create microservices, but only then I felt the cost of it - not when we did the stuff manually without framework.
    I think some movement like "lightweight micro services" should arise. Maybe it is already arisen, but not what I saw. The idea is that if you cannot set up your microservice infrastructure in a week with everyone on the team understanding all the details - then you are doing it wrong. This is similar to what you say about the microservices themselves and their sizes, but here I am talking about the support infrastructure that make the deployment and everything work - both backends and frontends of the microservices and the ability to publish them even when working together!
    I hope such a thing exists, but as I said I only saw two things: we doing without any specific infrastructure OR some teams using heavy infrastructure that incurs more cost that simple projects can afford. This is a big deal because original company where we worked like that was less than 50 person and team around projects where we employed this was less than 6 person and still we did not feel at all "too big work" to develop in this way. Any yes again: it was completely shippable separately - even the frontend of these services were separately shipped and built up a complex web app.
    Anyways: I think everyone who ever use the word by their mouth in any circumstances should watch this video. Would help a lot if people would all do so...

  • @alexandergonzalezcardenas4941
    @alexandergonzalezcardenas4941 3 года назад +8

    This channel deserves more subs and views ❤️❤️ Finally: A professional software content for everyone .... Greetings from Colombia.

  • @zentratuskrypto3521
    @zentratuskrypto3521 4 года назад +7

    I feel that the font used for the presentation points is the same font used in the Star Wars opening text crawls, and it is immensely appealing.

    • @TokyoXtreme
      @TokyoXtreme 4 года назад +1

      A long time ago, in a galaxy far, far away.

  • @hjr2000
    @hjr2000 4 года назад +8

    Thanks Dave. As you mention, there is very much more to cover on this subject, but from a QA point of view the subject of contract testing needs to be raised early on in any discussion about microservices. Also there are some severe gotchas with the approach too. As with many things we need to do our upfront research or risk project failure!
    Sam Newman's books contain a wealth of info.

    • @ContinuousDelivery
      @ContinuousDelivery  4 года назад +4

      Yes I am thinking of doing more stuff on design and architecture on the channel.
      I don't think of it as "doing up front research" as much as understanding what the things that we do are, and how they work, we often we seem to jump on ideas based on sound-bytes and fashion rather than understanding.
      I link to Sam's book in the description and meant to reference it in the video, but didn't want to appear to put words into his mouth. Sam's book is a very good book on the topic.

    • @brunodz1
      @brunodz1 3 года назад

      Great video! What about duplicated code?

  • @TheBexis
    @TheBexis 6 месяцев назад

    This video added more value than anything else I found up to now. The motivation brought with the referenced quotes gives a soul to any application developed with this mindset. Great work and thank you!

  • @swordofkings128
    @swordofkings128 3 года назад +2

    You're channel is a gold mine for CS students, thank you so much for sharing your knowledge!

  • @SpanishandGo
    @SpanishandGo 3 года назад +47

    I clicked because I saw Captain Dissillion's logo.

  • @mrrandrade
    @mrrandrade 3 года назад

    Man, this video has so much more quality content crammed on it's 17 min than a lot of books and courses.

  • @alvaromedina6849
    @alvaromedina6849 3 года назад +1

    What a fantastic experience is to hear explaining theses concepts from someone who already implemented microservices in many contexts!!!!

  • @kamertonaudiophileplayer847
    @kamertonaudiophileplayer847 3 года назад

    I am glad that introduced microservices back to 2000. And after 21 years finally I found your video. Thank you.

  • @philipsmith7195
    @philipsmith7195 3 года назад +5

    Hey Dave, great video. I've often heard the "2 week rule of thumb" for rebuilding a microservice, but one thing that was never clear, was whether that was an individual doing it alone, or a team? Be great to understand that. Thanks for all the videos and contributions you've made!

    • @jedpittman6739
      @jedpittman6739 3 года назад +3

      Philip, I think the timeframe is 3-10 business days for a small team (3 people). I’m just guessing on that but this is just meant as a rule of thumb. The idea is that you dont want more than say 150-200 hrs of work to go into a microservice. After that you are really talking about medium-services 😂. Smaller is better here. Another rule of thumb I have heard is that you want no more than 6-10 methods/endpoints.

  • @dziobusz
    @dziobusz 3 года назад +1

    Thanks for the video. The idea of a ‘distributed monolith’ is what i find intriguing and I think it is what we are building where I work although we ‘think’ and ‘say’ that we are building micro services. The benefits however are still those of a distributed system: scalability, resilience etc, and maybe that is all we really wanted. :)

  • @16randomcharacters
    @16randomcharacters 3 года назад

    I think a couple other points that destroy microservice implementations are a tendency to break services at business unit boundaries and a tendency to delineate horizontally almost exclusively. I think you touched on the first a bit in the video indirectly when talking about how systems mirror the communication channels of the organization, but maybe not as explicitly. On the second point, organizations don't tend to build services that, as you said, do things like storage, but rather each business domain service implements it's own (and often multiple) storage subsystems.

  • @maneshipocrates2264
    @maneshipocrates2264 2 года назад

    Working on something and just found this great video. Thanks for it. I was already using his advice on 12:41 and will continue to keep it that way until the need grows. If this is not late, maybe advising on how to handle cases on communication between modular designed services will be awesome.

  • @rollinOnCode
    @rollinOnCode 3 года назад

    what do you mean by translating at each point? and how do ports adapters help?

  • @walterwaldo
    @walterwaldo 3 года назад

    Is stateless other angle of decoupling and independent deployment of microservices ?.. I appreciate your comment on this regard.

  • @dungimon1912
    @dungimon1912 2 года назад +1

    Great video.
    I’ve found one of the biggest problems with the actual implementation is modelling transactional consistency boundaries and sharing data. This is where I’ve found teams can really get tripped up.
    Do you have any videos or advice on these?

    • @rdean150
      @rdean150 2 года назад

      Indeed, this is a tricky problem. The SAGA pattern is designed to solve it. I have not actually seen it implemented within my organization, but I'm sure there are plenty of companies that are effectively utilizing it.

  • @j.erlandsson
    @j.erlandsson 3 года назад

    What a brilliant video!
    The decoupling between services brings so many questions to me (that really likes modularized monoliths and haven’t worked a lot with MS’s).
    How to handle relations in between services, if at all? Are people storing IDs and just hope for the best?
    How to tie the pieces together? Via API GW? or independent calls to each service?
    Wouldn’t that be considered coupling since they’re no longer independently deployable? Would it not only be really decoupled by letting each service being complete (with UI and everything)?
    So many questions!

    • @ContinuousDelivery
      @ContinuousDelivery  3 года назад

      Thank you. Yes it does raise a lot of questions. I think that one of the secrets is to think very clearly of the "protocol" of information exchange, being separate from the service implementation.

  • @tblforyou7741
    @tblforyou7741 3 года назад

    Thank you sir. I want to know what are the current issues in distributed computing

  • @jorgebo9786
    @jorgebo9786 3 года назад

    Great Video. I didn't get your point on microservices and ports and adapters. Could you provide more details on it? Thanks

    • @ContinuousDelivery
      @ContinuousDelivery  3 года назад +1

      Part of the definition of a microservice is "aligned with a bounded context". The idea of "bounded context" comes from Eric Evan's book "Domain Driven Design". Here is Martin Fowler's definition: martinfowler.com/bliki/BoundedContext.html
      Eric says that when information "crosses between bounded contexts" it should be translated. You shouldn't share information "raw" between different bounded contexts. So for a Microservices, you should translate your outputs into a clear form, that you hope to be able to support in future, even when your service changes, and you translate your inputs from whatever the sender defined, into something convenient that you will use internally in your service.
      This gives you a bit more freedom, in both directions, for things to change without breaking your code. The best way to organise these translation points is with a "Ports & Adapters" approach: en.wikipedia.org/wiki/Hexagonal_architecture_(software)

  • @sachinkainth9508
    @sachinkainth9508 2 года назад

    How do you reconcile the conflicting requirements of making changes to public APIs rarely and with great care with the Agile principle of gradually implementing only what you need in the current iteration?

  • @zachbimson
    @zachbimson 2 года назад +1

    Recently come across your channel and I already feel like you've been living in my head for the last 10 years! Great videos. I haven't heard or seen (yet) you talk about consumer driven contract testing (like PACT) when working with micro services, do you have a video on it? I feel it adds a lot of value in the space!

    • @ContinuousDelivery
      @ContinuousDelivery  2 года назад +1

      I talk a little about that in a few videos, I talk about the principles here: ruclips.net/video/cpVLzcjCB-s/видео.html
      I probably should do a video more specifically focused in this topic though, thanks for the suggestion.

    • @zachbimson
      @zachbimson 2 года назад

      @@ContinuousDelivery Thanks for the reply, Ill check that out and look forward to the next. On another note, would love to see some Q/A live streams on the channel..

  • @TheWheelTurns
    @TheWheelTurns 4 года назад +2

    Great video! One issue that can be tough to resist with these things is when scope creep by changing needs gets forced onto the developers and breaks the autonomy aspect. Would love to hear your thoughts on how to address scope creep when trying to keep your projects clean and modular.

    • @ContinuousDelivery
      @ContinuousDelivery  4 года назад +2

      I think that you can't fix things forever, over time, the ideal division of responsibilities in code, and in teams, will morph. A thoughtful organisation will take this into account and re-assess team structure, and software architecture over time.
      These are deeply related ideas, and I have a video that gives one take on the org challenges here: "How to build big software with small teams" ruclips.net/video/cpVLzcjCB-s/видео.html
      At the more practical, tech level, I think that as you discover new features, you decide if this fits within the current scope of your services or modules or if you need to add new ones. If you add new services, then at some point you need to decide if you should spawn-off a new team to look after the new services.

  • @cesartalves
    @cesartalves 3 года назад +1

    Solid presentation. Everything is spot on! Congratulations on tackling this misunderstood topic very elegantly.

  • @lucasloaiza2468
    @lucasloaiza2468 3 года назад

    Graduating college and entering the workforce. University, by no means is useless, but I feel has not prepared me for a lot of the ‘ecosystem’ around development. Courses focus on languages, algorithms, data structures, operating systems, but never any courses on real-world problems, and insight from dealing with those problems. These videos are invaluable to me as I start the path of actual software engineering! Not to mention being so much more digestible. I just saw a video called “Why I don’t use else clauses”. I respect the hustle, but it’s refreshing to get real advice in a legible way from someone who isn’t a year older than me.

    • @udaynj
      @udaynj 2 года назад +1

      Don’t feel the college courses are useless at all. I am a 20 year veteran and I my time languages and frameworks have come and gone, but at the end of the day the base that I got in my CS degree with algorithms, data structures, compiler theory etc has not changed. The change is in how you do things. So that college edu is super useful over the long term.

  • @bulwynkl
    @bulwynkl 3 года назад +1

    thank you.
    in terms of things I'd like to hear about - you mentioned how software design ends up modelling the organisations communications - I have encountered strong coupling between org culture and development culture - especially as a road-block to change. It's bleedin obvious to me that say moving from monolithic software to distributed software takes cultural change within your development team (eg. moving from test/deploy to CI/CD, or agile, or DevOps) - and communication/cooperation/coordination between teams needs to increase significantly...
    I'd love to hear about the sorts of approaches that make this change possible, success and failures, and so on - not so much a tech question I know but damn if it isn't the core of the problem...

  • @TokyoXtreme
    @TokyoXtreme 4 года назад +17

    That bell sound is so loud and ridiculous, and it always makes me laugh when I hear it. I could just listen to these videos on a loop all day and never get bored.

    • @ContinuousDelivery
      @ContinuousDelivery  4 года назад +3

      Thanks, sorry about the bell, I am making it quieter in future videos 😉

  • @kdcapparelli
    @kdcapparelli 2 года назад

    Is it correct to assume that microservices is a perfect match to Data Mesh and its data-as-a-product principle ?
    And also, does gRPC and Protobuf provide a good interface (contract) implementation approach ?

  • @dimitrisproios1860
    @dimitrisproios1860 3 года назад +1

    Thank you for the very nice description of microservices principles. Can someone elaborate on what is ports and adaptors and why it is a counter example in the bounded context? To me the translation of internal to external representation is equivalent to adapter.

    • @ContinuousDelivery
      @ContinuousDelivery  3 года назад +1

      Thanks. I talk in a bit more detail about "ports & adapters" here: ruclips.net/video/ESHn53myB88/видео.html

  • @ContinuousDelivery
    @ContinuousDelivery  Год назад +1

    Sharpen your modern software engineering skillset with Continuous Delivery's online courses, presented by Dave. Whether you're a developer, development team leader, or an entire organisation striving to provide quality software... There is no better place to focus your efforts inl earning to build better software faster. TAKE A LOOK HERE ➡ courses.cd.training/

  • @SeleniumGlow
    @SeleniumGlow 3 года назад +1

    Solid video. My compliments to you for simplifying a misunderstood and misused term amongst sales and marketing people .

  • @Deanin
    @Deanin 3 года назад +1

    Very good video that captured a lot of the discussions I've had surrounding misused microservice terminology very well.
    Just because something isn't a pure microservice doesn't mean it's bad, but it does mean you should find a different term for it or people will get the wrong idea.

  • @harshithasreeprakash3491
    @harshithasreeprakash3491 2 года назад

    Very well explained, as an absolute beginner in software development, I find your videos easy to understand and thought provoking! Look forward to many more videos from you :)

  • @sumanbandopadhyay1183
    @sumanbandopadhyay1183 3 года назад

    Please talk about the interfaces you spoke about in the end..

  • @antun88
    @antun88 3 года назад +2

    "focused on a task" could be being an backend of a web app or converting an integer to a string

  • @cornelmasson4610
    @cornelmasson4610 3 года назад +1

    They have their place, but "loosely coupled" is often a panacea in an enterprise. The difference between poster-boy microservices and those typically found in an enterprise, is persistent data, and the fact that the organisation wants to treat services (and their underlying data models) as autonomous and loosely coupled one day, and as one cohesive data model the next. When someone demands a report that spans service data models, they don't want to hear about artificial boundaries. When the domain changes, it often requires API changes across multiple services, similar to adding a new field on a screen, which ripples through all layers of the architecture, all the way down to the database. Microservices, just like "components" of old, are typically best split along the seams between different levels of abstraction in the architecture.

  • @main___name___main___name
    @main___name___main___name 3 года назад +1

    Essentially he is advocating contract testing to ensure interfaces aren't broken. It would also be good to abstract out discovery. security, monitoring tasks into a common service mesh layer and let microservices focus on business rules implementation.

  • @lironlevi
    @lironlevi 3 года назад +3

    The biggest problem I see with microservices is how they deal with the underlying data layer. The problem with data is that as your software gets bigger and bigger - so are the relationships between the various data entities. Since each microservice is deployed and versioned separately - this means that you will not be able to utilize these data relationships effectively as each microservice needs to has its own small "data island" that is separate from all other data parts. This usually reduces your DB queries to the most primitive single table SELECTs - which means you will not be able to enjoy all the progress done with relational databases in the last 40 years or so.. this means no advanced JOINs, statistics, stored procedure etc. Unless I'm missing something here - in which case I'll be happy to see how this problem is being resolved in big microservice installations..

    • @ContinuousDelivery
      @ContinuousDelivery  3 года назад

      Part of the definition of "Microservice" is that they DON"T SHARE DATA STORES with other services. So this shouldn't be a problem. Microservices are responsible for their own storage needs. They only share information through their public APIs, whatever form those take. DBs, of any form, are specifically ruled out in all of the definitions that I have ever seen, as a means of data-sharing.
      See Martin Fowler & James Lewis' description, in which they describe this as "Decentralised Data Management" martinfowler.com/articles/microservices.html

    • @lironlevi
      @lironlevi 3 года назад +1

      @@ContinuousDelivery from my experience - using compensating actions and avoiding database transactions can become extremely complex very quickly. Definitely not something i would use as my normal design methodology. Im surprised they are so casual about something so problematic as maintaining data consistency.

    • @ContinuousDelivery
      @ContinuousDelivery  11 месяцев назад

      ​@@gppsoftware These things though are both part of, literally, the definition of a microservice. You don't share databases and each service is aligned with a bounded-context.
      So in your example, it is fine for you order processing service to have a reference to a customer, but order processing is a different bounded context to customer management, so the nature of "customer" is different in each of these contexts, My guess is that all you need to represent a "Customer" in order processing, is a customer id or similar, enough to register the idea of "This Specific Customer" so that you can ask the Customer Service for any more detailed Customer information that may be required, this de-coupling is really the hole point. So what you are really saying when you say "the vast majority of microservices I have seen actually share a common database and data model behind the scenes" is "the vast majority of microservices I have seen WEREN'T microservices" which is true for me too. Most teams get this wrong!

    • @ContinuousDelivery
      @ContinuousDelivery  11 месяцев назад

      @@gppsoftware The problem here is what do the names that we apply to things mean if we ignore the definitions that go with them? What is the use of calling something a microservice if it doesn't meet ANY of the criteria of a microservice, at that point it is merely a "service", and a poorly designed one at that. I agree with you that the practice is to not build microservices, but I don't think it helps to accept calling them microservices if they are not all of these things: independently deployable, aligned with a bounded context, Decentralised data management, Loose coupled.

    • @ContinuousDelivery
      @ContinuousDelivery  10 месяцев назад

      @@gppsoftwareWell that is part of the definition of "bounded context" too, Eric Evans says that you should ALWAYS TRANSLATE data that crosses between bounded contexts so that you can 'adapt' (as in ports and adaptors) the information that flows across these critical boundaries.

  • @ryankhetlyr3718
    @ryankhetlyr3718 3 года назад

    I Love your format - slides make your content easy to follow and review, while you’re delivering in earnest alongside

  • @An_Urban_monk
    @An_Urban_monk 3 года назад +1

    Great content Dave and well laid out. Your trajectory of your career is basically the same as mine, I could steal that slide to explain my journey. One difference is in the early to mid nineties I spent time on shrink wrapped software and then operating systems. The one caveat I would say to your whole thesis is just that there is no silver bullet architectural pattern. Micro services are great for the reasons expressed but ONLY if it solves the problem domain in an elegant and sustainable way. Every pattern has its use and I’ve seen teams try to use micro services to “evolve” legacy processes like batch jobs to “modernize”. Guess what? The Batch job, even in this century is still a legit pattern in some instances. There is no one size fits all and in my experience blending or cherry picking the past of different patterns is often the right thing to do. Religious adherence to a pattern can make your system more complex if you first don’t explore multiple options and aren’t predisposed to have to design with the currently fashionable pattern or technology. My favorite example of this faux pas is XML. I’ve had to fix many systems because everyone assumed XML as a data interchange was a requirement for a good system. It only slowed things down and caused tighter coupling with dtds, parsing code, and made interchange with non xml systems a nightmare. Nobody likes to write XSLT let alone debug it. New subscriber here.

  • @aprilmintacpineda2713
    @aprilmintacpineda2713 3 года назад +1

    I have an app for android and ios that I created with AWS, is that micro service design or is that service based design?

    • @ContinuousDelivery
      @ContinuousDelivery  3 года назад

      Not possible to tell from that description, if could be either or neither. It is probably not a Microservice based system, I think you need more than one service to qualify, each independently deployable and aligned with bounded-contexts (all part of the definition). If you only have one module, it is probably not service oriented either, it is probably just an app?

  • @nicolasdanielcieri6327
    @nicolasdanielcieri6327 3 года назад

    Great explanation of what it is and what it is not a microservice, would be nice to add or to discuss the different approaches to actually make good decitions in the design of the bounded contexts and each microservice in more depth.

  • @josefpharma4714
    @josefpharma4714 3 года назад +1

    Totally agree:
    The most important part in using micro service architecture is organizational.
    Specially in context of independent agile teams these days. 😅

  • @vishalverma5280
    @vishalverma5280 4 месяца назад

    So simply put forward, I guess for a start-up projects, the loosely coupled systems will cost more in the terms of integrity.
    Agreed, microservices must ne created as separate micro - independent modules to the same organisation.
    You made it so simple ❤❤❤

  • @Hannodb1961
    @Hannodb1961 3 года назад +3

    Over the years I've seen many people making pretty abstract pictures of systems that are build up from loosely coupled independent modules, but I have never seen it actually work in the real world. In the real world, users want complex screens that gets data from all over the place with complicated rules and calculations, living in different modules and all of this needs to deliver results in a short time frame. And for all the talk of keeping your architecture clean, there is often just too much pressure and too little time to consider these factors. In the end, you always end up with a tightly coupled spaghetti mess that is twice as hard to maintain than if you just did everything in one project. Maybe there are people out there that somehow managed to do it right, I just haven't ever met them.

  • @PetiKoch
    @PetiKoch 3 года назад +2

    Did I hear this correctly Dave?
    Your favorite architectural style is the distributed monolith??? (13:00)
    How can you do CD with a distributed monolith? You can‘t IMHO. I‘m confused 😅.
    Please clarify. Thanks!
    Beside that: AWESOME episode! 🤩

    • @ContinuousDelivery
      @ContinuousDelivery  3 года назад +6

      Thanks 🙂
      Yes, I have been building service-oriented systems for a few decades now, it is much my preferred approach in terms of architectural style, though naturally I try to fit the solution to the requirements before picking an architecture - there is no "one-size-fits-all" option.
      When you start out on any complex system, you don't know where you will end, you will grow your system as your understanding grows. At least that is how I work, and think is the best way to create complex systems. In the early days you will be exploring more and making more mistakes, it takes a while for your design, at the level of services, consolidate. You will find that some of the service interfaces, even if you got the service boundaries in about the right place to start with, change a lot as you refine the responsibilities of the service and evolve the cleanest interfaces.
      During this period there is no benefit to a microservice approach IMO. A much better strategy is to bung everything in one repo and build and test it all together. Th HUGE advantage of this approach is that you can "build and test it all together" there is NO DEPENDENCY MANAGEMENT of any kind. I can change the interface to my service, and update all of its consumers in the same commit that I make that change!
      The main downside of this approach is that you have to be efficient enough in your building and testing to get answers back on CD timescales, so under 1 hour for everything. It also means that the pieces aren't really "independently deployable".
      This approach doesn't stop you having separate, reasonably independent, small teams though. This how we built our financial exchange at LMAX, and it is how Google and Facebook organise too. It is surprisingly scalable!
      As I describe in the video, microservices is an organisational scaling strategy, nothing more. It limits the options for optimisation, because each service is discrete. It means that you have to extra work to do to facilitate the "independent deployability" and so on. It also demands a higher level of design sophistication to keep the services separate and "independently deployable". My advice, and Sam Newman's advice who wrote the most popular book on microservices, is to begin with a distributed monolith, and only, once the interfaces have stabilized, move to microservices.

    • @PetiKoch
      @PetiKoch 3 года назад +2

      @@ContinuousDelivery Thanks for the answer Dave!
      But don't we usually start with a "single process monolith" instead of a "distributed monolith"?
      (Sam Newman "Monolith to Microservices" p. 12 - 14)

    • @ContinuousDelivery
      @ContinuousDelivery  3 года назад +5

      @@PetiKoch Ah, I see what you mean. Sure, maybe, depends on the application. The way that I build my services, that is more of a deployment-time decision than an architectural one, which is why I don't think of it that way.
      The danger of starting with your monolith as a "single-process monolith" is that the other description of that is just a bunch of code! Unless we are writing something that we KNOW will be throw-away, then I think that the guiding principle for good design, even for small systems, is to manage complexity. So I want my design to be modular and cohesive, with good separation of concerns and as loosely-coupled and well abstracted as seems to make sense at the point that I write it. So I like the idea of "services" as a modular unit.
      Now, what I mean by a "distributed service architecture" is that I don't care if the services are running on the same machine or on machines on different parts of the planet. That means that the comms mechanism, and my design, needs to allow for the case where I want to make the services non-local. My favourite way to do that is to make the interfaces to my services Async. Now it is a deploy-tome decision wether I optimise for simple, local, fast, comms or distributed, non-local, comms. I have separated that comms concern.
      But this only works if I assume that the services are non-local. If I assume they are local, I may become addicted to the local performance, and then when I try to distribute them later, when my system needs to scale, my architecture is no longer fit for purpose.
      You could argue YAGNI, the trick here is to do this in a way that makes the overhead of this "thinking ahead" low-enough that its not really a problem. That is a matter of experience and design-taste I suppose, but we got that right when we built our exchange and I have used that approach a few times since. There is some more stuff on the architectural style that I am hinting at here:
      martinfowler.com/articles/lmax.html
      and here:
      I was involved in creating something called the "Reactive Manifesto" to describe some of the properties of this async architectural approach.
      www.reactivemanifesto.org/

  • @MikeStock88
    @MikeStock88 3 года назад +1

    Excellent video
    This reminds me a bit of agile, people parroting a new buzz word but failing to implement it spectacularly

  • @sorteslyngel2k
    @sorteslyngel2k 2 года назад

    I really love this sentiment that the reason for using microservices should be driven more by a people/organization strategy rather than technical reason.

  • @j0hnc00
    @j0hnc00 4 года назад +3

    Thank you, you are very knowledgeable.
    Decoupling
    Autonomous
    Independently deployable
    Easily removed without coordinating with others

  • @davidpccode
    @davidpccode 2 года назад

    Hi Dave thanks for such amazing video.
    Just one quesiton, did you said thar Port & Adapter is a big mistake for microservices? Sorry but I'm not an english native speaker, and I have to be sure. If so, could you explain why? Thankssss

    • @ContinuousDelivery
      @ContinuousDelivery  2 года назад +1

      No, sorry I think you misunderstood. I said that ports and adapters is pretty much essential for microservices.

    • @davidpccode
      @davidpccode 2 года назад

      @@ContinuousDelivery What a relief because it is the architecture that I am using. Thank you very much Dave and excuse me sometimes English tricks my ear

  • @danormisher8084
    @danormisher8084 2 года назад

    "Being able to fit in your head" and "Being able to re-write in a couple of weeks" are 2 totally different things. I am working on an API that I can easily understand and I could outline the different areas of it, but there's no way it could be re-written in a couple of weeks. More like a couple of months. Perhaps I'm misunderstanding "Being able to fit in your head". Does this mean that from memory you could outline all the API down to the class level?

  • @metalguntalk2365
    @metalguntalk2365 2 года назад +1

    Would love to learn more about high performance computing with event driven architecture! Sounds really engaging.

    • @ContinuousDelivery
      @ContinuousDelivery  2 года назад +1

      I have a few videos that you may find interesting:
      Reactive Systems - ruclips.net/video/eRxLfUIMJwk/видео.html
      How Fast is Your Computer? - ruclips.net/video/0reMVgn6kRo/видео.html
      The Next Big Thing in SW Architecture - ruclips.net/video/-IZlOPciSl0/видео.html

  • @qlee50
    @qlee50 2 года назад

    Really appreciated this video, should be a must watch for on-boarding developers in an environment with microservices implementations

  • @DavidStarkers
    @DavidStarkers 2 года назад

    So hard to setup contract testing with MSA, this video highlit (to me) why I've been struggling lol, thanks

  • @JamesJSwiftJay
    @JamesJSwiftJay 3 года назад

    Your videos are extremely valuable to me especially as I'm going down the software/systems developer route. Thank you for sharing knowledge.

  • @arajalali
    @arajalali 3 года назад +1

    I don't quite agree with you on the assertion about what "small" or "micro-" means, i.e. that a microservice should be fairly easy/cheap to throw away. As you pointed out, microservices have meaning in the context of distributed systems. If it were enough for a microservice to be easily disposable, then any cheap-to-develop module in a monolith would be a candidate for becoming a microservice, if we were to turn a centralized monolith into a distributed system based on microservices. Modules too are supposed to be autonomous with low coupling and high cohesion (i.e. bounded by domain context). But that's not the case. A microservice should be small, not necessarily from a development effort/cost perspective, but from a deployment and scaling perspective. A microservice MUST be easy to scale up and down. It must be easy and cheap to deploy and that naturally translates into favoring them being geared towards a single task.

  • @Pervy
    @Pervy 3 года назад +1

    Starting my DevOps / DevSecOps journey.....this is helpful thank you.

  • @cho4d
    @cho4d 3 года назад

    That whole bit at the end about defending interfaces and changing them rarely. My experience is that going heavy handed early on in a project with pact for example takes an inordinately heavy toll on development speed.

  • @melphiss
    @melphiss 3 года назад +2

    Microservices is the most convenient model for cloud providers profitability. You’ll end up buying much more api gateways, load balancers, monitoring, databases, virtual machines etc than normal services

    • @bradrose90
      @bradrose90 6 месяцев назад

      You can have your own cloud in-house on your own servers.

  • @rangerrecon
    @rangerrecon 2 года назад

    I can see many benefits to microservices, including scalability, but I wonder what impact they have when you're currently using a large monolithic application that is bottlenecked by a large SQL relational database. If data could be segmented off into separate databases at the exclusive control if the microservice, that would be great, but that doesn't work when there is a need to join and query data across multiple tables that are not all controlled by the microservice. It seems to me, segmenting business logic or presentation logic is much easier than dealing with the actual data.

  • @DanielLiljeberg
    @DanielLiljeberg 3 года назад +2

    The way I have thought about micro services (granted without actually diving into it and only using intuition) was that it was small programs with a very distinct responsibility. Then several of these were connected together to get more elaborate behavior. Although it doesn't have the "distributed part" (even though it actually could now that I think about it) I felt the Unix or Linux is actually built using parts of that philosophy.
    Instead of monolithic programs the core is made up of small programs, with defined responsibility which you can then chain together (pipe) and have them transform data.
    But I might be way of and have misunderstood it completely... or at the very least way of from what people mean by it today.
    Ok, everything above this I wrote before watching the video. After having watched it, I still feel the philosophy of for instance Linux fits pretty well.
    Most applications (especially core ones) are small, they tend to focus on one task, they seem to fall within alignment of a bounded context, they are indeed autonomous, independently deployable and loosely-coupled.
    For instance, let us say we want to know the number of files in a directory recursively
    find /mydirectory -type f | wc -l
    We run the find command and tell it to find files in the given directory, we specify no limit in depth so it will return a list of all found files. But this is not what we are after, so we pipe the resulting data into the wc program (word count) and asks it to return the number of lines, based on the data we passed to it.
    This will now give us the number of files. But wc could just as well have given us the number of lines in a document, or the number of characters returned in a stream of bytes. Each little program has a defined responsibility and strung together they can make seemingly new functionality appear. A bit like functions in a library or something.

    • @ContinuousDelivery
      @ContinuousDelivery  3 года назад +1

      Yes, that is a good way to think about them IMO. The Unix model *is* not just an analogy, but an application of the same thinking. The key idea that I see so many teams miss completely is, again rather like Unix, you don't get to test every program with every other to see if 'piping' works! You test 'piping' in abstract, but you don't do integration testing with every Unix command ever.
      Microservices is defined by the idea of "independent deployability". That isn't my addition. What most orgs do, that claim to be building microservices is build a distributed monolith. Which is fine, if you recognise that is what you are doing, but the way to optimise the approach for a distributed monolith is different to how you optimise for microservices. So most orgs that I see are gain none of the benefits of either microservices or distributed monoliths.

  • @BuffNerdInCa
    @BuffNerdInCa 2 года назад

    Brilliant video. I see micro-services tossed around like a buzzword with few people articulating the why. This was great.

  • @koldkaffe
    @koldkaffe 3 года назад

    Hi. Great video as always. I work in Test management, and regarding your own experience; would you agree that a ‘challened’ team (or overworked, understaffed, mired in buggy code) working on one decoupled service/component, poses an over all risk to the whole system. If so, what you look out for as early warning signs, and what would be your guidance in such a case?

    • @ContinuousDelivery
      @ContinuousDelivery  3 года назад

      I think that you de-risk situations like this with tests. You test all new work and gradually test more of the pre-existing, untested, stuff close to what you are working on. You can improve the isolation of the code for a component of the system like you describe through good design, but I’d argue that the easiest way to get to that good design us also through testing - my argument is that testable code is better designed code too.

  • @harithfannad4946
    @harithfannad4946 2 года назад +1

    Thanks man that's really a confusing idea I've struggled with. It's not easy to differentiate between SOA and microservices. I think it would be very interesting if you give examples of implementing microservices wrongly and explaining what is wrong with it. Wish you all the best thank you again

  • @AhmedSamy87
    @AhmedSamy87 2 года назад

    Thanks for the great video, one important aspect that you mentioned about, not requiring consumers to change something in order to change your service, which is broadly true, It would be great if you explain in depth different types of relations between the teams and the services they built, upstream vs downstream, and what are the best practices to governe such changes an interfaces, because in practice not all services are conforming to each other

    • @ContinuousDelivery
      @ContinuousDelivery  2 года назад

      I have several videos that cover those topics:
      "Why you SW Team Can't Scale" ruclips.net/video/pw686Oyeqmw/видео.html
      "Platform Teams" ruclips.net/video/_zH7TIXcjEs/видео.html
      "Evolutionary Design" ruclips.net/video/8GONv6jJsG0/видео.html
      and many more.

  • @robertlofthouse9667
    @robertlofthouse9667 2 года назад

    Thanks for this Dave. Yet another quality, informative piece of content. I've only recently discovered your channel, and I'm astounded as to how much we share in terms of engineering philosophy (maybe it's our age :D). I've started imposing a lot of your thoughts and ideas on my team recently, and they've (for the most part) been received well. The new year is going to continue that trend.

  • @bazoo513
    @bazoo513 Год назад

    14:00 - This is perhaps a big idea, but it is an ancient one. Whichever architecture you choose, whichever development paradigms you employ, autonomy has always been recognized as paramount to robustness and maintainability.

  • @kylemfwelch
    @kylemfwelch 3 года назад

    You need to start with the business process and identify the tasks and events that trigger the processes. Micro service should map to the discrete tasks in a business process . An example would be the booking service for a hotel reservation system

  • @fentonwinmill
    @fentonwinmill 3 года назад

    One problem I can see (non developer here) is that the service will bloat quickly in order to maintain backward compatibility. I.e. You call service with params a,b,c and get back value X. You update the service to be able receive param d to return value Y, but you will still have to maintain the old code to ensure compatibility.

  • @ChristopherSalisburySalz
    @ChristopherSalisburySalz 3 года назад +43

    Why are we constantly trying to reinvent the wheel in programming? Its impossible to keep up with everything! We never master one thing before we are pulled to another.

    • @KyleSmithNH
      @KyleSmithNH 3 года назад +12

      If you learn techniques and not technology then you can bring 80% of it with you to the next thing.

    • @nickoppen
      @nickoppen 3 года назад +1

      I think that constant experimentation is a good thing. Our paymasters, the business people are constantly looking for new a better ways of capturing value (here Amazon is a good example). We need to be able find new ways of building, expanding and maintaining the systems that support them. However, also believe there is too little time is put into evaluating and learning when a a new tool comes along with a slick sales pitch and the promise of easy wins.

    • @jincyquones
      @jincyquones 3 года назад +2

      Not all wheels work well on certain cars and/or certain terrains.

    • @gonzalowaszczuk638
      @gonzalowaszczuk638 3 года назад +1

      Mostly because the infrastructure reality constantly changed. Most of the principles of programming were already "set" in the 60s and 70s: functional programming, structured/procedural programming; object-oriented programming; modularity; etc; they were all figured out before the 80s. However, the technological reality then was only that of a single mainframe or a single personal computer; a single operating system; etc. There was no internet, there were no web browsers, there were no smartphones.
      The organizational/business realities were different too, you had a specific team in IBM/Xerox/Bell Labs/etc with a small team of developers and that's it. Now you are expected to have the scalability David mentions to become a big company in the tech market.
      The organizational reality, as well as the infrastructure reality changed, even if the principles are the same. So this necessitates "reinventing the wheel" in some form.

    • @MichaelPohoreski
      @MichaelPohoreski 3 года назад +1

      @@gonzalowaszczuk638 Hypertext was demoed in **1968** when Douglas Englebert gave _The Mother of All Demos_ before that hack Tim re-invented it for the THIRD time.
      Most concepts in Computer Science get re-invented every 20 years.

  • @thisbridgehascables
    @thisbridgehascables 3 года назад +12

    I’d love to see a video like this in regards to web development.. it’s getting crazy with all these JavaScript frameworks, package managers, node, yarn, etc.. they compile and create a project folder filled with so much code and very little organization or explanation of what it all does, you basically have to just hope all the dependencies do something of value..

    • @madsteeez
      @madsteeez 3 года назад +2

      For real! I'm currently trying to marry a quasar Vue 3 composition api project with a vuetify Vue 2 class based components api project. They share some fundamental logic and architecture that I'm trying to refactor out. Wish me luck!

    • @emaayan
      @emaayan 3 года назад +2

      YES , this! , a single hello world, can have frameworks for lints, unit tests, css webpacks, ci cd, package management and more . So much noise!

    • @nerrierr
      @nerrierr 3 года назад

      @@emaayan I get the idea, but in that case the real question is: why do you need a complex framework for a simple "hello world" app, you should try to think about mvp and yagni to avoid getting lost in insignificant details (and following the videos mr. Farley and other software engineering gurus put out is a really good direction for that).

  • @aurinator
    @aurinator 3 года назад +1

    I've always considered them synonymous with the 'S' in Solid: Single Responsibility Principal.

  • @pureevil379
    @pureevil379 3 года назад

    This is fantastic stuff, as someone who's changing career trajectory having this high level overview is very helpful. Thank you

  • @mykolaontech2142
    @mykolaontech2142 3 года назад

    Great explanation - like! One comment though.
    You say that the APIs should be considered "public" - "be defended and rarely and with great caution changed".
    While this is definitely true and is a very important point - we should maintain backwards compatibility in a distributed environment, and give our consumers time to migrate, there's still a spectrum in the "publicness" of the API's in regards of changes.
    A microservice API can be internal to a team, and therefore retain the ability to evolve very quickly and with very little communication or compatibility overhead.
    Next, an API can be a dedicated (non-generic) communication line to a selected and curated group of consumers, which again decreases the costs - especially if those consumers are agile enough.
    Finally, an API can be considered public - like what you described - with the maximum costs of maintenance and thought up-front.
    Wouldn't jumping into defining and building the last - most expensive - type of the API's before the architecture has matured and the organization evolved to deal with microservices - wouldn't it be a bit of a risky proposition?

  • @evannibbe9375
    @evannibbe9375 2 года назад +1

    The one big problem with microservices within business is the fact that whatever small autonomous program you are making probably has an open source solution out there already.

  • @MikkoRantalainen
    @MikkoRantalainen 2 года назад +1

    I mostly agree with this video. However, the *biggest problem* I see with microservices is that they very often increase the latency of the system because often the end user API sees bigger requests that some sort of gateway service splits to multiple backend microservices and the get extra latency for each hop in the sequence.
    In addition, some kind of access checking is needed in nearly every microservice so many microservices end up querying access from one central access checking microservice.
    And if you do that with zero trust design, many of those microservices are running on different physical computers and you have to pay for the encrypted network connection for every hop in the whole system.
    If there's a generic overall microsystem design that can avoid this *latency* (and encryption *overhead* in zero trust design), I've yet to see one.
    Sure, if you have a design where access is checked only once in the gateway and none of the actual microservices contain any security or access limits, then it gets much easier to implement. However, I think that the security of the whole system would be worse than monolithic design in that case.

    • @ContinuousDelivery
      @ContinuousDelivery  2 года назад

      This problem is not really a "microservices" problem, this is a distributed systems, and service based distributed system problem. This is one of the design challenges of designing distributed systems. By strict definition, microservices help with this problem, in that they are supposed to be "aligned with a bounded context". If you follow this advice, it means the services are more loosely-coupled at these boundaries, and so the conversations between these services are not fine-grained, so the expense of the network hops should not be too overwhelming.

    • @MikkoRantalainen
      @MikkoRantalainen 2 года назад

      @@ContinuousDelivery I think the microservices makes this problem bigger because by definition each service in the whole system should be smaller - hence there will be more interconnects between the services.
      How do you think access checks should be usually implemented in system based on microservices? Should each microservice implement it's own access checks or use one "access validation" microservice?
      As an architechture it seems that having a single microservice for access checking would be the obvious way to proceed but in my experience, safe code requires a lot of access checking in actual logic and that would cause lots of traffic to access checking microservice which would cause extra latency.
      Of course, one solution is to decide that you don't have any fine grained access settings anywhere. That doesn't seem like very agile to me, though.

    • @ContinuousDelivery
      @ContinuousDelivery  2 года назад +1

      @@MikkoRantalainen Access checks is just another distributed-system design choice, do you access-check every interaction, or do you firewall, and trust interactions inside the firewall. I don't think microservices add, or remove, anything from these considerations, these are broader design choices outside the realm of micorservice. Part of the confusion, I think, is that in recent years "microservice" has come to be a synonym for "service", but it isn't. Microservice has some clear defining characteristics that are in addition to the idea of service based design.

    • @MikkoRantalainen
      @MikkoRantalainen 2 года назад

      @@ContinuousDelivery If you trust access-checks firewall-style, is the remaining system microservice based anymore? The microservices definitely cannot safely work independently anymore with a design like that.

    • @ContinuousDelivery
      @ContinuousDelivery  2 года назад +1

      @@MikkoRantalainen Yes, microservice says nothing about where, or how, the services are deployed, only that they are "independently deployable". I can run microservices in-house behind a firewall, or within a security zone in a cloud provider (which is really, architecturally, a kind of firewall zone) within these scopes services can talk without the need for access control, access control is done via gateway services that valuing incoming conversations. None of this says "not microservice".

  • @gonzalowaszczuk638
    @gonzalowaszczuk638 3 года назад

    Great content!
    How would you call a service that is small, focused on one task, aligned with the bounded context, but is not independently deployable or autonomous?
    That is, they are developed by the same team and part of the same pipeline as the rest of the services?
    It seems this is the real value many organizations look for in the teachings of "microservices", but since there doesn't seem to be a name for them, they latched on to the name "microservices" because it's the closest thing to them. The services in the previous generation of SOA didn't follow these principles (specially the ones about aligning with the bounded context), so you can't call them "SOA services" either.
    How would you call them, to prevent terminology confusion in our industry?