168 place 0

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

Habr
Ognick @ Habr · 12/15/2025 05:16 EDT

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

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

To see detailed statistics for the news please log in »

Read the original

Add your comment
You must be logged in with Facebook to read and write comments.

A newsletter a day!

You may get 10 most important news around midday in daily newsletter. Press the button and we will send you the most important news only, no spam attached.

or register

LIKE us on Facebook so you won't miss the most important news of the day!

News from the same source
Habr Habr
The Verge
Andrew Liszewski @ The Verge 1 place · today 20:54 EDT

Ikea’s new $4 USB-C charger is cheaper than Apple’s and Anker’s

Ikea has released the most affordable version of its Sjöss USB-C chargers yet. Following an $8 30W version that launched in 2024 and a $35 65W option that debuted earlier this year, the new 20W Sjöss is now available online and through many of Ikea's physical US stores for just $3.99. That's considerably cheaper than […] Read more

1,920 fresh

🔮
04.01.2026 ♌︎ Dear Leo, today promises to be filled with aspects that require patience and calmness. In... Read more ›
Engadget
Daniel Cooper @ Engadget 1 place · today 20:49 EDT

SwitchBot turned up to CES with an AI wearable that records everything you say

We’ve all fantasied about sprawling on an embroidered chaise lounge while our amanuensis faithfully typed out everything we said. SwitchBot turned up to CES with something that does a similar job, but without the romance of the amanuensis, the typewriter or the chaise lounge. Instead, it’s launching the AI MindClip, a wearable microphone which records and transcribes every noise to come from your mouth. The company isn’t alone, with many... Read more

925 fresh

Engadget
Amy Skorheim @ Engadget 2 place · today 20:34 EDT

Lockin's everlasting vein-recognizing smart lock doorbell cam combo is peak CES

Smart locks have a notable inconvenience: running out of power. Lockin, maker of vein-recognition locks, debuted its newest model on the CES floor. It charges wirelessly via an optical infrared beam with a four-meter range. A small device, connected to a standard outlet inside the house, shoots a beam at the lock, which has a small receptor panel that turns the light into power, sort of like a plug-in sun... Read more

874 fresh

The Verge
Barbara Krasnoff @ The Verge 2 place · today 19:00 EDT

Lockin’s new vein-scanning smart lock has a video doorbell and recharges wirelessly

While using a smart lock has a lot of positives, one of the negatives is having to deal with a battery that has unexpectedly gone dead. Lockin is introducing a smart lock that bypasses that problem: the V7 Max, which is powered by wireless optical charging. According to the company, the lock uses "eye-safe optical […] Read more

810 fresh

Tom's Hardware
Tom's Hardware 1 place · today 09:53 EDT

Speed test pits six generations of Windows against each other — Windows 11 placed dead last across most benchmarks, 8.1 emerges as unexpected winner in this unscientific comparison

If you're a Windows 11 hater, sit back and enjoy your biases being validated in the most satisfying way possible. A new speed test shows Microsoft's latest OS performing terribly against the five previous Windows versions, placing last in most tests across the board. Read more

806

Engadget
Amy Skorheim @ Engadget 3 place · today 19:49 EDT

Narwal's first mattress vacuum heats, taps, UV-blasts and sucks up all the ick living in your bed

Narwal brought new cleaning robots with it to CES this year, including the Narwal Flow 2, it’s latest flagship robo mop-vac, and the Narwal U50, an automatic mattress vac designed for “deep mite removal.” While I’d hoped the latter vac was an automatic crawler that could navigate your mattress top, the U50 is a handheld device. Still, no one likes to think about what filters down into their mattress as... Read more

439 fresh

Wired
Molly Taft @ Wired 1 place · today 14:25 EDT

Trump Wants Venezuela's Oil. Getting It Might Not Be So Simple

The administration has made it clear that Nicolás Maduro's capture was tied to Venezuela's vast oil reserves. Much less certain is how US companies will actually access them—or if they even want to. Read more

