#Da%C4%9F

2025-12-15

Чистим main.go: предсказуемый старт и надежный Graceful Shutdown

Сталкивались ли вы с болью при управлении порядком запуска и остановки зависимостей в вашем Go-сервисе? Разработка больших сервисов неизбежно приводит к необходимости управлять множеством зависимостей. В этом контексте мы говорим о долгоживущих компонентах , чья работа обеспечивается отдельными горутинами: как правило, это блокирующий метод (например, Start ), внутри которого крутится цикл обработки. Примерный сценарий жизненного цикла сервиса выглядит так: При запуске критически важно, чтобы пул соединений с БД, кэш и очереди были полностью готовы до того, как HTTP-сервер откроет порт и начнет принимать входящий трафик. С graceful shutdown ситуация обратная: порядок должен быть строго зеркальным. Сначала нужно перестать принимать новые запросы, дождаться завершения текущих, остановить воркеры, и только потом разрывать соединения с инфраструктурой. Иначе мы получаем неприятные ошибки подключения и даже потерянные транзакции в момент деплоя. Если эти проблемы вам не знакомы, смело закрывайте вкладку. Скорее всего, эта статья не принесет вам пользы. Но если вы ищете способ автоматизировать эту рутину, сохранив код чистым - добро пожаловать под кат.

habr.com/ru/articles/976800/

#go #golang #graceful_shutdown #dag #Dependency_Injection #Uber_Fx #Микросервисы #Open_Source #Архитектура #lifecycle

2025-12-13

Het wordt #weer een mooie #dag

2025-12-12

DAG-классификация: как мы научили поиск определять нужную категорию ступенчатым образом

Одна из важнейших задач поиска — релевантная выдача. Простых универсальных решений здесь нет, а улучшение поиска — долгосрочный процесс, где крупные задачи приходится разбивать на небольшие, последовательные шаги. В этой статье делимся тем, как нам в «Магнит Маркете» удалось значительно улучшить качество поиска с помощью нетривиального подхода: ступенчатой классификации категории поискового запроса.

habr.com/ru/companies/magnit/a

#ml #dag #поиск #ранжирование #релевантный_поиск #релевантность_поисковой_выдачи #data_science #dagмодель #оптимизация_поиска

musicmatze :rust: :nixos:musicmatze@social.linux.pizza
2025-12-08

I am thinking about an interesting problem right now.

Suppose I have a DAG of objects. Every object contains three data points:

* A list of parents (via Content-address hashes)
* A pointer to some content (almost irrelevant for this thought process)
* A version number (irrelevant for this thought process)

I have a limited but unknown number of peers that are allowed to "post" to that DAG. Once a peer discovers that another node has posted to the DAG, they either fast-foward or merge (which is trivial here) and go on.
All peers gossip all the time, so fast-forwarding is expected to be the "normal case" when all peers are online - but in case of network split there is no issue.

Now, suppose I want to allow "rewriting" the DAG.
That means, one node decides that deep down in the DAG, they want to change a node. That would change all other nodes that come after it.

How would the other peers know that the node was rewritten?

Two ideas:

* All peers keep track of "this other peer points to this hash right now". Once a peer rewrites their DAG, other peers can see that rather easily. That would involve some tricky logic, but I guess would be possible 🤔 The other peers can then update their stuff to that new DAG (and if needed even "rebase" changes that they have done between the rewrite and now, if there was a network split during that time)
* The second option would involve adding timestamps to the DAG nodes, so other nodes can see that a portion of the DAG was rewritten

The second option would add more fields to the DAG nodes, which I would like to not do, because they should be as light as possible.

What do you think? :boost_ok:

#algorithms #softwaredevelopment #dag #distributedsystems #graphdata #datatypes

2025-11-23

This mysterious blob is evidence of a male sparrow caught brown beaked stealing hemp from the hemp weed mat I put on the Rimu.

I noticed last night it was shredded and now I’ve seen the culprit!

#bird #dag #wool

A dark brown blob with a beak full of light brown hemp standing on an as yet unmolested blanket of hempShredded corner of a hemp square
Adèle Reissareiss
2025-11-22

Wat een was het gisteren. We maakte een op de als aan onze dierbaarste vriend die 3 jaar geleden stierf. Hoe mooi was het om een aan te treffen!

2025-11-20

