Arkitektura & Design Patterns

Sync vs async communication

Në shqip: Komunikimi sinkron dhe asinkron

ShpjegimiSQ

Sinkron (REST, gRPC): shërbimi thërret dhe pret përgjigjen — i thjeshtë, por po bie tjetri, bie edhe ky. Asinkron (radhë, ngjarje): dërgon mesazhin dhe vazhdon — më i qëndrueshëm, por më i vështirë për t'u ndjekur.

EnglishEN

Synchronous (REST, gRPC): the service calls and waits for the answer — simple, but if the other fails, so does it. Asynchronous (queues, events): send the message and carry on — more resilient, but harder to trace.

Si ta mendosh

Si dallimi mes një telefonate dhe një mesazhi me tekst.

Lexoje në anglisht

Like the difference between a phone call and a text message.

Terma të lidhur