Microservices and Rules Engines - a blast from the past - Udi Dahan

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

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

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

    It's almost as if the actually interesting and challenging parts in programming and computer science in general are cross-cutting concerns that can't be tidily encapsulated according to the management ideology in fashion and the remaining is trivial boilerplate code.

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

    0:41 "I tend to take a contrary viewpoint." One of the reasons I like Udi :)

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

      He's one of the few people who turn their brains ON and are not affected by cargo-cult stuff (Eric Evans calls this stuff "shiny objects" in another talk). I'm not saying microservices are bad: the current, widely-accepted, interpretation of distributed system is basically broken. Everywhere.

  • @RationalWe
    @RationalWe 7 лет назад +11

    This talk. clarifies the concept of Microservices.

    • @АртемАрте-г5х
      @АртемАрте-г5х Год назад +1

      He doesn't understand how microservices should work. He still wants to keep single source of data, while it's the monolith way

  • @bricol8
    @bricol8 6 лет назад +7

    Good talk! Have applied these rules since 2012 and they work.

    • @TheRoxas13th
      @TheRoxas13th 5 лет назад +1

      What's so special about rules engine? Isn't just a component where it aggregates all data from another service into its own?

  • @p46288
    @p46288 5 лет назад +3

    Great talk! This applies to any application development (web api, desktop app, etc). Sadly, many developers always just applies the n-tier layer architecture without understanding the domain or features required.

  • @lasindunuwanga5292
    @lasindunuwanga5292 10 месяцев назад +1

    I could say "well said" for lots of things said in this video

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

    Excellent on first half of the presentation, but it went all the way down after that. Putting search aside which is a very specific problem that requires very specific solution, the other two examples are also too vague. The so called rules engine pattern looks just like pipe and filter pattern to me unless I missed something here, and how it's to be implemented from microservice perspective is not mentioned and forgive my slow brain but I can't imagine how it can be implemented without a commonly understood contract which will introduce coupling again.

    • @thatpaulschofield
      @thatpaulschofield 10 месяцев назад +1

      The components are typically just sharing IDs and not specific data.

  • @mhandle109
    @mhandle109 7 лет назад +7

    Basically, rules engines mean here the Command design pattern on the deployment level.

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

    So basically it's dependency inversion on a service-level.

  • @harsha271
    @harsha271 6 лет назад +2

    When we deploy these components/assemblies together as a single deployment create a dependency in terms of release upgrades.

    • @mcalavera81
      @mcalavera81 6 лет назад +1

      Yes. I'd rather have the engine work as an orchestrator gathering the different pieces. The price is coupling from the engine.
      You can have a more complex setup to avoid somehow this decoupling by having each service on startup register itself with certain capabilities/interfaces (pricing, fraud,..) in a central registry and the engine finding services with certain capabilities and looping over the endpoints associated with them.
      Another completely different approach is replicate the data from the different sources via events in which case you can centralize all the logic in a single microservice. For all this to work you need to publish domain events

    • @M0ns1gn0r
      @M0ns1gn0r 5 лет назад +1

      @@mcalavera81 BTW in the talk Udi Dahan explicitly goes against the data replication.

  • @vuralmecbur9958
    @vuralmecbur9958 7 лет назад +3

    Good talk, to the point and concrete.

  • @LoiNguyen-tl1sy
    @LoiNguyen-tl1sy 5 лет назад +3

    Thanks for this talk. But after listening I didn't get how rule engine works with microservices

  • @alandmcleod5988
    @alandmcleod5988 6 лет назад +8

    This is good. This is a really good talk. Excellente!

  • @roodborstkalf9664
    @roodborstkalf9664 7 лет назад +4

    Very interesting, especially the last fifteen minutes

  • @NathanPrice490
    @NathanPrice490 6 лет назад +2

    I thought for years SOA was several jars that were deployed to separate jvm containers. I'm a java developer. Not until I went to my next job and they had all the service in one app or monolith. Did I realize how wrong you could write SOA. We were writing microservices in 2010

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

    36:52 Rules Engines

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

    Watching this now I realise we are in a similar boat, every single thing he said is true.

  • @2heavenAndHell
    @2heavenAndHell 4 года назад

    Very good talk - outstanding.

  • @HassoHu
    @HassoHu 7 лет назад +3

    Great talk

  • @thatpaulschofield
    @thatpaulschofield 5 лет назад +1

    Do the rules engines themselves belong to the IT/Ops service?

  • @DEvilParsnip
    @DEvilParsnip 7 лет назад +2

    I love you udi .....!!!

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

    Great presentation! Thank you!

  • @jackignatius
    @jackignatius 4 года назад

    Great talk! The Big Picture!

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

    Using interfaces to separate concerns is great. And maybe that will work fine for pricing or fraud scoring. But for search your approach will not scale past a few thousand objects. Even if google has spoiled us, indices exist for a reason, and searching is more than filtering.
    You say that searching is as simple as implementing a filtering interface, which ignores sort order and pagination, but let's put that aside for now. Even if we treat searching as equivalent to filtering alone, with your approach how could we search across millions of products for all that have, for example a user-input color and size? Well, we have to call each of those services and ask them for all of the products matching some criteria they own. Then we have to take the intersection of their results. This means we will be copying a few million IDs around, most likely 128-bit UUIDs, potentially across the network. This will be untenable as the product space and the number of variations grows. By the time you get to ten million products and 30 services, we're talking about a gigabyte of data being copied from service to service. Even in RAM, that's a tall ask.
    And what of sort order? If I want simple sort orderings (eg ORDER BY price ASC, rating DESC), we can have that logic live in the corresponding service, perhaps as an optional parameter, and make sure our merging logic preserves order. But what if I want a sort order that is more complicated, that takes some function of price and rating and other parameters, so that the customer can see a mix of cheap products and highly-rated products? That sort logic can't live in the child services, because eg the price service has no idea about ratings and vice versa. Such functionality simply cannot be done with a filtering interface alone; we need a way to see both at the same time, and convert those properties in to numeric values. So maybe the filtering interface returns the data as well, but then we're copying even more data back and forth between services. Or maybe we pass a list of venues in to some sort order scoring service or services, but again, more copying data back and forth - performance will be poor.
    Maybe I'm missing something, but it seems to me like you reached a little too far here.

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

      Absolutely true. Adding facets to the mix it just won't work. Tools like elastic search, typesense exist for a reason

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

      I think this is possible if you have multiple feeders for search service building indices? I think the point is that helper services own pushing data to the search service. The individual teams own the feeders while the search service owns internal indexing, pagination, querying et cetera. But it should have been made clear in the video without being too cryptic about that. This is just my attempt at understanding Udi.

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

      Yeah since those searchable attributes are very non volatible, even immutable, why wouldn't you just cache them in a search service as properly indexed read only reference data. The services that actually own the data will publish events when anything changes and the search will be up to date. Low coupling and actually works. Trying too much to make this a problem to be solved by his company's product...

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

    It took too long to set the context for rule engines and when it came to it, it was mentioned too generically, like any other component that uses other service's sub-components... The presentation was so good, though and that is why I avoid labeling it "click-bait" via "rule engines"...

  • @daniellaidlow
    @daniellaidlow 7 лет назад

    Are we ever going to see the NDC Sydney 2017 videos? There's a playlist but it's full of deleted videos....

  • @milanbrezovsky9649
    @milanbrezovsky9649 7 лет назад +3

    Microservices can be, among other things, an excellent unit of deployment. This is where I disagree with Udi Dahan. He's a smart cookie, no doubt about it - listen to what he says, but synthesise from your own experiences, too.

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

    Good talk, but yet another example of "Sell what you know". Fast forwarded whole video to find out its all theoretical and the speaker demands money in the end to even show quick demo/live example.

  • @kerens8222
    @kerens8222 4 года назад

    אודי... תותח!

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

    If search is not a service, where is the code that coordinates a search and calls all dependencies?

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

    You seem to be restricting the space of possible structures here. Most complicated functions depending on several inputs aren't products of input specific factors.
    Suppose a company has a coupon for 20% off for orders up to £50. Now it matters which order the services in. But maybe each service can implement a PriceTransform:float->float function.
    Now you have a regional discount. And a coupon discount. And a frequent user discount. Except customers shouldn't get multiple discounts at once. But they should get whichever 1 discount makes the price lowest.
    Or maybe your fraud detection algorithm is just to throw all your data into a big neural net.

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

    how come this guy have less than 1000 likes? sounds like half of the corpos needs to hear this...

  • @АртемАрте-г5х
    @АртемАрте-г5х Год назад

    Started a talk from fat monolith and finished with new re-creation of distributed monolith, highly coupled by "process". It's not good idea to follow this guy.

  • @brijmohansingh4842
    @brijmohansingh4842 7 лет назад +2

    Is not this smart pipeline and dumb endpoint

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

    Meh, mellow

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

    if you rebrand the same thing every ten years your keep the original thing ... so we should still have the same thing as at the dawn of computing, even those ingenious wooden adders and subtractors. Now, we clearly haven't. But this is not the only blast from the past in this type of presentation that generalizes problems. The tone of voice and melody of the speaker reflects this and mimics shills. The speaker doesn't need this as there are interesting lessons to learn but he totally spoils this by going the shilly path. He should decouple his shillness from the real meat, even if there isn't too much meat here. Meh.

  • @mahermali
    @mahermali 5 лет назад +2

    Is it only me who think this talk is so misleading and full of mistakes! I didn't expect from someone like Udai with such reputation to give a vague, spooky talk like this one. Where is the business rule engine in the microservice architecture? how you started mocking microservices ... agile ... consultants .. to give at the end an idea not even related to BRE, seriously that's what you are trying to promote here? (A plugin system), for those who are giving positive feedback: he is talking about writing DLLs (Assemblies) which implement an interface where you can use (DI) to load them at run time. Period. Really shame. Mr. Udai, I'm dealing a real-world problem I'm trying to solve (Process Millions of items) through dynamic business rules, It led me to this video which I spent 1 hour watching and additional 10 minutes to respond to, to find out at the end plugins! what a disappointment.

    • @Miggleness
      @Miggleness 5 лет назад +2

      I havent finished the talk yet but what Udi addresses here are the use cases where you need to apply multiple business logic and rules on data owned by other autonomous services. He refers to this system as an "engine". Now, you group these use cases into their function (search, custom pricing) and apply the same core principles of microservices unto them. Most important of which is autonomy, removing temporal coupling. Jimmy bogard spoke about the same thing in his talk Avoiding Microservices megadisasters, tho not as deeply but with a more concrete example.

    • @Miggleness
      @Miggleness 5 лет назад +2

      Now that I've finished the talk, I understand your frustration. I thought that the dynamic assembly loading part is unnecessary, too. The talk felt like one big ad since there's no conclusion

    • @mahermali
      @mahermali 5 лет назад +1

      @@Miggleness There is nothing in this talk related to BRE(s) as a matter of fact I found one commercial product to integrate BRE in microservices by decision, in reality what is called BRE is implicit flow in the microservices architecture, can be implemented with Saga for workflow. The traditional BRE is more or less obsolete in the systems requiring intense processing. We ended up creating our own DSL for business rules, I wish evangelists can stop using misleading buzz titles. What makes me wonder those likes and comments claiming that they have benefited from this talk! While I found it not that much useful.

    • @nohrosceo
      @nohrosceo 4 года назад

      All of this works great in paper, but nobody does this type of 'composition' in real world. If you watch talks from developers from Amazon, Netflix, Google, LinkedIn,...you never seen this type of architecture implemented.

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

      @@mahermali Can you point a little towards custom DSL for business rules? are these rules processing large data? The existing rule engines don't fit the scenario? You had more simplified requirements that trade for performance over complexity of a BRE? Did you have a requirement for dynamic facts?

  • @majormartintibor
    @majormartintibor 2 месяца назад

    Great talk