Возможно, стоит пояснить разницу между синхронизацией из thread/process-safe и синхронизацией с помощью Lock🤔
Наша задача — заставить разные процессы и потоки обращаться к базе данных (или любым другим ресурсам) последовательно. Чтобы не случилось так называемого race condition, то есть состояние гонки. Это когда разные потоки или процессы пытаются одновременно что-то сделать с одним и тем же ресурсом.
В этом случае нам нужна какая-то логика ограничения. Пока один процесс не завершил своё действие, другие не могут получить доступ к ресурсу.
Так вот, thread-safe и process-safe означает что отдельно взятые операции записи в БД гарантированно будут последовательны. Запросы из разных процессов или потоков выстроятся в очередь и не будут мешать друг другу. Лучше всего когда этот блок реализован на уровне БД в виде атомарных операций или ещё как-то.
Но зачем нам тогда еще дополнительный Lock?
Этот способ синхронизации используется когда процесс никак не укладывается в одно действие и должен сделать множество операций прежде чем дать доступ следующему. В этом случае процесс ставит некий глобальный Lock на ресурс и никто другой, даже получив законное право на доступ, не может ничего сделать. Все ждут пока этот Lock не будет снят.
Это решается на уровне приложения и правильность реализации полностью в вашей ответственности. Например, если забыли разблокировать или сделали перекрёстный Lock (Deadlock как на картинке), то всё зависнет в бесконечном ожидании.
#basic
⚡️Pavel Durov: Successful $1.7B Bond Issuance by Telegram
#Telegram#bonds
Pavel Durov announced that Telegram has issued $1.7B in 5-year bonds, maturing in 2030, with a 9% interest rate. This issuance allows Telegram to refinance more than $950M of previous bonds, enhancing its financial position significantly.
Source: link
@tonlines
⚡️TON — LIVE: Telegram Secures $1.7 Billion
#Telegram#bonds
TON — LIVE reports that Telegram has raised $1.7 billion through convertible bonds to repay existing debt and extend debt maturity. This financing follows a recent announcement about securing $1.5 billion with investors like BlackRock, Mubadala, and Citadel.
Source: link
@tonlines
The US Treasury has extended a ban on transaction involving the PDVSA 2020 bond, stopping holders from exercising the collateral and seizing CITGO shares. At the same time, a court-mandated auction of the US-based refiner remains mired in controversy.
Read the report: https://venezuelanalysis.com/news/venezuela-us-treasury-department-extends-citgo-protection-amid-auction-controversy/
#CITGO#Venezuela#Sanctions#Bonds
📈Bond Market: Sequencing, Not Intensity, Drives US10Y Below 4%
In a bond market characterized by nuanced movements, the next 72 hours will be defined by the sequencing of events rather than headline intensity. US 10-Year Treasury yield slips below 4% again,...
🔗Read Full Analysis
🎯 SPECIAL OFFER: 15% OFF
💸 Coupon Code: salenow15%
🚀 Upgrade to premium signals → https://markets.fxpremiere.com/en/signals?utm_source=telegram
#Bonds#YieldCurve#MarketAnalysis
📈Convexity Risk Lingers in Bond Markets: US10Y at 4.054%
Despite recent market calm, convexity risk in bond markets has not disappeared; it has merely become less visible. Analysis reveals that while front-end noise can be tactical, structural shifts...
🔗Read Full Analysis
📡 Get free trading signals → https://markets.fxpremiere.com/en/signals?utm_source=telegram
#Bonds#YieldCurve#MarketAnalysis
End-of-week depositary statistics
OVERVIEW OF SECURITIES ISSUES SAFEKEPT BY THE CENTRAL SECURITIES DEPOSITORY
The aggregate number of shares issues totaled 2093, while of corporate bonds totaled 30 as of 18.11.2022. The aggregate volume of issued shares totaled UZS 165 622.4 billion, while of corporate bonds totaled UZS 1 011.4 billion.
#issues#shares#bonds#infographics#statistics
deponet.uz|Tg|Fb|Inst|Youtube
End-of-week depositary statistics
OVERVIEW OF SECURITIES ISSUES SAFEKEPT BY THE CENTRAL SECURITIES DEPOSITORY
The aggregate number of shares issues totaled 2092, while of corporate bonds totaled 30 as of 11.11.2022. The aggregate volume of issued shares totaled UZS 165 616.4 billion, while of corporate bonds totaled UZS 1 011.4 billion.
#issues#shares#bonds#infographics#statistics
deponet.uz|Tg|Fb|Inst|Youtube
End-of-week depositary statistics
OVERVIEW OF SECURITIES ISSUES SAFEKEPT BY THE CENTRAL SECURITIES DEPOSITORY
The aggregate number of shares issues totaled 2091, while of corporate bonds totaled 30 as of 04.11.2022. The aggregate volume of issued shares totaled UZS 165 616.2 billion, while of corporate bonds totaled UZS 1 011.4 billion.
#issues#shares#bonds#infographics#statistics
deponet.uz|Tg|Fb|Inst|Youtube
End-of-week depositary statistics
OVERVIEW OF SECURITIES ISSUES SAFEKEPT BY THE CENTRAL SECURITIES DEPOSITORY
The aggregate number of shares issues totaled 2090, while of corporate bonds totaled 30 as of 28.10.2022. The aggregate volume of issued shares totaled UZS 165 616.2 billion, while of corporate bonds totaled UZS 1 011.4 billion.
#issues#shares#bonds#infographics#statistics
deponet.uz|Tg|Fb|Inst|Youtube
End-of-week depositary statistics
OVERVIEW OF SECURITIES ISSUES SAFEKEPT BY THE CENTRAL SECURITIES DEPOSITORY
The aggregate number of shares issues totaled 2085, while of corporate bonds totaled 30 as of 21.10.2022. The aggregate volume of issued shares totaled UZS 164 689.5 billion, while of corporate bonds totaled UZS 1 011.4 billion.
#issues#shares#bonds#infographics#statistics
deponet.uz|Tg|Fb|Inst|Youtube
End-of-week depositary statistics
OVERVIEW OF SECURITIES ISSUES SAFEKEPT BY THE CENTRAL SECURITIES DEPOSITORY
The aggregate number of shares issues totaled 2084, while of corporate bonds totaled 30 as of 14.10.2022. The aggregate volume of issued shares totaled UZS 164 619.5 billion, while of corporate bonds totaled UZS 1 011.4 billion.
#issues#shares#bonds#infographics#statistics
deponet.uz|Tg|Fb|Inst|Youtube
End-of-week depositary statistics
OVERVIEW OF SECURITIES ISSUES SAFEKEPT BY THE CENTRAL SECURITIES DEPOSITORY
The aggregate number of shares issues totaled 2083, while of corporate bonds totaled 30 as of 07.10.2022. The aggregate volume of issued shares totaled UZS 164 609.8 billion, while of corporate bonds totaled UZS 1 011.4 billion.
#issues#shares#bonds#infographics#statistics
deponet.uz|Tg|Fb|Inst|Youtube