417 fresh

Business Insider
Matthew Loh @ Business Insider 1 place · today 19:08 EDT

NATO countries preparing for Arctic war are betting on this rugged 6x6 armored personnel carrier

Patria, Finland's biggest defense contractor, is scaling up production as it deals with an order backlog of over 1,000 vehicles from NATO allies. Read more

416 fresh

Business Insider
Tim Levin,Lloyd Lee,Brent D. Griffiths,Jaures Yip,Ana Altchek,Jo @ Business Insider 2 place · today 15:05 EDT

From 'First Buddy' bromance to a feud to a thaw, here's how Elon Musk and Donald Trump's relationship has evolved

Donald Trump and Elon Musk have a complicated relationship. They've had some very public spats, but the two powerful men remain political allies. Read more

380 fresh

The Verge
Terrence O’Brien @ The Verge 3 place · today 19:00 EDT

The Mui Board will support mmWave sleep tracking and gesture control

The Mui Board is, as far as smart home controllers go, soothing and nondescript. There's no bright HD screen, or even anything obviously technological. It's a smooth piece of wood that gently glows when you interact with it. So it makes sense that Mui Lab would suggest it as an excellent option for the bedroom. […] Read more

256 fresh

Tom's Hardware
Tom's Hardware 2 place · today 08:59 EDT

Blu-ray hits 20 — optical disc format was introduced to the public at CES 2006

20 years ago today, the CES in Las Vegas was buzzing with talk of Blu-ray technology, players, and media, and the format isn't dead yet. Read more

248

Engadget
Cheyenne MacDonald @ Engadget · today 16:55 EDT

Belkin announces a wireless HDMI dongle that doesn't need Wi-Fi access

Belkin has announced a plug-and-play casting system at CES 2026 that allows for screen sharing from a laptop, tablet or smartphone to another display without Wi-Fi or Bluetooth. The $150 ConnectAir Wireless HDMI Display Adapter comes with a USB-C transmitter dongle and a USB-A to HDMI receiver that can be connected to a TV, monitor or projector to wirelessly cast over a range of up to 131 feet (40 meters).... Read more

221 fresh

GSMArena.com
GSMArena.com 1 place · today 17:32 EDT

Asus ROG Xbox Ally X review

The ROG Xbox Ally X is the newest handheld gaming device from Asus, and the third of its kind from the company in as many years. The Xbox Ally X, along with the cheaper Xbox Ally, is made in collaboration with Microsoft's Xbox division, and features a unique design that mirrors Xbox controllers, as well as ships with a lightly modified version of Windows 11. The Xbox Ally X that... Read more

213 fresh

Slashdot
EditorDavid @ Slashdot 1 place · today 17:36 EDT

Fleischer Studios Criticized for Claiming Betty Boop is Not Public Domain

Here it is — Betty Boop's first appearance, which became public domain on Thursday. It's a 60-second song halfway through a longer cartoon about a restaurant titled Dizzy Dishes. (The first scene makes it clear this is a restaurant of anthropomorphized animals — which explains why the as-yet-unnamed character has floppy dog ears...) So Fleischer Studios has now warned that claiming Betty Boop is public domain"is actually not true." Very... Read more

201 fresh

Slashdot
EditorDavid @ Slashdot 2 place · today 19:49 EDT

North Dakota Law Included Fake Critical Minerals Using Lawyers' Last Names

North Dakota passed a law last May to promote development of rare earth minerals in the state. But the law's language apparently also includes two fake mineral names, according to the Bismarck Tribune, "that appear to be inspired by coal company lawyers who worked on the bill." The inclusion of fictional substances is being called an embarrassment by one state official, a possible practical joke by coal industry leaders and... Read more

190 fresh

SlashGear
SlashGear 1 place · today 14:15 EDT

How Long You Can Expect Your New QLED TV To Last

QLED TVs are great for budget and mid-range shoppers, but it's worth considering how long one will last before you shell out the money for it. Read more

