সব বই

পেশাদার

1 Markets I: The Ecosystem and Exchange-Traded Marketsবাজার অনলাইন 2 Markets II: Rates, FX and Creditবাজার অনলাইন 3 Markets III: Commodities, Energy and Cryptoবাজার অনলাইন 4 Quantitative Methodsপদ্ধতি অনলাইন 5 Derivatives and Volatilityডেরিভেটিভস অনলাইন 6 Rates, Credit, XVA and Riskসুদহার, ঋণ ও ঝুঁকি অনলাইন 7 Research Craft: Predictors, Backtests, Measurement, Portfoliosগবেষণা অনলাইন 8 Strategies I: Equities and Futuresকৌশল অনলাইন 9 Strategies II: Volatility, Relative Value, Macro and the Bank Desksকৌশল অনলাইন 10 Microstructure and Executionএক্সিকিউশন অনলাইন 11 Market Making and High-Frequency Tradingমার্কেট মেকিং অনলাইন 12 Machine Learning for Marketsমেশিন লার্নিং অনলাইন 13 Low-Latency Softwareপ্রযুক্তি অনলাইন 14 Networks, Hardware and Trading Infrastructureপ্রযুক্তি অনলাইন 15 Research, Data and Risk Platformsপ্রযুক্তি অনলাইন 16 The Desk and the Firmপ্রতিষ্ঠান অনলাইন 17 The Industry: Firms, Roles and Careersক্যারিয়ার অনলাইন 18 Interviews I: Maths, Probability and Speedক্যারিয়ার অনলাইন 19 Interviews II: Markets, Trading Games and the Final Roundক্যারিয়ার অনলাইন 20 Interviews III: Codeক্যারিয়ার অনলাইন
অ্যাপ পরিচিতি Coach সাইন ইন পড়া শুরু করো

বইগুলো এখনো বাংলা ভাষায় পাওয়া যায় না — ইংরেজি সংস্করণ দেখানো হচ্ছে।

Quantitative Finance · পরিভাষা

Transactional outbox কী?

Definition 24.7 Research, Data and Risk Platforms · অধ্যায় 24 — Messaging and Event-Driven Architecture

A transactional outbox is a table in a service’s own database into which the service writes each event in the same transaction as the change it announces; a separate relay reads the table, publishes the events in order, and marks them sent, so that an event is published if and only if its change was committed — at least once, with a key that lets the log or the consumer drop the repeats.

The transactional outbox: the trade and the event that announces it are committed in one database transaction; a relay publishes unsent events to the log and then marks them sent. A crash between 1 and 2 repeats an event, never loses one, and the idempotence key lets the log drop the repeat.
Figure 24.4. The transactional outbox: the trade and the event that announces it are committed in one database transaction; a relay publishes unsent events to the log and then marks them sent. A crash between 1 and 2 repeats an event, never loses one, and the idempotence key lets the log drop the repeat.
designevents lostphantom eventsduplicated events
write the trade, then publish2200
publish, then write the trade0220
outbox, relay without idempotence key0022
outbox, relay with idempotence key000
Table 24.1. 2 000 trades published with a 1% chance of a crash at the dangerous point of each design: between the two writes, or between publishing and marking an outbox row sent. A phantom event announces a trade the database does not hold.
প্রসঙ্গসহ পড়ো →