fsync, write caches and the SSD that lies about durability
A committed transaction is only safe once the bytes reach durable storage. Somewhere between the database and the flash chips, there are caches that may not survive a power cut.
A committed transaction is only safe once the bytes reach durable storage. Somewhere between the database and the flash chips, there are caches that may not survive a power cut.
A popular key expires, and a thousand requests all miss at once and recompute the same expensive value against the database. The cache made things worse.
A fast ALTER TABLE can still take your site down, if it waits behind one slow query while every new query waits behind it.
Backed enums replace string constants and magic values. Readonly properties give you immutable value objects. Both have rules that surprise people in frameworks.
Most currencies are quoted against the dollar. A cross such as EUR/GBP is either traded directly or derived from two USD pairs, and the derivation is simple division.
A forward exchange rate is not a forecast. It is spot adjusted for the interest rates of the two currencies, so the higher-rate currency trades at a forward discount.
The volume bars on a forex chart are tick counts from one broker's feed. Real volume exists for currency futures, and using it takes a few conversions.
Miners are paid per unit of block space. Fee rates are quoted in sat/vB, and the address type you use changes how many vbytes the same payment takes.
A perpetual contract has no expiry, so a periodic payment between longs and shorts keeps its price close to spot. The exchange does not receive it.
Technologies