165 fresh

Engadget
Lawrence Bonk,Mat Smith @ Engadget · today 19:32 EDT

At CES, Belkin launches a new charging case for the Switch 2 with a screen for checking battery life

Belkin just introduced the appropriately-named Charging Case Pro for Nintendo Switch 2 at CES 2026. This is a high-end charging case specifically designed for Nintendo's latest console. The 10,000mAh power bank delivers up to 30W of fast charging, which is a decent enough metric. I'm more excited, however, about the bells and whistles. The Charging Case Pro boasts an LCD screen on the exterior, making it easy to keep track... Read more

152 fresh

Business Insider
Lakshmi Varanasi,Andy Kiersz @ Business Insider 3 place · today 14:09 EDT

Here are the countries with the most oil reserves, and where Venezuela ranks

Trump says the US will look to tap Venezuela's oil. Venezuela has the most oil reserves, but only accounts for 1% of global production. Read more

145 fresh

CNET
Gael Cooper @ CNET 1 place · today 16:00 EDT

Today's Wordle Hints, Answer and Help for Jan. 5, #1661

Here are hints and the answer for today's Wordle for Jan. 5, No. 1,661. Read more

137 fresh

Business Insider
Sam Fellman @ Business Insider · today 06:28 EDT

Trump hinted at US troops guarding Venezuela's oil. Putting boots on the ground comes with high risks.

The US military has experience guarding oil infrastructure, but deploying troops to Venezuela comes with high risks in a dangerous environment. Read more

126

The most popular news from the same source for the last week
Habr Habr
Habr
shiru8bit (RUVDS.com) @ Habr 1 place · 12/30/2025 08:01 EDT

С Новым 2026-ым как в 1992-ом

Очередной Новый Год на носу, а значит, срочно нужно придумать очередной новогодний проектик и написать про него статью. И я придумал сделать интро-поздравление для ZX Spectrum. Да не современное, поражающее невообразимыми эффектами, а напротив, в максимально классическом стиле очень ранней демосцены. Заодно это повод рассказать про особенности национальных хакерских традиций в зимний и иные периоды. Сведём же новогодние олдскулы зарядом концентрированной ностальгии! Читать далее Read more

80

Habr
MisterClever @ Habr 1 place · 12/31/2025 02:48 EDT

[Перевод] Чай или кофе. Что сильнее влияет на кости?

Чай и кофе — два самых популярных напитка в мире. Да еще и вписанные в ежедневные ритуалы, связанные с культурой, комфортом и продуктивностью. Причем и чай, и кофе, влияют на плотность и здоровье костей, особенно в контексте рисков остеопороза. А вот в худшую или лучшую сторону, разберем в материале. Читать далее Read more

30

Habr
GIGAIDECommunity (Сбер) @ Habr 2 place · 12/30/2025 01:15 EDT

Тестирование с плагинами из маркетплейса GigaIDE

Продолжаем обзор плагинов с маркетплейса GigaIDE. В прошлый раз мы рассмотрели три ИИ-помощника, расширяющих функциональность GigaCode и упрощающих рефакторинг. Сегодня продолжим эту тему, но уже с точки зрения тестирования. Все описанные ниже плагины совместимы с Community-версией GigaIDE и устанавливаются из маркетплейса по инструкции из предыдущей публикации. Читать далее Read more

24

Habr
pink0D @ Habr 1 place · 01/02/2026 12:32 EDT

Прокачиваем LEGO-машинки с помощью Arduino

В этой статье попробуем разобраться, почему игрушечные машинки за условные 1000р ездят лучше, чем серьезные модели из конструкторов с электрикой за 10000р, и что с этим можно сделать, если вы разбираетесь в Arduino. Читать далее Read more

21

Habr
AI_Foxmaster @ Habr 1 place · 01/03/2026 08:00 EDT

Искусственный интеллект… и Третья Мировая война

