Live data from Hacker News

The Way We Are Building Event-Driven Applications Is Misguided

gillesbarbier.medium.com

11–20 of 71 posts

Re: The Way We Are Building Event-Driven Applications Is Misguided

#11
post #4

Earlier quoted context omitted.

Shame it’s on Medium, so I immediately get a paywall / ad, and don’t end up reading your post.

Can you access through this url? https://gillesbarbier.medium.com/the-way-we-are-building-eve...

Negative, either that url or incognito for me.

Re: The Way We Are Building Event-Driven Applications Is Misguided

#12
post #9

Very interesting! You write: There is no easy way to understand how a specific business process is actually implemented. The whole process is defined by how each service reacts to others. There is no central repository, and the implementation details of business processes are scattered everywhere. Yes, indeed. There is no easy way because the total system architecture is implicitly defined by the interactions of the…

Indeed. And you are raising another good point: the testability of such architecture is quite poor. Without a way to represent the architecture as runnable and testable code, it is problematic to ensure the correctness and reliability of the system. While documentation helps, it does not provide the same level of assurance as testable code.

Re: The Way We Are Building Event-Driven Applications Is Misguided

#13
My current situation is that I'm having to work with an event driven architecture for a strictly synchronous process.

Buzzword architecture is awful, and having Kafka offer fake design patterns to reassure naive architects, such as a request/reply with small response timeframes.

Attempting to replicate REST with overcomplicated overhead.

This is the biggest issues I encounter with event driven applications.

Re: The Way We Are Building Event-Driven Applications Is Misguided

#14

Earlier quoted context omitted.

Can you access through this url? https://gillesbarbier.medium.com/the-way-we-are-building-eve...

Negative, either that url or incognito for me.

hmm, that's strange - it's a special "friend" url and I can access it myself from an incognito window using this url (I have a Medium banner to subscribe but I can close it).

Re: The Way We Are Building Event-Driven Applications Is Misguided

#15
post #4

In this article, I express that the prevalent approach to building event-driven applications using the choreography pattern is misguided and can lead to significant technical debt. As an alternative, I introduce the Infinitic framework as a way to enable teams to implement event driven processes without the pain and complexity of building and managing an event-driven system themselves.

Shame it’s on Medium, so I immediately get a paywall / ad, and don’t end up reading your post.

Are you talking about the ad that asks you to consider paying for the content but has a little X to dismiss the dialog? Does Medium disable that X in different regions or is there another blocker I'm not seeing?

Re: The Way We Are Building Event-Driven Applications Is Misguided

#17
post #9

Very interesting! You write: There is no easy way to understand how a specific business process is actually implemented. The whole process is defined by how each service reacts to others. There is no central repository, and the implementation details of business processes are scattered everywhere. Yes, indeed. There is no easy way because the total system architecture is implicitly defined by the interactions of the…

Indeed. And you are raising another good point: the testability of such architecture is quite poor. Without a way to represent the architecture as runnable and testable code, it is problematic to ensure the correctness and reliability of the system. While documentation helps, it does not provide the same level of assurance as testable code.

More complicated sure, but adding the ability to mock irrelevant parts and get the whole env up and running locally for dev or test is usually perfectly doable from my experience.

Re: The Way We Are Building Event-Driven Applications Is Misguided

#19
post #10

I strongly agree with the premise that an orchestrator-centric approach is preferable to event spaghetti for a lot of business process use cases. Another (maybe more mature) alternative to Infinitic is Camunda, who have been pushing this rhetoric for over a decade. My problem with both is that neither feel very modern, in the sense that they are tied to (in Infinitic's case) or strongly favor (in Camunda's case) Java…

Thank you for your comment. Highlighting the need for a descriptive format to orchestrate services implemented in multiple languages is a valid point. While Infinitic currently uses Java's interfaces, adopting a more generic and language-agnostic solution like Protobuf is a sensible approach that could promote better interoperability across different tech stacks. Then we need a DSL. Again, Infintic is using Java/Kotlin, but I'm thinking to the ideal solution as a new simple language in which Protobuf object are first-class citizen and that can be resumable (i.e whose internal state can be safely stored to be resume later). It's not as easy as it sounds as a lot of legit issues arise regarding versioning.

Re: The Way We Are Building Event-Driven Applications Is Misguided

#20
post #16

These just seem like sagas, but with the drawback that you now have an additional service for every saga (so now you have N+M problems?) Also if you centrally own all business processes, why did you land upon a microservices architecture in the first place?

The idea is that each business process can be implemented through its own service. So a microservice architecture is still very relevant from an organisational point of view. The team in charge of this business process must know the interfaces of the services it uses. But they are the only ones. There is actually less coupling in this organisation, not more.
Post reply on HN