# Modular Monoliths in .NET with Steve Smith

An episode of [.NET Rocks!](https://invisiblenetwork.ai/podcast/130068596), 7 Mar 2024, 51 min.

Audio: https://dts.podtrac.com/redirect.mp3/api.spreaker.com/download/episode/58954746/dotnetrocks_1888_modular_monoliths_in_dot_net.mp3

Modular Monoliths strike the middle ground between monoliths and microservices! Carl and Richard talk to Steve Smith about his work striking a balance between the simplicity of a monolithic set of services and the complexity of breaking everything into microservices. Steve discusses the performance and simplicity advantages of monoliths and only breaking out services with specific needs into separate services. .NET has excellent tooling to help you evaluate, test, and manage your modular monoliths!

## Transcript

[0:01] How'd you like to listen to dot net rocks with no ads? Easy?
[0:05] Become a patron for just five dollars a month. You get access to a
[0:09] private RSS feed where all the shows have no ads. Twenty dollars a month.
[0:14] We'll get you that and a special dot net Rocks patron mug. Sign
[0:18] up now at Patreon dot dot NetRocks dot com. Hey, welcome back to
[0:36] dot net rocks. This is Carl Franklin and it's Richard Campbell. Steve Smith
[0:39] is with us. We'll be talking to him in a minute. But hey
[0:42] man, how are you doing. I haven't talked to you in a while.
[0:44] Uh, you know, we had a burst of shows and now we've
[0:46] you know, caught back up, so it's time to get back to work
[0:49] again. And I happen to be in Mexico. So okay, coming coming
[0:53] to you from the Grand look at the Vedanta Resort. How's your bandwidth good
[0:59] enough? You know, everybodybody else is at the pool, you know,
[1:00] because they're on vacation, right, so hopefully it holds together. But I'm
[1:06] recording locally. We'll be okay. All right, good, Well, let's
[1:08] start things off the right way with better no framework all right, all right,
[1:19] well Google is at it again, Yes they are. They now have
[1:23] this deep you know, Google Deep Mind, their AI thing, Yeah,
[1:27] the original, the original AI guys, the reason that Open AI was made.
[1:32] Yeah. So they have this Genie team, and they came out with
[1:36] Genie, which is a generative interactive environment creator. It's so no wishes,
[1:42] yeah yeah, and you can't wish for more wishes. So we introduced Genie,
[1:49] a foundation world model trained from Internet videos that can generate an endless variety
[1:56] of playable action controllable worlds from synthetic images, photographs, and even sketches.
[2:04] So the idea is that you can sketch some things, or find some things,
[2:08] or just say, give me something that looks like this, and you
[2:12] can make side scrolling games, you know, like Mario Brothers kind of thing
[2:17] awesome from them automatically. At least that's what I think it is. I
[2:23] haven't done it, and it looks like the Really the only application is sort
[2:29] of controlling and animating sprites and a background in a two D scrolling world.
[2:34] Perhaps, yeah, but to do it with regular text just means a whole
[2:37] lot of other people think they can be video games. Now. Yeah,
[2:38] well I'm not really sure if it's well, it's a text image generation model,
[2:44] so you're right there. Yeah, but I don't know. I'm not
[2:47] really that much of a video game guy to think that this is something I
[2:53] want to look at now. But I also like the idea of just generating
[2:55] animations. Of course, we just recently had the announcement of Open AI Sorrow,
[3:00] which was more like thirty second generated video. Clearly we're on a path
[3:06] of exploring more capabilities with generative AI. Yes, we are fun fun So
[3:10] anyway, that's what I got know and learned it loves He was talking to
[3:13] us Richard Campbell. Hey, I grabbed a comment off a show eighteen thirty
[3:15] one, the one we did with Steve back in February of last year twenty
[3:19] three, when we talked about clean architecture, because he's a clean kind of
[3:23] eye, and Ken had this comment by a year ago. He said,
[3:24] this is a great episode, but what about new Get Hell, I love
[3:29] they of putting things into new Get packages, but I can see it will
[3:32] get out of hand as well. You know, only if you update them,
[3:35] Ken, Right, as long as you just leave it with the original
[3:38] bugs, everything will be fine. An example is asp asp dot version ing.
[3:44] It's a great asp dot net versioning package. But the new get libraries
[3:46] have changed, so now the developers could be making a bunch of changes to
[3:49] the new new get packages, but they did two months ago, and then
[3:52] other developers would never get the new changes. Nothing against new Get. But
[3:55] it seems like anything you do in this monster programming world is not perfect.
[3:59] Yeah. True, it's just a question how difficult, right, And in
[4:02] the area of testing, because we talked about testing on that show too,
[4:05] the world changes and developers still need to learn on the fly. Who is
[4:09] testing my Cobald world that I was running back in ninety four or inherited DELFI
[4:14] from in nineteen ninety or that four point six dot two And he says in
[4:18] two thousand, which you know was in two thousand, It was like twenty
[4:21] fourteen, twenty fifteen. What about the C plus plus code the nineties?
[4:26] What testing framework should I use? X unit? What about Java? You
[4:30] know? Testing frameworks for everything? Ken case in point in the enterprise world.
[4:33] None of the programming world is perfect. I would include programming training as
[4:38] that as well, But without you guys doing this show, I'd be way
[4:41] more lost so thanks. Wow. Cool, that's very kind. Yeah,
[4:44] it's very kind, Thanks, Ken, miel No. I think it's an
[4:46] interesting problem. And you know, often these tools become an issue primarily because
[4:50] they've been successful. You know, if nobody was using new Get, it
[4:54] were great. I remember in the early days of NEWGAT there was such a
[4:57] thing as new Get hell quite literally, and it was very hard to manage,
[5:02] just as it was to manage without Newgat. But then they quickly fixed
[5:08] things up and ever since it's been really great. I think. Yeah,
[5:11] I think Newgat's amazing. Packet managers always have their challenges, like that's not
[5:14] going to go away, especially with visual studio tooling. You know, you
[5:16] can just update everything, which can be a problem also, you know,
[5:21] but at least you'll know which ones are the problem. Well, inevitably you'll
[5:26] know the most important thing, which is it is your fault. Yeah,
[5:28] of course, yeah, yeah, I blame you all right. Ken,
[5:30] Thanks for thanks for your comment, and a copy of music Coba is on
[5:33] its way to you, and if you'd like a copy of music co buy,
[5:35] I write a comment on the website at don at Ross dot comma on
[5:39] the facebooks you publish every show there and if you comment there and a reading
[5:41] on the show, we'll send your copy of music Coba and you can follow
[5:44] us on the twitters or the exes or whatever the hell is today. But
[5:46] that's all cool. But we've been there for a long time. The cool
[5:49] kids are hanging out on Macedon. I'm at Carl Franklin at tech Hubsocial and
[5:55] I'm Rich Campbell at macedon dot social and send us a two and for all
[5:59] the ways you can attact me anyway, you can find that at Carlfranklin dot
[6:01] com. All right, let's get into this conversation with Steve Smith. Will
[6:08] bring him back. I probably don't need to introduce him, but I will
[6:11] anyway. Steve, otherwise known as our Dallas on all the social networks,
[6:16] is an entrepreneur and software developer where they passion for building quality software as effectively
[6:21] as possible. He provides mentoring and training workshops for teams with the desire to
[6:28] improve. Steve has been recognized as a Microsoft MVP for over ten consecutive years
[6:32] and as a frequent speaker at software developer conferences and events. He enjoys helping
[6:38] others write maintainable, testable applications using Microsoft's developer tools. Steve has just published
[6:45] a zero to hero course on modular monoliths at dometrain dot com, and you
[6:51] can connect him with him at Steve at our Dallas dot com. Welcome back,
[6:56] See hey Carl, he Richard. How's it going all as well?
[6:59] Friend? Well, I'm not in Mexico, so I don't know where you
[7:01] are, Steve. But Richard and I were just talking that it's the same
[7:05] temperature in Mexico and Ohio. It's twenty eight degrees right, Ah, okay,
[7:11] you know one celsius and one is appearan something like that. I like
[7:16] mine better. Yeah, just saying right. So we did recently did a
[7:26] show on the you know, the monolith, the modular monolith. Yeah,
[7:30] Leila Porter but yeah, that's right with Leila. But it was not really
[7:35] dot net centric, and we thought we'd bring you back to, you know,
[7:40] give us the dot net developers perspective on modular monoliths. So what you
[7:45] been thinking about, Buddy, Well, the focus of the industry for the
[7:48] last five or maybe ten years even has been on micro services and how micro
[7:53] services are the end all be all. And what I've found is that a
[7:58] lot of teams take their existing monolithic code that's that usually doesn't have a lot
[8:03] of modularity to it. You know, generally everything is is kind of in
[8:07] a big ball of mud, and they don't know what to do to fix
[8:09] that, and it keeps getting worse over time, and so you know,
[8:13] micro services is right, there is this shiny new toy that if nothing else,
[8:16] will improve their resume. And they're like, you know, if we
[8:20] had these separate micro services, they couldn't possibly be tightly coupled with one another
[8:24] because they're supposed to be independent. So they convince their their their boss,
[8:30] their their job, whatever, that that's the way to go as a means
[8:33] of you know, following the buzz and getting the other benefits of micro services,
[8:37] like you know, independence and you know, separate scalability of individual services.
[8:41] So I got a question, how does giant ball of mud one talk
[8:45] to giant ball of mud two that because that seems to be the fundamental problem,
[8:48] doesn't it that that can be an issue between micro services? Yes,
[8:52] but it's like this this fundamental thing where the teams I've seen, not MYI
[9:00] it's necessarily but just like social media and folks I talk to a conference is
[9:03] like almost two of every one of them. They are, you know,
[9:07] thinking that moving to the micro service approach solves the problem of lack of modularity
[9:13] in their monolith, right, And if you do it right, it certainly
[9:15] does. But it introduces a whole lot of additional problems because now you're dealing
[9:18] with a distributed application, and you know, rather than trying to figure out
[9:22] how to introduce modularity into your code and become experts at you know, building
[9:28] and operating a distributed application, like, maybe you could just do those one
[9:31] step at a time, Yeah, and avoid the possibility of building a distributed
[9:35] monolith, which is what you get, Carl, if you have, you
[9:39] know, these these two different things that are actually talking to each other as
[9:41] if they were still in process, right, but now they're distributed. Yeah,
[9:45] exactly. And it seems a little sarcastic. I'm just saying I had
[9:50] a problem. I used microservices, and now I have multiple problems that talk
[9:54] to each that can't talk to each other. Yeah. Yeah, there's there's
[9:58] an image out there, a meme that, you know, the Pooh emoji.
[10:01] As like before I had my big monolith at a giant Pooh emogi and
[10:05] now I've got micro services a dozen pooh emojis. It just multiplied. Yeah,
[10:11] but this seems like, you know, once upon a time it was
[10:15] service oriented architectures, right, I think that microservices was going to fix Like,
[10:20] are we just going through an oscillation here? Yeah? Yeah, microservices
[10:22] grew grew out of that. The thing is is it's not a bad pattern,
[10:26] right, I mean too big basically a single responsibility idea among different silos.
[10:35] But then you know, you can take that, you can do that
[10:37] all within a single project and still have separation and still only update one DLL
[10:43] at a time, if you know, just if you're using DLLs, but
[10:48] one little bit of it at a time, and still get all the benefits
[10:52] of that, but without the complexity of this huge distributed mess. That's right,
[10:58] that a lot of people don't understand. There's a bunch of reasons why
[11:01] folks move toward micro services, and some of it's because they want that independent
[11:05] scalability. Some of it's because they see that, you know, the Amazons
[11:09] and Netflixes and whatever are using it, and and folks say, hey,
[11:13] if that big successful company is using this pattern, I have to use that
[11:16] pattern so I can become big and successful It's like, that's not really how
[11:20] it works. And you ask him, how many customers do you have,
[11:22] oh, one hundred two hundred yeah, ok, yeah, do you need
[11:24] infinite scale on your you know, one feature of your of your application?
[11:28] Maybe not? Yeah, So you know there's there's that issue. And distributed
[11:35] applications are much harder, right, Like Martin Fowler's got an article from like
[11:39] twenty fourteen that basically says, if you're trying to build a micro services application,
[11:43] instead of building micro services, first, build a monolith. First,
[11:46] figure out how the design works, and then you know, split off individual
[11:52] micro services as and when and if it makes sense to do so. Right,
[11:56] that's much less risky. There's fewer dragons. He's got an image with
[11:58] dragons. Sounds exactly like the usual scaling issues, right, It's like,
[12:03] we've got to build the site scalable. It's like, well, what parts
[12:05] need to be scaled? Right? Yeah? And sometimes for you know,
[12:09] medium sized to large organizations, part of what they need to scale is their
[12:13] teams. Right. They've got an application that's so big that they're trying to
[12:16] put multiple teams working on it, and they're running into a Conway's Law problem
[12:20] and they're hoping to fix that with micro services. But you can build modular
[12:24] monoliths and have multiple teams collaborating just fine. Also, it's just a matter
[12:28] of how you structure your solution and break those things up when I think that's
[12:33] something that Lailah brought up as well, which is like Conway's loss certainly applies
[12:37] to micro services and the idea being that all software reflects the team that's built
[12:43] it. So it's like, if you're building an app with three different teams,
[12:46] you're gonna have three feature sets, right, So you know, whatever
[12:50] points was. Unless you've got a team that large, why would you bother
[12:54] with micro services because they really come down to granular elements that can be worked
[12:58] on simultaneously hopefully. So if it's only if it's only six people work on
[13:01] the thing in the first place, you're really creating a lot of plumbing for
[13:03] no good reason. Yeah, it does. If you're building this modular monolith
[13:07] and you do determine that you know there is a bottleneck in one of your
[13:11] projects or you know one of your silos, you should probably know how to
[13:18] be ready to carve that off into its own service and communicate with it,
[13:24] not in process, but you know, through some other mechanism, whether it's
[13:26] APIs or gRPC or however. So it's it's beneficial to you to figure that
[13:35] out and be at the ready to either generate the code around that or be
[13:41] able to do that and have experience with it before it becomes a problem,
[13:46] you think for sure. Yeah, and and like so in my course that
[13:48] I just finished, the starting point for most monoliths is a single project.
[13:54] If I'll do whatever console, ESPNT core, and that you almost always have
[13:58] to start with a monolith in anything you're building. And in a typical you
[14:05] know, just monolithic application, it just never splits from there, right,
[14:07] it just grows and grows and grows. And you know, whether you're using
[14:09] MVC or raisor pages or whatever it might be in the dot net world,
[14:13] like you just keep adding them to that same project, and it just keeps
[14:16] getting bigger. And if you have separation, like if you're following clean architecture
[14:20] and you have multiple projects, they aren't split vertically, they're not split per
[14:24] feature, they're split per technical concern. Right. I love clean architecture.
[14:28] We've talked about it here before. It's a great way to keep your domain
[14:31] model from becoming tightly coupled to your database. But when you only have you
[14:35] know, primary projects of user interface, all your infrastructure concerns, and your
[14:39] domain model, you don't have any type of separation vertically between, like here's
[14:46] the the product's feature and here's the order's feature, and here's the customer's feature,
[14:50] right, and then all those things can talk to each other, and
[14:52] so they do. And that's what makes it a tangled mess. At the
[14:56] domain model level, at the UI level, and all the way into the
[14:58] data model. It becomes very difficult to carve those out into a separate service
[15:03] that you'd want to split out for for whatever reason, because of performance or
[15:07] maybe security or data isolation, all kinds of reasons why you might want to
[15:11] split part of that out, And it's hard to do that if you don't
[15:15] have a plan for that going in. Ree've all Lowe talking about areas of
[15:18] resonance. You know, basically the idea is that if I make a change
[15:24] here, does the whole app resonate with the change, like you have to
[15:26] go check for impacts everywhere, or if I make a change in this particular
[15:31] spot, there is everything directly related that the only thing that resonates. You
[15:33] know, if you're messing with payment systems, only payment system stuff is affected.
[15:39] Right. Yeah. I was in the military, so I use the
[15:41] term blast radius, And you know when I break this, what all is
[15:46] into blast radius that I'm gonna have to say blast I usually measure the quality
[15:50] by meals that way. But I think that was here joke originally Richard deference
[15:58] to you. No, No, I think I think the ex military guy
[16:00] using blast radius has a whole other impact than I do. But yeah,
[16:07] the idea obviously is to limit the blast radius of certain types of changes.
[16:12] Right. If it's something that should only affect, like how orders are processed,
[16:17] then you would hope that making that change doesn't require you to redeploy everything
[16:21] that has to do with you know, customers or you know, the search
[16:23] engine of the site or whatever it might be. Well, I'm just thinking
[16:27] in terms of merge conflicts, man, Like, yeah, okay, he
[16:30] was busy working over on payments here, and then somebody went and made some
[16:33] changes to product, and now I have a merged conflict. Really like that
[16:37] that shouldn't happen, right, But you also have the problem of inner activity
[16:41] between all your projects, right, so one project might have references to two
[16:48] or three or four other projects. So now if that one project needs to
[16:52] go into a micro service, what do you do with the other ones?
[16:56] Are you? Are you now committed to splitting everything up and that just increases
[17:02] complexity? Right? Yeah, well, even adding the modularity increases complexity of
[17:07] the whole solution. But the point of it, or one of the points
[17:10] of it, especially if you have a large team you're hoping that you can
[17:12] have different teams take on different modules, is that things become simpler in that
[17:17] module. So if you look at the whole solution, yeah, like your
[17:21] four project solution now has fifteen projects because you've broken it up into four modules.
[17:25] But when you're working on just the order processing module, you still only
[17:29] care about two projects and you don't care about all the other modules. So
[17:33] your actual area of concern on a day to day basis is simpler. True,
[17:37] everybody has that shared project, right where all the things go, like
[17:42] models and all of those things. Yeah, oftentimes yes, and it might
[17:48] be shared or it might be a per module. You'll probably have both.
[17:51] You'll have some that are global and some that are per module. But like,
[17:55] this is just a pattern like the modular monolith is a pattern. It's
[17:57] not a totally prescriptive thing. But the way I have built it and the
[18:02] way I show it to do in my course, is to have a single
[18:06] entry point, host, process or project. And so that's my ASPNT core
[18:11] project that enters in and it literally has nothing in it except program dot c
[18:15] s and appsettings dot Jason, and its job is to load the modules from
[18:21] the other projects. And then a given module in the solution is basically just
[18:26] a solution folder, because we don't have better artifacts for that in dot NetWorld,
[18:30] at least at the moment. And inside of that solution folder, there's
[18:34] there's two or three additional projects. Right, there's the actual code for the
[18:38] module, which includes all of its UI and all of the domain model logic
[18:42] and however talks to a database, and then all the logic for it is
[18:45] in there, and they're separated just in folders. Right, there's not you
[18:49] know, it's not a clean architecture thing with with separate projects in there.
[18:53] You know, all those different pieces are there, but they're just separated by
[18:56] folders. And the reason is that I want them all to be internal.
[19:00] I don't want other modules to be able to access those of compile times.
[19:04] I'm using the internal keyword heavily anywhere I can to keep that module locked down
[19:08] and encapsulated. And then another project it'll have as tests because I like tests.
[19:14] Now, how the tests work against that project, Well, we can
[19:17] use the internals visible to attribute on the assembly to make it so the tests
[19:21] at least can get to those files. We encourage everybody listening to pause and
[19:25] rewind and listen at half speed because you just unloaded a whole bunch of pile
[19:30] of wisdom there, Steve. Yeah, yeah, sorry, you might want
[19:33] to you might want to listen to a little slower, but but by all
[19:36] means continue at this pace because I think it's great. That's a consequence of
[19:40] listening to YouTube and podcasts at one and a half speed, as I think,
[19:42] like this is how people are supposed to talk, is like this fast.
[19:45] Yeah, yeah, yeah, but I mean just a whole bunch of
[19:49] stuff. You just you just gave us advice to do, you know,
[19:53] using internal and the way that projects are scoped and solutions are scoped. So
[19:59] yeah, there's a lot to it, and it's a lot as we're obviously
[20:03] figuring out right now. It's a lot more complex than people think, even
[20:07] in a monolith, to be prepared, to be prepared to go, yeah,
[20:11] I mean to give it the initial structure. There is a little bit
[20:15] more complex, a little bit more work. It's really not that bad.
[20:18] And probably like I've done with clean Architecture, I've published a template that you
[20:22] can install off of new get that's on getthub and you can just do a
[20:26] you know, dot that new clean arc and it gives you the solution all
[20:29] set up. I'll probably do something similar for modular monoliths. I just haven't
[20:32] gotten there yet. But once you have it set up, like adding another
[20:36] module is pretty straightforward. It's like add a solution folder, add these two
[20:40] or three projects, and you know you're off and running. The third project
[20:45] that's typically in that module that I haven't mentioned is a contracts project, and
[20:49] the whole idea of the contracts project is that's where the shared stuff goes.
[20:53] That's where the DTOs or the messages or things that you need in order to
[20:57] communicate with that model from another module where those would live. That's great,
[21:03] Yeah, very important. It just really quick. I don't mean to change
[21:07] the subject because we've got to get back to this. But what's dome Train
[21:11] and why haven't I heard about it? Dome Train is Nick Chapsis's training company,
[21:15] and so Nick Chapsis is a real popular YouTuber talks about dot net a
[21:18] couple of times a week, and so he has initially published his own courses,
[21:22] but in the last year or so, he's brought in a bunch of
[21:26] additional authors on there, and so you'll find my modular Monolith course there as
[21:30] well as a bunch of other courses. And I still have a relationship with
[21:34] plural Site, and I have a bunch of courses on plural site as well.
[21:37] But I'm trying dome Train out for the modular Monolith topic. Cool because
[21:42] I think that, you know, people are like, Okay, you've convinced
[21:45] me, I want to go check out this this workshop here, great stuff.
[21:49] Yeah. I don't know if it'll still be good when people listen to
[21:52] this show, because I know that could be in the far future, but
[21:53] at least for now, if they use our Dallas when they check out one
[21:56] of those courses, they get twenty percent off. Very good. Uh So
[22:02] you're when you were talking about contracts, you're not talking about contracts as in
[22:04] something that's a part of the domain for this business, but contracts, as
[22:08] in the contracts between elements of the application interfaces, et cetera. Exactly.
[22:12] Yes, not not contracts like legal contracts, but the the public messages,
[22:18] they're they're classes, their records, they're they're dt os. They could be
[22:22] queries, they could be events, they could be commands. Those are typically
[22:26] the three types of messages that your application will use, and then you will
[22:30] have dt os that represent the actual things in your domain, right, Yeah,
[22:33] And so that and that's just basically a way to maintain that reliability from
[22:37] update to update. The old DTOs are still supported, so that I mean,
[22:42] we did a lot of this with the old in service bus approaches just
[22:47] because I had so many different teams working and in different languages. So you
[22:51] know, there's no way you're going to get everybody to move to V two.
[22:52] Like it just wasn't a thing, right you, backward compatibility. Yeah,
[22:56] the bigger celebration was when did you get to retire account if ever?
[23:02] Yeah, And the other key reason why that separate project exists is to touch
[23:06] on what Carl was mentioning, which is, you know, what if these
[23:07] two things need to talk to each other, right, not just one not
[23:11] just in one direction. Right. So in dot net, if you as
[23:14] soon as you split out two things into two different projects. Let's say we've
[23:17] got customers and orders, right, and so I want to go and get
[23:19] a customer with all their orders for this page I need to show. Okay,
[23:22] Well, then I guess customer needs to have a reference to orders so
[23:26] it can get all the order stuff. All right. Well now I'm like,
[23:29] I'm on an order, but I want to show all the customer details
[23:32] with it, right. Well, okay, well, now that order endpoint
[23:34] needs to have some way to go call customer. Well, as soon as
[23:37] you try and add a project reference in both directions and visual studio, it's
[23:40] it's not going to let you. Circular references aren't allowed. But you could
[23:44] certainly have the customer's module depend on order dot contracts, and you can have
[23:48] the orders module depend on customer dot contracts, and that's perfectly fine, and
[23:52] then you can use those messages to communicate with one another. So you know,
[23:56] one of the byproducts of splitting up all these silos into individual things when
[24:03] when they're distributed is it's almost like the sequel join problem right right, when
[24:10] you have when you follow doctor cod and everything's in like all these fully normalized
[24:15] tables, and then just to pull one set of data out of the database
[24:19] requires fourteen points. I mean, you have the same kind of thing here,
[24:23] right with microservices if they're too complex and so walking that line between you
[24:30] know where how what's the granularity that we need? Right? And that is
[24:33] tough and if you get it wrong with micro services, it is fairly expensive,
[24:38] but mostly in terms of time and effort. Sometimes there's money to refactor
[24:42] a distributed application in order to fix something like that, where like these two
[24:47] concepts really should have been together, but we split them and now everything is
[24:49] harder. Yeah. Yeah, now now we're being punished for it. I
[24:52] mean, we've got to have a whole conversation just about debugging micro services in
[24:56] the first place, because that's hard to Yeah. The beauty of the modular
[25:02] monolith approach is that you're not distributed. All these communications that we're talking about,
[25:07] they're all in process right right. You can use a tool like mediator
[25:10] and the mediator pattern to make it so that one module can talk to another.
[25:15] Just by using those contracts, you can new up a command and say,
[25:18] you know, mediator dot send this command, and some other module that
[25:22] knows about that command is the one that's going to process the work. And
[25:26] if you're stepping through in a debugger, you just step right from module to
[25:27] module. Everything just works in process. It's fast. Right, there's not
[25:32] a distributed message bust or anything involved unless you need one. But just you
[25:36] know, by default, your monolith, which is now a modulith if you
[25:40] will, a modular modelith module, is still what it was before. Right,
[25:44] It's still simple to deploy, simple to debug, all runs in one
[25:48] process. Just all we've done is logically separate things into these different modules.
[25:55] But Steve, what about Kubernetes. You never have to worry about it with
[26:00] this approach. That's the beauty of it. I think. I think Kubernetes
[26:04] is a way for cloud vendors to make more money. Well, it's working,
[26:10] but I mean, it's just an interesting point about this that the deployment
[26:14] or the implementation and the architecture are separate things. You certainly can can push
[26:18] out a model if in a contater, just as well as you can push
[26:23] it a push out as out of microservice. As a good table we have
[26:26] a friend who listens to the show, and he knows who he is if
[26:29] he's listening, who I'm friends with, and I've been friends with him for
[26:33] a long time. And his boss, you know, at his company,
[26:40] is sold on you know, Kubernetes and micro services and all these things and
[26:44] the you know, domain driven design and all the things that go with it.
[26:49] And you know, when you talk to them, it's like they only
[26:53] have a handful of customers. But so it doesn't make sense and he can't
[26:59] talk and any sense into his boss in terms of you know, trying to
[27:03] simplify this and going monolithically modular, and it's just painful. It's very painful.
[27:10] And you know, I guess, as you said, I think it
[27:12] might be a little bit hubrious, like, oh, well, we need
[27:15] to anticipate the day, right, when are you know, when we suddenly
[27:21] have millions of customers and blah blah blah. But you really need to ask
[27:25] yourself, is is that going to happen? And can we prepare for it
[27:29] now and serve those five hundred thousand, ten thousand customers, serve them well
[27:36] and be ready for the next for one hundred thousand customers? Right And it's
[27:41] there are challenges even with this architecture. Right. What is one of the
[27:45] nicest, easiest things you get out of a monolithic architecture is that typically you
[27:49] have a single database and anybody can querry that database for anything they want at
[27:55] any time, from anywhere, right, And that's a blessing and a curse.
[27:59] Right later on, if you do decide to try and split this up
[28:02] into different modules or micro services like that is usually one of the hardest things
[28:06] to do because you look at your database and you're like, hey, let's
[28:08] let's create an enerity relationship diagram and see all the foreign keys, and it's
[28:11] just tangled web. It's like, well, everything is related to everything,
[28:15] how do I start? And it's easier to just write a query with a
[28:19] bunch of joints in that scenario. If you move to micro services, every
[28:23] micro service should have its own database. If you've moved to a modular monolith,
[28:27] the same is true, although typically you can just use schema, not
[28:32] the whole sequel schema, but the schema type in SQL server or database,
[28:36] so that every table is prefixed by the schema, so you'll have you know,
[28:40] orders dot order and orders dot order, item for example, and then
[28:44] you just make it a rule that you follow as a team that when I'm
[28:47] in the orders module, I only work with things that are in the orders
[28:49] schema. I don't go reach out and find other, you know, things
[28:52] that are in the database. Right, But you know you can if you
[28:56] want to. And that's that's one nice thing is you've got that escape out
[29:00] if you need it. But there are other patterns that you can use when
[29:03] you need data aggregation, Like I really want to run this report and I'd
[29:07] like to be able to join across the orders and the customers and the addresses
[29:11] and the products. And you know that is difficult to do in a micro
[29:15] services scenario where you've got four different separate databases that might even be running on
[29:18] different database technologies. But there are patterns that you can use to make that
[29:23] happen, and I show how to do that in my course. Also,
[29:27] guys, let's take a break. We'll be right back after these very important
[29:30] messages, and we're back. You're listening to dot net rox. I'm Carl
[29:37] Franklin. That's my friend Richard Campbell in Mexico, somewhere where it's nice and
[29:41] warm and sunny, goddamn it, nice and warm and full of palm trees.
[29:45] Yes, And that's Steve Smith. And we're talking about modular monoliths.
[29:49] And Richard made a joke, but what about Kubernetes. And you know,
[29:55] it's kind of bittersweet because a lot of people use it, and a lot
[29:59] of people are very good at it. But eventually, you know, if
[30:03] your monolith, your modular monolith does become a set of microservices. It's not
[30:08] that Kubernetes is going away, right, It's just that, you know,
[30:12] we don't want to start with it, right, And I mean the main
[30:15] thing you get with Kubernetes is managing all these different services in a way that
[30:19] allows for independence and independent scale. And in your monolith initially you can still
[30:26] scale that, right if you're just using a simple app service or you're hosting
[30:30] your own VMS or whatever. Right, you can always have more instances of
[30:34] that and scale, you know, horizontally that way, not to mention vertically.
[30:40] I mean, you can add more horsepower to that instance for quite a
[30:44] while, especially if you're playing in cloud Land. Yeah, you know,
[30:47] the cloud Land machines are just getting more and more powerful, so you don't
[30:49] have to distribute across multiple instances. Yeah, you just spin up the dial
[30:53] and say, well I need ten of these if need be for horizontal,
[30:56] or you spin up the dial and say well I need an E or an
[31:00] F or whatever labels they have for the higher. Uh, there'll be a
[31:03] Q one of these days. Yeah, that'll be the quantum computers. There
[31:07] you go. The stack Overflow is not using micro services, right, I
[31:11] mean, if you ever read anything about their architecture, they just have some
[31:15] really powerful servers that run the entire site, and most of our apps were
[31:19] building don't have anywhere near the traffic of stack overflow, or the response time
[31:22] for that matter. Right. Yeah, So, I mean there is some
[31:26] software side of this. They What I appreciate about your hater is not just
[31:30] that mechanism scaling and they're relatively small, but it's also a unit of update
[31:33] like you get. The containers give you a habit of treating software like cattle,
[31:40] not pets, where you don't modify anything, you just make a new
[31:45] one. Tendency listeners just shuddered in horror when you call them cattle, because
[31:51] those are sacred. What do you mean cattle? I didn't say what kind
[31:56] of animal yeah, yeah, that's a good metaphor for the point being that
[32:01] you tend not to update and create unique states that you you design. The
[32:07] update is a new manifest. The manifest creates new instances of containers if you
[32:13] want to management Kubernetes, to knock yourself out, whatever makes you happy.
[32:15] And then you shift workloads over to the new implementation and the old ones can
[32:20] be shut down. That that's that's the magic of cloud right that that you
[32:23] don't have to update servers anymore. You just make new ones and kill the
[32:28] old ones. Right and and the beautia ASP do a core. It works
[32:31] with Linux, it works across platforms. So you could certainly take this modular
[32:37] monolith deployable you know the DLLs that you're going to deploy, uh and and
[32:42] send that into a doctor image and then host that container and then as part
[32:46] of your c I c D pipeline, publish a new container, push that
[32:50] up there, have a blue green deployment or you know, whatever you want
[32:52] to do, uh and and you know when it when you vetted it and
[32:57] verify that's good to go. You know, replace the existing one with that
[33:00] one or with ten of that one. If if that's how you want to
[33:01] scale, yeah, uh, and you don't necessarily need to have micro services.
[33:06] But let's say you do. Right, Let's say that you've got this
[33:08] modular monolith that you've built, and it's you know, been easier to build
[33:13] along the way because you didn't have to deal with Kubernetes yet, you didn't
[33:15] have all the you know, distributed application effort yet. And now you realize
[33:21] this piece, this one module, really needs to be separate for reasons because,
[33:25] yeah, it's it's a bottleneck in some way. It's a performance bottle
[33:29] neck or a feature bottle neck, like what is it that? Yeah,
[33:30] it could be any of those things, right, it could be a bottleneck,
[33:34] could be there's a different team that's in a different time zone that you
[33:36] want to work on it. It could be h you know, there's GDPR
[33:38] requirements that the data can't leave the you know, Germany, so you need
[33:42] to host it somewhere else, any any number of reasons. Right, Well,
[33:45] if it's been built as a module, it's fairly easy for you to
[33:49] pull that out and put it in a separate process. Right, And now
[33:52] you know that can be you know, you know, you're not necessarily on
[33:54] a micro services architecture, but you do have you know, now one module
[33:58] that's separate from the rest of your modules that are all bundled together. And
[34:02] so you take the logical separation that you already have and you turn it into
[34:06] physical separation on a case by case basis. You don't have to, you
[34:09] know, do all of it at once. But this isn't free either.
[34:12] You're adding an authentication layer there, then in a transport layer because you're not
[34:19] part of the same thing for sure. Yeah, there's a host of things
[34:22] that you'll have to figure out, at least for that first one, like
[34:23] how are you going to communicate it with it now that it's out of process.
[34:28] And the nice thing about the modular monolith approach is if you're using you
[34:32] know, messages like I've described as contracts approach, is those messages all have
[34:37] handlers that in a monolith can just do the work right in the handler,
[34:42] it goes and makes a database call and gets the stuff it needs and returns
[34:44] back your dto and that's that. Right Now, you suddenly say, well,
[34:46] actually you're you're across the wire from me, You're somewhere else, and
[34:51] so you can't just do that anymore, right now you've got to transport it
[34:54] over a message queu or a message bus. You've got in service bus in
[34:58] between, or there's an a layer between, and we have to have you
[35:00] know, token based security flow all the way through. Like all of those
[35:05] things can still be done just in that handler. Now you're going to add
[35:08] that additional work, probably as a decorator, as another handler that sits in
[35:12] front of that one, so that the original one doesn't even necessarily have to
[35:15] change, but you'll add that new responsibility in its own class that sits in
[35:19] front of the existing one. Okay, yeah, that makes sense. But
[35:22] I also appreciate the idea of like, you only do this because you need
[35:24] to. You're adding complexity and overhead and impacting performance, I would think to
[35:30] a little to some degree. Yes, but you know, as a guy
[35:32] who's done a lot of scaling over the years, is like, I'm going
[35:36] to reduce the single use performance so the multi use performance stays consistent. That's
[35:42] not necessarily fast per se, but at least is as the number of instances
[35:45] go up, it doesn't change. Because that's the only thing that makes people
[35:50] sad is that this one took five minutes where the other one took four seconds.
[35:54] Yeah, right, right, Yeah, just trading for scalability will almost
[35:59] always make individual performance worse, right, because if you just have your entire
[36:02] application on one box and either it doesn't have a database, or that database
[36:07] is also on that box, right, then all of your calls are on
[36:10] the same box, right, there is no network hop, and so you're
[36:13] going to come back in you know, milliseconds, you know, very very
[36:15] small milliseconds on every request. But how do you scale that? Well,
[36:20] that's the trick, right, And so as soon as you start scaling it
[36:22] and you have multiple servers involved in network hops, everything is orders of magnitude
[36:27] slower, but still generally fast enough. And now it scales you know,
[36:30] linearly at least up to some point. Yeah, yeah, there's always there's
[36:35] nothing's for forever, but it should be enough at least, right, And
[36:38] an architecture, everything is a trade off. So it's just a question of
[36:42] what is the right architecture for your application for today and for the next you
[36:46] know, whatever period of time you anticipate in media, Yeah, for fishent
[36:50] amount of time. All right, Steve, here's this scenario for you.
[36:52] So people are listening to this and they're about to embark on a new project
[36:57] and realizing that they're going to get in over their heads the upfront architecture if
[37:00] they're going to make this right. Maybe they've watched your your your workshop,
[37:06] here your course and they want to hire a consultant, right, So they
[37:10] bring in these consultants. And as we know consultants, uh, many of
[37:15] them can talk a great talk and you want to they're on the lookout for
[37:22] smells, right, So what smells should we be looking out for when we're
[37:27] hiring consultant. Then they sit down and they say, all right, here's
[37:30] what we think I think you should do. Blah blah blah. What are
[37:32] the smells that say Nope, this guy is not does not understand. Well,
[37:37] first you should just call nimble Pros because that's us, uh and we
[37:43] can help you. So go to nimblepros dot com. You know plug that
[37:46] you set me up for. Sorry, but no. If you're looking for
[37:50] things to watch out for in your modular model, well in your monolith or
[37:52] in your architecture, the biggest thing if you're if you're hoping to have modularity,
[37:58] right, whether it's micro services or modules within a monolith, the thing
[38:01] that will kill modularity is things that will kill independence, right, things that
[38:06] add tight coupling between modules. So, if it's micro services or modules,
[38:09] if they're sharing the same database, that's a red flag. That's a code
[38:14] spill. If and I mean the actual tables in that data so they have
[38:16] separate schema then and they're on the same database server, that's that's fine.
[38:21] You know, you can always break that apart later. But if they're literally
[38:23] just sharing one data model between multiple modules or micro services, then that's going
[38:28] to make them tightly coupled and you're going to lose that. So if the
[38:31] consultant says, so here's module one, it's going to talk to our central
[38:36] database, and module two and three are also going to talk to our central
[38:37] database, you say, there's the door. You ask them a question of
[38:44] you know, hey, doesn't that make them less independent from one another?
[38:45] And then you hope they have a good answer. Maybe there's a good reason
[38:49] why they don't want to split the data model. That is complicated, or
[38:53] it does add complexity to split the data mode. And there is such a
[38:55] thing as we know as too much separation. Sure, yeah, so I
[39:00] guess yeah, right, Like Michelle, my wife and partner at Nimblepros is
[39:07] a veterinarian by by education, and and they kind of have a thing where
[39:12] they don't talk badly about how another veterinarian diagnose something. Right if somebody comes
[39:15] in and they took it to another clinic and then they bring it to you,
[39:17] like, you don't know what that that saw. You don't know what
[39:21] the animal was doing at that time. So I'm not going to talk badly
[39:22] about some consultant or or architect or whatever that makes certain decisions because I don't
[39:28] know what they were thinking, what what what what they were seeing at that
[39:30] moment and how the you know, requirements were given to them. I will
[39:34] only assess it based on the information I get at the point in time where
[39:37] I am introduced to the problem. So maybe if I could throw in an
[39:39] answer here. If you hear them say always or never, you know only
[39:45] as Seth speaks an ye, try and be practical and remember that everything is
[39:52] is a trade off. Is always saying it depends gets old too. It's
[39:58] true. It only is helpful to say it depends if you immediately follow that
[40:01] with what it depends on and how your decision will be different based on that
[40:07] again in a healthcare field, if you're diagnosing something and you say, you
[40:09] know what's the treatment going to be, and you say, well, it
[40:12] depends. Everybody is waiting on what on your test results. It depends on
[40:17] the test results, and then you know, based on that we'll do X
[40:21] or y like that depends should sure, all right? So anything else that
[40:30] I mean that the type of other flags. Other red flags for sure would
[40:34] be direct calls between modules, right, and direct I mean that they are.
[40:38] You know, on a modular monolith, you can get away with synchronous
[40:42] communication using the mediator pattern and I show that in my course and it works
[40:45] fantastic. And the reason why that is allowed in my opinion, why that
[40:49] works in a modular monoth and it doesn't work in micro services. And what
[40:52] I'm what I'm describing is in micro services, if you have a direct synchronous
[40:57] call from micro service A to microservice be using RPC or web APIs or whatever
[41:02] you want, that means that they both have to be up at the same
[41:06] time. And so now they have a dependency that you know, they are
[41:09] not independent. You know, if one goes down, the other goes down.
[41:13] And so if you want to have availability of these services even when one
[41:15] of them is down, one of them is being updated, or one of
[41:19] them crashed or whatever. Right, then you can't have those direct synchronous dependencies
[41:22] between them, so you want to use some kind of message queue or service
[41:24] bus or something like that. Yeah, exactly, exactly right. So for
[41:29] commands you can usually get away with just throwing a command on a queue and
[41:32] then when that other service gets around to it, it does the work.
[41:36] But for queries you usually have a conundrum, a different problem, like I
[41:40] need this data from that other service, how do I get it? And
[41:44] so for that the easiest approach is data duplication. Right, you have a
[41:49] cash and that's called the materialized view pattern, and I cover that in my
[41:52] course also, But the general idea is that instead of you asking service B
[41:57] for its data with a query over the network, you just get the data
[42:00] out of your own local copy of service b's data, and Service B is
[42:05] updating that copy constantly with events. Right, so every time there's a new
[42:08] record added or removed or updated, an event is fired and you update your
[42:13] cash. And so if that other service is down or communication between you is
[42:17] down, you always still have your cash to work from data might be a
[42:21] whole idea, right, but the data might not be up to date exactly,
[42:23] So it's a cap theorem your training consistency for availability. Right. And
[42:28] what about CQRS that comes to mind, where you have a separate pathway for
[42:32] querying than you do for writing data, right, And it's exactly this type
[42:38] of thing I just described that. It's one of the reasons why you want
[42:42] to have that separation of commands and queries. So CQRS, if you don't
[42:45] know, the acronym is command query responsibility segregation and the benefit of it.
[42:51] There's a bunch of benefits, but one of them is that you can use
[42:52] different patterns and different architectural approaches for your commands versus your query's. So,
[42:59] like I was saying, you could throw a command on a queue and forget
[43:01] about it, you can't do that with a query, right. You can't
[43:04] just throw it on a queue and continue on because you need that data and
[43:07] so you have other patterns that you use to respond to those. And so
[43:10] in a modular architecture, whether it's going to turn into micro services or remain
[43:15] a modular monolith, it does make sense for you to define your messages in
[43:20] terms of queries and commands and events. Those are the three messages you should
[43:23] have explicitly defined and then use those as your mechanism for communication, and then
[43:30] put those in the contracts project for each module. And just to illustrate how
[43:34] complex these things are, I saw a great tweet by Greg Young, who
[43:37] was the first one to do CQRS. I think he might even coin the
[43:40] term in the pattern, but that he was turned down at a job offer
[43:45] because they said he didn't know enough about CQRS. You don't know anything about
[43:52] CQRS. It's like saying Steve Smith, you don't know anything about nimble pros.
[43:59] Go, yeah, Like did you even google it? You know,
[44:01] yeah, google that phrase and you know his name, right, So what
[44:06] have we missed? Is there anything else that people should be on the lookout
[44:10] for? Maybe maybe when investigating and existing architecture, right, and you're you
[44:16] obviously things that are tightly coupled. But how does one begin to take a
[44:22] monolith that might not be modular and modularize it. There's a few different ways
[44:25] that you can start. Like one of them is you look at the data
[44:29] model or the object model and you try and figure out where there's some isolation,
[44:32] there's some things that could stand alone. And it might be that your
[44:37] your hand is forced. It might be that there are constraints like this is
[44:39] the one that's not performing well enough, or this is the one that needs
[44:42] to be in a separate region, and so you have to start there.
[44:45] But if you're not forced, it's usually best if you can pick something that's
[44:50] low hanging fruit, that is, you know, sort of the Hello World,
[44:52] of of the of the various modules, right, something easy and so
[44:58] you know, sometimes it's something like how we send emails, right, take
[45:00] all the email sending functions and put them in a module and figure out a
[45:05] way to send communication to that module to say, hey, here's everything you
[45:07] need to send this email, and then it can do that work right,
[45:10] And that could also be spun off as a micro service if you want it.
[45:14] I've I've done that many times for clients as their first micro service.
[45:17] Like here's your micro service that just sends emails. Like it's it's really small,
[45:21] it's micro, it's only got one thing it has to worry about,
[45:23] and you do it from all over the place inside your various applications. So
[45:27] like it makes a good first micro service, and then likewise is an easy
[45:31] thing to pull out, you know, some type of thing like that.
[45:34] It could be an easy thing to pull out for a module in a modulate
[45:37] model. The reason for it is that once you've done something simple and easy
[45:40] like that, you've you've figured out where all the dragons are, you figured
[45:45] out what all the problems are. It's a nice easy vertical slice that you
[45:49] know, you have to answer all those questions like well, how do I
[45:51] communicate with it? And how do I you know, separate it, and
[45:52] how do I deploy it separately? If it's a micro service, all those
[45:55] questions have to be answered, but you're not, you know, bogged down
[45:59] by the This is this huge, massive, complicated thing that's tied into everything
[46:02] else. Like no, do a simple thing that you can solve all the
[46:06] distributed problems or all the modularity problems. And then once you have that as
[46:08] an example, now you can just take that example and use that same approach
[46:14] for the next one that's more challenging. Do we have to know DDD in
[46:16] order to do this? Do I have to take a course on demand driven
[46:20] design? You don't have to, but it probably helps because of some of
[46:22] the patterns that are involved. Right, Each one of these modules or each
[46:28] micro service should be its own bounded context. Right, And if you have
[46:30] never heard of that, then that's add a little bit about DDU would probably
[46:35] go a long way, right. Okay, So you know, I'm basically
[46:38] hearing of voices of the listeners out there going all right, you guys are
[46:44] sort of pooping on micro services. But does that mean all these other technologies
[46:49] and patterns and strategies that we use are are invalid? And you know the
[46:53] answer over and over again is no. It's just that the modules exist in
[46:59] a single problem first, right, Yeah, if there's a good reason to
[47:05] go to micro services, by all means you. I'm not saying don't do
[47:07] that. I'm just saying don't do it without a good reason, right,
[47:10] And don't necessarily do it out of the gate like you're if you're building a
[47:15] brand new application, you will go orders of magnitude faster building a modular monolith.
[47:21] Then you will if you're having to try and have a bunch of different
[47:23] services that all communicate to each other like debugging and deploying, and you know,
[47:28] reckoning with that and then changing that design later. Yeah, that's the
[47:30] thing you be most likely to get defensive. Yeah. I mean the only
[47:35] place I've seen this makes sense, and you know we addressed this before,
[47:37] is oh, we have one hundred people working on this, and they're actually
[47:42] breaking it into these pieces and creating all the communication layers because it allows everybody
[47:45] to work at once and hopefully and you've got a contract team that's sitting over
[47:50] top of that that's making sure that the APIs are consistent and nobody gets surprised.
[47:52] Like, so you're already paying the overhead to make that many people productive,
[47:57] right, I just don't know how many folks are in that situation,
[48:00] right, Like really, you know, there's an upside to Conways law,
[48:04] which is if the app is architectured to the size of the team, and
[48:07] the team generally has their hands around it, like they know what they're looking
[48:09] at, right. Yeah, and this subsequent you know, break breaking a
[48:15] part of things because of performance or other constraints is more reflective of how the
[48:21] software is being used rather than the initial architecture. Yeah. And why do
[48:24] you have one hundred people working on this? Usually it's because you want to
[48:27] achieve some level of velocity, right, Well, I would argue that you
[48:30] could have half as many people working on it, and you know, build
[48:34] it as a single repository modular monolith, and you would go faster than having
[48:39] one hundred people working on it in a dozen different repositories and all trying to
[48:44] figure it out, with a separate team responsible for contracts, and another one
[48:46] responsible for making sure everybody does everything right, and two more teams responsible for
[48:52] figuring out how to deploy it all. Well, Steve, is there anything
[48:53] else besides here? Of course you want to pitch or talk about or do
[48:57] we miss anything before we sign off? Probably mentioned since we've been talking about
[49:00] micro services and monoliths that I do have another course coming. I think it'll
[49:07] be ready first of April or so on. From micro services to modular monoliths,
[49:13] which is the backward direction from most of the books in literature that's been
[49:16] rud for the last ten years. But if you've found yourself in a mess
[49:21] with your micro services and you want to get back to a monolith but still
[49:23] keep your modularity that you've worked so hard to get, that's what this course
[49:28] will cover. Very cool, Steve, I can't thank you enough for being
[49:30] with us. It's always enlightening to talk to you, and we always learned
[49:32] something and take the course. Get out there, check it out. Thanks
[49:37] again, Steve, Thanks Carl Richard. All right, always Bud. We'll
[49:40] see you next time on dot net rocks. Dot net rocks is brought to
[50:04] you by Franklin's Net and produced by Pop Studios, a full service audio,
[50:09] video and post production facility located physically in New London, Connecticut, and of
[50:15] course in the cloud online at pwop dot com. Visit our website at d
[50:20] O T N E t R O c k S dot com for RSS feeds,
[50:24] downloads, mobile apps, comments, and access to the full archives going
[50:30] back to show number one recorded in September two thousand and two. And make
[50:34] sure you check out our sponsors. They keep us in business. Now go
[50:37] write some code, See you next time. You got Jamtlevans and

Shows are listed from Apple Podcasts' charts and directory, and Podcast Index where it is used. Every show and episode belongs to its publisher and plays from the publisher's own feed; this site hosts none of them.