Не раз встречал мнение, что война - двигатель прогресса. Радар, реактивная авиация, компьютеры и медицина - продукты WW-II, а новые сплавы, спутниковая связь и интернет - тоже продукты войны, но уже холодной. Может ли война снова стать драйвером, только в области ИИ? Читать далее Read more

15

Habr
NeyroEntuziast @ Habr 2 place · 12/29/2025 07:15 EDT

[Перевод] Я прочитал руководство по составлению промптов для GPT-5.2 от Openai, чтобы вам не пришлось это делать

Месяц назад ChatGPT дал «идеальный» ответ, который был бесполезен. Ответ выглядел убедительным, был хорошо отформатирован и в нем даже был план. Но он был неверным. Тогда-то меня и осенило: у большинства людей не «проблема с ИИ», а проблема с составлением промптов.Официальное руководство OpenAI по написанию промптов для GPT-5.2 — это, по сути, план, как это исправить, особенно если вы используете ChatGPT для работы: написания текстов, учебы, исследований, планирования или ведения... Read more

12

Habr
ArturGukasov @ Habr 1 place · 12/31/2025 08:15 EDT

Решил сделать себе смартфон на Линукс. Linux phone Xiaomi Poco X3 NFC на Ubuntu Touch по шагам

Времена сейчас тяжелые, я как пользователь iPhone, давно чувствую себя неполноценным пользователем смартфона в нашей юрисдикции. А с недавнего времени возглавил команду линуксоидов и потянуло меня на всё линуксовое. Решил, так скажем, стать пингвином. Все началось с того, что выкинул свой макбук, которым пользовался с 2015 года, купил хороший ThinkPad на Ryzen 7 и накатил туда Linux Mint 22.2 и, знаете что, радости моей нет предела, я прям кайфую и... Read more

11

Habr
vkni @ Habr 1 place · 01/01/2026 16:04 EDT

Крошечный язык для инструкций к выключателям

Давайте представим такую ситуацию: мы рисуем электрическую схему квартиры, в которой есть разные выключатели. Естественно, с точки зрения профессионала, какой-то из использованных выключателей мы подключили неправильно. Более того, часто профессионал может посмотреть не на всю схему, а только на подключение выключателя, и сказать, что да - ошибка. Почему?Давайте посмотрим на выключатели со схем 1-7. Понятно, что выключатель №1 должен быть подключён по двум контактам (1 и 2), иначе это ошибка.... Read more

9

Habr
davidaganov @ Habr 2 place · 01/02/2026 10:55 EDT

Осознанный вайб-кодинг

Личный опыт использования ИИ в разработке: от пет-проектов до рабочих задач. Где вайб-кодинг действительно ускоряет работу, а где превращается в иллюзию скорости и потерю контроля над проектом. Читать далее Read more

8

Habr
dreammaster19 @ Habr 1 place · 01/03/2026 08:07 EDT

Установка и настройка llama.cpp с ROCm на Ubuntu 24.04 для AMD Radeon RX 7600 XT

Моя цель казалась простой: поставить Ubuntu 24.04 и запустить локальную нейросеть на своей новой Radeon RX 7600 XT. Реальность оказалась жестче.Делюсь полным чек-листом действий — от первого терминала после установки ОС до момента, когда Python-скрипт получает ответ от модели, думающей на вашем же железе. Если вы тоже верите в силу open-source и «красного» стека, вам сюда. Читать далее Read more

7

Most popular sources

  • You see 362 news out of 362.
  • Sources 61 out of 61.
Tom's Hardware 27% 20
Business Insider 26% 26
The Verge 10% 7
Wired 6% 1
Slashdot 4% 2
View sources »

LIKE us on Facebook so you won't miss the most important news of the day!

04.01.2026 21:18
Last update: 21:05 EDT.
News rating updated: 04:10.

What is Times42?

Times42 brings you the most popular news from tech news portals in real-time chart.
Read about us in FAQ section.


Times42 © 2026