Hacker News new | past | comments | ask | show | jobs | submit login

> The issue is that moving from synchronous API calls to asynchronous message passing introduces new complexity. It's not suitable for every problem.

Well yes but request-response is simply a pattern that can be implemented on top of pub-sub extremely easily. Nats implements it with a temporary generated inbox subject for responses, so dead simple. This keeps application logic conceptually identical to traditional rpcs.

The gain though doesn’t come from the messaging patterns themselves though, but the addressing. Going from “I wanna talk to X” to “I wanna talk about Y” is an extremely powerful shift of mindset.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: