Question

In: Computer Science

Where does the need for at-least-once and at-most-once semantics come from? Why can’t we have exactly-once...

Where does the need for at-least-once and at-most-once semantics come from? Why can’t we have exactly-once semantics? – Justify.

Solutions

Expert Solution

at-most-once semantics

It make sure that for each message using this delivery message is delivered zero or one times; In general it means that messages may be lost. There may be time which message that are delivered later affects the system.

at-least-once semantics

It make sure that for each message using this delivery tries multiple attempts at delivering it, which make sure that at least one succeeds; again, in more casual terms this means that messages may be sent again but not lost. Make sure that information gets send no mattere what time it takes.

Cons of exactly-once semantics:

1)Potentially need huge amounts of storage and infrastructure to support.

2)Need for performance overhead for every event at every operator.

Events will be replayed/retransmitted when failures occur (implementing at-least-once), and through state rollback or event deduplication, operators essentially become idempotent when updating internally managed state.

It really means that distinct updates to the state of an operator that is managed by the stream processing engine are only reflected once. "Exactly-once" by no means guarantees that processing of an event, i.e. execution of arbitrary user-defined logic, will happen only once.


Related Solutions

1. Employment data. where does it come from and what context/ideas do we need to understand...
1. Employment data. where does it come from and what context/ideas do we need to understand to use it meaningfully? 2. Measuring and comparing aggregate output. Measurement issues related to calculating and comparing GDP and related aggregate accounting concepts. 3. Using and interpreting the Aggregate Supply and Aggregate Demand Model. What are its limitations and caveats?
What is the source of most criminal law today? Where does that law come from?
What is the source of most criminal law today? Where does that law come from?
Explain about 1. where does google's revenue come from? 2. where does Microsoft revenue come from?
Explain about 1. where does google's revenue come from? 2. where does Microsoft revenue come from?
Where did most of their cash inflow come from? Where did most of their Cash Outflow...
Where did most of their cash inflow come from? Where did most of their Cash Outflow Go? Do You think these inflows and outflows indikcated good or bad news? FINANCING ACTIVITIES:     Excess tax benefits from stock-based compensation $829 Proceeds from long-term debt and other $621 Repayments of long-term debt and other $(354) Principal repayments of capital lease obligations $(3,860) Principal repayments of finance lease obligations $(147) Net cash provided by (used in) financing activities $(2,911) Foreign currency effect on cash...
Where does Public Health Data come from and how can we evaluate the quality of the...
Where does Public Health Data come from and how can we evaluate the quality of the research?
"Why Can’t We Just Get Along?"  Please respond to the following in at least 250 words and...
"Why Can’t We Just Get Along?"  Please respond to the following in at least 250 words and include any sources you use: Explain at least three historical and/or doctrinal reasons why there are so many divisions / denominations in the Christian religion. Describe two major themes in Christianity you view as surviving unchanged from the original teachings of Jesus and the early church. Then discuss one theme in Christianity that has been debated and continues to be debated in the religion.
What is Big Data? Why is it important? Where does Big Data come from? EXplain with...
What is Big Data? Why is it important? Where does Big Data come from? EXplain with your own words please
What are delayed neutrons? And where do they come from ? Why is it that they...
What are delayed neutrons? And where do they come from ? Why is it that they are important? In your answer you should be able to include a description of delayed neutron fraction
12. what is Anti-economic man and where does it come from
12. what is Anti-economic man and where does it come from
Where does stevioside come from? How is it made? How does it work – in other...
Where does stevioside come from? How is it made? How does it work – in other words, what makes it taste sweet? What are the health benefits of me using stevioside instead of sugar? Are there any health risks associated with its use?
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT