CodeQL zero to hero part 3: Security research with CodeQL
Learn how to use CodeQL for security research and improve your security research workflow.
The post CodeQL zero to hero part 3: Security research with CodeQL appeared first on The GitHub Blog. ⌘ Read more
Total et la tiers-mondisation de la France
Alors que la France se prépare à accueillir prochainement les épreuves des Jeux Olympiques en distribuant de plus en plus largement l’argent gratuit des autres, notamment à ceux qui lui font des clés de bras, on apprend que Total, le groupe pétrolier français, envisage de déplacer sa cotation principale de la Bourse de Paris à […] ⌘ Read more
使用 Makefile 輕鬆管理 Go 項目:提高開發效率的利器
一、介紹1、make 介紹make是一個構建自動化工具,會在當前目錄下尋找Makefile或makefile文件 如果存在相應的文件,它就會依據其中定義好的規則完成構建任務 2、Makefile 介紹 藉助Makefile我們在編譯過程中不再需要每次手動輸入編譯的命令和編譯的參數,可以極大簡化項目編譯過程。 我們可以把Makefile簡單理解爲它定義了一個項目文件的編譯規則。 ⌘ Read more
Ollama:本地大模型運行指南
本文作者爲 360 奇舞團前端開發工程師Ollama 簡介———Ollama 是一個基於 Go 語言開發的可以本地運行大模型的開源框架。官網:https://ollama.com/GitHub 地址:https://github.com/ollama/ollamaOllama 安裝———下載安裝 Ollama在 Ollama 官網根據操作系統類型選擇對應的安裝包,這裏選 ⌘ Read more
Google 孵化了 3 個 Go 安全庫,推薦使用!
大家好,我是煎魚。Google 作爲一家用戶體量很大的企業,有非常多的產品,經常會被黑客攻擊或被拿來練手。因此其設計的產品、編程語言、工具庫等都會要求考慮安全性相關的內容。例如:各種供應鏈攻擊、CWE 等安全的查缺補漏等。我們作爲用戶(使用者),可以 “白嫖” 這些功能實現。直接複用在自家的業務上就可以了。這樣每年在護網上都能省不少勁。三個 Go 安全庫———本次 Google 輸出了 ⌘ Read more
Golang 高效的切片拼接和 Go1-22 中新的拼接方法
在 Go 中,切片拼接是一種常見操作,但如果處理不當,可能會導致性能問題或意外的副作用。本文將詳細介紹幾種切片拼接的高效方法,討論它們的優缺點以及適當的使用場景。 基本的方法和其限制使用 append 函數最直接的方法是使用 append 函數,它將一個切片的元素添加到另一個切片的末尾。slice1 := []int{1, 2}slice2 := []int{3, 4}result := app ⌘ Read more
[langchaingo] 基於 Hugging Face 構建大模型應用
今天,我們將開始 Golang + LLM 系列的教程,本文將介紹如何在 Hugging Face 上使用 LangchainGo 來實現你的第一個大模型應用!Hugging Face 是什麼?Hugging Face 是一個火爆的人工智能開發社區和平臺,專注於自然語言處理(NLP)領域。該平臺提供了各種各樣的工具和資源,包括預訓練模型、模型庫、數據集、評估指標以及用於開發和部署 NLP 模型的庫 ⌘ Read more
I Investigated Australia’s Smuggest Man ⌘ Read more
Go 語言將 PDF 轉爲 Word ,代碼怎麼實現?
將 PDF 轉換爲 Word 這是一個很常見的功能了,用 Go 語言實現,可以通過以下步驟完成:1 安裝 PDF 轉換工具庫:首先需要使用 Go 語言中的 PDF 轉換庫,比如 pdftoword 或 pdfcpu。你可以使用 Go 的包管理工具(如 go get)來安裝這些庫。2 導入依賴庫:在 Go 項目中導入你選擇的 PDF 轉換庫,並確保正確地導入了所有需要的依賴項。3 加載 PDF 文件 ⌘ Read more
Optus, TPG sign billion-dollar deal in rural swipe at Telstra
The rival telcos will share their networks across country Australia, providing a viable alternative to the market leader. ⌘ Read more
Samsung’s anti-reflection TV excels in the light
The S95D 4K TV is not only exceptionally bright, it remains watchable in even the brightest and most glare-prone environments. ⌘ Read more
Untitled ⌘ Read more
Doppler Effect
⌘ Read more
LILYGO New T-Panel S3 Lite with 4” LCD and Wireless Connectivity
The T-Panel Lite by LILYGO is a compact ESP32S3-based development board designed for makers and hobbyists who are interested in creating IoT projects with a visual display component. This user-friendly tool provides a rich set of features packed into a small form factor with Arduino and MicroPython support. At the heart of the T-Panel Lite […] ⌘ Read more
What do Blue Underlines on Text Mean in Microsoft Edge?
If you use Microsoft Edge as your web browser, whether for free GPT 4 access or and DALL-E use, for cross-platform syncing, or any other reason, you may have noticed that you will often see blue underlined text when you’re typing within the browser. If you’re like me, you’re probably wondering what on earth the … Read More ⌘ Read more
Why Aren’t Cars Powered By Turbines?! ⌘ Read more
Untitled ⌘ Read more
Holybro Integrates Pixhawk and NVIDIA Jetson into Advanced Flight Controller Baseboard
Holybro recently introduced the Pixhawk Jetson Baseboard, designed for autonomous vehicle systems. This compact baseboard seamlessly integrates the capabilities of both Pixhawk and NVIDIA Jetson platforms, making it ideal for developers and researchers focused on advanced robotics and unmanned vehicles. According to the product page, the Pixhawk Jetson Baseboard is fully … ⌘ Read more
gnet:基於 Go 語言的高性能網絡框架
gnet 是一個基於 Go 語言的事件驅動型網絡框架,其設計宗旨是實現高性能和輕量級。gnet 在底層採用了 epoll 和 kqueue 機制,相較於 Go 語言標準庫 net 在特定場景下有着更好的性能和更低的內存消耗。雖然 gnet 並非旨在取代 Go 語言的 net 庫,但它提供了另一種在 Go 生態系統中構建性能敏感型網絡服務的選擇。通過實現應用層的協議(如 HTTP、RPC、WebSo ⌘ Read more
go-money 實現貨幣運算的金標準
在進行金融領域的軟件開發時,貨幣值的精確表示和操作至關重要。由於浮點數帶來的精度問題,傳統的處理方式經常導致數值上的細微誤差。針對這一問題,go-money包提供了基於 Go 語言的解決方案,實現了 Fowler 的貨幣模式。本文將深入解析go-money包,演示其具體的使用方式,並通過豐富的示例讓您掌握如何在 Go 項目中實現精確的貨幣計算。起步:安裝 go-money————- ⌘ Read more
Melbourne’s iconic sporting precinct transforms into gamer heaven
Thousands of esports fans, gamers, artists and creators descended upon Melbourne’s Olympic Park for the third annual Dreamhack event. ⌘ Read more
Untitled ⌘ Read more
What’s a PXM File & How Do You Open It?
File types and file formats can be a bit of a mystery, especially when you stumble into a file that you don’t necessarily recognize. One such case that you may come across is a file that has a .pxm file extension, and if you haven’t heard of a PXM file before you understandably might be … Read More ⌘ Read more
Stars Ask Neil Their Deep Questions… Again! ⌘ Read more
Untitled ⌘ Read more
[47°09′49″S, 126°43′46″W] Reading: 1.95 Sv
M5Stack CoreMP135: A Versatile Linux Industrial Control Host with Advanced Connectivity
M5Stack has launched the CoreMP135, an industrial control host equipped with the STM32MP135 processor. This device is engineered for a diverse range of uses, including industrial automation, smart home systems, IoT edge gateways, multimedia devices, and robot motion control, delivering robust performance and multifunctional capabilities. The CoreMP135 is powered by the S … ⌘ Read more
Untitled ⌘ Read more
Whose side are you taking on this? 🫣 href=”https://txt.sour.is/search?q=%23pluto”>#pluto** ⌘ Read more
Fixing Apple Watch False Touch & Ghost Touch Issues
Some Apple Watch users have experienced a situation where their Apple Watch seems to respond to phantom touches, which some users have come to call ghost touches. These false touches can happen in a variety of different situations, from the Apple Watch simply being on your wrist and doing nothing out of the ordinary, to … Read More ⌘ Read more
[47°09′13″S, 126°43′21″W] Reading: 1.86000 PPM
GitHub Actions, Arm64, and the future of automotive software development
Learn how GitHub’s Enterprise Cloud, GitHub Actions, and Arm’s latest Automotive Enhanced processors, work together to usher in a new era of efficient, scalable, and flexible automotive software creation.
The post GitHub Actions, Arm64, and the future of automotive software development app … ⌘ Read more
The hidden economy of open source software
Member post originally published on Sysdig’s blog by Nigel Douglas The recent discovery of a backdoor in XZ Utils (CVE-2024-3094), a data compression utility used by a wide array of various open-source, Linux-based computer applications, underscores the importance of open-source… ⌘ Read more
Open source software in AI and cloud trends to watch in 2024: thoughts from the Netris community
Member post originally published on Netris’s blog Let’s face it: The world of open source software can feel boring – in a good way. Open source has become so pervasive, and so deeply entrenched within modern software stacks… ⌘ Read more
Untitled ⌘ Read more
How Integza gets VIDEO IDEAS href=”https://txt.sour.is/search?q=%23opensauce”>#opensauce** ⌘ Read more
Untitled ⌘ Read more
L’intelligence artificielle pour tous ?
Malgré une géopolitique internationale toujours plus tendue, malgré les odeurs de crise économique et financière toujours plus fortes, le monde de l’intelligence artificielle continue d’avancer et le précédent billet relatif à ce domaine, pourtant vieux de quelques semaines seulement, semble déjà fort lointain tant les nouveautés se sont accumulées depuis. Ainsi, les questions posées sur […] ⌘ Read more
Olimex ESP32-POE2: A Versatile Open Source Hardware PoE IoT Board
Introducing the ESP32-POE2 by Olimex, an evolution of the ESP32-POE board, designed to meet the demands of IoT applications. This iteration boasts enhanced power delivery capabilities, with the ability to provide up to 25W of power to external circuits via Power over Ethernet connections. Key features of the ESP32-POE2 include the ESP32-WROOM-32 module for Wi-Fi […] ⌘ Read more
[47°09′28″S, 126°43′55″W] Raw reading: 0x662B34D1, offset +/-5
Scott Farquhar to step down as Atlassian co-CEO
After co-founding the software company more than two decades ago, Farquhar will step down to focus on family and philanthropy. ⌘ Read more
Price Gouging | Coles and Woolies ⌘ Read more
Go 1-22 的新增功能系列之一:cmp-Or
截至撰寫本文時,Go 1.22 已經發布幾個月了。早就該結束我爲 1.22 所做的工作的系列了。抱歉耽擱了這麼久,我最近忙於生活事務。如果您錯過了我關於 reflect.TypeFor(https://blog.carlana.net/post/2024/golang-reflect-type-for/) 和 slices.Concat(https://blog.carlana.net/post/ ⌘ Read more
使用 GitHub Actions 構建 Golang PGO
今年 2 月,我宣佈 Dolt 版本現已構建爲配置文件引導優化 (pgo) 二進制文件,利用 Golang 1.20 的強大功能將 Dolt 的讀取性能提高 5.3%。在我宣佈這一消息之前,我們的一位常駐 Golang 專家 Zach 試驗並測試了 Golang 的 pgo 功能,並寫下了他在使用 Dolt 構建後觀察到的性能提升,該配置文件首先針對 Dolt 運行我們的 Sysbench 基準測 ⌘ Read more
Untitled ⌘ Read more
Untitled ⌘ Read more
Earth Formation Site
⌘ Read more
Neil deGrasse Tyson Debates a Pluto Expert ⌘ Read more
Scott Farquhar to step down as Atlassian co-CEO
After co-founding the software company more than two decades ago, Farquhar will step down to focus on family and philanthropy. ⌘ Read more
How to Connect AirPods to a Smart TV
AirPods are extremely popular wireless earbuds, and while most people associate them with the Apple ecosystem, they can be used outside of that too. One common situation that appeals to many people is the idea of connecting AirPods to a smart TV, allowing for the use of the wireless headphones for watching a show, movie, … Read More ⌘ Read more
How AI ‘Understands’ Images (CLIP) - Computerphile ⌘ Read more
How Katalyst guarantees memory QoS for colocated applications
Member post originally published on Katalyst’s blog In the previous post[1], we introduced Katalyst – a QoS-based resource management system that helps ByteDance improve resource efficiency through colocation of online and offline workloads. In the colocation scenario, memory… ⌘ Read more
Keeping a lid on lithium-ion battery fires
Don’t buy a device with a rechargeable battery unless it comes from a reputable brand and seller, and be extra careful when charging e-scooters and e-bikes at home. ⌘ Read more
Erlang Solutions: Technical debt and HR – what do they have in common?
At first glance, it may sound absurd. Here we have technical debt, a purely engineering problem, as technical as it can get, and another area, HR, dealing with psychology and emotions, put into one sentence. Is it possible that they are closely related? Let’s take it apart and see.
What is technical debt, anyway? A tongue-in-cheek definition is that it is code written by someo … ⌘ Read more
ProcessOne: ejabberd Docs now using MkDocs
The ejabberd Docs website did just get a major rework: new content management system, reorganized navigation, improved markdown, and several improvements!
Brief documentation timelineejabberd started in November 2002 (see a timeline in the ejabberd turns 20 bl … ⌘ Read more
Untitled ⌘ Read more
ADLINK Launches Innovative A380E Graphics Card Featuring Intel Arc GPU
ADLINK Technology Inc. has unveiled the EGX-PCIE-A380E graphics card, integrated with the Intel Arc A380E GPU. This new card is specifically designed to enhance commercial gaming and edge AI applications, supported by compatibility with the OpenVino toolkit. The card leverages the Arc Alchemist architecture and is equipped with 6GB of GDDR6 memory, ensuring high efficiency […] ⌘ Read more
使用 Go 語言中的 Buffer 實現高性能處理字節和字符串
在 Go 語言標準庫中,bytes包提供了對 byte slice ([]byte) 的便捷操作,其中Buffer是一個實現了io.Reader和io.Writer接口的可變大小的字節緩衝。我們通常使用Buffer來讀寫數據、處理字符串和字節的過程中實現高性能的操作。Buffer 的使用場景————Buffer在以下場景中特別有用:當需要一個字節緩衝時 進行字符串的高效拼接 ⌘ Read more
Golang - Jaeger 實現分佈式鏈路追蹤
什麼是分佈式鏈路追蹤(Distributed Tracing?)?分佈式追蹤是軟件開發和性能監控中使用的一種技術,用於跟蹤和分析請求在分佈式系統的各個組件中的流動。在現代軟件應用中,不同的服務和微服務通常一起工作來滿足用戶請求。這些服務可能分佈在多臺服務器、容器或地理位置上。瞭解這些服務之間的交互並識別瓶頸或性能問題可能是具有挑戰性的。不同服務生成的跨度被收集併發送到一個稱爲追蹤系統的集中式存儲庫 ⌘ Read more
Beta 3 of iOS 17.5, macOS Sonoma 14.5, iPadOS 17.5, Available for Testing
Apple has issued the third beta versions of iOS 17.5, macOS Sonoma 14.5, iPadOS 17.5, watchOS 10.5, visionOS 1.2, and tvOS 17.5, to all users participating in the beta testing programs for Apple system software. The new beta builds are available to both developer beta and public beta testers on any actively enrolled device, though … [Read More](https://osxdaily.com/2024/04/24/beta-3-of-ios- … ⌘ Read more
Why Are Cicadas So Important? ⌘ Read more
Untitled ⌘ Read more
How to Customize the Finder Sidebar on Mac
Do you want to change the way the sidebar looks on your Mac when you open a new Finder window? This is done by customizing the Finder Preferences according to your liking. Apple offers several ways to customize the Finder sidebar on macOS computers. Finder is the default file manager on macOS systems and the … Read More ⌘ Read more
Multi-hued e-reader brings more colour, but less clarity
Book covers, magazines, comics and notes benefit greatly from a colour screen but, for reading, black-and-white technology is still superior. ⌘ Read more
[47°09′55″S, 126°43′48″W] Reading: 0.25 Sv
Make a Rocket with Me ⌘ Read more
ProcessOne: ejabberd Docs now using MkDocs
The ejabberd Docs website did just get a major rework: new content management system, reorganized navigation, improved markdown, and several improvements!
ejabberd started in November 2002 (see a timeline in the ejabberd turns 20 blog post). And the first documentation was published in January 2003, using LaTeX, see [Ejabberd Installation and Op … ⌘ Read more
A Promising Methodology for Testing GenAI Applications in Java
Testing applications that incorporate AI can be difficult. In this article, we share a promising new methodology for testing GenAI applications in Java. ⌘ Read more
Better Debugging: How the Signal0ne Docker Extension Uses AI to Simplify Container Troubleshooting
Get started with Signal0ne, a Docker Desktop extension that scans Docker containers’ state and logs in search of problems, analyzes the discovered issues, and outputs insights to help developers debug. ⌘ Read more
Securing millions of developers through 2FA
We’ve dramatically increased 2FA adoption on GitHub as part of our responsibility to make the software ecosystem more secure. Read on to learn how we secured millions of developers and why we’re urging more organizations to join us in these efforts.
The post Securing millions of developers through 2FA appeared first on The GitHub Blog. ⌘ Read more
Une idiocratie française
Ah, enfin, le gouvernement prend des mesures fortes en faveur des Français ! Alors que les impôts n’ont jamais été aussi hauts, que l’insécurité augmente, que l’économie du pays vacille et que l’inflation fait rage, Olivia Grégoire, la ministre déléguée au commerce a courageusement retroussé ses manches. C’est donc décidé : le 1er Juillet, des affichettes seront […] ⌘ Read more
Migration, Housing, and the Economy ⌘ Read more
Golang 異步編程方式和技巧
Golang 基於多線程、協程實現,與生俱來適合異步編程,當我們遇到那種需要批量處理且耗時的操作時,傳統的線性執行就顯得喫力,這時就會想到異步並行處理。下面介紹一些異步編程方式和技巧。作者:zvalhu一、使用方式1.1、最簡單的最常用的方式:使用 go 關鍵詞func main() { go func() { fmt.Println(“hello world1”) }() go func( ⌘ Read more
從零到生產:Go 在 Google 的歷程 [譯]
2007 年 Go 誕生於 Google,2009 年 Google 正式對外宣佈了 Go 語言的開源!時至今日,距離 Go 開源已經過去了近 15 個年頭了 [1]!Go 在 Google 公司內部究竟是怎樣的一個狀態呢?前 Google 員工 Yves Junqueira 近期撰文從其個人所見所聞談了 Go 在 Google 的歷程 [2]!這裏簡單翻譯,供大家參考! 最近,Jeremy Ma ⌘ Read more
Untitled ⌘ Read more
Pendulum Types
⌘ Read more
Unmanned Ground Vehicle Rover for Raspberry Pi 4 & 5 SBCs
Unmanned Ground Vehicle Rover for Raspberry Pi 4 & 5 SBCs
Waveshare recently featured a UGV Rover compatible with the popular Raspberry Pi single board computer. This open-source platform can be used for robotic and vision computer applications due to its 5MP camera and Lidar support. ⌘ Read more
Everything You Need To Know About the Impending Cicada Invasion ⌘ Read more
How to Uninstall Apps on MacOS Sonoma & Ventura via System Settings
Uninstalling and removing apps is a necessary task on any computer, and the Mac is no exception. One of the benefits of MacOS is that it makes uninstalling applications pretty easy, and there are several ways to go about participating in the removal of apps from your Mac computer. One of the handiest ways to … Read More ⌘ Read more
Apple Event Set for May 7, New iPads Expected
Apple has set an online event for 7:00AM PST on Tuesday, May 7, for the early birds on the west coast, or mid-morning east coast folks. While Apple offers only a vague hint of what’s to come with the event artwork, the rumor mill speculates that updated iPad models will be revealed that feature the … Read More ⌘ Read more
How to Uninstall Apps on MacOS Sonoma & Ventura via System Settings
Uninstalling and removing apps is a necessary task on any computer, and the Mac is no exception. One of the benefits of MacOS is that it makes uninstalling applications pretty easy, and there are several ways to go about participating in the removal of apps from your Mac computer. One of the handiest ways to … Read More ⌘ Read more
A recap: KubeCon + CloudNativeCon Europe 2024
Community post originally published on Medium by Ryan Gough and Majid Att This year, we (JYSK tech) took to Paris to attend KubeCon + CloudNativeCon Europe 2024. After three days of talks, networking and workshops. We put together… ⌘ Read more
Decoding your daily typing habits with GreptimeDB and Streamlit
Member post originally published on Greptime’s blog by Tison Nowadays, typing is a nearly daily occurrence for most people. Interestingly, your typing habits may vary significantly from what you might assume. Below, you’ll find a dashboard that provides… ⌘ Read more
[47°09′01″S, 126°43′12″W] Reading: 1.76 Sv
[47°09′16″S, 126°43′50″W] Reading: 0.21000 PPM
Go 語言實現 dll 惡意劫持轉發
dll 轉發概述————dll 轉發: 攻擊者使用惡意 dll 替換原始 dll,重命名原始 dll 並通過惡意 dll 將原先的功能轉發至原始 dll。該惡意 dll 一般用來專門執行攻擊者希望攔截或修改的功能,同時將所有其他功能轉發至原始 dll一般可與 dll 劫持共同使用。dll 搜索順序首先我們來看一下 Windows 系統中 dll 的搜索順序 上圖中攻擊者可以控制的 ⌘ Read more
Untitled ⌘ Read more
The 2024 Total Solar Eclipse with Neil 🌘 ⌘ Read more
Ronetix Expands SoM Series With NXP i.MX93 and Renesas RZ/G2UL Chipsets
Ronetix Expands SoM Series With NXP i.MX93 and Renesas RZ/G2UL Chipsets
Ronetix continues to expand its range of System on Modules (SoMs) with several new products powered by NXP and Renesas processors, addressing a broad spectrum of needs in industrial automation, intelligent energy management, and embedded systems. ⌘ Read more
Untitled ⌘ Read more
Untitled ⌘ Read more
How to Mute a Call on Apple Watch
Since the Apple Watch is tied to your iPhone, you’ve likely noticed that phone calls can be made or answered on your wrist. While you might know how to answer or reject phone calls on the Apple Watch, did you know that you can silence or mute a call to your Apple Watch too? These … Read More ⌘ Read more
Using open source to help the earth
This Earth Day, we discuss how tech and open source are helping two organizations combat the effects of a changing climate.
The post Using open source to help the earth appeared first on The GitHub Blog. ⌘ Read more
Youpi, Macron veut faire le Mozart de la finance avec votre épargne !
Décidément, ce n’est pas simple à comprendre, la Macronie ! Plus on étudie ce qui se dit, ce qui se prépare, ce qui se promet et ce qui se discute, plus on observe en face ce qui se passe réellement, et moins les paroles se rapprochent des actes. Que c’est compliqué ! Ainsi, alors que la France […] ⌘ Read more
火灾之后的巴黎圣母院,应该完全按古迹原样修复,还是应该根据现代建筑的技术加入新的元素?
超多图长文预警!!!(我们公司Setec Opency负责工地协调)。8个亿修个屋顶,一生难遇的世纪重建工程,远比我想象的复杂。重建团队和科学家探究曾经的施工工艺,尽可能地使用原始的手工作业,对于一个工程人来说,这种不计成本的世纪工程是一生难遇的。
知乎上曾看到有人说,有的国家是朝着人类文明的反方向发展,有的国家是跟着人类文明大方向发展,而法国,是那个推着人类文明发展的国家。
2019年4月15日,巴黎圣母院失火新闻占据各媒体头条,烈火肆意燃烧,上百名消防员争分夺秒,然而尖塔没能撑过大火,在全世界的瞩目下轰然塌陷。法国政府经过讨论后,决定不做任何创新,还原巴黎圣母院
这篇文章关注于大火后的圣母院重建。参考于 … ⌘ Read more
基於 go 實現 redis 之主幹框架
0 前言本着學習和實踐的目的,從本期開始,我將和大家一起走進一個新的專題—— 【基於 go 實現 redis】 .該專題圍繞着我的一個開源項目——goredis 展開. 由於個人水平有限,如有不到位之處,歡迎批評指正:https://github.com/xiaoxuxiansheng/goredis本系列計劃分爲四篇內容:• 基於 go 實現 redis 之主幹框架(本篇): 在宏觀視角下縱覽 ⌘ Read more
訪問 Golang 私有函數、方法、類型和變量
本文譯自 Yarden Laifenfeld 的 Accessing Private Functions, Methods, Types and Variables in Go https://medium.com/@yardenlaif/accessing-private-functions-methods-types-and-variables-in-go-951acccc05a6你 ⌘ Read more
Go 語言使用 Watermill 構建高性能事件流處理
在今天的數據驅動世界中,異步通信模式對實現高效的數據處理和服務間通信至關重要。Go 語言因其簡潔的語法、強大的併發支持而成爲處理高併發事件流的理想選擇。在衆多 Go 語言庫中,Watermill 是一個值得關注的事件流處理庫。本文將深入探討 Watermill 的內部機制、優點以及如何在 Go 項目中有效地利用它來處理異步請求。Watermill 簡介————Watermill 是 ⌘ Read more
Go 語言是 如何實現 HTTP 代理 和 反向代理
代理的核心功能可以用一句話概括:接受客戶端的請求,轉發到後端服務器,獲得應答之後返回給客戶端。代理的功能有很多,事實上整個互聯網到處都充斥着代理服務器。如果所有的 HTTP 訪問都是客戶端和服務器端直接進行的話,我們的網絡不僅會變得緩慢,而且性能會大打折扣。代理服務器根據不同的配置和使用,可能會有不同的功能,這些功能主要包括:內容過濾:代理可以根據一定的規則限制某些請求的連接。比如有些公司會設置內 ⌘ Read more
分享 Golang 健壯高效的一種重試模式
在分佈式系統和網絡編程領域,優雅地處理瞬時錯誤是構建彈性應用程序的關鍵方面。應對這些暫時性小故障的一種有效策略是實現重試模式。在這篇博客文章中,我們將深入探討在 Golang 中創建一個健壯的重試模式瞬時錯誤瞬時錯誤,通常在網絡操作中遇到,可能是短暫的故障,可以包括網絡超時、服務器暫時不可用或其他瞬時故障。通過重試來解決這些錯誤可以顯著提高應用程序的可靠性和容錯能力。Golang 重試模式重試模式 ⌘ Read more