lwinterface / panini_microservice_template

MIT License
4 stars 0 forks source link

From NATS pub/sub to stream #58

Closed sync-by-unito[bot] closed 3 years ago

sync-by-unito[bot] commented 3 years ago

Something I didn't take care about is that we need to be sure that every messages is well delivered to micro services through NATS.

In order to do that simply, we need to change from pub/sub to streaming model : https://nats.io/blog/introducing-nats-streaming/

sync-by-unito[bot] commented 3 years ago

➤ Tulsene commented:

After few more discussions it appear that NATS streaming creating a real problem of performance. As only private requests need to be 100% sure that the message is delivered, it will use https://nats-io.github.io/docs/developer/concepts/reqreply.html.