28 Eylül 2023 Perşembe

Yazılım Mimarisi - Event Driven Architecture (EDA) - Claim Check

Giriş
Açıklaması şöyle
This pattern could be used whenever a message cannot fit the supported message limit of the chosen message bus technology. 
Açıklaması şöyle
For example, a message may contain a set of data items that may be needed later in the message flow, but that are not necessary for all intermediate processing steps. We may not want to carry all this information through each processing step because it may cause performance degradation and makes debugging harder.

Sending such large messages to the message bus directly is not recommended, because they require more resources and bandwidth to be consumed. Also, most messaging platforms have limits on message size, so you may need to work around these limits for large messages.
Çözüm
Açıklaması şöyle. Yani veri tabanı gibi bir yere kaydedip ID değerini gönderiyoruz
Store the entire message payload into an external service, such as a database. Get the reference to the stored payload and send just that reference to the message bus. The reference acts like a claim check used to retrieve a piece of luggage, hence the name of the pattern. Clients interested in processing that specific message can use the obtained reference to retrieve the payload, if needed.
Mesaj işlendikten sonra veri tabanından silinebilir

1 yorum:

  1. Orçun Bey bitirme tezim ile ilgili size ulaşabilir miyim ? Bu tez beni savunma sanayisine yollayabilir lütfenn.

    YanıtlaSil