The inquiry, according to the additional sources, include the office of #DAG [& fmr Trump personal atty] #ToddBlanche at #DOJ headquarters looking into the work of people who may have been dispatched or held themselves out to witnesses improperly around the mortgage fraud investigation.

#law #LegalEthics #LegalProcedure #RevengePolitics #Trump #AdamSchiff #EdMartin #BillPulte

2025-11-19

Earlier in the day, #DOJ lawyer Tyler Lemons, who is prosecuting the case, also told U.S. District Judge Michael Nachmanoff that “someone” in #DAG #ToddBlanche’s office ordered him not to disclose whether career prosecutors in the Department of Justice authored a memo recommending that Comey should not be indicted. Lemons said that he was told he couldn’t disclose “privileged” information without permission.

#law #LegalEthics #LegalProcedure #RevengePolitics #Trump #JamesComey

2025-11-19

#DOJ lawyer Tyler Lemons declined to say whether prosecutors have submitted a memo recommending that #JamesComey should not be prosecuted. Lemons told the judge that someone in #DAG #ToddBlanche’s office told him he couldn’t disclose “privileged” information without their permission.

“At this point, my position would be, whether there was a declination memo, is privileged,” Lemons said, adding that “I don’t know in the world of documents there is a declination memo.”

#law #Trump #lies

2025-11-17

Vivienda:

"Son personas en situaciones de vulnerabilidad que no pueden afrontar este capitalismo salvaje que se está devorando la vivienda como derecho".

@irezugasti en #DAG

Santiago :arandela:santiago@mastodon.uy
2025-11-15

La chica jugando con la pelota #dag #perro #mascotas

2025-11-13

Here’s Chris Hayes & lawyer / law professor / fmr US attorney / fmr asst #DAG Harry Litman discussing the pretty obvious #CoverUp by DAG #ToddBlanche of #Trump’s involvement with #Epstein during his “questioning” of #GhislaineMaxwell.

#law #Trump #EpsteinFiles #corruption #DOJ
youtube.com/watch?v=RhRXU-WbKAo

2025-11-13

#Epstein dump exposed #DOJ's massive #CoverUp for #Trump

Law professor & co-editor-in-chief of Just Security Ryan Goodman said the latest documents from #JeffreyEpstein is explosive & seems to implicate Trump's deputy attorney general [#DAG] in a massive cover-up.

The emails released directly contradict statements Epstein's associate, #GhislaineMaxwell, made to DAG #ToddBlanche in a taped interview designed to exonerate Trump.

#law #EpsteinFiles #corruption #DOJ
rawstory.com/todd-blanche-2674

2025-11-12

Overnight we got 50mm of rain (and a heck of a lot of wind knocking off branches).

In between playing “guess the tree” with the windfall — one branch is over 80 metres from the tree it fell off — I went to check the moisture levels under the #dag #wool mats.

This is the kōwhai. The mat is wet. It’s not running off as much as when it was new. Ground is drier than I would have expected. After about 20mm it’s as dry as it was before the rain.

I gave the kōwhai some extra water.

A small hole in the ground under a whitish woolen felt disk. The colour of the soil indicates it’s quite dry
2025-11-10

Very interesting!

FuturFibre are the company that made the #dag #wool and the hemp weed mats that I’m trialing at the moment.

That roundabout he mentions smelled very strongly of weed for months and months during construction, well before the weed matting was rolled out. I believe it’s synthetic weed matting because it is far too bright white.

Might have to go down there and inspect it a bit closer.

@strypey

2025-11-08

You may recall this plant had all the loose wool stolen from it. I put a felted wool mat on it (see second photo in above toot).

I just walked past and noticed a bird has been tearing wool off the edge of the felt.

I wonder where it’s going!

#dag #wool #gardening

A round woollen disk with a rounded chunk pulled out of it.
2025-11-06

What is the difference between a workflow and a DAG? #DAG #workflow #coding

2025-11-05

Technically the #dag #wool weed mats are porous however in practice remember that sheep are beautiful fluffy WEATHER PROOF balls which means that their natural oils don’t like water getting past them.

Guess I’ll be lifting the mats to water these pot plants.

@stephen-ao

Water is pooled on top of a felted wool mat and refuses to absorb
2025-11-05

Mooie #dag vandaag voor jullie

Client Info

Server: https://mastodon.social
Version: 2025.07
Repository: https://github.com/cyevgeniy/lmst