Welcome to the new week! “How to document systems build with Event-Driven Architecture?” and “How to keep our understanding about evolving messages definitions?” Are one of the common questions I’m being asked. For many years my usual answer was: "Keep it simple, use Markdown, and make it a part of your design and development process” Still, that does not scale, and governance requires proper practices and tooling. That’s why I’m happy that tools like EventCatalog emerged. Well, it didn’t precisely emerge; David Boyne thoroughly built it. He brought not only his passion but to EDA, most importantly, his wide experience. Over the past few years, David has focused on serverless and event-driven architectures, making both more accessible to everyone through content such as EDA Visuals, speaking, and open source tools. He has also worked in AWS and on the AsynApi initiative. He has lead teams that have built applications scaling to millions of people worldwide. Now, his main focus is on EventCatalog and helping others to document and operate their Event-Driven systems. That’s why I’m super happy that he agreed to do a hands-on webinar and show us EventCatalog in practice. And this is a free webinar for all, as I believe it’s essential to spread awareness of it. What is EventCatalog? It is an open-source documentation tool focused on bringing discoverability to Event-Driven Architectures. EventCatalog is not locked down to any technology, broker or implementation details. David showed us the ease of use and versatility of extensions, plugins, generators, and multiple schema formats. I love what he said during the webinar: The whole idea here is for teams to document their resources. I think this is important because schemas can only go so far, right? If I were to show you a schema of an order-placed event, we'd be looking at a JSON schema. That's great for engineers and developers, I guess, to an extent. But the question is, what's the semantic meaning behind all of this? And I think when I said earlier about Domain-Driven Design, you know, as we do things like event storming, we discuss the meaning of the events. We discuss, like, what is this thing? We talk about naming conventions, and there is conflict in these sessions. There is meaning behind these events. So why not document them and share that meeting with others so others can discover the event and say, okay, the order placed means this, in this context, means this particular thing. Oh, great. Fantastic. I can consume that. I know exactly what it is. Versus, I guess, just guessing Especially the last sentence is 🌶️ Watch it fully, and tell us how you like it. Feel also invited to add your comments! We’re also considering moving another one going through the existing sample (for instance, this one made with Emmett) and showing how to add EventCatalog to the existing project. Cheers! Oskar Other Webinars * #1 - From CRUD to Event Sourcing * #2 - Keep your streams short! Or how to model Event-Sourced systems efficiently * #3 - Implementing Distributed Processes * #4 - From CRUD to CQRS in Practice * #5 - Architecture Weekly 100 Edition - Live Q&A * #6 - Alexey Zimarev - You don't need an Event Sourcing framework. Or do you? * #7 - Design and test Event-Driven projections and read models * #8 - Slim down your aggregates! * #9 - Radek Maziarka - Modularization with Event Storming Process Level * #10 - PostgreSQL Superpowers in Practice * #11 - Maciej "MJ" Jędrzejewski - Evolutionary Architecture: The What. The Why. The How. * #12 - Jeremy D. Miller: Simplify your architecture with Wolverine * #13 - Yves Goeleven - The Fantastic 9 * #14 - Mateusz Jendza - Why Verified Credentials is the Future of Digital Identity! * #15 - Mário Bittencourt: Leveraging BPMN for Seamless Team Collaboration in Software Development * #16 - Papers We Love #1 - Sagas (Hector Garcia-Molina, Kenneth Salem) * #17 - Simple patterns for events schema versioning * #18 - Andrea Magnorsky: Introducing Bytesize Architecture Sessions! * #19 - Laïla Bougriâ: Debug your thinking * #20 - Papers We Love #2 - How do committees invent? (Melvin E. Conway) * #21 - Michael Drogalis: Building the product on your own terms * #22 - On Performance Testing with Jarosław Pałka * #23 - Gojko Adzic on designing product development experiments with Lizard Optimization * #24 - Frontent Architecture, Backend Architecture or just Architecture? With Tomasz Ducin * #25 - Applying Observability: From Strategy to Practice with Hazel Weakly * #26 - React Query: A solution for Frontend State Management challenges? With Tomasz Ducin * #27 - Documenting Event-Driven Architecture with EventCatalog and David Boyne This is a public episode. If you would like to discuss this with other subscribers or get access to bonus episodes, visit www.architecture-weekly.com
Audio and video play straight from the show's own hosting. PodSubs stores and serves no media.
Transcript
From the show. Tap a time to play from there.
SPEAKER_00Hi folks. In our next architecture webinar, we have a really special guest, David Boyne. And we were talking about doing this webinar for a long time because when I'm working with my customers and my projects, then a common and recurring question is how to document event-driven systems or in general distributed systems. And surprisingly,
SPEAKER_00even though we are fighting with that on a daily basis, then for many years, there was no real answer. And Dave is currently working on the event catalog. which is a tool that I believe can help us to make it a bit smoother experience. And that's what we will be talking about today. So how to deal with even driven systems and how to document it
and how to make it a
SPEAKER_00bit more manageable. And this will be quite hands-on. Dave will show us his tool so you can see and decide whether it can help in your systems. And I'm sure it can. So hi, Dave.
SPEAKER_01Thanks for joining us. Thanks for the intro. Yeah. Hi, Oscar. No, it's great to be here. You know, as you were just saying, Yeah, it's quite an interesting thing, actually. There was nothing really around. And I kind of always think of the story of like things I share with a lot of people like APIs, right? And APIs, we've been building APIs for like 20, 30 years, whatever, a long time. And like there's a lot of governance around APIs and a lot of like open API documentation tools and like Postman or whatever.
SPEAKER_01There's just a lot of tooling around this whole thing. But Avenger of an architectures is like, or distributed systems, I guess, mainly Avenger of an architectures in this case. It's hard, you know, it's hard to document these moving parts and what the hell's going on. And I think people are interestingly kind of finding that problem space, you know, and it's like, what the hell do we do? We've got these moving parts. We're using events and messages. Where are they? What do they mean? What did the schemas mean? Okay, we're using a scheme registry, but it's not enough.
SPEAKER_01And it's like, okay, we're using a scheme registry. And it's just nothing, it's just not a lot out there. So yeah, you know, event catalog is, well, it is my passion. I don't know if it's the answer, but yeah, you know, I'm curious, you know, if you're watching this, I'm curious, you know, what you think and any feedback that you may have and the whole thing's open source. So even if there's issues or features, I'm sure you can raise some issues and get involved if that's the kind of thing.
SPEAKER_00Yeah. So before we go with the hands-on, I'd like to ask your opinion. Why is it like that people and we are not treating our events and messages as the API? Because for some reason, for the web API, maybe because it's longer, We are somehow in our project more used to having those discussions like front-end and back-end team discussing whether the specific contract, so request,
SPEAKER_00which is actually web request is also a message, is fine for both sides. But somehow for messages and events, we are not thinking in that terms. It's like, yeah, it's published and someone subscribed and what's the big deal? exactly yeah um yeah it's an interesting one like years ago uh i used to work for a enterprise in the uk uh so i was there for like eight eight years um so this was
SPEAKER_01probably about i don't know 10 years ago, probably more than that. But I remember APIs at the time, right? We were doing microservices, just come out. ThoughtWorks was just calling the whole thing. Everyone's going microservices. MongoDB is what we decided to use. And we were building APIs. And I remember at the time, APIs was just this free-for-all concept of like, okay, we can just build an API and we can just, yeah, you know, have some roots and whatever and this and that. And then kind of the industry, I guess, at that point in time,
we're like, uh you know this is actually quite hard uh so you know 2011 i think it was uh swagger spec come out and it's like we need some standards and governance and and everyone now fast forwards here was it 14 years and everyone's using open api which was swagger um most people right and i think it's just natural conversations like
SPEAKER_01um as you mentioned like we have contract between our our consumers of the API and we're the producers of the API. But I think the history is just repeating itself. You know, we have messages and events and commands and queries if you're going down that pattern. But as you mentioned earlier, that HTTP is just a message. But I think what's happening, what I'm seeing anyway, is the barrier to entry is lowering for all this event-driven architecture stuff. So we have AWS,
Azure, and Google providing services off the shelf, but we also have startups.
SPEAKER_01We even have Cloudflare doing some cool stuff. We have startups like Ingest, as an example, Temporal, doing like workflow stuff. And everyone's like talking around events and messages. And it's easier now today than it is ever to publish a message onto a managed Kafka thing, right? Yep. Which is great for developers because we're like, awesome. We don't have to get into the details of all this. But we're back to square one. It's like, okay, well, what goes inside the message? What does a good message look like?
what are these integration types private public and you know when you start diving into all of this and um i think that's just history repeating itself i think what kind of the people i'm speaking to event catalog and clients i work with it's um people are facing the same problem over and over again and the problems are like
SPEAKER_01who's consuming this What does this mean? How do I make changes? What's my schema evolution strategy? Where are the standards and things like that? Now, we have standards like ASIN KPI, cloud events. These kind of things are emerging, but standards take time. Specifications take time. Contracts take time. And more importantly, human behavior takes a long time to change, right? Yeah. And hopefully with these tools and some education pieces, you've got to feel the pain before you can solve it.
SPEAKER_01And I think we're seeing a tick in that. People are like, okay, I want to do this stuff. I want to use these tools, but I need to just stop for a minute and think about contracts. And I think that's where we are at the moment in that in that journey on that life cycle, really.
SPEAKER_00Yeah, I think I like what you said about that it's just a part of the journey and step that we are in and about the pain. So what I see not only about events, but about any technology. For me, it's like when people start to complain about it, then that means that this technology or approach is getting mature because at least people build something,
SPEAKER_00they have it on production, they burn their fingers maybe, and then they start to realize that they need to do it in a more organized way and apply also some governance practices. Do you think that's the step in adoption of event-driven technologies that people build those tools and now they just want to have more to be able to operate and
SPEAKER_00evolve them?
SPEAKER_01Mm-hmm. Yeah, totally. I think the interesting problems that you see is when you start out using something off the shelf or Kafka, Confluent, whatever, or any message bus, it's like things are relatively simple. If we were to get together today and build something, we kind of get a grasp and a concept on the messages passing through. and the different patterns that we're using. Now time's up to teams and enterprises passing messages in this
architecture onto the same broker or multiple brokers or different channels and different topics.
SPEAKER_01And it becomes like, we don't know what's happening. We don't know who's doing what, who's sending what. If you're tasked to create a new feature, there could be an event already raised in your architecture. But how do you know that? The only option you have is two options. Number one, go talk to the team. Number two, look through the code. If you're lucky, someone's documented something somewhere. But I just feel like we can do better than that.
SPEAKER_01I feel like there's a huge amount of value there, especially enterprise scale and large scale systems of like, okay, If we can reduce the time it takes for a developer to ask the question, where is the event? Who owns it? Who am I about to break? What is the semantic meaning behind the event? Now we're into domain-driven design and domain events and all this kind of stuff. I think we can save a load of time and add value to businesses.
SPEAKER_01Because I can't comprehend, you know, what is the solution today? And the solution is just, the solution is the problem where everyone tells me it's, we don't know. We don't know what is happening. And it's an interesting, what you said, it's like, is it now, is that a technical problem? No, not at all. You know, it's not a problem to the broker or anything like that. I mean, yeah, there are technical issues, you know, idempotency to handle and all these kind of things and distribute systems and transactions or whatever.
SPEAKER_01Um, But it becomes a governance problem and that kind of mindset problem and team problem and tackling the problem in a different mindset. And that's hard to change. But as I said earlier, you've got to go through the pain to see and look for solutions, I guess.
SPEAKER_03Yeah.
SPEAKER_00Yeah. PTSD-driven design. Yeah, exactly. You got to kind of get through that. Yeah. Okay. So, David, could you show us how Event Catalog can help in at least reducing this PTSD?
SPEAKER_01Yeah. I like that. That should be the headline on the website. Yeah. Cool. Yeah, I can share some stuff. So I'll walk through it. If you've got kind of questions, feel free to just jump in. So yeah, Event Catalog is an open source, just quick high level. It's an open source tool. And it's actually at the moment a static website's documentation tool. So you've seen them all out there. There are loads out there, especially for like open API things.
One thing I'm actually looking at at the moment is actually doing runtime stuff,
SPEAKER_01but we can pick that up later. But the whole idea is, okay, how do you get started? Now, there is a command that we can call, which is just this. Let me just see if I can zoom in. some people but we can just create like npx create catalog my catalog and what this will do is create a new catalog in the directory so it asks you what your org name is we can just say event catalog limited for now And then here's the bit you normally speed up in the videos.
SPEAKER_01But what it does now, we install the dependencies. So what you're going to get out of the box is event catalog core, which you don't need to do anything with. And the whole idea with event catalog while this is doing that, I can kind of just share. And the whole idea really is... is we have domains, services, event, and the messages. And if you think of like, you know, especially from, it's very influenced from domain-driven design, but everything is optional. But the whole idea really is,
SPEAKER_01you know, I have a service, I'm on a team, we own the service, this service accepts messages, and the service maybe send messages. These messages can be commands or queries or events. You know, when I say a message, our service can accept over HTTP a post request or a get request. Our service can use Kafka under the hood or EventBridge or whatever, you know, EventGrid. Say, okay, now I publish an event, which is a type of message.
So it allows us to kind of map these things out, you know, document these things.
SPEAKER_01So when users come along and say, okay, what is happening? um we have we have a snapshot of what is happening uh now the question is does it represent the real system that's always the trick with these things and we'll come into that a bit later um but it can it can help solve the problems that we spoke about So what have we got? So we got an install here. So everything's just installed. We'll clear that. And if I go to CD my catalog, so we're in the catalog now, OK?
So what I'm going to do is just open the project and walk through what we have.
SPEAKER_01And so out of the box, we have all this stuff. At the root of the project is your event catalog config file. So this is where you can enable certain features or disable stuff or whatever. That's all on the documentation website. But out of the box, we have a title, tagline, org name, edit URLs where we can edit them. And then that's kind of it, really. We have a logo. We can change stuff, customize stuff for our catalog. Now here on the left, so let's just run this first and I can visually show you what happened.
SPEAKER_01So we run npm run dev. So all this do is it starts the catalog locally. Let me just actually kill other catalogs I have running on my machine. So on port 3000, okay? So let me just bring this up. So I can probably use what we get into, loads of different tabs. So this is event catalog. This is what you get out of the box.
SPEAKER_01So it's a static website you can host anywhere. It doesn't really matter where you host it. You can just build it, get the artifacts and chuck it into S3 or Cloudflare pages, GitHub pages, internally lock it down, auth, whatever you want. And the whole idea here is it's got a bunch of features here on the left. And we have this kind of homepage here. We can search things. Features on the left include documentation, includes visualization. So I'm a very visual person. And I think Avenger of an Architectures kind of lend itself to
be a visual thing, right?
SPEAKER_01Especially as we draw things on whiteboards and we have producers, consumers, this kind of stuff.
SPEAKER_00Sorry for interrupting. Yeah, go for it. Because I also was following your EDA visuals. So just a question, what was first? What did those visuals that you were doing about various integrations and usage of events had a direct impact on event catalog?
SPEAKER_01Yeah, for sure. So for the people who don't know, if you go to EDA Visuals here, this is like a free book you can download and resources about event-driven architectures. So a few years ago, I started to just dive deep into event-driven architectures, like reading various books, like enterprise integration patterns, domain-driven design books. Everything, right? Just consume, consume. And as you start consuming these things, ideas start to arise.
And then I literally wrote my notes down and just shared them with people.
SPEAKER_01And that's what visuals are. They're just my personal notes. But yeah, visuals help me for sure, you know, especially with domain-driven design. And Avenger of an architecture, there's huge overlap right here. See if we can actually find something. Yeah. So like here is the visual here. And I think there is huge benefits, especially with like domain discovery using event storming or event modeling. And we're already talking in events. And I think the concepts of these boundaries,
these bounded contexts and domains
SPEAKER_01if we can represent them in our services and our systems with our EDA, you know, and you'll see in a second event, catalog actually has a lot of influence from domain driven design, optional influence. But yeah, I think, I think because it makes a lot of sense. Yeah. And you'll see that. But yeah, what come first is this come first. And then, sorry, I kind of went on one. And then Event Catalog was actually built three years ago as a side project. And it was like built left on the shelf.
SPEAKER_01And then I went to do stuff at AWS for a couple of years. And then over the couple of years, I was kind of speaking to lots of enterprise customers. And everyone's just in a mess. You know, it's like, we don't know what the hell's going on. So I decided to leave and do open source full-time. So it's kind of swinging back around now. So, yeah, the visuals have, yeah, an impact on this for sure. The learnings, I guess, from all this stuff.
SPEAKER_00Sorry for derailing your intro.
SPEAKER_01No, it's fine. It's fine. Keep going. Just interrupt. Otherwise, I will keep going for a... I always like to know the origin story behind the tool because that helps me to understand,
SPEAKER_00you know, where it comes from and what was the initial struggle. But yeah, go on. Sorry.
SPEAKER_01Yeah, that's fine. Yeah. I think also an initial part of the story there too is I used to work at Async API. So this is a specification for event-driven architectures. So great people, great community there. And this was kind of like, I was thinking about Async API specifications, think of your open API spec. And I always thinking in the back of my head, like, why can't specs be more than just YAML files? And that's kind of what drives event catalog too, what initially did anyway. Thank you.
SPEAKER_01The whole idea really is like documentation tool. It's very designed for EDA. So what I mean, everything you see here is driven down by markdown files. So there's this whole like movement at the moment and event catalog follows this, which is like you have your docs as code. Okay. that allows us to like follow best practices, like have pull requests on docs or version docs or this kind of stuff. And I think that's an interesting paradigm shift when we're
talking about docs and
SPEAKER_01keeping things up to date, but that you still, that is the core problem with any doc system is keeping things up to date. And I think that comes down to a lot of things. I think one of the core things there is really is changing mindsets of like governance mindset, you know, of, you know, Where does your schemas, I don't know, where do your schemas belong? Why should we keep the docs up to date? How is that going to help the organization? So if anyone's watching and got ideas around any of that, I'd be curious to know.
SPEAKER_00In my past projects, I was always doing markdowns because as you said, it's at least give you the chance to make it as a regular part of your review and your developer journey. It's not perfect, but at least that's something that always worked best for me and what I advise people just do markdowns. So I think that your approach at least aligns with my experience around it.
SPEAKER_01Yeah, for sure. I have had feedback of people, you know, different approaches or editors and stuff, but I think Markdown is okay for now, for sure. So here we have like domains. So if you think there's a hierarchy, so we have domains and then we have services, then we have messages. So messages belong to services and services belong to domains at the moment. So domain, what does a domain look like? So we can click on here and remember everything you see, everything you see here is driven down markdown files.
SPEAKER_01So I can show you an example of that in a second. So here's a domain of orders. We have some stuff. We have this thing here, which is a component. We'll have a look at this. We have a visual representation of the domain. This is, in theory, the bounded context. That's what I documented it as. We have ability to have mermaid diagrams, if you want to do that. And different flows. So I'll get into all of this.
SPEAKER_01There's quite a lot going on, actually. So let's have a look at the code. Let's get to the code, actually. And just start with the domain. If I can find the project. Cool, here it is. So here we got the domains folder. So event catalog is you can actually group things by folders. I recommend doing this. You don't have to do this. You can have like domains and services and whatever else all in the root directory. But yeah, grouping things is nice.
SPEAKER_01So we have the orders, what we just saw, and we have this index.md file. This is the root of this page, okay? So we have the orders, and then we can see, okay, we have a bunch of front matter, and now we have a bunch of content. The front matter is, I think this is the API to this particular resource type. So all we're saying here, I was just zooming a minute, all we're saying here is like, Well, the ID is orders.
SPEAKER_01Everything has to have an ID. Everything at the moment in Event Catalog also has to have a version. You version your docs, you version your schemas. There is a question about versioning domains at the moment. So this might come out. So I'm not sure it makes total sense, but at the moment it's there. You can assign owners to things. Every resource in Event Catalog, services, messages, and domains can have owners to them. Why is this interesting? Because who owns this service?
SPEAKER_01Okay, this team and this user. Who owns this event? Okay, this user or team. Who owns this domain? And once you have the ownership, you can actually start asking them questions, talk to them on Slack, and we'll get into all of that. Here you map what services belong into this domain. Now, the version here is optional. So if we take the version out, basically what this is saying is this domain has these services
and it's always the
SPEAKER_01latest version of these services. If we want, we can lock down to the version of the service. Now, as I said, it doesn't really make sense for a domain too much, the version stuff, but we'll get to that. We can add badges and this kind of stuff. Event Catalog supports MDX. For people that don't know what MDX is, it's like a component library, components inside of Markdown. This allows us to do some cool things like use components off the shelf. Event Catalog has a component library you can use. So this is the...
i don't actually know how to pronounce that how would you pronounce that admonition admonition yeah i'm not even sure that that means um but i know it's kind of standard for these duck tools but you know what i can do here is just say hello
SPEAKER_01world we can put this as a warning if i come back uh has like hot hot uh module reloading so as we make changes it represents this locally so we can do whatever we want we can go back and delete this and save that and the whole thing will go uh should go So that's cool. So if I go back to the docs, you know, we have whatever. So the whole idea here really is to have teams document their resources. So like the reason why I think this is important is because
schemas can only go so far, right?
SPEAKER_01If I was to show you a schema of an order placed event, And we're looking at a JSON schema. That's great for engineers and developers, I guess, to an extent. But the question is, what's the semantic meaning behind all of this? And I think when I said earlier about domain driven design, you know, as we do things like event storming, we discuss the meaning of the events. We discuss like, what is this thing? And we talk about naming conventions and we have conflict in these sessions. And there is meaning behind these events.
SPEAKER_01So why not document them And share that meeting with others so others can discover the event and say, okay, the order placed means this, in this context, means this particular thing. Oh, great. Fantastic. I can consume that. I know exactly what it is. Versus, I guess, just guessing. One of the things event catalog has is things like tiles, like these are just components, right? So as you know, we can add more tiles here. If we add two here,
SPEAKER_01come back and we should see, you know, we've got these tiles and these nice looking things here. So they're just a visual thing. We had the node graph. The node graph is actually under the hood doing a lot of things. So the node graph in this case is saying, okay, I know this is your boundary. I know this is your, sorry, your domain. I know you have services in this domain, and I know these services have messages underneath them. So Event Catalog's doing all of this for you. That's why you see all of this here,
that this domain, we can't really see it.
SPEAKER_01Let's open it in the visualizer quickly. This domain, the orders domain, has these particular services. So I can click on them. So we can actually see, okay, we have free services in this domain. This service here, this notification service, is actually, if I click on it, we can actually see it's accepting these particular queries and also accepting these particular events. Mm-hmm. So right now, visually, we can actually say, okay, well, this is how the service works.
SPEAKER_01It's got probably HTTP protocol here, I imagine, and it's got something here and it's kind of publishing events out over here. In this example, we can see this service makes a request. a query for some reason to list inventory message. And this so happens to be accepted by this service, right? So we can start to see some flow. We can start to see some stuff. We can export this out and download this. We can actually like turn off simulate simulation.
SPEAKER_01We can actually like look at channels. So event catalog supports channels as a documentation type. So in this case, I'll give you an example. We have this service, the order service, and it is publishing, invokes a command to add inventory, but it's over a particular channel. This happens to be Kafka for whatever reason, or whatever we just documented. So... I added this feature because channels can get quite noisy sometimes, but some people might like to see that and say,
SPEAKER_01okay, how is this thing being delivered? And we can actually document the broker itself. And just say, okay, this broker is a Kafka, it's a MQTT, it's NATS, it's anything. Event Catalog is technology agnostic. It doesn't care what you're using. Or its aim is to provide discoverability and documentation for everyone. So... That's that on there. So Visualizer, you can access the Visualizer here.
SPEAKER_01So as we just saw, we can see this. We can actually go into all different services. We can go into the events themselves. We can go into queries, everything, right? Everything is here. But what we had previously in the orders domain is we just have like a stripped down version of it. So we add it into our documentation. So you can see here, just a small version. If we go back to the code, that's not the code. If we go back to the code, we can also see mermaid tags. So if you have mermaid tags,
you can just add any mermaid that you want in Event Catalog.
SPEAKER_01We also have the idea of flows, but I'll come back to that later. But what flows are, are the ability to document choreography or orchestration in Event Catalog. And what I mean by that is, if you have a user, let's say we have a user that signs up, and a user that purchases a product so to the business this is a maybe a flow uh you know of the order purchasing or order purchasing something from us i don't know um but along that flow loads of things are happening right so
um an event is fired a service is processing some information um we have a checkout we have we have a
SPEAKER_01We have a shopping cart. We also have third party integrations with things, right? So we have this like flow of things. And that's exactly what flows are. So flows allow us in Event Dialogue to describe these. So in this case, you know, this is the user cancels their subscription. We can click on the visualizer, which didn't work. So it's a bug there. So that's always good. But we should be able to click on the visualizer. I have to fix that one. I'll write that down, actually.
SPEAKER_01Okay. So what's happening here is we have a user. We call them actors. Same principles as, I guess, event storming here. It triggers this particular command. This command triggers this particular service. This service goes to an external service and comes back. And this kind of stuff. So flows actually are an interesting one because I did flows about three months ago as a concept, as an idea, kind of from event storming,
SPEAKER_01I guess. Yeah. But, yeah, people are like this. There's a lot of work to do here. The way you document flows at the moment is a bit – I'll show you. So we have the orders. Let's have a look. I have to remember where everything is now. I'll find it in a second. Mm-hmm. But, you know, I think they're, and what I'm hearing from a lot of companies at the moment is
they're actually
SPEAKER_01finding quite a amount of value in flows, more value than I originally thought. So there's some interesting stuff and work to be done here. And one thing I'm also looking at doing at some point is a studio, which is like a drag and drop interface on Event Catalog. But if we have time, I can talk about that later because there's a lot to get through. But yeah, this is it. Yeah, this is flow. So all we're doing here, let's take a step back. All we're doing here is we're documenting a domain. We're adding services to this domain and we're adding information to this domain.
Now, interestingly, what we can also do to domains is we can add you because language.
SPEAKER_01This is a new feature that was actually launched last month, I think. But the whole point here is this from domain driven design again too. It's like, well, in this particular context, What is a payment? What is a purchase order? What is an order line? What is an SKU? I have no idea. But there are things in terms that you'll find in your events and your messages and your APIs that belong to this particular context. if you use you because language uh dictionary this is what you
get and then you can click on these and then you can actually go to each domain and have a look at their ubiquitous language and dive deeper and understand what some of these terms mean um
SPEAKER_01So there's that nice feature here. That's probably it. You know, from a domains point of view, I can see down here that the domain has owners. It has teams and users. So let me go to an example here. I have teams and users. So teams and users are markdown files. And so I can say, okay, you know, we have a full stack team. This could be any team. If members are these particular people, you can contact them on Slack or wherever. There are other properties here.
SPEAKER_01And here is some information. Now you can add whatever. You can add as much or as little as you want. And then the same with users. Here I am. Here's my picture. What I do. Yeah, some info about me. What this allows us to do from a documentation point of view is, okay, here are the full stackers that own this service. Who are the full stackers? How do I email them? How do I contact them? So it's just another way of saying, okay, who owns these particular things in this architecture.
SPEAKER_01I guess, as we were talking about earlier, like distributed systems and messages and all this kind of stuff, it can be quite hard to find some of this. So this feature just helps with some of that. And equally, when you come to the team's page or the user's page, you actually see exactly what they own. This team own this particular message. This message so happens to be an event. Okay, what does the event mean? And guess what? Everything we just seen, an event is marked down.
SPEAKER_01So we can document all sorts of things for this event. So we have the inventory adjusted event. So now if we go back here, And go back to domains. Let's just not save any of this. So we have, was it in orders? Yeah. Okay. So remember what I said earlier was each of your, so it's based on folder structures too. So we have domains and here's the orders domain. Excuse me. And then we have the services, right?
SPEAKER_01So the services belong inside the domain. So we can click in here and we have an inventory service and notification service and order service. Okay. So we click on the inventory service and now we have different types of messages, commands, events and queries. But at the root, we also have the index. So this is the index for this particular service. Now what we can say here is exactly as the same as domains. What we're saying here on the inventory service is this service receives these messages that we've documented in Event Catalog and also sends
these types of messages.
SPEAKER_01So what happens when we go to the inventory service, we start to see all this. When we go down to the node graph, we start to see all that too. So we start to see this representation of this stuff happening. As I said, exactly the same down here. You can link repos to a service so people can quickly find them, owners, versions, which we'll get to in a second. And then you can see it receives these types of messages and sends these
SPEAKER_01We use our iconography here. Hopefully some of it makes sense. But like the lightning bolt represents an event, search thing represents a query, and then the speech bubble represents a command. So we can quickly hopefully see things happening. And then down here, all we've done is we're using stuff like a steps component, like how do you call this service? Okay, well, you install this package, whatever, you know. People would do their own documentation, but You can add anything.
SPEAKER_01You can add, you know, code snippets. Let's just add a quick one here like this. And then we can see this come up down here, right? And we can copy this and paste this into our thing. So it's really up to the developers and the teams to say, okay, you know, if we want to document how do we use this, we can do that if we really want to, which I suggest probably is useful. But let's keep diving deeper. So the service here has commands and events and queries.
SPEAKER_01We've seen that up here. So if we click on events, we have the inventory adjusted event. Now the format should look familiar. We have an index.md file. This is the root. Now what we're saying here is the event, here's the summary, here are the owners. This event belongs to a particular channel. So now we have the option to add channels. So each resource type has its own structure and API here, which you can find in the docs. We're adding some custom badges,
SPEAKER_01and then we're also adding a schema, which we'll come to in a second. But down here, everything's exactly the same. We're using different things. If now we go to the inventory adjusted event, which is this one. uh we can see exactly that we can start seeing the schema right um we can start seeing payload examples and avro schemas and how to publish and consume the event which these people have kindly documented for us so now we have
not just you remember i said earlier you know what is today's options today's options are here is a schema right and uh but now we have much more than that we can contact view
SPEAKER_01the schema uh We can do the architecture diagram, whatever it is else we want. Now, talking about schemas are an important part of event-driven architectures and anything, really, contracts. An event catalog supports any schema type. It doesn't really matter. So we have a JSON schema here as an example. So this is a JSON schema for this particular event, just a dummy thing at the moment.
SPEAKER_01And we can put that inside this events directory alongside this event. So here's the schema, great. In the index.md file, we can actually use a schema viewer component and say, okay, I wanna render this out for my users. It's gonna be whatever 500 in size, excuse me. And if we go back to the UI, this is exactly what we get here. This is the schema viewer. So there's a custom React component that gets rendered on the screen, but for users of this system,
SPEAKER_01yeah, they can just see stuff. which is pretty nice. And do the same with Avro schemas. We can actually pull these in, we can document these. And up here, we say the schema path is the app. So what this means really is that when you download the schema, you can see here that it's downloaded. So we can actually download schemas, view schemas, and all this kind of stuff.
SPEAKER_01So the other thing we haven't really spoke about too is versioning. So as I said earlier, everything in event catalog can be versioned, even domains for now. But services and messages can be versioned. Now, why would you want to version this stuff is because, well, like anything, today we create the inventory adjusted event and we have a schema and the schema looks beautiful. Next week or month's time or a year's time, things change.
SPEAKER_01And we change this stuff. So event catalog allows us to version the documentation, but also version everything that comes with that, the schemas, everything. So what we can do is actually go back in time and have a look at a previous version of this message. We can see the first version of this message basically has nothing going on, really. It just had this thing lying around in the system and not a lot happening. If we go to 1.0.0, we can see, yeah, the documentation has changed.
SPEAKER_01For whatever reason, you might still be using 1.0.0, so you might want to come here and look at the schema for that. And then we have the latest one, which we've just seen. The other thing we also have is change logs. So the reason for this is as things change, Why are they changing is information that often gets lost. So, you know, we create an event today. In a year's time, we change it.
Now, the author of the event has now left the company for whatever reason.
SPEAKER_01And we don't really know why this property, this PII property or whatever else is now on the event. But we can actually start creating change logs for this stuff and actually say, okay, we can actually start documenting why things are changing. We can do automatic diffs for changes. So if you have a schema in that folder and a schema in the other one, we will see some diffs. But the key here really is we can also add custom information to these things, or badges, breaking change,
SPEAKER_01and this kind of stuff. So it just gives developers another way of documenting change in your systems Which is, yeah, as I said, you know, often overlooked and people don't really know why things are changing, especially with history, especially like things that span over months or even years. You know, it's like, okay, we can look in the Git history, I guess, at some Git messages. But again, that's only going to tell us certain things. Yeah.
SPEAKER_01So maybe this is a good way to do that. And the way we do that, all we do is we create a new folder with a version number, we chuck everything inside there, and that's it. If you want custom changelogs, you can add the changelog.md file in these folders, and that will render as we just saw in the UI. Yeah, so we can start documenting some of these changes. So... There's that, that's the change logs. And, you know, as I said, we have commands, we have queries.
SPEAKER_01Everything here is optional. You don't have to have queries. You don't have to document queries or commands if you don't want to. But it's the same principle. We have a query get inventory list. We click on this, we got some information. We click on the schema. Here's the schema for this particular HTTP request. Okay, great. And that's it, you know. And then we just scale this out. We have more services. We have more queries, more events, and then we have more domains coming along and more things happening. And we have flows.
SPEAKER_01Here's an example of a flow, which may change. But the whole idea really is you could document, you know, there are ways to document the next step, you know, what, what, We start here, what is the next step? What is the next step? What is the branch here? What is the decisions? And this is kind of like the choreography orchestration kind of documentation tool, really. I'm just saying, okay, you know, we are documenting that a user cancels a subscription. This is what happens when a user cancels a subscription.
SPEAKER_01They will initiate that they canceled, which will proceed to the service. So the way here, the way this really works is just we just... We were referencing an inventory of things already in event catalog. So other teams may add these resources that we can reference. Now, as I said earlier, this is like no one really wants to manage too much Markdown or YAML. I get that. So there are tools in the process at the moment of like visual editors,
SPEAKER_01which I can kind of show you a quick sneak later. But like imagine you can drag and drop these things, right? Imagine you can have an inventory of your stuff and now I can drag and drop things, connect things and create flows in seconds and actually press a button and sync that back to event catalog. So these are things, features that may come. And then equally, you know, there are other things in here, public, any public files, pages, you can have custom landing pages. So what you'll see here,
when we go into the documentation, this is a custom page.
SPEAKER_01At the moment, we only have one page you can customize, but other things we're going to be looking at is like adding the ability to add as many pages, as many, uh things as you want and the reason for that is like what happens if we want to document tutorials or we want to document uh guides or we want to document other things you know there's no reason why we can't introduce something down here and like link out to your documentation um so you can like move everything into one place if that is that's something you want to do um
SPEAKER_01As I said before, we have the visualizer here. The visualizer is visualizing everything we just seen. Everything is powered by Markdown with the references in that front matter. And Event Catalog will do its best to represent this here and simulate messages, which is kind of a nice feature. Something we added recently too is like domain maps. It's not working actually in this example at the moment. But one thing I want to look at more, get this working better is if event catalog understands the domains,
and understands the services and understands the relationship of messages between
SPEAKER_01the services, there's no reason why you can automate a bounded context map between all this stuff.
SPEAKER_00Yeah, that would be great because then you can also have a, like context maps are great for distinguishing whether this communication should be command or event because you know the relationships and context between those different domains.
SPEAKER_01Exactly right, yeah. So I think I'd have to double check why that's not working. But what should be happening is we have this thing going to this particular node. And then we can actually immediately see if we have domains consuming events they shouldn't or this kind of stuff. So I think there is value here once you start to abstract this stuff out. and seeing that then down here as i said earlier you have flows these flows are the things we've just seen and you can visualize these and have a look
SPEAKER_01Other things that you might be interested in is like exploring. So if you are tasked to quickly find a message or an event, this is actually like paginated table. We can actually quickly search for like the order confirmed event. We can see the producer. We can see the consumers of this event. We can actually also filter by certain badges. You know, the badges is really up to us. You can add a custom badges, custom filters, this kind of stuff. And I click on this, it'll take us directly there. Just another way to quickly filter out things. And you can do the same for commands, queries, services.
You know, the service we can immediately see receives these types of messages.
SPEAKER_01It sends this message and we can just another way to see things. Something last week actually, which I added, which is this directory. This is the same thing for users and teams. So now think of your organization and your enterprise. Okay, we have 20 teams or 100 teams and 200 users. Who is owning what, right? And it's like, okay, well, I'm looking for David. David, I can see owns 13 events. You know, there's actually truncates because it can get quite big. You can see these are the things I own.
SPEAKER_01And these are the things, commands I own and queries and services. And these are the teams I'm part of. immediately it's just like okay you know if i'm looking for a particular uh i need to find a particular owner for a particular event i can quickly find that and say okay well these are the owners uh they're the owners because they join they're in the same team um and this kind of just another view of the data really is just like okay um i remember i said at the start you know it's I think there's a lot of time we can save with people trying to
identify this stuff.
SPEAKER_01Who owns this event? What is the event? What does the schema look like? Why has it changed? Why does our PII information? What does an ad inventory command mean to our organization? Okay, this is the kind of thing. It's on this particular channel. It's owned by these particular people. Oh, this is pretty cool, right? The alternative today, I'm not really sure what is the alternative, but from what I'm hearing from a lot of people, it's the alternative really is, as I mentioned, schema registries, right?
SPEAKER_01But it doesn't give you hardly anything, any context. Yeah, it just gives you the payload, how it evolved, and more or less, that's it. Exactly. Yeah. And, um, you know, there's, you know, as you're aware, there's just huge value, I think in adding business context and context of things in our architecture that we can, and if we can quickly find these and visualize these and we can do, we can do so much, uh, cool stuff. Um,
SPEAKER_00I think that's great that you added that stuff like teams and people, because I also hear from folks that they would like to have the tool that would across the team would help to find those relationships. And it's kind of like an inverse Conway maneuver. So you can help the teams to have better discussions if they know when they should
SPEAKER_00communicate with each other or... They can be even surprised that they are publishing the event and then they see they are thinking about, OK, we need to introduce new field or maybe change the schema in a bigger way. And they believe that, yeah, no one is using them, but then they check. on the docs and they see like oh three other teams are handling that so we probably need to discuss with them how to introduce this change so i
think that's such even such a in theory simple view and feature could could be innate in many especially
SPEAKER_00bigger corporations where people are not so close to each other
SPEAKER_01Yeah, exactly that. And I think once you have, the interesting thing is once you have this context and the information, this is kind of what I said earlier about it's like governance first mindset in a way, because how do you keep this up to date? And I'll show you some automation ways in a second. But like, if you have a good foundation, But there are tools and things you can build on top. And event catalog can also build. It's like in this example, I'm about to make a schema change. OK, so I can use the editor in the browser, for example.
SPEAKER_01It's like, OK, I want to add this field. And the context is aware enough to say you're about to break people. This is a breaking change. It's not backwards compatible change. You've removed a field, for example. Be aware you are going to break these people. These services, oh, and by the way, these are the owners of these services. Yeah. So it's like, ah, okay, this is interesting now. So I think there's tons, tons to tons you can do. And another thing I added, and this is, I don't know if it's useful or not, but it could be useful,
SPEAKER_01but I added yesterday, actually, which is like RSS feeds. So you can actually see... You actually subscribe to RSS feeds for everything in the event catalog. So your teams could say, okay, I want to know if any events are changing, whatever else, you know, something you might be interested in. So there's that. So, you know, at a high level, high picture, this is event catalog. It supports custom components. You can write your own components. They could have JavaScript embedded in them. It doesn't matter.
SPEAKER_01You can go as wild as you want. You document channels. Channels are documented like this. Again, with front matter and markdown, it just has a different API. Supports all sorts of different protocols, Kafka, MQTT, NATs, anything, really. You can support different address. You can use variables in the address, all sorts of things, as you see here, different parameters. When I go to a channel, see if I can go to one. Here we go.
This is the channel that we just saw and we can see the parameters are documented for us, right?
SPEAKER_01And then we can start documenting how we use this and this kind of stuff. So yeah, just another thing there. So the question I often get with any documentation tool is how do you keep this up to date? And like, I don't want to do markdown. How do you automate a lot of this and this kind of stuff? And this is good questions. So event catalog actually has integrations, has an SDK. So the SDK, let's see if we can find it.
SPEAKER_01SDK. Cool. So the SDK is a JavaScript library at the moment. It supports JavaScript because I'm a JavaScript dude. So, yeah. So with an SDK, it becomes interesting because now we can integrate with anything in theory. We can integrate with any kind of system and pull systems and pull schemas and do this kind of stuff. And the way to think about all of this is, We have a schema registry, it's in Confluent as an example. We pull in schemas and we keep schemas up to date.
SPEAKER_01So we have like, this branch is automated. We can also add semantic meaning to these schemas. So event catalogues, analysis and manual process, we can add documentation. We can keep the two in sync every time we pull the schemas, the semantic meaning will stay attached to these schemas. So that allows us to automate a lot of this stuff, but allows us to equally document a lot of this stuff. So keeping all of this in sync. So Event Catalog has different integrations. So you can see here, OpenAPI, AsyncAPI, EventBridge.
SPEAKER_01There are a few here coming, like Azure Schema Registry isn't there. This was released. This week, actually, Amazon API Gateway. There's GitHub and Backstage integrations and GitLab and Bitbucket as these integrations are working. And then some community plugins down here, which other people have built, which is really cool. So you can deploy on Kubernetes, Hook Deck, and Alassian. But the most popular ones, of course, are these ones, OpenAPI and AsyncAPI. So how this works is probably, hopefully as you imagine,
SPEAKER_01it pulls down an async KPI file and will, yeah, and will document these messages for you, right? And it will map these into event catalog. So to give an example, you can actually use this command here. I added yesterday, it seems like I added a lot yesterday. Yeah. But I added these templates yesterday. So just to help people get up and running. So this example is, okay, I want to use an open API template. So if we go back to the terminal,
let's just get out of this and let's use this.
SPEAKER_01So we're going to call it my catalog. I'll call it open API. So this was just bootstrap us straight into this plugin, basically. So you can see here, it's downloading the core and also downloading the generator. Now, event catalog, this is what we call them. We call them generators. These are essentially plugins. But as I mentioned, you can create custom plugins if you want, custom generators. You can do whatever you want. We have companies doing that.
SPEAKER_01We also have companies just using these off-the-shelf ones. um for those who do not know what async kpi is um this is a specification that allows you um to actually zoom in on that yeah a spec that allows you to document uh message-based systems so like event-driven systems um so i really recommend looking at that but if you're using async kpi you can do exactly the same with this command and get up and running but let's go back to terminal hopefully we brought enough time we didn't
SPEAKER_01Just to install in there, takes a minute. But yeah, I don't know if you have any questions so far.
SPEAKER_00Yeah, so definitely this SDK looks great as an idea. I definitely will play with that with Emmet, so my event-driven TypeScript tool. I see a lot of cases. For instance, I have this given when then tests that can tell you that given this set of events, when I received this command, then I got another event.
SPEAKER_00Even generating right from those tests, this can be quite useful to even automatically generate some flows between commands and events and and also the other cases like that. So yeah, I really like it. Plus I know that in many environments like .NET, people always prefer to do like code first. So if there is open API or other spec generated automatically,
that would be easier.
SPEAKER_00I'm not saying which is better, but yeah. for many people it is really how they work yeah exactly Yeah, I think it's important, you know, especially around documentation tools.
SPEAKER_01It's like integrating with these things, you know, it's a no-brainer. You know, people, as you said, some people generate from code, some people generate spec first, but a lot of people have open API specs and ASIN KPI specs. And like, why can't we use these specs to generate some more things, which we can. And let's have an example of that. Yeah. So I'll show you an example of this. The ASIN KPI works exactly the same, but we have a folder, right?
This is an event catalog folder, but this time a few things are different.
SPEAKER_01We have this concept of generators. Now what generators are the plugins, just called generators. So what we can do is we can like set it up. So we set up here and we say, okay, I'm going to do a couple of things. I am going to take this open API spec from here. So this could be from anywhere. And I'm gonna map it into this service. Oh, and I'm gonna assign these owners to it, okay? So, and by the way,
we're also gonna assign this service to this particular domain.
SPEAKER_01This is optional, we don't have to do that. But what we're doing is we're saying, I'm taking a bunch of OpenAPI specs and mapping them into the service. The same down here, we map into the order service and the same down here, we map into, sorry, a payment domain and orders domain there. And then equally, you can also do this. You can actually have the path as a URL. So if you've got a URL, you prefer to get it from URL. You don't have to have them in your event catalog.
SPEAKER_01And then what we do is we run the generate command. So if we go to the async API files, there is a couple of things worth showing out here, really. Most of this stuff you might be familiar with, but Event Catalog also has a couple of extensions that you might want to use. But in this example, what we're saying here is when we map this, this get on the route, I guess here, um, we have the operation. I did get cart.
SPEAKER_01We're going to map it to a query. So open API and async API have no concept of queries, commands, and events. Um, they're just messages, but if you want, so by default, if I don't do this, everything is a query, um, in open API world, um, But if you want to, you know, like a post request could be a command. You know, I'm asking you, I'm telling you to add an item to a cart. This could be rejected. This is a type of command. I'm retrieving some information.
SPEAKER_01This could be a query. So there are other extensions you can use. You might want to look at the docs, but that's just worth shouting out. And then down here, all we've got here is we've got the teams and we've got the users. Now, what we don't have here, we don't have the domains. We don't have the services. We don't have messages or any of that kind of stuff. So what we can do is now we can run this generate command. What we need to do for that is we actually need to get a license key. I don't mind showing this because these are just trial licenses. Anyway, that'll expire. But if you go to eventcatalog.cloud,
SPEAKER_01you can see the integrations here, and then we're just looking for the open API one. We click on the install, and then we can copy this license key. So I copy the license key, and now what I'm gonna do is put this inside this terminal. So export license key, the open API one. So the reason people might be wondering why do we need license keys for some of this stuff is because Event Catalog is like an open source,
SPEAKER_01full-time open source project. And the plugins and the things that we maintain require a license for that. So you can use these things for 14 days for free, this automation stuff, and then you have to purchase a license to use that just to help sustain the open source project. Otherwise, I have to stop and get a job. at the end of the year, probably. So now if I've done that, now I can run the generate command.
So what's going to happen here, it's going to generate our messages from our API spec file.
SPEAKER_01So as you can see here, we're processing the domain, we create the domain, we're processing a message, and it continues to go on. We run the dev command as usual, and then we go back here and we get back to local host. Let's see what happens. And now we can see this whole event catalog here is actually documented using our ASIN KPI files. So we can see the services, we've got our commands,
SPEAKER_01we've got our events, we've got the visualizer, we've got our user directory where we can see people because we've assigned teams to these things already. So everything here is like automated. So if we make a change, these changes will get represented in event catalog. but as i said earlier you want to also have the ability to add semantic meaning so let's try that let's um this is where the demo gods everything's going well so far
so initiate payment we've got a command somewhere let's have a look so we have the
SPEAKER_01domains we have the payment services commands initiate payment So as you'll notice too, this is a change made last week or week before, but everything is, everything's like nested inside of this folder structure for you. So here we have this thing and we have this stuff that's generated. Now, when you run your generator, The front matter, most of the front matter will be overridden. Things that won't be overridden every time you run it are
things like owners,
SPEAKER_01but other things will. But what this allows us to do is things like this. Let's see if we can do this. Yeah, create more details, description, see if it works. Come on. Hello. Hello. uh description there we go nice Great.
SPEAKER_01So we go back to the thing. We got this context to this particular command now. But when things change, you know, let's go back and see if we can get this working. I actually remember where the command was. What command was this? Initiate payment. Okay. Payment API, this is the one.
SPEAKER_01So let's, I've got the payment request. Let's take the amount off. See what happens. Remove that. So we've changed, made a change to the schema. Anyway, things happen and then we run the generate command again. So what we'll do now is it will do things that we just saw before, match things. And for this time, hopefully this works,
is the schema has changed and everything else and things are kept automated.
SPEAKER_01But as you see here, that the information has been persisted, right? The context has been persisted. And you'll see here on the request body that the value that we just had has now been removed. So we can keep things up to date. And equally, if we were to version the specification or the message, which you do through extensions, event catalog will automatically version this stuff for you too
so you can you know start seeing some of this stuff and then equally what i want to do is automatically do change logs and diffs so to give you an example if you had today we had our spec
SPEAKER_01file tomorrow we have another spec file event catalog should be able to automatically diff this automatically version this for us So that's kind of like a brief overview of how these files work. So as I said earlier, you can integrate this. We can find it. We have various different things. EventBridge, API Gateway is an example. What you've got to do is point it at your API Gateway and something similar will happen. You'll just get these things documented for you.
SPEAKER_01The other kind of core feature missing to the whole thing, well, that I haven't spoken about yet, and cautious of time is the integrations, like how do you scale event catalog with 20 teams, 50 teams, 100 teams, and like thousands of engineers. And this is the problem with most documentation tools is it becomes really hard to keep these things up to date. So what's the option? And the option that we support at the moment is something called federation.
SPEAKER_01So how Federation works, let's just give you like a quick overview. It's like we have team one, right? And we have a different team. And we have a different team, like team two and team three. And... So what we're trying to get to is an event catalog that can document our systems for us.
SPEAKER_01Now, option one is we have one event catalog. And as we scale teams, this becomes harder and harder and harder. Maybe, maybe not for you. But if it does, there is options and things to do. Um, so the other option is why couldn't each team have its own event catalog? Okay. So this has this, this has this, this has this. And then, um, What happens here is we actually use, we have a main catalog.
SPEAKER_01So this is your central catalog. And these are all teams catalogs. Now, what we can do here is we can use called Event Catalog Federation, which will these all feed into. OK, so this works with any Git provider, GitHub, GitLab, Bitbucket, it doesn't really matter. And this is kind of the flow. So what this allows people to do is it allows to keep their
event catalog right
SPEAKER_01next to their code in their code base. and allows them to have a local version. So one thing I got feedback from this week and I'm looking at too is allowing teams to actually document private events, right?
SPEAKER_00Yeah.
SPEAKER_01Well, I mean, yeah, so, you know, there are events in this team that no one cares about but this team. So why would these events belong in this catalog so we can actually start to do some of this stuff? So that's something I'm looking at. But the whole idea here really is like, If you have three teams, 10 teams, we can start using federation to pull these in. Now, how this works is it uses a generator and it pulls these in and you can actually pick which things you want. So I'll give you, I'll show you a quick example of how this one works.
SPEAKER_01Excuse me. Let's have a quick look. So all the examples, by the way, that I'm showing are, I added these last week. So if you go to Generators from Event Catalog, these are our generators that we have. But if you go to Examples, you can see examples for each one. So I'll give you an example of the open API that we just looked at.
SPEAKER_01You can see a basic example, which I showed you. You can see fetching from remote URLs. You can see independent messaging version. Now, why would you want that? It's because if you don't want your messages to version at the same rate, your spec is versioning, maybe, and you can do things. And you can also map queries and commands. So you can go into each one of these. You can clone these, check these out, and have a play. But the federation is here. I should have just used that. The federation, it looks exactly like that.
SPEAKER_01Each team has their own catalog. Federation pulls from that and puts it into a central catalog. All that looks like is we have three catalogs here and we have a central catalog. So the payment team have their own catalog. Now, everything you see here is exactly what we were speaking about this session. We have services and teams and users and various things. One thing that we've not really spoke about is this idea of dependencies. So if you're using like, if you're in like child catalog, I guess you can call it a sub catalog.
SPEAKER_01And you have external dependencies. What I mean by this is you're consuming an event from another team, but you don't want to document this event. You know you're consuming it, and it's up to them to document that and manage the schemes in that. This dependencies allows you to just knock that out in Event Catalog and just say, we will do our thing, but just to let Event Catalog know that we have these things that we depend on. Event Catalog can render the visuals for you and everything else. So we have three teams.
SPEAKER_01They're doing their thing. And then we have one central catalog. The central catalog has not a lot in it. The central catalog has this thing here. So it uses federation generator, similar to what we just did. So in this case, we have a source. So this source is this repo itself. But this could be your repo. It could be your Bitbucket, GitLab repo, whatever else. You can specify a branch. And then if you want to, you can specify exactly which things you want to copy.
Or if you don't, Event Catalog will make the attempt to copy all the resources in.
SPEAKER_01So in this case, what we're saying is we're copying the services in, we're copying the teams in, and we're copying the users in, and that's it. We're going to override if we find any merge conflicts because it's going to be like last right wins. That's how it works. And then we're also telling this generator to enforce unique resources, meaning if we have 10 teams and we have duplicate IDs and resources that the generator would stop and tell you. And that's it. And then we do the same for the payment team and we do the same for the other team.
SPEAKER_01This way, when we run this, it actually goes in, generates a catalog full of information from these teams. And just to show you this in action, what I will do is I'll go to the integrations. we need a generator we need a federation key which i'll just take here we'll go back to the central catalog which we just seen on github i'm going to export the
SPEAKER_01federation key and then with a bit of luck We run generate. So what it's doing is it's just moving things around. As it moves things around, it puts them into the right places, and then we can run dev. So now imagine your CICD pipeline. What people are doing is they're running their catalog builds every hour. They're running on CICD. It doesn't matter. You can run it on webhooks. You can do whatever it is you want. To build this, all you need to do is run npm run build.
SPEAKER_01And then what we can see here is the central catalog. So this is pulling information from free projects. This could be 10 or 20 or 50 or 100. And then we can see everything in here. We can actually see the events. We can see the services. As we said earlier, we can see the teams. So these teams are now coming from all these catalogs. These catalogs are now referencing the information. So, you know, this is the question is, how can you scale this? How can you scale event catalog? And I think Federation is... One way you can do that.
SPEAKER_01And as I said, what this allows teams to do is just keep docs locally, keep docs next to the code if they want, and you can even use OpenAPI or AsyncAPI specifications to generate your own docs. And then these own docs can merge into the master, into the main kind of docs. So different patterns, different kind of topologies here. And as I said, there were a couple of things coming out. you know, cautious of time,
SPEAKER_01um, a couple of other things that are coming out, things like, um, having runtime information. So the interesting thing is, uh, Vencal uses something called Astro under the hood. And, um, excuse me, it's a lot of talking, a lot of gas. Um, Astro under the hood. So Astro actually has this really cool idea of like server islands. What this means for anyone that's interested in is it allows us to actually integrate like runtime sections or components into the static content.
SPEAKER_01So what I see with Event Catalog, for example, is If you had a schema registry, you don't want to keep your schemas in event catalog, you can still import them, but we just call your schema registry at runtime and always get the up-to-date one. So if your teams are changing schemas on a regular basis, we can actually get this information. We can actually get open telemetry information and display this. We can debug information, all sorts of things. So there's that thing, and then there's this other thing that I'm working on,
SPEAKER_01which is this, which I spoke about earlier, which is Uh, something I'm personally excited by, but it's like, uh, it's kind of, uh, inspiration from event storming in ways, but like, why, If we have an inventory of your system, why can't we create designs from this system? Like Oscar, if we were to create a new feature today, we can actually drag and drop these things into this ecosystem. We can collaborate, we can comment, we can use our AI to generate schemas for us or whatever else.
But as I'm doing this, this is actually mapping to event catalog on my file system.
SPEAKER_01So I don't have to edit markdown files or anything else. I can just use this WYSIWYG thing here. So, yeah, lots of things going on. But if you're with that, you know, with all of that, I can probably talk a lot and have already. But if you're interested, yeah, come check out the project. Give it a star. I appreciate that. Yeah, it's open source. You can come check it out. You can hang out. We're almost at 1,000. Look at that. Almost. Yeah. So if you want to come check out on Discord if you've got any questions,
SPEAKER_01there are people on there, a community on there, and contributors on there just wanting to help out, which is really cool. So yeah, I hope that was a deep dive enough for the audience. But yeah, I don't know if you've got any questions or... Do you want me to go over anything else?
SPEAKER_00Yeah, I think that it was a great introduction. You managed to show a lot of stuff in that hour. Regarding the questions, Is it planned or maybe it's already there, maybe some nesting of domains like domain, subdomain, and maybe grouping, for instance, commands or events within them? Because in the source code, I already see that
you at least you provide this grouping by the domain also for command services etc but are you already thinking about adding some potential nesting or yeah what's
SPEAKER_01your take on that yeah it's an interesting one yeah at the moment no um but there's no reason why it couldn't be. Um, yeah, there's no reason why it couldn't be like, uh, if this is a thing people want, feel free to raise an issue, get involved. Yeah. You know, um, As you said, you know, domain already has these resources nested. So why can't a domain have other domains nested, right? In theory, it'll have some domains and things like that.
SPEAKER_01So yeah, it's a possibility for sure. It's just at the moment, it's kind of just stopped at the holistic view of like grouping things up. But if people were like, especially from a DDD background, want more and more flexibility around that. Yeah. Right. Yeah. Let me just let us know for sure.
SPEAKER_00Yeah. Or maybe something like people doing C4 model. Yeah. Because it also has this notion of nesting and zooming in, zooming out. I think it could be useful for the Federation to limit because potentially you can get like hundreds of events or messages.
SPEAKER_01Yeah. Yeah, one thing we have at the moment is we actually have a portal quite as open now, which I'm going to review. We have a different view on the sidebar you've seen. We've got a list of events, queries, commands and stuff. um one of the contributors has actually added like a tree view which allows you to group things up and actually expand them like folders and stuff so you can actually see that but i really like the idea of what you're saying and other people have said the same is like on the home page i want to change the home page to be a
different entry point for people depending on what they want to do the personas
SPEAKER_01they are so like as you said like i want to have things like domains like as you mentioned an experience where i can click into a domain and i can see the services i can click into services and i can see the events right so at the moment everything is like very flat in ways but i think it's just a it's just a visual representation yeah yeah things like that but yeah yeah technically currently
SPEAKER_00someone could cheat it with the like you know you dots or whatever like domain like orders dots uh fulfillment etc so yeah i mean it's not a i mean uh definitely showstopper just was curious about it yeah yeah but yeah i really really like uh it's uh It's clearly visible that you put a lot of thoughts behind it and experience because it's covering many cases like governance,
SPEAKER_00viewing, visualizations, especially those integrations in later on. That's great that it's already possible. And those thieves probably in the future, it could be like comparing your own a documented way with the real world uh exactly yeah this is exactly that you know that's a key feature actually other people are speaking about recently is uh how do you know what the scheme has been published is the schema we
have documented yeah right and then how do you notify people of that and i think uh then catalog At the moment, it still feels like we're building the foundations of all of this.
SPEAKER_01I think there are huge opportunities there to do stuff like that. So yeah, if you're interested in any of that. And equally, I think there are also, I don't like the AI hype, most of that. But even, I think there is value here. And what I mean by that is... Why can't we ask our catalog questions like, what events do we have? Or like, I'm about to build a new feature that gets triggered when a user signs up, when they sign up on a trial.
SPEAKER_01Okay, well, you can use this event we already have. We have a thousand events. This team's already doing it. Oh, great. Awesome. Let me dive deeper. Because like today, as I said earlier, it's like... Where do you start? I don't know. You just duplicate the effort, I guess. I don't know. But I think there is just huge value in this ecosystem. And the biggest challenge, I think, is just the governance mindset and the documentation mindset and schema-first mindset. But I think APIs have always had this challenge,
too, with OpenAPI spec and
SPEAKER_01As I said, right at the start, it's just history repeating. So just take the lessons we learned from that and apply it to some of these tools.
SPEAKER_00Yeah, I think that it's kind of like a feedback loop and a vicious circle that, you know, people are not documenting stuff and they have excuse that, well, but we don't have this tool, even there are no tools. So even if I document and someone needs to go to to GitHub or how do I show it to the business people so they could also see that or contribute. And without having those tools, then that's a really easy excuse.
And I think that Event Catalog definitely has this potential to at least cut this
SPEAKER_00vicious circle. If not fully, then maybe in a good enough way. So yeah, I really... really enjoyed the presentation and definitely i will need to play more with with with it because yeah i already see a big value yeah awesome yeah that's good to hear yeah yeah i appreciate you know inviting me on and uh and things like that as i said you know you've got your open source projects emmet and uh and the stuff you're doing so yeah be curious as you said earlier about the
you know the bdd
SPEAKER_01stuff and given one learns and Curious to learn that, curious to learn more and how could it help or this kind of stuff. So huge opportunities for this tool links.
SPEAKER_00Yeah. So if you're still with us and watch this webinar fully, please drop us a comment or ask on Discord, either on the event catalog Discord or on Architecture Weekly Discord. Let's have the discussion. And if we were talking with David, that maybe we could do some other webinar, like going through some simple but real project, let's say,
SPEAKER_00like from taking some sample and trying to document it. So if you're interested, ping us and we'll consider that and maybe we can make that happen. So, yeah. Thanks, David. That was a really, really nice introduction, at least for me. I had a huge fan with that. And I'm sure that people will also enjoy.
SPEAKER_01Yeah. Awesome. Yeah. Thanks a lot. As I said, Oscar, I appreciate the invite. Good to speak to you again. So glad you found it useful.
SPEAKER_00Yeah. Okay. So thank you, David. Till the next time. And yeah. See ya. See ya, guys.
Welcome to the new week! Tomasz Ducin is back with us to explain the next parts of Frontend Architecture - this time with a deeper, more hands-on walkthrough of Frontend State Management on the React Query example. And...
Have you considered applying observability but struggled to match the strategy with the tooling? Or maybe you were lost on how to do it? I had a great discussion with Hazel Weakly about Observability beyond Open...
Welcome to the new week! For a long time, I’ve wanted to talk more about Frontend Architecture. In my projects, I always enjoyed delivering features end-to-end the most. That gave me the feeling of completing and...
"My favorite conspiracy theory is that the stuff we make in software actually has any sense. That's a big conspiracy, and you can see people believing that, and that's just not true. I mean, it is in some percentage,...
This time, our webinar has a special guest: Jarosław Pałka. He’s the Senior Staff Software Engineer responsible for benchmarking infrastructure in Neo4j. We discussed how to reason about performance practically, so how...